diff --git a/api/polkadot_api/index.html b/api/polkadot_api/index.html index 8cc9c2a8..0560e48d 100644 --- a/api/polkadot_api/index.html +++ b/api/polkadot_api/index.html @@ -12,7 +12,7 @@ - +
diff --git a/assets/codegen-CnbYZc7w.js b/assets/codegen-MMSNiuKu.js similarity index 99% rename from assets/codegen-CnbYZc7w.js rename to assets/codegen-MMSNiuKu.js index a63a8e59..5460e09f 100644 --- a/assets/codegen-CnbYZc7w.js +++ b/assets/codegen-MMSNiuKu.js @@ -1,4 +1,4 @@ -import{u as l,j as s}from"./index-O67QIW1D.js";const r={title:"Codegen",description:"undefined"};function n(i){const e={a:"a",aside:"aside",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",span:"span",ul:"ul",...l(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"codegen",children:["Codegen",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#codegen",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` +import{u as l,j as s}from"./index-rJOHic4W.js";const r={title:"Codegen",description:"undefined"};function n(i){const e={a:"a",aside:"aside",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",span:"span",ul:"ul",...l(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"codegen",children:["Codegen",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#codegen",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` `,s.jsx(e.p,{children:"Technically, to connect to a chain, all you need is just the provider. But to interact with it, you need to know the list of storage, runtime, and transaction calls and their types."}),` `,s.jsx(e.p,{children:"During runtime, the library can request the metadata for the chain it's connected to, and from this, it generates all the codecs to interact with it. But as a developer, you need to get that information beforehand."}),` `,s.jsx(e.p,{children:"Polkadot-API has a CLI that downloads the metadata for a chain and then uses that metadata to generate all the type descriptors."}),` diff --git a/assets/example-BQvU0spJ.js b/assets/example-DeC6E7XP.js similarity index 89% rename from assets/example-BQvU0spJ.js rename to assets/example-DeC6E7XP.js index 31514064..1d680032 100644 --- a/assets/example-BQvU0spJ.js +++ b/assets/example-DeC6E7XP.js @@ -1,2 +1,2 @@ -import{u as r,j as e}from"./index-O67QIW1D.js";const i={title:"Example",description:"undefined"};function a(t){const n={a:"a",div:"div",h1:"h1",header:"header",p:"p",...r(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(n.header,{children:e.jsxs(n.h1,{id:"example",children:["Example",e.jsx(n.a,{"aria-hidden":"true",tabIndex:"-1",href:"#example",children:e.jsx(n.div,{"data-autolink-icon":!0})})]})}),` +import{u as r,j as e}from"./index-rJOHic4W.js";const i={title:"Example",description:"undefined"};function a(t){const n={a:"a",div:"div",h1:"h1",header:"header",p:"p",...r(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(n.header,{children:e.jsxs(n.h1,{id:"example",children:["Example",e.jsx(n.a,{"aria-hidden":"true",tabIndex:"-1",href:"#example",children:e.jsx(n.div,{"data-autolink-icon":!0})})]})}),` `,e.jsx(n.p,{children:"Example"})]})}function o(t={}){const{wrapper:n}={...r(),...t.components};return n?e.jsx(n,{...t,children:e.jsx(a,{...t})}):a(t)}export{o as default,i as frontmatter}; diff --git a/assets/getting-started-DF8MU59x.js b/assets/getting-started-hHyuSENX.js similarity index 99% rename from assets/getting-started-DF8MU59x.js rename to assets/getting-started-hHyuSENX.js index 1c4ebd67..fc089b80 100644 --- a/assets/getting-started-DF8MU59x.js +++ b/assets/getting-started-hHyuSENX.js @@ -1,4 +1,4 @@ -import{j as s,$ as t,a as h,b as k,c as p,u as o}from"./index-O67QIW1D.js";const a=({options:i,children:e})=>s.jsxs(t,{className:"Tabs__root border rounded bg-[--vocs-color_codeBlockBackground] border-[--vocs-color_codeInlineBorder]",defaultValue:Object.keys(i)[0],children:[s.jsx(h,{className:"Tabs__list flex flex-wrap px-2 bg-[--vocs-color_codeTitleBackground]",children:Object.entries(i).map(([r,d])=>s.jsx(k,{className:"text-sm p-3 pb-2 text-[--vocs-color_text3] border-b border-transparent hover:text-[--vocs-color_text] [&[data-state='active']]:text-[--vocs-color_text] [&[data-state='active']]:border-[--vocs-color_borderAccent]",value:r,children:d},r))}),e]}),l=i=>s.jsx(p,{...i}),x=Object.freeze(Object.defineProperty({__proto__:null,Content:l,Root:a},Symbol.toStringTag,{value:"Module"})),y={title:"Getting Started",description:"undefined"};function c(i){const e={a:"a",aside:"aside",code:"code",div:"div",h1:"h1",header:"header",p:"p",pre:"pre",span:"span",...o(),...i.components};return x||n("Tabs",!1),l||n("Tabs.Content",!0),a||n("Tabs.Root",!0),s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"getting-started",children:["Getting Started",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#getting-started",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` +import{j as s,$ as t,a as h,b as k,c as p,u as o}from"./index-rJOHic4W.js";const a=({options:i,children:e})=>s.jsxs(t,{className:"Tabs__root border rounded bg-[--vocs-color_codeBlockBackground] border-[--vocs-color_codeInlineBorder]",defaultValue:Object.keys(i)[0],children:[s.jsx(h,{className:"Tabs__list flex flex-wrap px-2 bg-[--vocs-color_codeTitleBackground]",children:Object.entries(i).map(([r,d])=>s.jsx(k,{className:"text-sm p-3 pb-2 text-[--vocs-color_text3] border-b border-transparent hover:text-[--vocs-color_text] [&[data-state='active']]:text-[--vocs-color_text] [&[data-state='active']]:border-[--vocs-color_borderAccent]",value:r,children:d},r))}),e]}),l=i=>s.jsx(p,{...i}),x=Object.freeze(Object.defineProperty({__proto__:null,Content:l,Root:a},Symbol.toStringTag,{value:"Module"})),y={title:"Getting Started",description:"undefined"};function c(i){const e={a:"a",aside:"aside",code:"code",div:"div",h1:"h1",header:"header",p:"p",pre:"pre",span:"span",...o(),...i.components};return x||n("Tabs",!1),l||n("Tabs.Content",!0),a||n("Tabs.Root",!0),s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"getting-started",children:["Getting Started",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#getting-started",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` `,s.jsxs(e.p,{children:["Start by installing ",s.jsx(e.code,{children:"polkadot-api"})," and ",s.jsx(e.code,{children:"@polkadot-api/descriptors"})]}),` `,s.jsx(e.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsx(e.code,{children:s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"npm"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" i"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" polkadot-api"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" @polkadot-api/descriptors"})]})})}),` `,s.jsx(e.p,{children:"Next, download the latest metadata from the chain you want to connect to and generate the types:"}),` diff --git a/assets/index-x2CuOhNl.js b/assets/index-BpjhD_eD.js similarity index 98% rename from assets/index-x2CuOhNl.js rename to assets/index-BpjhD_eD.js index cb34f7c6..0482027c 100644 --- a/assets/index-x2CuOhNl.js +++ b/assets/index-BpjhD_eD.js @@ -1 +1 @@ -import{j as e,L as b,d as s,e as _,f as P,R as y,g as N,T as r,C as l,u as j}from"./index-O67QIW1D.js";var H="vocs_Button_button",w="vocs_Button_button_accent";function k({children:t,className:n,href:i,variant:v}){return e.jsx(b,{className:s(n,H,v==="accent"&&w),href:i,variant:"styleless",children:t})}var L="vocs_HomePage_button",C="vocs_HomePage_buttons",M="vocs_HomePage_description",B="vocs_HomePage_logo",c="vocs_HomePage_packageManager",I="vocs_HomePage",D="vocs_HomePage_tabs",d="vocs_HomePage_tabsContent",R="vocs_HomePage_tabsList",T="vocs_HomePage_tagline",$="vocs_HomePage_title";function m({children:t,className:n}){return e.jsx("div",{className:s(n,I),children:t})}function h({className:t}){const{logoUrl:n,title:i}=_();return n?e.jsx("div",{className:s(t,B),children:e.jsx(P,{})}):e.jsx("h1",{className:s(t,$),children:i})}function A({children:t,className:n}){return e.jsx("div",{className:s(n,T),children:t})}function x({children:t,className:n}){return e.jsx("div",{className:s(n,M),children:t})}function g({children:t,className:n}){return e.jsx("div",{className:s(n,C),children:t})}function o(t){return e.jsx(k,{...t,className:s(L,t.className)})}function f({name:t,type:n="install"}){return e.jsxs(y,{className:D,defaultValue:"npm",children:[e.jsxs(N,{className:R,children:[e.jsx(r,{value:"npm",children:"npm"}),e.jsx(r,{value:"pnpm",children:"pnpm"}),e.jsx(r,{value:"yarn",children:"yarn"})]}),e.jsxs(l,{className:d,value:"npm",children:[e.jsx("span",{className:c,children:"npm"})," ",n==="init"?"init":"install"," ",t]}),e.jsxs(l,{className:d,value:"pnpm",children:[e.jsx("span",{className:c,children:"pnpm"})," ",n==="init"?"create":"install"," ",t]}),e.jsxs(l,{className:d,value:"yarn",children:[e.jsx("span",{className:c,children:"yarn"})," ",n==="init"?"create":"install"," ",t]})]})}const E=Object.freeze(Object.defineProperty({__proto__:null,Button:o,Buttons:g,Description:x,InstallPackage:f,Logo:h,Root:m,Tagline:A},Symbol.toStringTag,{value:"Module"})),u=({title:t,children:n})=>e.jsxs("div",{className:"w-full border rounded border-gray-500 p-4 text-left",children:[e.jsx("div",{className:"text-[--vocs-color_heading] text-lg py-2 font-bold",children:t}),e.jsx("div",{children:n})]}),O={layout:"landing",content:{width:"60rem"}};function p(t){const n={p:"p",...j(),...t.components};return E||a("HomePage",!1),o||a("HomePage.Button",!0),g||a("HomePage.Buttons",!0),x||a("HomePage.Description",!0),f||a("HomePage.InstallPackage",!0),h||a("HomePage.Logo",!0),m||a("HomePage.Root",!0),e.jsxs(m,{children:[e.jsxs("div",{className:"flex justify-between w-full flex-col md:flex-row gap-4",children:[e.jsxs("div",{className:"flex flex-col text-left",children:[e.jsx(h,{}),e.jsx(x,{children:"Typescript API to interact with Polkadot chains."}),e.jsxs(g,{className:"py-2",children:[e.jsx(o,{href:"/getting-started",variant:"accent",children:"Get started"}),e.jsx(o,{href:"https://github.com/polkadot-api/polkadot-api",children:"GitHub"})]})]}),e.jsx(f,{name:"polkadot-api",type:"i"})]}),e.jsxs("div",{className:"flex gap-2 flex-col md:flex-row mt-8",children:[e.jsx(u,{title:"Light client first",children:e.jsx(n.p,{children:"Built from the ground up for the light client, allowing the running of a node from the browser."})}),e.jsx(u,{title:"Fully typed API",children:e.jsx(n.p,{children:"IDEs show all the type information for every operation of a chain."})}),e.jsx(u,{title:"Lightweight",children:e.jsx(n.p,{children:"Minimal impact on the main bundle (under 50kB)."})})]}),e.jsxs("div",{className:"text-left w-full max-w-2xl p-2",children:[e.jsx("h2",{className:"text-[--vocs-color_heading] text-3xl py-4 border-b border-gray-500 mb-4",children:"Features"}),e.jsxs("ul",{className:"list-disc pl-5",children:[e.jsx("li",{children:"Connect to the chain through a light client, a WebSocket connection, or an extension."}),e.jsx("li",{children:"Perform storage queries or runtime calls."}),e.jsx("li",{children:"Generate the types of a chain through its current metadata."}),e.jsx("li",{children:"Compatibility checks."}),e.jsx("li",{children:"Multiple connections to different chains."}),e.jsx("li",{children:"Transaction API in read-only and read/write mode."}),e.jsx("li",{children:"Promise-based or Observable-based API for your needs."})]})]})]})}function S(t={}){const{wrapper:n}={...j(),...t.components};return n?e.jsx(n,{...t,children:e.jsx(p,{...t})}):p(t)}function a(t,n){throw new Error("Expected "+(n?"component":"object")+" `"+t+"` to be defined: you likely forgot to import, pass, or provide it.")}export{S as default,O as frontmatter}; +import{j as e,L as b,d as s,e as _,f as P,R as y,g as N,T as r,C as l,u as j}from"./index-rJOHic4W.js";var H="vocs_Button_button",w="vocs_Button_button_accent";function k({children:t,className:n,href:i,variant:v}){return e.jsx(b,{className:s(n,H,v==="accent"&&w),href:i,variant:"styleless",children:t})}var L="vocs_HomePage_button",C="vocs_HomePage_buttons",M="vocs_HomePage_description",B="vocs_HomePage_logo",c="vocs_HomePage_packageManager",I="vocs_HomePage",D="vocs_HomePage_tabs",d="vocs_HomePage_tabsContent",R="vocs_HomePage_tabsList",T="vocs_HomePage_tagline",$="vocs_HomePage_title";function m({children:t,className:n}){return e.jsx("div",{className:s(n,I),children:t})}function h({className:t}){const{logoUrl:n,title:i}=_();return n?e.jsx("div",{className:s(t,B),children:e.jsx(P,{})}):e.jsx("h1",{className:s(t,$),children:i})}function A({children:t,className:n}){return e.jsx("div",{className:s(n,T),children:t})}function x({children:t,className:n}){return e.jsx("div",{className:s(n,M),children:t})}function g({children:t,className:n}){return e.jsx("div",{className:s(n,C),children:t})}function o(t){return e.jsx(k,{...t,className:s(L,t.className)})}function f({name:t,type:n="install"}){return e.jsxs(y,{className:D,defaultValue:"npm",children:[e.jsxs(N,{className:R,children:[e.jsx(r,{value:"npm",children:"npm"}),e.jsx(r,{value:"pnpm",children:"pnpm"}),e.jsx(r,{value:"yarn",children:"yarn"})]}),e.jsxs(l,{className:d,value:"npm",children:[e.jsx("span",{className:c,children:"npm"})," ",n==="init"?"init":"install"," ",t]}),e.jsxs(l,{className:d,value:"pnpm",children:[e.jsx("span",{className:c,children:"pnpm"})," ",n==="init"?"create":"install"," ",t]}),e.jsxs(l,{className:d,value:"yarn",children:[e.jsx("span",{className:c,children:"yarn"})," ",n==="init"?"create":"install"," ",t]})]})}const E=Object.freeze(Object.defineProperty({__proto__:null,Button:o,Buttons:g,Description:x,InstallPackage:f,Logo:h,Root:m,Tagline:A},Symbol.toStringTag,{value:"Module"})),u=({title:t,children:n})=>e.jsxs("div",{className:"w-full border rounded border-gray-500 p-4 text-left",children:[e.jsx("div",{className:"text-[--vocs-color_heading] text-lg py-2 font-bold",children:t}),e.jsx("div",{children:n})]}),O={layout:"landing",content:{width:"60rem"}};function p(t){const n={p:"p",...j(),...t.components};return E||a("HomePage",!1),o||a("HomePage.Button",!0),g||a("HomePage.Buttons",!0),x||a("HomePage.Description",!0),f||a("HomePage.InstallPackage",!0),h||a("HomePage.Logo",!0),m||a("HomePage.Root",!0),e.jsxs(m,{children:[e.jsxs("div",{className:"flex justify-between w-full flex-col md:flex-row gap-4",children:[e.jsxs("div",{className:"flex flex-col text-left",children:[e.jsx(h,{}),e.jsx(x,{children:"Typescript API to interact with Polkadot chains."}),e.jsxs(g,{className:"py-2",children:[e.jsx(o,{href:"/getting-started",variant:"accent",children:"Get started"}),e.jsx(o,{href:"https://github.com/polkadot-api/polkadot-api",children:"GitHub"})]})]}),e.jsx(f,{name:"polkadot-api",type:"i"})]}),e.jsxs("div",{className:"flex gap-2 flex-col md:flex-row mt-8",children:[e.jsx(u,{title:"Light client first",children:e.jsx(n.p,{children:"Built from the ground up for the light client, allowing the running of a node from the browser."})}),e.jsx(u,{title:"Fully typed API",children:e.jsx(n.p,{children:"IDEs show all the type information for every operation of a chain."})}),e.jsx(u,{title:"Lightweight",children:e.jsx(n.p,{children:"Minimal impact on the main bundle (under 50kB)."})})]}),e.jsxs("div",{className:"text-left w-full max-w-2xl p-2",children:[e.jsx("h2",{className:"text-[--vocs-color_heading] text-3xl py-4 border-b border-gray-500 mb-4",children:"Features"}),e.jsxs("ul",{className:"list-disc pl-5",children:[e.jsx("li",{children:"Connect to the chain through a light client, a WebSocket connection, or an extension."}),e.jsx("li",{children:"Perform storage queries or runtime calls."}),e.jsx("li",{children:"Generate the types of a chain through its current metadata."}),e.jsx("li",{children:"Compatibility checks."}),e.jsx("li",{children:"Multiple connections to different chains."}),e.jsx("li",{children:"Transaction API in read-only and read/write mode."}),e.jsx("li",{children:"Promise-based or Observable-based API for your needs."})]})]})]})}function S(t={}){const{wrapper:n}={...j(),...t.components};return n?e.jsx(n,{...t,children:e.jsx(p,{...t})}):p(t)}function a(t,n){throw new Error("Expected "+(n?"component":"object")+" `"+t+"` to be defined: you likely forgot to import, pass, or provide it.")}export{S as default,O as frontmatter}; diff --git a/assets/index-O67QIW1D.js b/assets/index-rJOHic4W.js similarity index 78% rename from assets/index-O67QIW1D.js rename to assets/index-rJOHic4W.js index 58b66907..1d4a0629 100644 --- a/assets/index-O67QIW1D.js +++ b/assets/index-rJOHic4W.js @@ -1,4 +1,4 @@ -function Mu(e,t){for(var n=0;nC(...y)).find(C=>C!==void 0)}}}else a[u]=f}),a),{})}}function Rb(e){e===void 0&&(e=[]);const t=e,n=h.useCallback(i=>ic(i,e,"reference"),t),r=h.useCallback(i=>ic(i,e,"floating"),t),o=h.useCallback(i=>ic(i,e,"item"),e.map(i=>i==null?void 0:i.item));return h.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:o}),[n,r,o])}function nv(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let a=0,l=i-1;a=r!=c>=r&&n<=(f-s)*(r-u)/(c-u)+s&&(o=!o)}return o}function Nb(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Pb(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,a=null,l=null,s=performance.now();function u(c,d){const p=performance.now(),y=p-s;if(a===null||l===null||y===0)return a=c,l=d,s=p,null;const g=c-a,C=d-l,m=Math.sqrt(g*g+C*C)/y;return a=c,l=d,s=p,m}const f=c=>{let{x:d,y:p,placement:y,elements:g,onClose:C,nodeId:v,tree:m}=c;return function(E){function S(){clearTimeout(o),C()}if(clearTimeout(o),!g.domReference||!g.floating||y==null||d==null||p==null)return;const{clientX:_,clientY:b}=E,$=[_,b],T=pb(E),P=E.type==="mouseleave",j=Wa(g.floating,T),L=Wa(g.domReference,T),D=g.domReference.getBoundingClientRect(),N=g.floating.getBoundingClientRect(),z=y.split("-")[0],V=d>N.right-N.width/2,U=p>N.bottom-N.height/2,O=Nb($,D),F=N.width>D.width,K=N.height>D.height,J=(F?D:N).left,se=(F?D:N).right,Be=(K?D:N).top,ye=(K?D:N).bottom;if(j&&(i=!0,!P))return;if(L&&(i=!1),L&&!P){i=!0;return}if(P&&nt(E.relatedTarget)&&Wa(g.floating,E.relatedTarget)||m&&Tb(m.nodesRef.current,v).some(Ue=>{let{context:xe}=Ue;return xe==null?void 0:xe.open}))return;if(z==="top"&&p>=D.bottom-1||z==="bottom"&&p<=D.top+1||z==="left"&&d>=D.right-1||z==="right"&&d<=D.left+1)return S();let Ne=[];switch(z){case"top":Ne=[[J,D.top+1],[J,N.bottom-1],[se,N.bottom-1],[se,D.top+1]];break;case"bottom":Ne=[[J,N.top+1],[J,D.bottom-1],[se,D.bottom-1],[se,N.top+1]];break;case"left":Ne=[[N.right-1,ye],[N.right-1,Be],[D.left+1,Be],[D.left+1,ye]];break;case"right":Ne=[[D.right-1,ye],[D.right-1,Be],[N.left+1,Be],[N.left+1,ye]];break}function we(Ue){let[xe,Se]=Ue;switch(z){case"top":{const jt=[F?xe+t/2:V?xe+t*4:xe-t*4,Se+t+1],be=[F?xe-t/2:V?xe+t*4:xe-t*4,Se+t+1],ft=[[N.left,V||F?N.bottom-t:N.top],[N.right,V?F?N.bottom-t:N.top:N.bottom-t]];return[jt,be,...ft]}case"bottom":{const jt=[F?xe+t/2:V?xe+t*4:xe-t*4,Se-t],be=[F?xe-t/2:V?xe+t*4:xe-t*4,Se-t],ft=[[N.left,V||F?N.top+t:N.bottom],[N.right,V?F?N.top+t:N.bottom:N.top+t]];return[jt,be,...ft]}case"left":{const jt=[xe+t+1,K?Se+t/2:U?Se+t*4:Se-t*4],be=[xe+t+1,K?Se-t/2:U?Se+t*4:Se-t*4];return[...[[U||K?N.right-t:N.left,N.top],[U?K?N.right-t:N.left:N.right-t,N.bottom]],jt,be]}case"right":{const jt=[xe-t,K?Se+t/2:U?Se+t*4:Se-t*4],be=[xe-t,K?Se-t/2:U?Se+t*4:Se-t*4],ft=[[U||K?N.left+t:N.right,N.top],[U?K?N.left+t:N.right:N.left+t,N.bottom]];return[jt,be,...ft]}}}if(!nv([_,b],Ne)){if(i&&!O)return S();if(!P&&r){const Ue=u(E.clientX,E.clientY);if(Ue!==null&&Ue<.1)return S()}nv([_,b],we([d,p]))?!i&&r&&(o=window.setTimeout(S,40)):S()}}};return f.__options={blockPointerEvents:n},f}function Ab({children:e,...t}){const[n,r]=e,o=h.useRef(null),[i,a]=h.useState(!1),{context:l,refs:s,floatingStyles:u}=kb({middleware:[x1({element:o}),c1(8),w1()],open:i,onOpenChange:a,placement:"bottom-start"}),f=$b(l,{handleClose:Pb()}),{getReferenceProps:c,getFloatingProps:d}=Rb([f]),p=r.props.children,y=n.props.children;return w.jsxs("span",{...t,children:[w.jsx("span",{className:"twoslash-target",ref:s.setReference,...c(),children:p}),i&&w.jsxs("div",{className:"twoslash-popup-info-hover",ref:s.setFloating,style:u,...d(),children:[w.jsx(Cb,{ref:o,context:l,fill:Yh.background5,height:3,stroke:Yh.border2,strokeWidth:1,width:7}),w.jsx("div",{className:"twoslash-popup-scroll-container",children:y})]})]})}function Ob(e){var n;const t=I(e.className,Qp);return(n=e.className)!=null&&n.includes("twoslash-hover")?w.jsx(Ab,{...e,className:t}):w.jsx("span",{...e,className:I(e.className,Qp)})}var Ib="vocs_CalloutTitle";function Lb({className:e,children:t}){return w.jsx("strong",{className:I(e,Ib),children:t})}var rv="vocs_Strong";function Mb(e){return"data-callout-title"in e&&typeof e.children=="string"?w.jsx(Lb,{...e,className:I(e.className,rv),children:e.children}):w.jsx("strong",{...e,className:I(e.className,rv)})}var jb="vocs_Summary";function Db(e){return w.jsx("summary",{...e,className:I(e.className,jb)})}var Fb="vocs_Table";function zb(e){return w.jsx("table",{...e,className:I(e.className,Fb)})}var Bb="vocs_TableCell";function Ub(e){return w.jsx("td",{...e,className:I(e.className,Bb)})}var Hb="vocs_TableHeader";function Vb(e){return w.jsx("th",{...e,className:I(e.className,Hb)})}var Wb="vocs_TableRow";function Kb(e){return w.jsx("tr",{...e,className:I(e.className,Wb)})}const Yb={a:J_,aside:sS,blockquote:uS,code:dS,details:vS,div:j9,pre:ub,header:H9,figcaption:F9,figure:B9,h1:W0,h2:ly,h3:sy,h4:cy,h5:uy,h6:fy,hr:W9,kd:Rg,li:Z9,ol:e=>w.jsx(Yp,{ordered:!0,...e}),p:K0,section:hb,span:Ob,strong:Mb,summary:Db,table:zb,td:Ub,th:Vb,tr:Kb,ul:e=>w.jsx(Yp,{ordered:!1,...e})};function Gb(){const{pathname:e}=Re(),t=Je(),{ogImageUrl:n}=t;if(!n)return;if(typeof n=="string")return n;const r=h.useMemo(()=>{const o=Object.keys(n).filter(i=>e.startsWith(i));return o[o.length-1]},[n,e]);if(r)return n[r]}function Lu(e){const{children:t,filePath:n,frontmatter:r,lastUpdatedAt:o,path:i}=e,{pathname:a}=Re(),l=h.useRef();return h.useEffect(()=>{l.current=a}),w.jsxs(w.Fragment,{children:[w.jsx(Qb,{frontmatter:r}),typeof window<"u"&&w.jsx(xx,{}),w.jsx(t_,{components:Yb,children:w.jsx(j6,{frontmatter:r,path:i,children:w.jsx(Q0.Provider,{value:{filePath:n,frontmatter:r,lastUpdatedAt:o,previousPath:l.current},children:t})})})]})}function Qb({frontmatter:e}){const t=Je(),n=Gb(),{baseUrl:r,font:o,iconUrl:i,logoUrl:a}=t,l=(e==null?void 0:e.title)??t.title,s=(e==null?void 0:e.description)??t.description,u=t.title&&!l.includes(t.title),f=typeof window<"u"&&window.location.hostname==="localhost";return w.jsxs(Pu,{defaultTitle:t.title,titleTemplate:u?t.titleTemplate:void 0,children:[l&&w.jsx("title",{children:l}),r&&!0&&!f&&w.jsx("base",{href:r}),s!=="undefined"&&w.jsx("meta",{name:"description",content:s}),i&&typeof i=="string"&&w.jsx("link",{rel:"icon",href:i,type:ac(i)}),i&&typeof i!="string"&&w.jsx("link",{rel:"icon",href:i.light,type:ac(i.light)}),i&&typeof i!="string"&&w.jsx("link",{rel:"icon",href:i.dark,type:ac(i.dark),media:"(prefers-color-scheme: dark)"}),w.jsx("meta",{property:"og:type",content:"website"}),w.jsx("meta",{property:"og:title",content:l||t.title}),r&&w.jsx("meta",{property:"og:url",content:r}),s!=="undefined"&&w.jsx("meta",{property:"og:description",content:s}),n&&w.jsx("meta",{property:"og:image",content:n.replace("%logo",`${r||""}${typeof a=="string"?a:(a==null?void 0:a.dark)||""}`).replace("%title",l||"").replace("%description",(s!=="undefined"?s:"")||"")}),(o==null?void 0:o.google)&&w.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(o==null?void 0:o.google)&&w.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:""}),(o==null?void 0:o.google)&&w.jsx("link",{href:`https://fonts.googleapis.com/css2?family=${o.google}:wght@300;400;500&display=swap`,rel:"stylesheet"}),w.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),n&&w.jsx("meta",{property:"twitter:image",content:n.replace("%logo",`${r||""}${typeof a=="string"?a:(a==null?void 0:a.dark)||""}`).replace("%title",l||"").replace("%description",(s!=="undefined"?s:"")||"")})]})}function ac(e){if(e.endsWith(".svg"))return"image/svg+xml";if(e.endsWith(".png"))return"image/png";if(e.endsWith(".jpg"))return"image/jpeg";if(e.endsWith(".ico"))return"image/x-icon";if(e.endsWith(".webp"))return"image/webp"}const Zb=(()=>{const e=zf.find(({path:t})=>t==="*");return e?{path:e.path,lazy:async()=>{const{frontmatter:t,...n}=await e.lazy();return{...n,element:w.jsx(Lu,{frontmatter:t,path:e.path,children:w.jsx($u,{children:w.jsx(n.default,{})})})}}}:{path:"*",lazy:void 0,element:w.jsx(Lu,{frontmatter:{layout:"minimal"},path:"*",children:w.jsx($u,{children:w.jsx(Kx,{})})})}})(),ov=[...zf.filter(({path:e})=>e!=="*").map(e=>({path:e.path,lazy:async()=>{const{frontmatter:t,...n}=await e.lazy();return{...n,element:w.jsx(Lu,{filePath:e.filePath,frontmatter:t,lastUpdatedAt:e.lastUpdatedAt,path:e.path,children:w.jsx($u,{children:w.jsx(n.default,{})})})}}})),Zb];async function Xb(e,t){var r;const n=(r=ur(e,window.location,t))==null?void 0:r.filter(o=>o.route.lazy);n&&(n==null?void 0:n.length)>0&&await Promise.all(n.map(async o=>{const i=await o.route.lazy();Object.assign(o.route,{...i,lazy:void 0})}))}function Jb(){const e=document.querySelectorAll('style[data-vocs-temp-style="true"]');for(const t of e)t.remove()}qb();async function qb(){const e=F0().basePath;await Xb(ov,e),Jb();const t=lx(ov,{basename:e});w0(document.getElementById("app"),w.jsx($x,{children:w.jsx(mx,{router:t})}))}export{c9 as $,x9 as C,nn as L,g9 as R,w9 as T,u9 as a,f9 as b,d9 as c,I as d,Je as e,B7 as f,y9 as g,w as j,e_ as u};
+*/var Up=Object.getOwnPropertySymbols,x_=Object.prototype.hasOwnProperty,C_=Object.prototype.propertyIsEnumerable;function E_(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function __(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(r.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var S_=__()?Object.assign:function(e,t){for(var n,r=E_(e),o,i=1;i C(...y)).find(C=>C!==void 0)}}}else a[u]=f}),a),{})}}function Rb(e){e===void 0&&(e=[]);const t=e,n=h.useCallback(i=>ic(i,e,"reference"),t),r=h.useCallback(i=>ic(i,e,"floating"),t),o=h.useCallback(i=>ic(i,e,"item"),e.map(i=>i==null?void 0:i.item));return h.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:o}),[n,r,o])}function rv(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let a=0,l=i-1;a=r!=c>=r&&n<=(f-s)*(r-u)/(c-u)+s&&(o=!o)}return o}function Nb(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Pb(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,a=null,l=null,s=performance.now();function u(c,d){const p=performance.now(),y=p-s;if(a===null||l===null||y===0)return a=c,l=d,s=p,null;const g=c-a,C=d-l,m=Math.sqrt(g*g+C*C)/y;return a=c,l=d,s=p,m}const f=c=>{let{x:d,y:p,placement:y,elements:g,onClose:C,nodeId:v,tree:m}=c;return function(E){function S(){clearTimeout(o),C()}if(clearTimeout(o),!g.domReference||!g.floating||y==null||d==null||p==null)return;const{clientX:_,clientY:b}=E,$=[_,b],T=pb(E),P=E.type==="mouseleave",j=Wa(g.floating,T),L=Wa(g.domReference,T),D=g.domReference.getBoundingClientRect(),N=g.floating.getBoundingClientRect(),z=y.split("-")[0],V=d>N.right-N.width/2,U=p>N.bottom-N.height/2,O=Nb($,D),F=N.width>D.width,K=N.height>D.height,J=(F?D:N).left,se=(F?D:N).right,Be=(K?D:N).top,ye=(K?D:N).bottom;if(j&&(i=!0,!P))return;if(L&&(i=!1),L&&!P){i=!0;return}if(P&&nt(E.relatedTarget)&&Wa(g.floating,E.relatedTarget)||m&&Tb(m.nodesRef.current,v).some(Ue=>{let{context:xe}=Ue;return xe==null?void 0:xe.open}))return;if(z==="top"&&p>=D.bottom-1||z==="bottom"&&p<=D.top+1||z==="left"&&d>=D.right-1||z==="right"&&d<=D.left+1)return S();let Ne=[];switch(z){case"top":Ne=[[J,D.top+1],[J,N.bottom-1],[se,N.bottom-1],[se,D.top+1]];break;case"bottom":Ne=[[J,N.top+1],[J,D.bottom-1],[se,D.bottom-1],[se,N.top+1]];break;case"left":Ne=[[N.right-1,ye],[N.right-1,Be],[D.left+1,Be],[D.left+1,ye]];break;case"right":Ne=[[D.right-1,ye],[D.right-1,Be],[N.left+1,Be],[N.left+1,ye]];break}function we(Ue){let[xe,Se]=Ue;switch(z){case"top":{const jt=[F?xe+t/2:V?xe+t*4:xe-t*4,Se+t+1],be=[F?xe-t/2:V?xe+t*4:xe-t*4,Se+t+1],ft=[[N.left,V||F?N.bottom-t:N.top],[N.right,V?F?N.bottom-t:N.top:N.bottom-t]];return[jt,be,...ft]}case"bottom":{const jt=[F?xe+t/2:V?xe+t*4:xe-t*4,Se-t],be=[F?xe-t/2:V?xe+t*4:xe-t*4,Se-t],ft=[[N.left,V||F?N.top+t:N.bottom],[N.right,V?F?N.top+t:N.bottom:N.top+t]];return[jt,be,...ft]}case"left":{const jt=[xe+t+1,K?Se+t/2:U?Se+t*4:Se-t*4],be=[xe+t+1,K?Se-t/2:U?Se+t*4:Se-t*4];return[...[[U||K?N.right-t:N.left,N.top],[U?K?N.right-t:N.left:N.right-t,N.bottom]],jt,be]}case"right":{const jt=[xe-t,K?Se+t/2:U?Se+t*4:Se-t*4],be=[xe-t,K?Se-t/2:U?Se+t*4:Se-t*4],ft=[[U||K?N.left+t:N.right,N.top],[U?K?N.left+t:N.right:N.left+t,N.bottom]];return[jt,be,...ft]}}}if(!rv([_,b],Ne)){if(i&&!O)return S();if(!P&&r){const Ue=u(E.clientX,E.clientY);if(Ue!==null&&Ue<.1)return S()}rv([_,b],we([d,p]))?!i&&r&&(o=window.setTimeout(S,40)):S()}}};return f.__options={blockPointerEvents:n},f}function Ab({children:e,...t}){const[n,r]=e,o=h.useRef(null),[i,a]=h.useState(!1),{context:l,refs:s,floatingStyles:u}=kb({middleware:[x1({element:o}),c1(8),w1()],open:i,onOpenChange:a,placement:"bottom-start"}),f=$b(l,{handleClose:Pb()}),{getReferenceProps:c,getFloatingProps:d}=Rb([f]),p=r.props.children,y=n.props.children;return w.jsxs("span",{...t,children:[w.jsx("span",{className:"twoslash-target",ref:s.setReference,...c(),children:p}),i&&w.jsxs("div",{className:"twoslash-popup-info-hover",ref:s.setFloating,style:u,...d(),children:[w.jsx(Cb,{ref:o,context:l,fill:Gh.background5,height:3,stroke:Gh.border2,strokeWidth:1,width:7}),w.jsx("div",{className:"twoslash-popup-scroll-container",children:y})]})]})}function Ob(e){var n;const t=I(e.className,Zp);return(n=e.className)!=null&&n.includes("twoslash-hover")?w.jsx(Ab,{...e,className:t}):w.jsx("span",{...e,className:I(e.className,Zp)})}var Ib="vocs_CalloutTitle";function Lb({className:e,children:t}){return w.jsx("strong",{className:I(e,Ib),children:t})}var ov="vocs_Strong";function Mb(e){return"data-callout-title"in e&&typeof e.children=="string"?w.jsx(Lb,{...e,className:I(e.className,ov),children:e.children}):w.jsx("strong",{...e,className:I(e.className,ov)})}var jb="vocs_Summary";function Db(e){return w.jsx("summary",{...e,className:I(e.className,jb)})}var Fb="vocs_Table";function zb(e){return w.jsx("table",{...e,className:I(e.className,Fb)})}var Bb="vocs_TableCell";function Ub(e){return w.jsx("td",{...e,className:I(e.className,Bb)})}var Hb="vocs_TableHeader";function Vb(e){return w.jsx("th",{...e,className:I(e.className,Hb)})}var Wb="vocs_TableRow";function Kb(e){return w.jsx("tr",{...e,className:I(e.className,Wb)})}const Yb={a:J_,aside:sS,blockquote:uS,code:dS,details:vS,div:j9,pre:ub,header:H9,figcaption:F9,figure:B9,h1:W0,h2:ly,h3:sy,h4:cy,h5:uy,h6:fy,hr:W9,kd:Rg,li:Z9,ol:e=>w.jsx(Gp,{ordered:!0,...e}),p:K0,section:hb,span:Ob,strong:Mb,summary:Db,table:zb,td:Ub,th:Vb,tr:Kb,ul:e=>w.jsx(Gp,{ordered:!1,...e})};function Gb(){const{pathname:e}=Re(),t=Je(),{ogImageUrl:n}=t;if(!n)return;if(typeof n=="string")return n;const r=h.useMemo(()=>{const o=Object.keys(n).filter(i=>e.startsWith(i));return o[o.length-1]},[n,e]);if(r)return n[r]}function Lu(e){const{children:t,filePath:n,frontmatter:r,lastUpdatedAt:o,path:i}=e,{pathname:a}=Re(),l=h.useRef();return h.useEffect(()=>{l.current=a}),w.jsxs(w.Fragment,{children:[w.jsx(Qb,{frontmatter:r}),typeof window<"u"&&w.jsx(xx,{}),w.jsx(t_,{components:Yb,children:w.jsx(j6,{frontmatter:r,path:i,children:w.jsx(Q0.Provider,{value:{filePath:n,frontmatter:r,lastUpdatedAt:o,previousPath:l.current},children:t})})})]})}function Qb({frontmatter:e}){const t=Je(),n=Gb(),{baseUrl:r,font:o,iconUrl:i,logoUrl:a}=t,l=(e==null?void 0:e.title)??t.title,s=(e==null?void 0:e.description)??t.description,u=t.title&&!l.includes(t.title),f=typeof window<"u"&&window.location.hostname==="localhost";return w.jsxs(Pu,{defaultTitle:t.title,titleTemplate:u?t.titleTemplate:void 0,children:[l&&w.jsx("title",{children:l}),r&&!0&&!f&&w.jsx("base",{href:r}),s!=="undefined"&&w.jsx("meta",{name:"description",content:s}),i&&typeof i=="string"&&w.jsx("link",{rel:"icon",href:i,type:ac(i)}),i&&typeof i!="string"&&w.jsx("link",{rel:"icon",href:i.light,type:ac(i.light)}),i&&typeof i!="string"&&w.jsx("link",{rel:"icon",href:i.dark,type:ac(i.dark),media:"(prefers-color-scheme: dark)"}),w.jsx("meta",{property:"og:type",content:"website"}),w.jsx("meta",{property:"og:title",content:l||t.title}),r&&w.jsx("meta",{property:"og:url",content:r}),s!=="undefined"&&w.jsx("meta",{property:"og:description",content:s}),n&&w.jsx("meta",{property:"og:image",content:n.replace("%logo",`${r||""}${typeof a=="string"?a:(a==null?void 0:a.dark)||""}`).replace("%title",l||"").replace("%description",(s!=="undefined"?s:"")||"")}),(o==null?void 0:o.google)&&w.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(o==null?void 0:o.google)&&w.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:""}),(o==null?void 0:o.google)&&w.jsx("link",{href:`https://fonts.googleapis.com/css2?family=${o.google}:wght@300;400;500&display=swap`,rel:"stylesheet"}),w.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),n&&w.jsx("meta",{property:"twitter:image",content:n.replace("%logo",`${r||""}${typeof a=="string"?a:(a==null?void 0:a.dark)||""}`).replace("%title",l||"").replace("%description",(s!=="undefined"?s:"")||"")})]})}function ac(e){if(e.endsWith(".svg"))return"image/svg+xml";if(e.endsWith(".png"))return"image/png";if(e.endsWith(".jpg"))return"image/jpeg";if(e.endsWith(".ico"))return"image/x-icon";if(e.endsWith(".webp"))return"image/webp"}const Zb=(()=>{const e=Bf.find(({path:t})=>t==="*");return e?{path:e.path,lazy:async()=>{const{frontmatter:t,...n}=await e.lazy();return{...n,element:w.jsx(Lu,{frontmatter:t,path:e.path,children:w.jsx($u,{children:w.jsx(n.default,{})})})}}}:{path:"*",lazy:void 0,element:w.jsx(Lu,{frontmatter:{layout:"minimal"},path:"*",children:w.jsx($u,{children:w.jsx(Kx,{})})})}})(),iv=[...Bf.filter(({path:e})=>e!=="*").map(e=>({path:e.path,lazy:async()=>{const{frontmatter:t,...n}=await e.lazy();return{...n,element:w.jsx(Lu,{filePath:e.filePath,frontmatter:t,lastUpdatedAt:e.lastUpdatedAt,path:e.path,children:w.jsx($u,{children:w.jsx(n.default,{})})})}}})),Zb];async function Xb(e,t){var r;const n=(r=ur(e,window.location,t))==null?void 0:r.filter(o=>o.route.lazy);n&&(n==null?void 0:n.length)>0&&await Promise.all(n.map(async o=>{const i=await o.route.lazy();Object.assign(o.route,{...i,lazy:void 0})}))}function Jb(){const e=document.querySelectorAll('style[data-vocs-temp-style="true"]');for(const t of e)t.remove()}qb();async function qb(){const e=F0().basePath;await Xb(iv,e),Jb();const t=lx(iv,{basename:e});x0(document.getElementById("app"),w.jsx($x,{children:w.jsx(mx,{router:t})}))}export{c9 as $,x9 as C,nn as L,g9 as R,w9 as T,u9 as a,f9 as b,d9 as c,I as d,Je as e,B7 as f,y9 as g,w as j,e_ as u};
diff --git a/assets/polkadot_api-BdReTaME.js b/assets/polkadot_api-BKIqpXQ4.js
similarity index 89%
rename from assets/polkadot_api-BdReTaME.js
rename to assets/polkadot_api-BKIqpXQ4.js
index f7505a91..f51efc0e 100644
--- a/assets/polkadot_api-BdReTaME.js
+++ b/assets/polkadot_api-BKIqpXQ4.js
@@ -1,2 +1,2 @@
-import{u as a,j as t}from"./index-O67QIW1D.js";const i={title:"Polkadot-API",description:"undefined"};function o(n){const e={a:"a",div:"div",h1:"h1",header:"header",p:"p",...a(),...n.components};return t.jsxs(t.Fragment,{children:[t.jsx(e.header,{children:t.jsxs(e.h1,{id:"polkadot-api",children:["Polkadot-API",t.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#polkadot-api",children:t.jsx(e.div,{"data-autolink-icon":!0})})]})}),`
+import{u as a,j as t}from"./index-rJOHic4W.js";const i={title:"Polkadot-API",description:"undefined"};function o(n){const e={a:"a",div:"div",h1:"h1",header:"header",p:"p",...a(),...n.components};return t.jsxs(t.Fragment,{children:[t.jsx(e.header,{children:t.jsxs(e.h1,{id:"polkadot-api",children:["Polkadot-API",t.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#polkadot-api",children:t.jsx(e.div,{"data-autolink-icon":!0})})]})}),`
`,t.jsx(e.p,{children:"polkadot-api"})]})}function r(n={}){const{wrapper:e}={...a(),...n.components};return e?t.jsx(e,{...n,children:t.jsx(o,{...n})}):o(n)}export{r as default,i as frontmatter};
diff --git a/assets/providers-BIDLrsp-.js b/assets/providers-CwKpKyCj.js
similarity index 99%
rename from assets/providers-BIDLrsp-.js
rename to assets/providers-CwKpKyCj.js
index 37ea9cfb..64c1f616 100644
--- a/assets/providers-BIDLrsp-.js
+++ b/assets/providers-CwKpKyCj.js
@@ -1,4 +1,4 @@
-import{u as l,j as s}from"./index-O67QIW1D.js";const o={title:"Providers",description:"undefined"};function r(i){const e={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",span:"span",ul:"ul",...l(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"providers",children:["Providers",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#providers",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),`
+import{u as l,j as s}from"./index-rJOHic4W.js";const o={title:"Providers",description:"undefined"};function r(i){const e={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",span:"span",ul:"ul",...l(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"providers",children:["Providers",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#providers",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),`
`,s.jsxs(e.p,{children:["The entry point of Polkadot-API, ",s.jsx(e.code,{children:"createClient(provider)"})," requires one ",s.jsx(e.code,{children:"JsonRpcProvider"}),", which lets Polkadot-API communicate with a node. It's a function with the following shape:"]}),`
`,s.jsx(e.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(e.code,{children:[s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"interface"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" JsonRpcProvider"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ("}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:"onMessage"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ("}),s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"message"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" string"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:") "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" void"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:") "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" JsonRpcConnection"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
diff --git a/assets/signers-WdyFE5Xg.js b/assets/signers-ByG5EHuD.js
similarity index 99%
rename from assets/signers-WdyFE5Xg.js
rename to assets/signers-ByG5EHuD.js
index 1d697831..6d040edf 100644
--- a/assets/signers-WdyFE5Xg.js
+++ b/assets/signers-ByG5EHuD.js
@@ -1,4 +1,4 @@
-import{u as r,j as s}from"./index-O67QIW1D.js";const a={title:"Signers",description:"undefined"};function n(e){const i={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",...r(),...e.components};return s.jsxs(s.Fragment,{children:[s.jsx(i.header,{children:s.jsxs(i.h1,{id:"signers",children:["Signers",s.jsx(i.a,{"aria-hidden":"true",tabIndex:"-1",href:"#signers",children:s.jsx(i.div,{"data-autolink-icon":!0})})]})}),`
+import{u as r,j as s}from"./index-rJOHic4W.js";const a={title:"Signers",description:"undefined"};function n(e){const i={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",...r(),...e.components};return s.jsxs(s.Fragment,{children:[s.jsx(i.header,{children:s.jsxs(i.h1,{id:"signers",children:["Signers",s.jsx(i.a,{"aria-hidden":"true",tabIndex:"-1",href:"#signers",children:s.jsx(i.div,{"data-autolink-icon":!0})})]})}),`
`,s.jsx(i.p,{children:"For transactions, the generated descriptors and its corresponding typed API are needed to create the transaction extrinsics, but for these transactions to be signed, we also need a signer, which is the responsible of taking it the call data and signing it."}),`
`,s.jsx(i.p,{children:"Every method on Polkadot-API that needs to sign something, takes in a signer with the following interface:"}),`
`,s.jsx(i.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(i.code,{children:[s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"interface"}),s.jsx(i.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" PolkadotSigner"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
diff --git a/assets/types-C0RxJ6XT.js b/assets/types-B4mGaoaZ.js
similarity index 99%
rename from assets/types-C0RxJ6XT.js
rename to assets/types-B4mGaoaZ.js
index 14b0ecf7..7e38e15b 100644
--- a/assets/types-C0RxJ6XT.js
+++ b/assets/types-B4mGaoaZ.js
@@ -1,4 +1,4 @@
-import{u as n,j as s}from"./index-O67QIW1D.js";const a={title:"Types",description:"undefined"};function l(i){const e={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",...n(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"types",children:["Types",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#types",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),`
+import{u as n,j as s}from"./index-rJOHic4W.js";const a={title:"Types",description:"undefined"};function l(i){const e={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",...n(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"types",children:["Types",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#types",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),`
`,s.jsx(e.p,{children:"All the types defined in the metadata of a chain are anonymous: They represent the structure of the data, down to the primitive types."}),`
`,s.jsx(e.p,{children:"Polkadot-API has some types defined that make it easier working with chain data."}),`
`,s.jsxs(e.h2,{id:"ss58string",children:["SS58String",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#ss58string",children:s.jsx(e.div,{"data-autolink-icon":!0})})]}),`
diff --git a/codegen/index.html b/codegen/index.html
index 8cc9c2a8..0560e48d 100644
--- a/codegen/index.html
+++ b/codegen/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/examples/example/index.html b/examples/example/index.html
index 8cc9c2a8..0560e48d 100644
--- a/examples/example/index.html
+++ b/examples/example/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/getting-started/index.html b/getting-started/index.html
index 8cc9c2a8..0560e48d 100644
--- a/getting-started/index.html
+++ b/getting-started/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/index.html b/index.html
index 8cc9c2a8..0560e48d 100644
--- a/index.html
+++ b/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/providers/index.html b/providers/index.html
index 8cc9c2a8..0560e48d 100644
--- a/providers/index.html
+++ b/providers/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/signers/index.html b/signers/index.html
index 8cc9c2a8..0560e48d 100644
--- a/signers/index.html
+++ b/signers/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/types/index.html b/types/index.html
index 8cc9c2a8..0560e48d 100644
--- a/types/index.html
+++ b/types/index.html
@@ -12,7 +12,7 @@
-
+