@psalomo/jsonrpc-client 1.0.3 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser-standalone.js +23 -1
- package/dist/browser-standalone.min.js +1 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/index.js +20 -0
- package/dist/index.mjs +20 -0
- package/dist/validation.d.ts.map +1 -1
- package/package.json +2 -2
@@ -156,6 +156,15 @@ class NearRpcClient {
|
|
156
156
|
const camelCaseResult = jsonResponse.result
|
157
157
|
? convertKeysToCamelCase(jsonResponse.result)
|
158
158
|
: jsonResponse.result;
|
159
|
+
// Check if the result contains an error field (non-standard NEAR RPC error response)
|
160
|
+
// This happens when validation is disabled and certain RPC errors occur
|
161
|
+
if (camelCaseResult &&
|
162
|
+
typeof camelCaseResult === 'object' &&
|
163
|
+
'error' in camelCaseResult) {
|
164
|
+
const errorMessage = camelCaseResult.error;
|
165
|
+
throw new JsonRpcClientError(`RPC Error: ${errorMessage}`, -32000, // Generic RPC error code
|
166
|
+
camelCaseResult);
|
167
|
+
}
|
159
168
|
// Validate method-specific response structure after camelCase conversion
|
160
169
|
if (this.validation && 'validateMethodResponse' in this.validation) {
|
161
170
|
// Create a camelCase version of the response for validation
|
@@ -4881,7 +4890,7 @@ Object.entries(PATH_TO_METHOD_MAP).forEach(([path, method]) => {
|
|
4881
4890
|
var RPC_METHODS = Object.values(PATH_TO_METHOD_MAP);
|
4882
4891
|
|
4883
4892
|
// Auto-generated static RPC functions for tree-shaking
|
4884
|
-
// Generated at: 2025-07-
|
4893
|
+
// Generated at: 2025-07-30T06:06:30.752Z
|
4885
4894
|
// Total functions: 31
|
4886
4895
|
//
|
4887
4896
|
// This file is automatically generated by tools/codegen/generate-client-interface.ts
|
@@ -5102,6 +5111,14 @@ function enableValidation() {
|
|
5102
5111
|
try {
|
5103
5112
|
// First validate basic JSON-RPC structure
|
5104
5113
|
responseSchema.parse(response);
|
5114
|
+
// Check if the result contains an error field before validating the schema
|
5115
|
+
// This provides a better error message when NEAR RPC returns non-standard errors
|
5116
|
+
if (response.result &&
|
5117
|
+
typeof response.result === 'object' &&
|
5118
|
+
'error' in response.result) {
|
5119
|
+
const serverError = response.result.error;
|
5120
|
+
throw new JsonRpcClientError(`Server error: ${serverError}`, -32000, response.result);
|
5121
|
+
}
|
5105
5122
|
// Then validate method-specific response structure if schema exists
|
5106
5123
|
const methodSchemas = VALIDATION_SCHEMA_MAP[method];
|
5107
5124
|
if (methodSchemas?.responseSchema) {
|
@@ -5110,6 +5127,11 @@ function enableValidation() {
|
|
5110
5127
|
}
|
5111
5128
|
}
|
5112
5129
|
catch (error) {
|
5130
|
+
// If it's already a JsonRpcClientError (from server error check), re-throw it
|
5131
|
+
if (error instanceof JsonRpcClientError) {
|
5132
|
+
throw error;
|
5133
|
+
}
|
5134
|
+
// Otherwise, it's a validation error
|
5113
5135
|
throw new JsonRpcClientError(`Invalid ${method} response: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
5114
5136
|
}
|
5115
5137
|
},
|
@@ -1 +1 @@
|
|
1
|
-
function e(e){return e.replace(/[A-Z]/g,e=>`_${e.toLowerCase()}`)}function t(e){return e.replace(/_([a-z])/g,(e,t)=>t.toUpperCase())}function n(t){if(null===t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(n);const o={};for(const[s,a]of Object.entries(t)){o[e(s)]=n(a)}return o}function o(e){if(null===e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(o);const n={};for(const[s,a]of Object.entries(e)){n[t(s)]=o(a)}return n}const s="dontcare";class a extends Error{code;data;constructor(e,t,n){super(e),this.code=t,this.data=n,this.name="JsonRpcClientError"}}class r extends Error{originalError;responseBody;constructor(e,t,n){super(e),this.originalError=t,this.responseBody=n,this.name="JsonRpcNetworkError"}}class i{endpoint;headers;timeout;retries;validation;constructor(e){"string"==typeof e?(this.endpoint=e,this.headers={},this.timeout=3e4,this.retries=3):(this.endpoint=e.endpoint,this.headers=e.headers||{},this.timeout=e.timeout||3e4,this.retries=e.retries||3,e.validation&&(this.validation=e.validation))}async makeRequest(e,t){const i={jsonrpc:"2.0",id:s,method:e,params:void 0!==t?t:null};this.validation&&("validateMethodRequest"in this.validation?this.validation.validateMethodRequest(e,i):this.validation.validateRequest(i));const c=void 0!==t?n(t):null,d={jsonrpc:"2.0",id:s,method:e,params:c};let u=null;for(let t=0;t<=this.retries;t++)try{const t=new AbortController,n=setTimeout(()=>t.abort(),this.timeout),s=await fetch(this.endpoint,{method:"POST",headers:{"Content-Type":"application/json",...this.headers},body:JSON.stringify(d),signal:t.signal});let i;clearTimeout(n);try{i=await s.json()}catch(e){if(!s.ok)throw new r(`HTTP error! status: ${s.status} - Failed to parse JSON response`,e);throw new r("Failed to parse JSON response",e)}if(i.error)throw new a(i.error.message,i.error.code,i.error.data);if(!s.ok)throw new r(`HTTP error! status: ${s.status}`,void 0,i);this.validation&&this.validation.validateResponse(i);const c=i.result?o(i.result):i.result;if(this.validation&&"validateMethodResponse"in this.validation){const t={...i,result:c};this.validation.validateMethodResponse(e,t)}return c}catch(e){if(u=e,e instanceof a)throw e;if(t===this.retries)break;await new Promise(e=>setTimeout(e,1e3*Math.pow(2,t)))}throw new r(u?.message||"Request failed after all retries",u||void 0)}withConfig(e){return new i({endpoint:e.endpoint??this.endpoint,headers:e.headers??this.headers,timeout:e.timeout??this.timeout,retries:e.retries??this.retries,...void 0!==e.validation?{validation:e.validation}:void 0!==this.validation?{validation:this.validation}:{}})}}const c=new i({endpoint:"https://rpc.mainnet.near.org"});class d extends Error{code;data;constructor(e,t,n){super(t),this.code=e,this.data=n,this.name="NearRpcError"}}function u(e,t,n){function o(n,o){var s;Object.defineProperty(n,"_zod",{value:n._zod??{},enumerable:!1}),(s=n._zod).traits??(s.traits=new Set),n._zod.traits.add(e),t(n,o);for(const e in r.prototype)e in n||Object.defineProperty(n,e,{value:r.prototype[e].bind(n)});n._zod.constr=r,n._zod.def=o}const s=n?.Parent??Object;class a extends s{}function r(e){var t;const s=n?.Parent?new a:this;o(s,e),(t=s._zod).deferred??(t.deferred=[]);for(const e of s._zod.deferred)e();return s}return Object.defineProperty(a,"name",{value:e}),Object.defineProperty(r,"init",{value:o}),Object.defineProperty(r,Symbol.hasInstance,{value:t=>!!(n?.Parent&&t instanceof n.Parent)||t?._zod?.traits?.has(e)}),Object.defineProperty(r,"name",{value:e}),r}class l extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const p={};function h(e){return p}function m(e,t){return"bigint"==typeof t?t.toString():t}function y(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function g(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function _(e,t,n){Object.defineProperty(e,t,{get(){{const o=n();return e[t]=o,o}},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function f(e){return JSON.stringify(e)}const I=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function k(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}const v=y(()=>{if("undefined"!=typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(e){return!1}});function E(e){if(!1===k(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!1!==k(n)&&!1!==Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")}const b=new Set(["string","number","symbol"]);function S(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function P(e,t=0){for(let n=t;n<e.issues.length;n++)if(!0!==e.issues[n]?.continue)return!0;return!1}function T(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function R(e){return"string"==typeof e?e:e?.message}function w(e,t,n){const o={...e,path:e.path??[]};if(!e.message){const s=R(e.inst?._zod.def?.error?.(e))??R(t?.error?.(e))??R(n.customError?.(e))??R(n.localeError?.(e))??"Invalid input";o.message=s}return delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}const x=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get:()=>JSON.stringify(t,m,2),enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},A=u("$ZodError",x),B=u("$ZodError",x,{Parent:Error}),C=(e=>(t,n,o,s)=>{const a=o?Object.assign(o,{async:!1}):{async:!1},r=t._zod.run({value:n,issues:[]},a);if(r instanceof Promise)throw new l;if(r.issues.length){const t=new(s?.Err??e)(r.issues.map(e=>w(e,a,h())));throw I(t,s?.callee),t}return r.value})(B),N=(e=>async(t,n,o,s)=>{const a=o?Object.assign(o,{async:!0}):{async:!0};let r=t._zod.run({value:n,issues:[]},a);if(r instanceof Promise&&(r=await r),r.issues.length){const t=new(s?.Err??e)(r.issues.map(e=>w(e,a,h())));throw I(t,s?.callee),t}return r.value})(B),M=(e=>(t,n,o)=>{const s=o?{...o,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},s);if(a instanceof Promise)throw new l;return a.issues.length?{success:!1,error:new(e??A)(a.issues.map(e=>w(e,s,h())))}:{success:!0,data:a.value}})(B),z=(e=>async(t,n,o)=>{const s=o?Object.assign(o,{async:!0}):{async:!0};let a=t._zod.run({value:n,issues:[]},s);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>w(e,s,h())))}:{success:!0,data:a.value}})(B),L=/^-?\d+(?:\.\d+)?/i,q=/true|false/i,j=/null/i;class O{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e)return e(this,{execution:"sync"}),void e(this,{execution:"async"});const t=e.split("\n").filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),o=t.map(e=>e.slice(n)).map(e=>" ".repeat(2*this.indent)+e);for(const e of o)this.content.push(e)}compile(){const e=Function,t=this?.args;return new e(...t,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}const D={major:4,minor:0,patch:5},H=u("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=D;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const t of o)for(const n of t._zod.onattach)n(e);if(0===o.length)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const t=(e,t,n)=>{let o,s=P(e);for(const a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(s)continue;const t=e.issues.length,r=a._zod.check(e);if(r instanceof Promise&&!1===n?.async)throw new l;if(o||r instanceof Promise)o=(o??Promise.resolve()).then(async()=>{await r;e.issues.length!==t&&(s||(s=P(e,t)))});else{if(e.issues.length===t)continue;s||(s=P(e,t))}}return o?o.then(()=>e):e};e._zod.run=(n,s)=>{const a=e._zod.parse(n,s);if(a instanceof Promise){if(!1===s.async)throw new l;return a.then(e=>t(e,o,s))}return t(a,o,s)}}e["~standard"]={validate:t=>{try{const n=M(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch(n){return z(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}}),K=u("$ZodString",(e,t)=>{var n;H.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??(n=e._zod.bag,new RegExp(`^${n?`[\\s\\S]{${n?.minimum??0},${n?.maximum??""}}`:"[\\s\\S]*"}$`)),e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=String(n.value)}catch(o){}return"string"==typeof n.value||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),$=u("$ZodNumber",(e,t)=>{H.init(e,t),e._zod.pattern=e._zod.bag.pattern??L,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=Number(n.value)}catch(e){}const s=n.value;if("number"==typeof s&&!Number.isNaN(s)&&Number.isFinite(s))return n;const a="number"==typeof s?Number.isNaN(s)?"NaN":Number.isFinite(s)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:s,inst:e,...a?{received:a}:{}}),n}}),V=u("$ZodBoolean",(e,t)=>{H.init(e,t),e._zod.pattern=q,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=Boolean(n.value)}catch(e){}const s=n.value;return"boolean"==typeof s||n.issues.push({expected:"boolean",code:"invalid_type",input:s,inst:e}),n}}),X=u("$ZodNull",(e,t)=>{H.init(e,t),e._zod.pattern=j,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{const o=t.value;return null===o||t.issues.push({expected:"null",code:"invalid_type",input:o,inst:e}),t}}),F=u("$ZodUnknown",(e,t)=>{H.init(e,t),e._zod.parse=e=>e});function G(e,t,n){e.issues.length&&t.issues.push(...T(n,e.issues)),t.value[n]=e.value}const U=u("$ZodArray",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>{const s=n.value;if(!Array.isArray(s))return n.issues.push({expected:"array",code:"invalid_type",input:s,inst:e}),n;n.value=Array(s.length);const a=[];for(let e=0;e<s.length;e++){const r=s[e],i=t.element._zod.run({value:r,issues:[]},o);i instanceof Promise?a.push(i.then(t=>G(t,n,e))):G(i,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function Z(e,t,n){e.issues.length&&t.issues.push(...T(n,e.issues)),t.value[n]=e.value}function W(e,t,n,o){e.issues.length?void 0===o[n]?t.value[n]=n in o?void 0:e.value:t.issues.push(...T(n,e.issues)):void 0===e.value?n in o&&(t.value[n]=void 0):t.value[n]=e.value}const J=u("$ZodObject",(e,t)=>{H.init(e,t);const n=y(()=>{const e=Object.keys(t.shape);for(const n of e)if(!(t.shape[n]instanceof H))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);const n=(o=t.shape,Object.keys(o).filter(e=>"optional"===o[e]._zod.optin&&"optional"===o[e]._zod.optout));var o;return{shape:t.shape,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(n)}});_(e._zod,"propValues",()=>{const e=t.shape,n={};for(const t in e){const o=e[t]._zod;if(o.values){n[t]??(n[t]=new Set);for(const e of o.values)n[t].add(e)}}return n});let o;const s=k,a=!p.jitless,r=a&&v.value,i=t.catchall;let c;e._zod.parse=(d,u)=>{c??(c=n.value);const l=d.value;if(!s(l))return d.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),d;const p=[];if(a&&r&&!1===u?.async&&!0!==u.jitless)o||(o=(e=>{const t=new O(["shape","payload","ctx"]),o=n.value,s=e=>{const t=f(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");const a=Object.create(null);let r=0;for(const e of o.keys)a[e]="key_"+r++;t.write("const newResult = {}");for(const e of o.keys)if(o.optionalKeys.has(e)){const n=a[e];t.write(`const ${n} = ${s(e)};`);const o=f(e);t.write(`\n if (${n}.issues.length) {\n if (input[${o}] === undefined) {\n if (${o} in input) {\n newResult[${o}] = undefined;\n }\n } else {\n payload.issues = payload.issues.concat(\n ${n}.issues.map((iss) => ({\n ...iss,\n path: iss.path ? [${o}, ...iss.path] : [${o}],\n }))\n );\n }\n } else if (${n}.value === undefined) {\n if (${o} in input) newResult[${o}] = undefined;\n } else {\n newResult[${o}] = ${n}.value;\n }\n `)}else{const n=a[e];t.write(`const ${n} = ${s(e)};`),t.write(`\n if (${n}.issues.length) payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${f(e)}, ...iss.path] : [${f(e)}]\n })));`),t.write(`newResult[${f(e)}] = ${n}.value`)}t.write("payload.value = newResult;"),t.write("return payload;");const i=t.compile();return(t,n)=>i(e,t,n)})(t.shape)),d=o(d,u);else{d.value={};const e=c.shape;for(const t of c.keys){const n=e[t],o=n._zod.run({value:l[t],issues:[]},u),s="optional"===n._zod.optin&&"optional"===n._zod.optout;o instanceof Promise?p.push(o.then(e=>s?W(e,d,t,l):Z(e,d,t))):s?W(o,d,t,l):Z(o,d,t)}}if(!i)return p.length?Promise.all(p).then(()=>d):d;const h=[],m=c.keySet,y=i._zod,g=y.def.type;for(const e of Object.keys(l)){if(m.has(e))continue;if("never"===g){h.push(e);continue}const t=y.run({value:l[e],issues:[]},u);t instanceof Promise?p.push(t.then(t=>Z(t,d,e))):Z(t,d,e)}return h.length&&d.issues.push({code:"unrecognized_keys",keys:h,input:l,inst:e}),p.length?Promise.all(p).then(()=>d):d}});function Y(e,t,n,o){for(const n of e)if(0===n.issues.length)return t.value=n.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>w(e,o,h())))}),t}const Q=u("$ZodUnion",(e,t)=>{H.init(e,t),_(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),_(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),_(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),_(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){const e=t.options.map(e=>e._zod.pattern);return new RegExp(`^(${e.map(e=>g(e.source)).join("|")})$`)}}),e._zod.parse=(n,o)=>{let s=!1;const a=[];for(const e of t.options){const t=e._zod.run({value:n.value,issues:[]},o);if(t instanceof Promise)a.push(t),s=!0;else{if(0===t.issues.length)return t;a.push(t)}}return s?Promise.all(a).then(t=>Y(t,n,e,o)):Y(a,n,e,o)}}),ee=u("$ZodIntersection",(e,t)=>{H.init(e,t),e._zod.parse=(e,n)=>{const o=e.value,s=t.left._zod.run({value:o,issues:[]},n),a=t.right._zod.run({value:o,issues:[]},n);return s instanceof Promise||a instanceof Promise?Promise.all([s,a]).then(([t,n])=>ne(e,t,n)):ne(e,s,a)}});function te(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e===+t)return{valid:!0,data:e};if(E(e)&&E(t)){const n=Object.keys(t),o=Object.keys(e).filter(e=>-1!==n.indexOf(e)),s={...e,...t};for(const n of o){const o=te(e[n],t[n]);if(!o.valid)return{valid:!1,mergeErrorPath:[n,...o.mergeErrorPath]};s[n]=o.data}return{valid:!0,data:s}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let o=0;o<e.length;o++){const s=te(e[o],t[o]);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function ne(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),P(e))return e;const o=te(t.value,n.value);if(!o.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}const oe=u("$ZodRecord",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>{const s=n.value;if(!E(s))return n.issues.push({expected:"record",code:"invalid_type",input:s,inst:e}),n;const a=[];if(t.keyType._zod.values){const r=t.keyType._zod.values;n.value={};for(const e of r)if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){const r=t.valueType._zod.run({value:s[e],issues:[]},o);r instanceof Promise?a.push(r.then(t=>{t.issues.length&&n.issues.push(...T(e,t.issues)),n.value[e]=t.value})):(r.issues.length&&n.issues.push(...T(e,r.issues)),n.value[e]=r.value)}let i;for(const e in s)r.has(e)||(i=i??[],i.push(e));i&&i.length>0&&n.issues.push({code:"unrecognized_keys",input:s,inst:e,keys:i})}else{n.value={};for(const r of Reflect.ownKeys(s)){if("__proto__"===r)continue;const i=t.keyType._zod.run({value:r,issues:[]},o);if(i instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(i.issues.length){n.issues.push({origin:"record",code:"invalid_key",issues:i.issues.map(e=>w(e,o,h())),input:r,path:[r],inst:e}),n.value[i.value]=i.value;continue}const c=t.valueType._zod.run({value:s[r],issues:[]},o);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...T(r,e.issues)),n.value[i.value]=e.value})):(c.issues.length&&n.issues.push(...T(r,c.issues)),n.value[i.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),se=u("$ZodEnum",(e,t)=>{H.init(e,t);const n=function(e){const t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,n])=>-1===t.indexOf(+e)).map(([e,t])=>t)}(t.entries);e._zod.values=new Set(n),e._zod.pattern=new RegExp(`^(${n.filter(e=>b.has(typeof e)).map(e=>"string"==typeof e?S(e):e.toString()).join("|")})$`),e._zod.parse=(t,o)=>{const s=t.value;return e._zod.values.has(s)||t.issues.push({code:"invalid_value",values:n,input:s,inst:e}),t}}),ae=u("$ZodLiteral",(e,t)=>{H.init(e,t),e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(e=>"string"==typeof e?S(e):e?e.toString():String(e)).join("|")})$`),e._zod.parse=(n,o)=>{const s=n.value;return e._zod.values.has(s)||n.issues.push({code:"invalid_value",values:t.values,input:s,inst:e}),n}}),re=u("$ZodOptional",(e,t)=>{H.init(e,t),e._zod.optin="optional",e._zod.optout="optional",_(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),_(e._zod,"pattern",()=>{const e=t.innerType._zod.pattern;return e?new RegExp(`^(${g(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>"optional"===t.innerType._zod.optin?t.innerType._zod.run(e,n):void 0===e.value?e:t.innerType._zod.run(e,n)}),ie=u("$ZodLazy",(e,t)=>{H.init(e,t),_(e._zod,"innerType",()=>t.getter()),_(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),_(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),_(e._zod,"optin",()=>e._zod.innerType._zod.optin),_(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)});const ce=u("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");H.init(e,t),e.def=t,e.parse=(t,n)=>C(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>M(e,t,n),e.parseAsync=async(t,n)=>N(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>z(e,t,n),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),e.clone=(t,n)=>function(e,t,n){const o=new e._zod.constr(t??e._zod.def);return t&&!n?.parent||(o._zod.parent=e),o}(e,t,n),e.brand=()=>e,e.register=(t,n)=>(t.add(e,n),e)}),de=u("ZodMiniString",(e,t)=>{K.init(e,t),ce.init(e,t)});function ue(e){return new de({type:"string"})}const le=u("ZodMiniNumber",(e,t)=>{$.init(e,t),ce.init(e,t)});function pe(e){return new le({type:"number",checks:[]})}const he=u("ZodMiniBoolean",(e,t)=>{V.init(e,t),ce.init(e,t)});function me(e){return new he({type:"boolean"})}const ye=u("ZodMiniNull",(e,t)=>{X.init(e,t),ce.init(e,t)});function ge(e){return new ye({type:"null"})}const _e=u("ZodMiniUnknown",(e,t)=>{F.init(e,t),ce.init(e,t)});function fe(){return new _e({type:"unknown"})}const Ie=u("ZodMiniArray",(e,t)=>{U.init(e,t),ce.init(e,t)});function ke(e,t){return new Ie({type:"array",element:e})}const ve=u("ZodMiniObject",(e,t)=>{J.init(e,t),ce.init(e,t),_(e,"shape",()=>t.shape)});function Ee(e,t){return new ve({type:"object",get shape(){var t,n,o;return t=this,n="shape",o={...e},Object.defineProperty(t,n,{value:o,writable:!0,enumerable:!0,configurable:!0}),this.shape}})}const be=u("ZodMiniUnion",(e,t)=>{Q.init(e,t),ce.init(e,t)});function Se(e,t){return new be({type:"union",options:e})}const Pe=u("ZodMiniIntersection",(e,t)=>{ee.init(e,t),ce.init(e,t)});function Te(e,t){return new Pe({type:"intersection",left:e,right:t})}const Re=u("ZodMiniRecord",(e,t)=>{oe.init(e,t),ce.init(e,t)});function we(e,t,n){return new Re({type:"record",keyType:e,valueType:t})}const xe=u("ZodMiniEnum",(e,t)=>{se.init(e,t),ce.init(e,t)});function Ae(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new xe({type:"enum",entries:n})}const Be=u("ZodMiniLiteral",(e,t)=>{ae.init(e,t),ce.init(e,t)});function Ce(e,t){return new Be({type:"literal",values:Array.isArray(e)?e:[e]})}const Ne=u("ZodMiniOptional",(e,t)=>{re.init(e,t),ce.init(e,t)});function Me(e){return new Ne({type:"optional",innerType:e})}const ze=u("ZodMiniLazy",(e,t)=>{ie.init(e,t),ce.init(e,t)});function Le(e){return new ze({type:"lazy",getter:e})}var qe=()=>Ee({keys:ke(Le(()=>Ee({accessKey:Le(()=>De()),publicKey:Le(()=>Ft())})))}),je=()=>Se([Ee({FunctionCall:Le(()=>Et())}),Ae(["FullAccess"])]),Oe=()=>Se([Ae(["FullAccess"]),Ee({FunctionCall:Ee({allowance:Me(Se([Se([ue(),ge()]),ge()])),methodNames:ke(ue()),receiverId:ue()})})]),De=()=>Ee({nonce:pe(),permission:Le(()=>Oe())}),He=()=>ue(),Ke=()=>Ee({accountId:Le(()=>He()),publicKey:Le(()=>Ft())}),$e=()=>Ee({addKeyCost:Le(()=>Ee({fullAccessCost:Le(()=>gt()),functionCallCost:Le(()=>gt()),functionCallCostPerByte:Le(()=>gt())})),createAccountCost:Le(()=>gt()),delegateCost:Le(()=>gt()),deleteAccountCost:Le(()=>gt()),deleteKeyCost:Le(()=>gt()),deployContractCost:Le(()=>gt()),deployContractCostPerByte:Le(()=>gt()),functionCallCost:Le(()=>gt()),functionCallCostPerByte:Le(()=>gt()),stakeCost:Le(()=>gt()),transferCost:Le(()=>gt())}),Ve=()=>Se([Ee({AccountAlreadyExists:Ee({accountId:Le(()=>He())})}),Ee({AccountDoesNotExist:Ee({accountId:Le(()=>He())})}),Ee({CreateAccountOnlyByRegistrar:Ee({accountId:Le(()=>He()),predecessorId:Le(()=>He()),registrarAccountId:Le(()=>He())})}),Ee({CreateAccountNotAllowed:Ee({accountId:Le(()=>He()),predecessorId:Le(()=>He())})}),Ee({ActorNoPermission:Ee({accountId:Le(()=>He()),actorId:Le(()=>He())})}),Ee({DeleteKeyDoesNotExist:Ee({accountId:Le(()=>He()),publicKey:Le(()=>Ft())})}),Ee({AddKeyAlreadyExists:Ee({accountId:Le(()=>He()),publicKey:Le(()=>Ft())})}),Ee({DeleteAccountStaking:Ee({accountId:Le(()=>He())})}),Ee({LackBalanceForState:Ee({accountId:Le(()=>He()),amount:ue()})}),Ee({TriesToUnstake:Ee({accountId:Le(()=>He())})}),Ee({TriesToStake:Ee({accountId:Le(()=>He()),balance:ue(),locked:ue(),stake:ue()})}),Ee({InsufficientStake:Ee({accountId:Le(()=>He()),minimumStake:ue(),stake:ue()})}),Ee({FunctionCallError:Le(()=>vt())}),Ee({NewReceiptValidationError:Le(()=>Zt())}),Ee({OnlyImplicitAccountCreationAllowed:Ee({accountId:Le(()=>He())})}),Ee({DeleteAccountWithLargeState:Ee({accountId:Le(()=>He())})}),Ae(["DelegateActionInvalidSignature"]),Ee({DelegateActionSenderDoesNotMatchTxReceiver:Ee({receiverId:Le(()=>He()),senderId:Le(()=>He())})}),Ae(["DelegateActionExpired"]),Ee({DelegateActionAccessKeyError:Le(()=>wt())}),Ee({DelegateActionInvalidNonce:Ee({akNonce:pe(),delegateNonce:pe()})}),Ee({DelegateActionNonceTooLarge:Ee({delegateNonce:pe(),upperBound:pe()})}),Ee({GlobalContractDoesNotExist:Ee({identifier:Le(()=>Tt())})})]),Xe=()=>Se([Ae(["CreateAccount"]),Ee({DeployContract:Ee({code:ue()})}),Ee({FunctionCall:Ee({args:Le(()=>It()),deposit:ue(),gas:pe(),methodName:ue()})}),Ee({Transfer:Ee({deposit:ue()})}),Ee({Stake:Ee({publicKey:Le(()=>Ft()),stake:ue()})}),Ee({AddKey:Ee({accessKey:Le(()=>De()),publicKey:Le(()=>Ft())})}),Ee({DeleteKey:Ee({publicKey:Le(()=>Ft())})}),Ee({DeleteAccount:Ee({beneficiaryId:Le(()=>He())})}),Ee({Delegate:Ee({delegateAction:Le(()=>st()),signature:Le(()=>Zn())})}),Ee({DeployGlobalContract:Ee({code:ue()})}),Ee({DeployGlobalContractByAccountId:Ee({code:ue()})}),Ee({UseGlobalContract:Ee({codeHash:Le(()=>ot())})}),Ee({UseGlobalContractByAccountId:Ee({accountId:Le(()=>He())})})]),Fe=()=>Se([Ae(["DeleteActionMustBeFinal"]),Ee({TotalPrepaidGasExceeded:Ee({limit:pe(),totalPrepaidGas:pe()})}),Ee({TotalNumberOfActionsExceeded:Ee({limit:pe(),totalNumberOfActions:pe()})}),Ee({AddKeyMethodNamesNumberOfBytesExceeded:Ee({limit:pe(),totalNumberOfBytes:pe()})}),Ee({AddKeyMethodNameLengthExceeded:Ee({length:pe(),limit:pe()})}),Ae(["IntegerOverflow"]),Ee({InvalidAccountId:Ee({accountId:ue()})}),Ee({ContractSizeExceeded:Ee({limit:pe(),size:pe()})}),Ee({FunctionCallMethodNameLengthExceeded:Ee({length:pe(),limit:pe()})}),Ee({FunctionCallArgumentsLengthExceeded:Ee({length:pe(),limit:pe()})}),Ee({UnsuitableStakingKey:Ee({publicKey:Le(()=>Ft())})}),Ae(["FunctionCallZeroAttachedGas"]),Ae(["DelegateActionMustBeOnlyOne"]),Ee({UnsupportedProtocolFeature:Ee({protocolFeature:ue(),version:pe()})})]),Ge=()=>Ee({accessKey:Le(()=>Ee({nonce:pe(),permission:Le(()=>je())})),publicKey:Le(()=>Ft())}),Ue=()=>Ee({data:ke(pe())}),Ze=()=>Ee({requests:ke(Le(()=>Ee({requestedValuesBitmap:Le(()=>Ue()),toShard:pe()})))}),We=()=>Ee({blockMerkleRoot:Le(()=>ot()),epochId:Le(()=>ot()),height:pe(),nextBpHash:Le(()=>ot()),nextEpochId:Le(()=>ot()),outcomeRoot:Le(()=>ot()),prevStateRoot:Le(()=>ot()),timestamp:pe(),timestampNanosec:ue()}),Je=()=>Se([pe(),Le(()=>ot())]),Ye=()=>Ee({hash:Le(()=>ot()),height:pe()}),Qe=()=>Ee({get:ue(),set:ue()}),et=()=>Ee({balanceBurnt:ue(),bandwidthRequests:Me(Se([Le(()=>Ee({V1:Le(()=>Ze())})),ge()])),chunkHash:Le(()=>ot()),congestionInfo:Me(Se([Le(()=>tt()),ge()])),encodedLength:pe(),encodedMerkleRoot:Le(()=>ot()),gasLimit:pe(),gasUsed:pe(),heightCreated:pe(),heightIncluded:pe(),outcomeRoot:Le(()=>ot()),outgoingReceiptsRoot:Le(()=>ot()),prevBlockHash:Le(()=>ot()),prevStateRoot:Le(()=>ot()),rentPaid:ue(),shardId:Le(()=>Vn()),signature:Le(()=>Zn()),txRoot:Le(()=>ot()),validatorProposals:ke(Le(()=>bo())),validatorReward:ue()}),tt=()=>Ee({allowedShard:pe(),bufferedReceiptsGas:ue(),delayedReceiptsGas:ue(),receiptBytes:pe()}),nt=()=>we(ue(),fe()),ot=()=>ue(),st=()=>Ee({actions:ke(Le(()=>Kt())),maxBlockHeight:pe(),nonce:pe(),publicKey:Le(()=>Ft()),receiverId:Le(()=>He()),senderId:Le(()=>He())}),at=()=>Ee({beneficiaryId:Le(()=>He())}),rt=()=>Ee({publicKey:Le(()=>Ft())}),it=()=>Ee({code:ue()}),ct=()=>Ee({code:ue(),deployMode:Le(()=>Pt())}),dt=()=>Ee({blockProductionDelayMillis:pe(),catchupStatus:ke(Le(()=>Ee({blocksToCatchup:ke(Le(()=>Ye())),shardSyncStatus:we(ue(),fe()),syncBlockHash:Le(()=>ot()),syncBlockHeight:pe()}))),currentHeadStatus:Le(()=>Ye()),currentHeaderHeadStatus:Le(()=>Ye()),networkInfo:Le(()=>Ht()),syncStatus:ue()}),ut=()=>Ee({nanos:pe(),secs:pe()}),lt=()=>Le(()=>ot()),pt=()=>Ee({gasProfile:Me(Se([Se([ke(Le(()=>Ee({cost:ue(),costCategory:ue(),gasUsed:ue()}))),ge()]),ge()])),version:pe()}),ht=()=>Ee({blockHash:Le(()=>ot()),id:Le(()=>ot()),outcome:Le(()=>Ee({executorId:Le(()=>He()),gasBurnt:pe(),logs:ke(ue()),metadata:Me(Le(()=>pt())),receiptIds:ke(Le(()=>ot())),status:Le(()=>mt()),tokensBurnt:ue()})),proof:ke(Le(()=>qt()))}),mt=()=>Se([Ae(["Unknown"]),Ee({Failure:Le(()=>go())}),Ee({SuccessValue:ue()}),Ee({SuccessReceiptId:Le(()=>ot())})]),yt=()=>Se([Ee({S3:Ee({bucket:ue(),region:ue()})}),Ee({Filesystem:Ee({rootDir:ue()})}),Ee({GCS:Ee({bucket:ue()})})]),gt=()=>Ee({execution:pe(),sendNotSir:pe(),sendSir:pe()}),_t=()=>Se([Ae(["NotStarted"]),Ae(["Started"]),Ee({Failure:Le(()=>go())}),Ee({SuccessValue:ue()})]),ft=()=>Ae(["optimistic","near-final","final"]),It=()=>ue(),kt=()=>Ee({args:ue(),deposit:ue(),gas:pe(),methodName:ue()}),vt=()=>Se([Ae(["WasmUnknownError","_EVMError"]),Ee({CompilationError:Le(()=>Se([Ee({CodeDoesNotExist:Ee({accountId:Le(()=>He())})}),Ee({PrepareError:Le(()=>Xt())}),Ee({WasmerCompileError:Ee({msg:ue()})})]))}),Ee({LinkError:Ee({msg:ue()})}),Ee({MethodResolveError:Le(()=>jt())}),Ee({WasmTrap:Le(()=>Ro())}),Ee({HostError:Le(()=>Rt())}),Ee({ExecutionError:ue()})]),Et=()=>Ee({allowance:Me(Se([Se([ue(),ge()]),ge()])),methodNames:ke(ue()),receiverId:ue()}),bt=()=>Ee({avgHiddenValidatorSeatsPerShard:ke(pe()),blockProducerKickoutThreshold:pe(),chainId:ue(),chunkProducerAssignmentChangesLimit:Me(pe()),chunkProducerKickoutThreshold:pe(),chunkValidatorOnlyKickoutThreshold:Me(pe()),dynamicResharding:me(),epochLength:pe(),fishermenThreshold:ue(),gasLimit:pe(),gasPriceAdjustmentRate:ke(pe()),genesisHeight:pe(),genesisTime:ue(),maxGasPrice:ue(),maxInflationRate:ke(pe()),maxKickoutStakePerc:Me(pe()),minGasPrice:ue(),minimumStakeDivisor:Me(pe()),minimumStakeRatio:Me(ke(pe())),minimumValidatorsPerShard:Me(pe()),numBlockProducerSeats:pe(),numBlockProducerSeatsPerShard:ke(pe()),numBlocksPerYear:pe(),numChunkOnlyProducerSeats:Me(pe()),numChunkProducerSeats:Me(pe()),numChunkValidatorSeats:Me(pe()),onlineMaxThreshold:Me(ke(pe())),onlineMinThreshold:Me(ke(pe())),protocolRewardRate:ke(pe()),protocolTreasuryAccount:Le(()=>He()),protocolUpgradeStakeThreshold:Me(ke(pe())),protocolVersion:pe(),shardLayout:Me(Le(()=>Xn())),shuffleShardAssignmentForChunkProducers:Me(me()),targetValidatorMandatesPerShard:Me(pe()),totalSupply:ue(),transactionValidityPeriod:pe(),useProductionConfig:Me(me()),validators:ke(Le(()=>Ee({accountId:Le(()=>He()),amount:ue(),publicKey:Le(()=>Ft())})))}),St=()=>ge(),Pt=()=>Se([Ae(["CodeHash"]),Ae(["AccountId"])]),Tt=()=>Se([Ee({CodeHash:Le(()=>ot())}),Ee({AccountId:Le(()=>He())})]),Rt=()=>Se([Ae(["BadUTF16"]),Ae(["BadUTF8"]),Ae(["GasExceeded"]),Ae(["GasLimitExceeded"]),Ae(["BalanceExceeded"]),Ae(["EmptyMethodName"]),Ee({GuestPanic:Ee({panicMsg:ue()})}),Ae(["IntegerOverflow"]),Ee({InvalidPromiseIndex:Ee({promiseIdx:pe()})}),Ae(["CannotAppendActionToJointPromise"]),Ae(["CannotReturnJointPromise"]),Ee({InvalidPromiseResultIndex:Ee({resultIdx:pe()})}),Ee({InvalidRegisterId:Ee({registerId:pe()})}),Ee({IteratorWasInvalidated:Ee({iteratorIndex:pe()})}),Ae(["MemoryAccessViolation"]),Ee({InvalidReceiptIndex:Ee({receiptIndex:pe()})}),Ee({InvalidIteratorIndex:Ee({iteratorIndex:pe()})}),Ae(["InvalidAccountId"]),Ae(["InvalidMethodName"]),Ae(["InvalidPublicKey"]),Ee({ProhibitedInView:Ee({methodName:ue()})}),Ee({NumberOfLogsExceeded:Ee({limit:pe()})}),Ee({KeyLengthExceeded:Ee({length:pe(),limit:pe()})}),Ee({ValueLengthExceeded:Ee({length:pe(),limit:pe()})}),Ee({TotalLogLengthExceeded:Ee({length:pe(),limit:pe()})}),Ee({NumberPromisesExceeded:Ee({limit:pe(),numberOfPromises:pe()})}),Ee({NumberInputDataDependenciesExceeded:Ee({limit:pe(),numberOfInputDataDependencies:pe()})}),Ee({ReturnedValueLengthExceeded:Ee({length:pe(),limit:pe()})}),Ee({ContractSizeExceeded:Ee({limit:pe(),size:pe()})}),Ee({Deprecated:Ee({methodName:ue()})}),Ee({ECRecoverError:Ee({msg:ue()})}),Ee({AltBn128InvalidInput:Ee({msg:ue()})}),Ee({Ed25519VerifyInvalidInput:Ee({msg:ue()})})]),wt=()=>Se([Ee({AccessKeyNotFound:Ee({accountId:Le(()=>He()),publicKey:Le(()=>Ft())})}),Ee({ReceiverMismatch:Ee({akReceiver:ue(),txReceiver:Le(()=>He())})}),Ee({MethodNameMismatch:Ee({methodName:ue()})}),Ae(["RequiresFullAccess"]),Ee({NotEnoughAllowance:Ee({accountId:Le(()=>He()),allowance:ue(),cost:ue(),publicKey:Le(()=>Ft())})}),Ae(["DepositWithFunctionCall"])]),xt=()=>Te(Se([Ee({result:ke(Le(()=>Gt()))}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})),At=()=>Te(Se([Ee({result:Le(()=>bt())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})),Bt=()=>Te(Se([Ee({result:Le(()=>mn())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})),Ct=()=>Te(Se([Ee({result:Le(()=>Cn())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})),Nt=()=>Te(Se([Ee({result:Le(()=>Mn())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})),Mt=()=>Te(Se([Ee({result:Le(()=>qn())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})),zt=()=>Ee({innerLite:Le(()=>We()),innerRestHash:Le(()=>ot()),prevBlockHash:Le(()=>ot())}),Lt=()=>Ee({accountIdValidityRulesVersion:Me(Le(()=>pe())),initialMemoryPages:pe(),maxActionsPerReceipt:pe(),maxArgumentsLength:pe(),maxContractSize:pe(),maxFunctionsNumberPerContract:Me(Se([Se([pe(),ge()]),ge()])),maxGasBurnt:pe(),maxLengthMethodName:pe(),maxLengthReturnedData:pe(),maxLengthStorageKey:pe(),maxLengthStorageValue:pe(),maxLocalsPerContract:Me(Se([Se([pe(),ge()]),ge()])),maxMemoryPages:pe(),maxNumberBytesMethodNames:pe(),maxNumberInputDataDependencies:pe(),maxNumberLogs:pe(),maxNumberRegisters:pe(),maxPromisesPerFunctionCallAction:pe(),maxReceiptSize:pe(),maxRegisterSize:pe(),maxStackHeight:pe(),maxTotalLogLength:pe(),maxTotalPrepaidGas:pe(),maxTransactionSize:pe(),maxYieldPayloadSize:pe(),perReceiptStorageProofSizeLimit:pe(),registersMemoryLimit:pe(),yieldTimeoutLengthInBlocks:pe()}),qt=()=>Ee({direction:Le(()=>Ae(["Left","Right"])),hash:Le(()=>ot())}),jt=()=>Ae(["MethodEmptyName","MethodNotFound","MethodInvalidSignature"]),Ot=()=>Se([Ae(["TrieIterator"]),Ae(["TriePrefetchingStorage"]),Ae(["TrieMemoryPartialStorage"]),Ae(["TrieStorage"])]),Dt=()=>ue(),Ht=()=>Ee({connectedPeers:ke(Le(()=>Vt())),knownProducers:ke(Le(()=>Ee({accountId:Le(()=>He()),nextHops:Me(Se([Se([ke(Le(()=>Ft())),ge()]),ge()])),peerId:Le(()=>Ft())}))),numConnectedPeers:pe(),peerMaxCount:pe(),tier1AccountsData:ke(Le(()=>Ee({accountKey:Le(()=>Ft()),peerId:Le(()=>Ft()),proxies:ke(Le(()=>ho())),timestamp:ue()}))),tier1AccountsKeys:ke(Le(()=>Ft())),tier1Connections:ke(Le(()=>Vt()))}),Kt=()=>Le(()=>Se([Ee({CreateAccount:Le(()=>nt())}),Ee({DeployContract:Le(()=>it())}),Ee({FunctionCall:Le(()=>kt())}),Ee({Transfer:Le(()=>yo())}),Ee({Stake:Le(()=>eo())}),Ee({AddKey:Le(()=>Ge())}),Ee({DeleteKey:Le(()=>rt())}),Ee({DeleteAccount:Le(()=>at())}),Ee({Delegate:Le(()=>Wn())}),Ee({DeployGlobalContract:Le(()=>ct())}),Ee({UseGlobalContract:Le(()=>fo())})])),$t=()=>Le(()=>Ft()),Vt=()=>Ee({accountId:Me(Se([Le(()=>He()),ge()])),addr:ue(),archival:me(),blockHash:Me(Se([Le(()=>ot()),ge()])),connectionEstablishedTimeMillis:pe(),height:Me(Se([Se([pe(),ge()]),ge()])),isHighestBlockInvalid:me(),isOutboundPeer:me(),lastTimePeerRequestedMillis:pe(),lastTimeReceivedMessageMillis:pe(),nonce:pe(),peerId:Le(()=>Ft()),receivedBytesPerSec:pe(),sentBytesPerSec:pe(),trackedShards:ke(Le(()=>Vn()))}),Xt=()=>Se([Ae(["Serialization"]),Ae(["Deserialization"]),Ae(["InternalMemoryDeclared"]),Ae(["GasInstrumentation"]),Ae(["StackHeightInstrumentation"]),Ae(["Instantiate"]),Ae(["Memory"]),Ae(["TooManyFunctions"]),Ae(["TooManyLocals"])]),Ft=()=>ue(),Gt=()=>Ee({end:pe(),start:pe()}),Ut=()=>Se([Ee({Action:Ee({actions:ke(Le(()=>Xe())),gasPrice:ue(),inputDataIds:ke(Le(()=>ot())),isPromiseYield:Me(me()),outputDataReceivers:ke(Le(()=>Ee({dataId:Le(()=>ot()),receiverId:Le(()=>He())}))),signerId:Le(()=>He()),signerPublicKey:Le(()=>Ft())})}),Ee({Data:Ee({data:Me(Se([Se([ue(),ge()]),ge()])),dataId:Le(()=>ot()),isPromiseResume:Me(me())})}),Ee({GlobalContractDistribution:Ee({alreadyDeliveredShards:ke(Le(()=>Vn())),code:ue(),id:Le(()=>Tt()),targetShard:Le(()=>Vn())})})]),Zt=()=>Se([Ee({InvalidPredecessorId:Ee({accountId:ue()})}),Ee({InvalidReceiverId:Ee({accountId:ue()})}),Ee({InvalidSignerId:Ee({accountId:ue()})}),Ee({InvalidDataReceiverId:Ee({accountId:ue()})}),Ee({ReturnedValueLengthExceeded:Ee({length:pe(),limit:pe()})}),Ee({NumberInputDataDependenciesExceeded:Ee({limit:pe(),numberOfInputDataDependencies:pe()})}),Ee({ActionsValidation:Le(()=>Fe())}),Ee({ReceiptSizeExceeded:Ee({limit:pe(),size:pe()})})]),Wt=()=>Ee({predecessorId:Le(()=>He()),priority:Me(pe()),receipt:Le(()=>Ut()),receiptId:Le(()=>ot()),receiverId:Le(()=>He())}),Jt=()=>Se([Ee({blockId:Le(()=>Je())}),Ee({finality:Le(()=>ft())}),Ee({syncCheckpoint:Le(()=>uo())})]),Yt=()=>Ee({author:Le(()=>He()),chunks:ke(Le(()=>et())),header:Le(()=>Ee({approvals:ke(Se([Le(()=>Zn()),ge()])),blockBodyHash:Me(Se([Le(()=>ot()),ge()])),blockMerkleRoot:Le(()=>ot()),blockOrdinal:Me(Se([Se([pe(),ge()]),ge()])),challengesResult:ke(Le(()=>Qn())),challengesRoot:Le(()=>ot()),chunkEndorsements:Me(Se([Se([ke(ke(pe())),ge()]),ge()])),chunkHeadersRoot:Le(()=>ot()),chunkMask:ke(me()),chunkReceiptsRoot:Le(()=>ot()),chunkTxRoot:Le(()=>ot()),chunksIncluded:pe(),epochId:Le(()=>ot()),epochSyncDataHash:Me(Se([Le(()=>ot()),ge()])),gasPrice:ue(),hash:Le(()=>ot()),height:pe(),lastDsFinalBlock:Le(()=>ot()),lastFinalBlock:Le(()=>ot()),latestProtocolVersion:pe(),nextBpHash:Le(()=>ot()),nextEpochId:Le(()=>ot()),outcomeRoot:Le(()=>ot()),prevHash:Le(()=>ot()),prevHeight:Me(Se([Se([pe(),ge()]),ge()])),prevStateRoot:Le(()=>ot()),randomValue:Le(()=>ot()),rentPaid:ue(),signature:Le(()=>Zn()),timestamp:pe(),timestampNanosec:ue(),totalSupply:ue(),validatorProposals:ke(Le(()=>bo())),validatorReward:ue()}))}),Qt=()=>Se([Ee({blockId:Le(()=>Je()),shardId:Le(()=>Vn())}),Ee({chunkId:Le(()=>ot())})]),en=()=>Ee({author:Le(()=>He()),header:Le(()=>et()),receipts:ke(Le(()=>Wt())),transactions:ke(Le(()=>Yn()))}),tn=()=>ge(),nn=()=>Ee({archive:me(),blockFetchHorizon:pe(),blockHeaderFetchHorizon:pe(),blockProductionTrackingDelay:ke(pe()),catchupStepPeriod:ke(pe()),chainId:ue(),chunkDistributionNetwork:Me(Se([Le(()=>Ee({enabled:me(),uris:Le(()=>Qe())})),ge()])),chunkRequestRetryPeriod:ke(pe()),chunkValidationThreads:pe(),chunkWaitMult:ke(pe()),clientBackgroundMigrationThreads:pe(),doomslugStepPeriod:ke(pe()),enableMultilineLogging:me(),enableStatisticsExport:me(),epochLength:pe(),epochSync:Le(()=>Ee({disableEpochSyncForBootstrapping:Me(me()),epochSyncHorizon:pe(),ignoreEpochSyncNetworkRequests:Me(me()),timeoutForEpochSync:Le(()=>ut())})),expectedShutdown:Le(()=>Dt()),gc:Le(()=>Ee({gcBlocksLimit:Me(pe()),gcForkCleanStep:Me(pe()),gcNumEpochsToKeep:Me(pe()),gcStepPeriod:Me(Le(()=>ut()))})),headerSyncExpectedHeightPerSecond:pe(),headerSyncInitialTimeout:ke(pe()),headerSyncProgressTimeout:ke(pe()),headerSyncStallBanTimeout:ke(pe()),logSummaryPeriod:ke(pe()),logSummaryStyle:Le(()=>Ae(["plain","colored"])),maxBlockProductionDelay:ke(pe()),maxBlockWaitDelay:ke(pe()),maxGasBurntView:Me(Se([Se([pe(),ge()]),ge()])),minBlockProductionDelay:ke(pe()),minNumPeers:pe(),numBlockProducerSeats:pe(),orphanStateWitnessMaxSize:pe(),orphanStateWitnessPoolSize:pe(),produceChunkAddTransactionsTimeLimit:ue(),produceEmptyBlocks:me(),reshardingConfig:Le(()=>Dt()),rpcAddr:Me(Se([Se([ue(),ge()]),ge()])),saveInvalidWitnesses:me(),saveLatestWitnesses:me(),saveTrieChanges:me(),saveTxOutcomes:me(),skipSyncWait:me(),stateRequestServerThreads:pe(),stateRequestThrottlePeriod:ke(pe()),stateRequestsPerThrottlePeriod:pe(),stateSync:Le(()=>oo()),stateSyncEnabled:me(),stateSyncExternalBackoff:ke(pe()),stateSyncExternalTimeout:ke(pe()),stateSyncP2pTimeout:ke(pe()),stateSyncRetryBackoff:ke(pe()),syncCheckPeriod:ke(pe()),syncHeightThreshold:pe(),syncMaxBlockRequests:pe(),syncStepPeriod:ke(pe()),trackedShardsConfig:Le(()=>mo()),transactionPoolSizeLimit:Me(Se([Se([pe(),ge()]),ge()])),transactionRequestHandlerThreads:pe(),trieViewerStateSizeLimit:Me(Se([Se([pe(),ge()]),ge()])),ttlAccountIdRouter:ke(pe()),txRoutingHeightHorizon:pe(),version:Le(()=>Po()),viewClientThreads:pe()}),on=()=>Se([Ee({blockId:Le(()=>Je()),shardId:Le(()=>Vn())}),Ee({chunkId:Le(()=>ot())})]),sn=()=>Ee({congestionLevel:pe()}),an=()=>Te(Se([Ee({cause:Le(()=>Rn()),name:Ae(["REQUEST_VALIDATION_ERROR"])}),Ee({cause:fe(),name:Ae(["HANDLER_ERROR"])}),Ee({cause:fe(),name:Ae(["INTERNAL_ERROR"])})]),Ee({cause:Me(fe()),code:pe(),data:Me(fe()),message:ue(),name:Me(fe())})),rn=()=>Ee({blockId:Me(Se([Le(()=>Je()),ge()]))}),cn=()=>Ee({gasPrice:ue()}),dn=()=>ge(),un=()=>ge(),ln=()=>Ee({blockHash:Le(()=>ot()),lightClientHead:Le(()=>ot())}),pn=()=>Ee({blockHeaderLite:Le(()=>zt()),blockProof:ke(Le(()=>qt()))}),hn=()=>Te(Se([Ee({senderId:Le(()=>He()),transactionHash:Le(()=>ot()),type:Ae(["transaction"])}),Ee({receiptId:Le(()=>ot()),receiverId:Le(()=>He()),type:Ae(["receipt"])})]),Ee({lightClientHead:Le(()=>ot())})),mn=()=>Ee({blockHeaderLite:Le(()=>zt()),blockProof:ke(Le(()=>qt())),outcomeProof:Le(()=>ht()),outcomeRootProof:ke(Le(()=>qt()))}),yn=()=>Ee({lastBlockHash:Le(()=>ot())}),gn=()=>Ee({approvalsAfterNext:Me(ke(Se([Le(()=>Zn()),ge()]))),innerLite:Me(Le(()=>We())),innerRestHash:Me(Le(()=>ot())),nextBlockInnerHash:Me(Le(()=>ot())),nextBps:Me(Se([Se([ke(Le(()=>bo())),ge()]),ge()])),prevBlockHash:Me(Le(()=>ot()))}),_n=()=>Ee({accountId:Le(()=>He())}),fn=()=>ge(),In=()=>Ee({activePeers:ke(Le(()=>kn())),knownProducers:ke(Le(()=>Ee({accountId:Le(()=>He()),addr:Me(Se([Se([ue(),ge()]),ge()])),peerId:Le(()=>$t())}))),numActivePeers:pe(),peerMaxCount:pe(),receivedBytesPerSec:pe(),sentBytesPerSec:pe()}),kn=()=>Ee({accountId:Me(Se([Le(()=>He()),ge()])),addr:Me(Se([Se([ue(),ge()]),ge()])),id:Le(()=>$t())}),vn=()=>Se([Ee({blockId:Le(()=>Je())}),Ee({finality:Le(()=>ft())}),Ee({syncCheckpoint:Le(()=>uo())})]),En=()=>Ee({avgHiddenValidatorSeatsPerShard:ke(pe()),blockProducerKickoutThreshold:pe(),chainId:ue(),chunkProducerKickoutThreshold:pe(),chunkValidatorOnlyKickoutThreshold:pe(),dynamicResharding:me(),epochLength:pe(),fishermenThreshold:ue(),gasLimit:pe(),gasPriceAdjustmentRate:ke(pe()),genesisHeight:pe(),genesisTime:ue(),maxGasPrice:ue(),maxInflationRate:ke(pe()),maxKickoutStakePerc:pe(),minGasPrice:ue(),minimumStakeDivisor:pe(),minimumStakeRatio:ke(pe()),minimumValidatorsPerShard:pe(),numBlockProducerSeats:pe(),numBlockProducerSeatsPerShard:ke(pe()),numBlocksPerYear:pe(),onlineMaxThreshold:ke(pe()),onlineMinThreshold:ke(pe()),protocolRewardRate:ke(pe()),protocolTreasuryAccount:Le(()=>He()),protocolUpgradeStakeThreshold:ke(pe()),protocolVersion:pe(),runtimeConfig:Le(()=>Kn()),shardLayout:Le(()=>Xn()),shuffleShardAssignmentForChunkProducers:me(),targetValidatorMandatesPerShard:pe(),transactionValidityPeriod:pe()}),bn=()=>Se([Te(Ee({blockId:Le(()=>Je())}),Ee({accountId:Le(()=>He()),requestType:Ae(["view_account"])})),Te(Ee({blockId:Le(()=>Je())}),Ee({accountId:Le(()=>He()),requestType:Ae(["view_code"])})),Te(Ee({blockId:Le(()=>Je())}),Ee({accountId:Le(()=>He()),includeProof:Me(me()),prefixBase64:Le(()=>io()),requestType:Ae(["view_state"])})),Te(Ee({blockId:Le(()=>Je())}),Ee({accountId:Le(()=>He()),publicKey:Le(()=>Ft()),requestType:Ae(["view_access_key"])})),Te(Ee({blockId:Le(()=>Je())}),Ee({accountId:Le(()=>He()),requestType:Ae(["view_access_key_list"])})),Te(Ee({blockId:Le(()=>Je())}),Ee({accountId:Le(()=>He()),argsBase64:Le(()=>It()),methodName:ue(),requestType:Ae(["call_function"])})),Te(Ee({blockId:Le(()=>Je())}),Ee({codeHash:Le(()=>ot()),requestType:Ae(["view_global_contract_code"])})),Te(Ee({blockId:Le(()=>Je())}),Ee({accountId:Le(()=>He()),requestType:Ae(["view_global_contract_code_by_account_id"])})),Te(Ee({finality:Le(()=>ft())}),Ee({accountId:Le(()=>He()),requestType:Ae(["view_account"])})),Te(Ee({finality:Le(()=>ft())}),Ee({accountId:Le(()=>He()),requestType:Ae(["view_code"])})),Te(Ee({finality:Le(()=>ft())}),Ee({accountId:Le(()=>He()),includeProof:Me(me()),prefixBase64:Le(()=>io()),requestType:Ae(["view_state"])})),Te(Ee({finality:Le(()=>ft())}),Ee({accountId:Le(()=>He()),publicKey:Le(()=>Ft()),requestType:Ae(["view_access_key"])})),Te(Ee({finality:Le(()=>ft())}),Ee({accountId:Le(()=>He()),requestType:Ae(["view_access_key_list"])})),Te(Ee({finality:Le(()=>ft())}),Ee({accountId:Le(()=>He()),argsBase64:Le(()=>It()),methodName:ue(),requestType:Ae(["call_function"])})),Te(Ee({finality:Le(()=>ft())}),Ee({codeHash:Le(()=>ot()),requestType:Ae(["view_global_contract_code"])})),Te(Ee({finality:Le(()=>ft())}),Ee({accountId:Le(()=>He()),requestType:Ae(["view_global_contract_code_by_account_id"])})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({accountId:Le(()=>He()),requestType:Ae(["view_account"])})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({accountId:Le(()=>He()),requestType:Ae(["view_code"])})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({accountId:Le(()=>He()),includeProof:Me(me()),prefixBase64:Le(()=>io()),requestType:Ae(["view_state"])})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({accountId:Le(()=>He()),publicKey:Le(()=>Ft()),requestType:Ae(["view_access_key"])})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({accountId:Le(()=>He()),requestType:Ae(["view_access_key_list"])})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({accountId:Le(()=>He()),argsBase64:Le(()=>It()),methodName:ue(),requestType:Ae(["call_function"])})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({codeHash:Le(()=>ot()),requestType:Ae(["view_global_contract_code"])})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({accountId:Le(()=>He()),requestType:Ae(["view_global_contract_code_by_account_id"])}))]),Sn=()=>Se([Le(()=>Ee({amount:ue(),codeHash:Le(()=>ot()),globalContractAccountId:Me(Se([Le(()=>He()),ge()])),globalContractHash:Me(Se([Le(()=>ot()),ge()])),locked:ue(),storagePaidAt:Me(pe()),storageUsage:pe()})),Le(()=>Ee({codeBase64:ue(),hash:Le(()=>ot())})),Le(()=>To()),Le(()=>Ee({logs:ke(ue()),result:ke(pe())})),Le(()=>De()),Le(()=>qe())]),Pn=()=>Ee({receiptId:Le(()=>ot())}),Tn=()=>Ee({predecessorId:Le(()=>He()),priority:Me(pe()),receipt:Le(()=>Ut()),receiptId:Le(()=>ot()),receiverId:Le(()=>He())}),Rn=()=>Se([Ee({info:Ee({methodName:ue()}),name:Ae(["METHOD_NOT_FOUND"])}),Ee({info:Ee({errorMessage:ue()}),name:Ae(["PARSE_ERROR"])})]),wn=()=>Ee({signedTxBase64:Le(()=>Jn()),waitUntil:Me(Le(()=>_o()))}),xn=()=>we(ue(),fe()),An=()=>Ee({coldHeadHeight:Me(Se([Se([pe(),ge()]),ge()])),finalHeadHeight:Me(Se([Se([pe(),ge()]),ge()])),headHeight:Me(Se([Se([pe(),ge()]),ge()])),hotDbKind:Me(Se([Se([ue(),ge()]),ge()]))}),Bn=()=>Se([Te(Ee({blockId:Le(()=>Je())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["account_changes"])})),Te(Ee({blockId:Le(()=>Je())}),Ee({changesType:Ae(["single_access_key_changes"]),keys:ke(Le(()=>Ke()))})),Te(Ee({blockId:Le(()=>Je())}),Ee({changesType:Ae(["single_gas_key_changes"]),keys:ke(Le(()=>Ke()))})),Te(Ee({blockId:Le(()=>Je())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["all_access_key_changes"])})),Te(Ee({blockId:Le(()=>Je())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["all_gas_key_changes"])})),Te(Ee({blockId:Le(()=>Je())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["contract_code_changes"])})),Te(Ee({blockId:Le(()=>Je())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["data_changes"]),keyPrefixBase64:Le(()=>io())})),Te(Ee({finality:Le(()=>ft())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["account_changes"])})),Te(Ee({finality:Le(()=>ft())}),Ee({changesType:Ae(["single_access_key_changes"]),keys:ke(Le(()=>Ke()))})),Te(Ee({finality:Le(()=>ft())}),Ee({changesType:Ae(["single_gas_key_changes"]),keys:ke(Le(()=>Ke()))})),Te(Ee({finality:Le(()=>ft())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["all_access_key_changes"])})),Te(Ee({finality:Le(()=>ft())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["all_gas_key_changes"])})),Te(Ee({finality:Le(()=>ft())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["contract_code_changes"])})),Te(Ee({finality:Le(()=>ft())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["data_changes"]),keyPrefixBase64:Le(()=>io())})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["account_changes"])})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({changesType:Ae(["single_access_key_changes"]),keys:ke(Le(()=>Ke()))})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({changesType:Ae(["single_gas_key_changes"]),keys:ke(Le(()=>Ke()))})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["all_access_key_changes"])})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["all_gas_key_changes"])})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["contract_code_changes"])})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["data_changes"]),keyPrefixBase64:Le(()=>io())}))]),Cn=()=>Ee({blockHash:Le(()=>ot()),changes:ke(Le(()=>to()))}),Nn=()=>Se([Ee({blockId:Le(()=>Je())}),Ee({finality:Le(()=>ft())}),Ee({syncCheckpoint:Le(()=>uo())})]),Mn=()=>Ee({blockHash:Le(()=>ot()),changes:ke(Le(()=>no()))}),zn=()=>ge(),Ln=()=>Ee({chainId:ue(),detailedDebugStatus:Me(Se([Le(()=>dt()),ge()])),genesisHash:Le(()=>ot()),latestProtocolVersion:pe(),nodeKey:Me(Se([Le(()=>Ft()),ge()])),nodePublicKey:Le(()=>Ft()),protocolVersion:pe(),rpcAddr:Me(Se([Se([ue(),ge()]),ge()])),syncInfo:Le(()=>so()),uptimeSec:pe(),validatorAccountId:Me(Se([Le(()=>He()),ge()])),validatorPublicKey:Me(Se([Le(()=>Ft()),ge()])),validators:ke(Le(()=>vo())),version:Le(()=>Po())}),qn=()=>Se([Le(()=>Ee({receipts:ke(Le(()=>Wt())),receiptsOutcome:ke(Le(()=>ht())),status:Le(()=>_t()),transaction:Le(()=>Yn()),transactionOutcome:Le(()=>ht())})),Le(()=>Ee({receiptsOutcome:ke(Le(()=>ht())),status:Le(()=>_t()),transaction:Le(()=>Yn()),transactionOutcome:Le(()=>ht())}))]),jn=()=>Se([Ee({signedTxBase64:Le(()=>Jn())}),Ee({senderAccountId:Le(()=>He()),txHash:Le(()=>ot())})]),On=()=>Se([Ae(["latest"]),Ee({epochId:Le(()=>lt())}),Ee({blockId:Le(()=>Je())})]),Dn=()=>Ee({currentFishermen:ke(Le(()=>bo())),currentProposals:ke(Le(()=>bo())),currentValidators:ke(Le(()=>Ee({accountId:Le(()=>He()),isSlashed:me(),numExpectedBlocks:pe(),numExpectedChunks:Me(pe()),numExpectedChunksPerShard:Me(ke(pe())),numExpectedEndorsements:Me(pe()),numExpectedEndorsementsPerShard:Me(ke(pe())),numProducedBlocks:pe(),numProducedChunks:Me(pe()),numProducedChunksPerShard:Me(ke(pe())),numProducedEndorsements:Me(pe()),numProducedEndorsementsPerShard:Me(ke(pe())),publicKey:Le(()=>Ft()),shards:ke(Le(()=>Vn())),shardsEndorsed:Me(ke(Le(()=>Vn()))),stake:ue()}))),epochHeight:pe(),epochStartHeight:pe(),nextFishermen:ke(Le(()=>bo())),nextValidators:ke(Le(()=>Ee({accountId:Le(()=>He()),publicKey:Le(()=>Ft()),shards:ke(Le(()=>Vn())),stake:ue()}))),prevEpochKickout:ke(Le(()=>Eo()))}),Hn=()=>Ee({blockId:Me(Se([Le(()=>Je()),ge()]))}),Kn=()=>Ee({accountCreationConfig:Le(()=>Ee({minAllowedTopLevelAccountLength:pe(),registrarAccountId:Le(()=>He())})),congestionControlConfig:Le(()=>Ee({allowedShardOutgoingGas:pe(),maxCongestionIncomingGas:pe(),maxCongestionMemoryConsumption:pe(),maxCongestionMissedChunks:pe(),maxCongestionOutgoingGas:pe(),maxOutgoingGas:pe(),maxTxGas:pe(),minOutgoingGas:pe(),minTxGas:pe(),outgoingReceiptsBigSizeLimit:pe(),outgoingReceiptsUsualSizeLimit:pe(),rejectTxCongestionThreshold:pe()})),storageAmountPerByte:ue(),transactionCosts:Le(()=>$n()),wasmConfig:Le(()=>Io()),witnessConfig:Le(()=>wo())}),$n=()=>Ee({actionCreationConfig:Le(()=>$e()),actionReceiptCreationConfig:Le(()=>gt()),burntGasReward:ke(pe()),dataReceiptCreationConfig:Le(()=>Ee({baseCost:Le(()=>gt()),costPerByte:Le(()=>gt())})),pessimisticGasPriceInflationRatio:ke(pe()),storageUsageConfig:Le(()=>ro())}),Vn=()=>pe(),Xn=()=>Se([Ee({V0:Le(()=>Fn())}),Ee({V1:Le(()=>Gn())}),Ee({V2:Le(()=>Un())})]),Fn=()=>Ee({numShards:pe(),version:pe()}),Gn=()=>Ee({boundaryAccounts:ke(Le(()=>He())),shardsSplitMap:Me(Se([Se([ke(ke(Le(()=>Vn()))),ge()]),ge()])),toParentShardMap:Me(Se([Se([ke(Le(()=>Vn())),ge()]),ge()])),version:pe()}),Un=()=>Ee({boundaryAccounts:ke(Le(()=>He())),idToIndexMap:we(ue(),pe()),indexToIdMap:we(ue(),Le(()=>Vn())),shardIds:ke(Le(()=>Vn())),shardsParentMap:Me(Se([Se([we(ue(),Le(()=>Vn())),ge()]),ge()])),shardsSplitMap:Me(Se([Se([we(ue(),ke(Le(()=>Vn()))),ge()]),ge()])),version:pe()}),Zn=()=>ue(),Wn=()=>Ee({delegateAction:Le(()=>st()),signature:Le(()=>Zn())}),Jn=()=>ue(),Yn=()=>Ee({actions:ke(Le(()=>Xe())),hash:Le(()=>ot()),nonce:pe(),priorityFee:Me(pe()),publicKey:Le(()=>Ft()),receiverId:Le(()=>He()),signature:Le(()=>Zn()),signerId:Le(()=>He())}),Qn=()=>Ee({accountId:Le(()=>He()),isDoubleSign:me()}),eo=()=>Ee({publicKey:Le(()=>Ft()),stake:ue()}),to=()=>Se([Ee({accountId:Le(()=>He()),type:Ae(["account_touched"])}),Ee({accountId:Le(()=>He()),type:Ae(["access_key_touched"])}),Ee({accountId:Le(()=>He()),type:Ae(["data_touched"])}),Ee({accountId:Le(()=>He()),type:Ae(["contract_code_touched"])})]),no=()=>Te(Se([Ee({change:Ee({accountId:Le(()=>He()),amount:ue(),codeHash:Le(()=>ot()),globalContractAccountId:Me(Se([Le(()=>He()),ge()])),globalContractHash:Me(Se([Le(()=>ot()),ge()])),locked:ue(),storagePaidAt:Me(pe()),storageUsage:pe()}),type:Ae(["account_update"])}),Ee({change:Ee({accountId:Le(()=>He())}),type:Ae(["account_deletion"])}),Ee({change:Ee({accessKey:Le(()=>De()),accountId:Le(()=>He()),publicKey:Le(()=>Ft())}),type:Ae(["access_key_update"])}),Ee({change:Ee({accountId:Le(()=>He()),publicKey:Le(()=>Ft())}),type:Ae(["access_key_deletion"])}),Ee({change:Ee({accountId:Le(()=>He()),gasKey:Le(()=>Ee({balance:pe(),numNonces:pe(),permission:Le(()=>Oe())})),publicKey:Le(()=>Ft())}),type:Ae(["gas_key_update"])}),Ee({change:Ee({accountId:Le(()=>He()),index:pe(),nonce:pe(),publicKey:Le(()=>Ft())}),type:Ae(["gas_key_nonce_update"])}),Ee({change:Ee({accountId:Le(()=>He()),publicKey:Le(()=>Ft())}),type:Ae(["gas_key_deletion"])}),Ee({change:Ee({accountId:Le(()=>He()),keyBase64:Le(()=>io()),valueBase64:Le(()=>co())}),type:Ae(["data_update"])}),Ee({change:Ee({accountId:Le(()=>He()),keyBase64:Le(()=>io())}),type:Ae(["data_deletion"])}),Ee({change:Ee({accountId:Le(()=>He()),codeBase64:ue()}),type:Ae(["contract_code_update"])}),Ee({change:Ee({accountId:Le(()=>He())}),type:Ae(["contract_code_deletion"])})]),Ee({cause:Le(()=>Se([Ee({type:Ae(["not_writable_to_disk"])}),Ee({type:Ae(["initial_state"])}),Ee({txHash:Le(()=>ot()),type:Ae(["transaction_processing"])}),Ee({receiptHash:Le(()=>ot()),type:Ae(["action_receipt_processing_started"])}),Ee({receiptHash:Le(()=>ot()),type:Ae(["action_receipt_gas_reward"])}),Ee({receiptHash:Le(()=>ot()),type:Ae(["receipt_processing"])}),Ee({receiptHash:Le(()=>ot()),type:Ae(["postponed_receipt"])}),Ee({type:Ae(["updated_delayed_receipts"])}),Ee({type:Ae(["validator_accounts_update"])}),Ee({type:Ae(["migration"])}),Ee({type:Ae(["bandwidth_scheduler_state_update"])})]))})),oo=()=>Ee({concurrency:Me(Le(()=>lo())),dump:Me(Se([Le(()=>Ee({credentialsFile:Me(Se([Se([ue(),ge()]),ge()])),iterationDelay:Me(Se([Le(()=>ut()),ge()])),location:Le(()=>yt()),restartDumpForShards:Me(Se([Se([ke(Le(()=>Vn())),ge()]),ge()]))})),ge()])),sync:Me(Le(()=>po()))}),so=()=>Ee({earliestBlockHash:Me(Se([Le(()=>ot()),ge()])),earliestBlockHeight:Me(Se([Se([pe(),ge()]),ge()])),earliestBlockTime:Me(Se([Se([ue(),ge()]),ge()])),epochId:Me(Se([Le(()=>lt()),ge()])),epochStartHeight:Me(Se([Se([pe(),ge()]),ge()])),latestBlockHash:Le(()=>ot()),latestBlockHeight:pe(),latestBlockTime:ue(),latestStateRoot:Le(()=>ot()),syncing:me()}),ao=()=>Se([Ae(["StorageInternalError"]),Ee({MissingTrieValue:Le(()=>Ee({context:Le(()=>Ot()),hash:Le(()=>ot())}))}),Ae(["UnexpectedTrieValue"]),Ee({StorageInconsistentState:ue()}),Ee({FlatStorageBlockNotSupported:ue()}),Ee({MemTrieLoadingError:ue()})]),ro=()=>Ee({numBytesAccount:pe(),numExtraBytesRecord:pe()}),io=()=>ue(),co=()=>ue(),uo=()=>Ae(["genesis","earliest_available"]),lo=()=>Ee({apply:pe(),applyDuringCatchup:pe(),peerDownloads:pe(),perShard:pe()}),po=()=>Se([Ae(["Peers"]),Ee({ExternalStorage:Le(()=>Ee({externalStorageFallbackThreshold:Me(pe()),location:Le(()=>yt()),numConcurrentRequests:Me(pe()),numConcurrentRequestsDuringCatchup:Me(pe())}))})]),ho=()=>Ee({addr:ue(),peerId:Le(()=>Ft())}),mo=()=>Se([Ae(["NoShards"]),Ee({Shards:ke(Le(()=>Ee({shardId:pe(),version:pe()})))}),Ae(["AllShards"]),Ee({ShadowValidator:Le(()=>He())}),Ee({Schedule:ke(ke(Le(()=>Vn())))}),Ee({Accounts:ke(Le(()=>He()))})]),yo=()=>Ee({deposit:ue()}),go=()=>Se([Ee({ActionError:Le(()=>Ee({index:Me(Se([Se([pe(),ge()]),ge()])),kind:Le(()=>Ve())}))}),Ee({InvalidTxError:Le(()=>Se([Ee({InvalidAccessKeyError:Le(()=>wt())}),Ee({InvalidSignerId:Ee({signerId:ue()})}),Ee({SignerDoesNotExist:Ee({signerId:Le(()=>He())})}),Ee({InvalidNonce:Ee({akNonce:pe(),txNonce:pe()})}),Ee({NonceTooLarge:Ee({txNonce:pe(),upperBound:pe()})}),Ee({InvalidReceiverId:Ee({receiverId:ue()})}),Ae(["InvalidSignature"]),Ee({NotEnoughBalance:Ee({balance:ue(),cost:ue(),signerId:Le(()=>He())})}),Ee({LackBalanceForState:Ee({amount:ue(),signerId:Le(()=>He())})}),Ae(["CostOverflow"]),Ae(["InvalidChain"]),Ae(["Expired"]),Ee({ActionsValidation:Le(()=>Fe())}),Ee({TransactionSizeExceeded:Ee({limit:pe(),size:pe()})}),Ae(["InvalidTransactionVersion"]),Ee({StorageError:Le(()=>ao())}),Ee({ShardCongested:Ee({congestionLevel:pe(),shardId:pe()})}),Ee({ShardStuck:Ee({missedChunks:pe(),shardId:pe()})})]))})]),_o=()=>Se([Ae(["NONE"]),Ae(["INCLUDED"]),Ae(["EXECUTED_OPTIMISTIC"]),Ae(["INCLUDED_FINAL"]),Ae(["EXECUTED"]),Ae(["FINAL"])]),fo=()=>Ee({contractIdentifier:Le(()=>Tt())}),Io=()=>Ee({discardCustomSections:me(),ethImplicitAccounts:me(),extCosts:Le(()=>Ee({altBn128G1MultiexpBase:pe(),altBn128G1MultiexpElement:pe(),altBn128G1SumBase:pe(),altBn128G1SumElement:pe(),altBn128PairingCheckBase:pe(),altBn128PairingCheckElement:pe(),base:pe(),bls12381G1MultiexpBase:pe(),bls12381G1MultiexpElement:pe(),bls12381G2MultiexpBase:pe(),bls12381G2MultiexpElement:pe(),bls12381MapFp2ToG2Base:pe(),bls12381MapFp2ToG2Element:pe(),bls12381MapFpToG1Base:pe(),bls12381MapFpToG1Element:pe(),bls12381P1DecompressBase:pe(),bls12381P1DecompressElement:pe(),bls12381P1SumBase:pe(),bls12381P1SumElement:pe(),bls12381P2DecompressBase:pe(),bls12381P2DecompressElement:pe(),bls12381P2SumBase:pe(),bls12381P2SumElement:pe(),bls12381PairingBase:pe(),bls12381PairingElement:pe(),contractCompileBase:pe(),contractCompileBytes:pe(),contractLoadingBase:pe(),contractLoadingBytes:pe(),ecrecoverBase:pe(),ed25519VerifyBase:pe(),ed25519VerifyByte:pe(),keccak256Base:pe(),keccak256Byte:pe(),keccak512Base:pe(),keccak512Byte:pe(),logBase:pe(),logByte:pe(),promiseAndBase:pe(),promiseAndPerPromise:pe(),promiseReturn:pe(),readCachedTrieNode:pe(),readMemoryBase:pe(),readMemoryByte:pe(),readRegisterBase:pe(),readRegisterByte:pe(),ripemd160Base:pe(),ripemd160Block:pe(),sha256Base:pe(),sha256Byte:pe(),storageHasKeyBase:pe(),storageHasKeyByte:pe(),storageIterCreateFromByte:pe(),storageIterCreatePrefixBase:pe(),storageIterCreatePrefixByte:pe(),storageIterCreateRangeBase:pe(),storageIterCreateToByte:pe(),storageIterNextBase:pe(),storageIterNextKeyByte:pe(),storageIterNextValueByte:pe(),storageLargeReadOverheadBase:pe(),storageLargeReadOverheadByte:pe(),storageReadBase:pe(),storageReadKeyByte:pe(),storageReadValueByte:pe(),storageRemoveBase:pe(),storageRemoveKeyByte:pe(),storageRemoveRetValueByte:pe(),storageWriteBase:pe(),storageWriteEvictedByte:pe(),storageWriteKeyByte:pe(),storageWriteValueByte:pe(),touchingTrieNode:pe(),utf16DecodingBase:pe(),utf16DecodingByte:pe(),utf8DecodingBase:pe(),utf8DecodingByte:pe(),validatorStakeBase:pe(),validatorTotalStakeBase:pe(),writeMemoryBase:pe(),writeMemoryByte:pe(),writeRegisterBase:pe(),writeRegisterByte:pe(),yieldCreateBase:pe(),yieldCreateByte:pe(),yieldResumeBase:pe(),yieldResumeByte:pe()})),fixContractLoadingCost:me(),globalContractHostFns:me(),growMemCost:pe(),implicitAccountCreation:me(),limitConfig:Le(()=>Lt()),reftypesBulkMemory:me(),regularOpCost:pe(),saturatingFloatToInt:me(),storageGetMode:Le(()=>Ae(["FlatStorage","Trie"])),vmKind:Le(()=>ko())}),ko=()=>Se([Ae(["Wasmer0"]),Ae(["Wasmtime"]),Ae(["Wasmer2"]),Ae(["NearVm"]),Ae(["NearVm2"])]),vo=()=>Ee({accountId:Le(()=>He())}),Eo=()=>Ee({accountId:Le(()=>He()),reason:Le(()=>Se([Ae(["_UnusedSlashed"]),Ee({NotEnoughBlocks:Ee({expected:pe(),produced:pe()})}),Ee({NotEnoughChunks:Ee({expected:pe(),produced:pe()})}),Ae(["Unstaked"]),Ee({NotEnoughStake:Ee({stakeU128:ue(),thresholdU128:ue()})}),Ae(["DidNotGetASeat"]),Ee({NotEnoughChunkEndorsements:Ee({expected:pe(),produced:pe()})}),Ee({ProtocolVersionTooOld:Ee({networkVersion:pe(),version:pe()})})]))}),bo=()=>Le(()=>So()),So=()=>Ee({accountId:Le(()=>He()),publicKey:Le(()=>Ft()),stake:ue()}),Po=()=>Ee({build:ue(),commit:ue(),rustcVersion:Me(ue()),version:ue()}),To=()=>Ee({proof:Me(ke(ue())),values:ke(Le(()=>Ee({key:Le(()=>io()),value:Le(()=>co())})))}),Ro=()=>Se([Ae(["Unreachable"]),Ae(["IncorrectCallIndirectSignature"]),Ae(["MemoryOutOfBounds"]),Ae(["CallIndirectOOB"]),Ae(["IllegalArithmetic"]),Ae(["MisalignedAtomicAccess"]),Ae(["IndirectCallToNull"]),Ae(["StackOverflow"]),Ae(["GenericTrap"])]),wo=()=>Ee({combinedTransactionsSizeLimit:pe(),mainStorageProofSizeSoftLimit:pe(),newTransactionsValidationStateSizeSoftLimit:pe()}),xo={EXPERIMENTAL_changes:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["EXPERIMENTAL_changes"]),params:Le(()=>Bn())})),responseSchema:()=>Le(()=>Nt())},EXPERIMENTAL_changes_in_block:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["EXPERIMENTAL_changes_in_block"]),params:Le(()=>Nn())})),responseSchema:()=>Le(()=>Ct())},EXPERIMENTAL_congestion_level:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["EXPERIMENTAL_congestion_level"]),params:Le(()=>on())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>sn())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},EXPERIMENTAL_genesis_config:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["EXPERIMENTAL_genesis_config"]),params:Le(()=>St())})),responseSchema:()=>Le(()=>At())},EXPERIMENTAL_light_client_block_proof:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["EXPERIMENTAL_light_client_block_proof"]),params:Le(()=>ln())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>pn())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},EXPERIMENTAL_light_client_proof:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["EXPERIMENTAL_light_client_proof"]),params:Le(()=>hn())})),responseSchema:()=>Le(()=>Bt())},EXPERIMENTAL_maintenance_windows:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["EXPERIMENTAL_maintenance_windows"]),params:Le(()=>_n())})),responseSchema:()=>Le(()=>xt())},EXPERIMENTAL_protocol_config:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["EXPERIMENTAL_protocol_config"]),params:Le(()=>vn())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>En())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},EXPERIMENTAL_receipt:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["EXPERIMENTAL_receipt"]),params:Le(()=>Pn())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>Tn())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},EXPERIMENTAL_split_storage_info:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["EXPERIMENTAL_split_storage_info"]),params:Le(()=>xn())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>An())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},EXPERIMENTAL_tx_status:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["EXPERIMENTAL_tx_status"]),params:Le(()=>jn())})),responseSchema:()=>Le(()=>Mt())},EXPERIMENTAL_validators_ordered:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["EXPERIMENTAL_validators_ordered"]),params:Le(()=>Hn())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:ke(Le(()=>bo()))}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},block:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["block"]),params:Le(()=>Jt())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>Yt())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},block_effects:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["block_effects"]),params:Le(()=>Nn())})),responseSchema:()=>Le(()=>Ct())},broadcast_tx_async:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["broadcast_tx_async"]),params:Le(()=>wn())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>ot())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},broadcast_tx_commit:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["broadcast_tx_commit"]),params:Le(()=>wn())})),responseSchema:()=>Le(()=>Mt())},changes:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["changes"]),params:Le(()=>Bn())})),responseSchema:()=>Le(()=>Nt())},chunk:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["chunk"]),params:Le(()=>Qt())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>en())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},client_config:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["client_config"]),params:Le(()=>tn())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>nn())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},gas_price:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["gas_price"]),params:Le(()=>rn())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>cn())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},genesis_config:{requestSchema:St,responseSchema:()=>Le(()=>At())},health:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["health"]),params:Le(()=>dn())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Se([Le(()=>un()),ge()])}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},light_client_proof:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["light_client_proof"]),params:Le(()=>hn())})),responseSchema:()=>Le(()=>Bt())},maintenance_windows:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["maintenance_windows"]),params:Le(()=>_n())})),responseSchema:()=>Le(()=>xt())},network_info:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["network_info"]),params:Le(()=>fn())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>In())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},next_light_client_block:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["next_light_client_block"]),params:Le(()=>yn())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>gn())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},query:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["query"]),params:Le(()=>bn())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>Sn())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},send_tx:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["send_tx"]),params:Le(()=>wn())})),responseSchema:()=>Le(()=>Mt())},status:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["status"]),params:Le(()=>zn())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>Ln())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},tx:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["tx"]),params:Le(()=>jn())})),responseSchema:()=>Le(()=>Mt())},validators:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["validators"]),params:Le(()=>On())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>Dn())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))}},Ao=()=>Ee({jsonrpc:Ce("2.0"),id:ue(),method:ue(),params:Me(fe())}),Bo=()=>Ee({jsonrpc:Ce("2.0"),id:ue(),result:Me(fe()),error:Me(Ee({code:pe(),message:ue(),data:Me(fe())}))}),Co={"/EXPERIMENTAL_changes":"EXPERIMENTAL_changes","/EXPERIMENTAL_changes_in_block":"EXPERIMENTAL_changes_in_block","/EXPERIMENTAL_congestion_level":"EXPERIMENTAL_congestion_level","/EXPERIMENTAL_genesis_config":"EXPERIMENTAL_genesis_config","/EXPERIMENTAL_light_client_block_proof":"EXPERIMENTAL_light_client_block_proof","/EXPERIMENTAL_light_client_proof":"EXPERIMENTAL_light_client_proof","/EXPERIMENTAL_maintenance_windows":"EXPERIMENTAL_maintenance_windows","/EXPERIMENTAL_protocol_config":"EXPERIMENTAL_protocol_config","/EXPERIMENTAL_receipt":"EXPERIMENTAL_receipt","/EXPERIMENTAL_split_storage_info":"EXPERIMENTAL_split_storage_info","/EXPERIMENTAL_tx_status":"EXPERIMENTAL_tx_status","/EXPERIMENTAL_validators_ordered":"EXPERIMENTAL_validators_ordered","/block":"block","/block_effects":"block_effects","/broadcast_tx_async":"broadcast_tx_async","/broadcast_tx_commit":"broadcast_tx_commit","/changes":"changes","/chunk":"chunk","/client_config":"client_config","/gas_price":"gas_price","/genesis_config":"genesis_config","/health":"health","/light_client_proof":"light_client_proof","/maintenance_windows":"maintenance_windows","/network_info":"network_info","/next_light_client_block":"next_light_client_block","/query":"query","/send_tx":"send_tx","/status":"status","/tx":"tx","/validators":"validators"};Object.entries(Co).forEach(([e,t])=>{});var No=Object.values(Co);async function Mo(e,t){return e.makeRequest("EXPERIMENTAL_changes",t)}async function zo(e,t){return e.makeRequest("EXPERIMENTAL_changes_in_block",t)}async function Lo(e,t){return e.makeRequest("EXPERIMENTAL_congestion_level",t)}async function qo(e,t){return e.makeRequest("EXPERIMENTAL_genesis_config",t)}async function jo(e,t){return e.makeRequest("EXPERIMENTAL_light_client_block_proof",t)}async function Oo(e,t){return e.makeRequest("EXPERIMENTAL_light_client_proof",t)}async function Do(e,t){return e.makeRequest("EXPERIMENTAL_maintenance_windows",t)}async function Ho(e,t){return e.makeRequest("EXPERIMENTAL_protocol_config",t)}async function Ko(e,t){return e.makeRequest("EXPERIMENTAL_receipt",t)}async function $o(e,t){return e.makeRequest("EXPERIMENTAL_split_storage_info",t)}async function Vo(e,t){return e.makeRequest("EXPERIMENTAL_tx_status",t)}async function Xo(e,t){return e.makeRequest("EXPERIMENTAL_validators_ordered",t)}async function Fo(e,t){return e.makeRequest("block",t)}async function Go(e,t){return e.makeRequest("block_effects",t)}async function Uo(e,t){return e.makeRequest("broadcast_tx_async",t)}async function Zo(e,t){return e.makeRequest("broadcast_tx_commit",t)}async function Wo(e,t){return e.makeRequest("changes",t)}async function Jo(e,t){return e.makeRequest("chunk",t)}async function Yo(e,t){return e.makeRequest("client_config",t)}async function Qo(e,t){return e.makeRequest("gas_price",t)}async function es(e,t){return e.makeRequest("genesis_config",t)}async function ts(e,t){return e.makeRequest("health",t)}async function ns(e,t){return e.makeRequest("light_client_proof",t)}async function os(e,t){return e.makeRequest("maintenance_windows",t)}async function ss(e,t){return e.makeRequest("network_info",t)}async function as(e,t){return e.makeRequest("next_light_client_block",t)}async function rs(e,t){return e.makeRequest("query",t)}async function is(e,t){return e.makeRequest("send_tx",t)}async function cs(e,t){return e.makeRequest("status",t)}async function ds(e,t){return e.makeRequest("tx",t)}async function us(e,t){return e.makeRequest("validators",t)}async function ls(e,t){return rs(e,t.blockId?{requestType:"view_account",accountId:t.accountId,blockId:t.blockId}:{requestType:"view_account",accountId:t.accountId,finality:t.finality||"final"})}async function ps(e,t){const n={requestType:"call_function",accountId:t.accountId,methodName:t.methodName,argsBase64:t.argsBase64??""};return rs(e,t.blockId?{...n,blockId:t.blockId}:{...n,finality:t.finality||"final"})}async function hs(e,t){return rs(e,t.blockId?{requestType:"view_access_key",accountId:t.accountId,publicKey:t.publicKey,blockId:t.blockId}:{requestType:"view_access_key",accountId:t.accountId,publicKey:t.publicKey,finality:t.finality||"final"})}function ms(){const e=Ao(),t=Bo();return{validateRequest:t=>{try{e.parse(t)}catch(e){throw new r(`Invalid request format: ${e instanceof Error?e.message:"Unknown error"}`,e)}},validateResponse:e=>{try{t.parse(e)}catch(e){throw new a(`Invalid response format: ${e instanceof Error?e.message:"Unknown error"}`)}},validateMethodRequest:(t,n)=>{try{e.parse(n);const o=xo[t];if(o?.requestSchema){o.requestSchema().parse(n)}}catch(e){throw new r(`Invalid ${t} request: ${e instanceof Error?e.message:"Unknown error"}`,e)}},validateMethodResponse:(e,n)=>{try{t.parse(n);const o=xo[e];if(o?.responseSchema){o.responseSchema().parse(n)}}catch(t){throw new a(`Invalid ${e} response: ${t instanceof Error?t.message:"Unknown error"}`)}}}}export{a as JsonRpcClientError,r as JsonRpcNetworkError,Ao as JsonRpcRequestSchema,Bo as JsonRpcResponseSchema,i as NearRpcClient,d as NearRpcError,No as RPC_METHODS,Fo as block,Go as blockEffects,Uo as broadcastTxAsync,Zo as broadcastTxCommit,Wo as changes,Jo as chunk,Yo as clientConfig,i as default,c as defaultClient,ms as enableValidation,Mo as experimentalChanges,zo as experimentalChangesInBlock,Lo as experimentalCongestionLevel,qo as experimentalGenesisConfig,jo as experimentalLightClientBlockProof,Oo as experimentalLightClientProof,Do as experimentalMaintenanceWindows,Ho as experimentalProtocolConfig,Ko as experimentalReceipt,$o as experimentalSplitStorageInfo,Vo as experimentalTxStatus,Xo as experimentalValidatorsOrdered,Qo as gasPrice,es as genesisConfig,ts as health,ns as lightClientProof,os as maintenanceWindows,ss as networkInfo,as as nextLightClientBlock,rs as query,is as sendTx,cs as status,ds as tx,us as validators,hs as viewAccessKey,ls as viewAccount,ps as viewFunction};
|
1
|
+
function e(e){return e.replace(/[A-Z]/g,e=>`_${e.toLowerCase()}`)}function t(e){return e.replace(/_([a-z])/g,(e,t)=>t.toUpperCase())}function n(t){if(null===t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(n);const o={};for(const[s,a]of Object.entries(t)){o[e(s)]=n(a)}return o}function o(e){if(null===e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(o);const n={};for(const[s,a]of Object.entries(e)){n[t(s)]=o(a)}return n}const s="dontcare";class a extends Error{code;data;constructor(e,t,n){super(e),this.code=t,this.data=n,this.name="JsonRpcClientError"}}class r extends Error{originalError;responseBody;constructor(e,t,n){super(e),this.originalError=t,this.responseBody=n,this.name="JsonRpcNetworkError"}}class i{endpoint;headers;timeout;retries;validation;constructor(e){"string"==typeof e?(this.endpoint=e,this.headers={},this.timeout=3e4,this.retries=3):(this.endpoint=e.endpoint,this.headers=e.headers||{},this.timeout=e.timeout||3e4,this.retries=e.retries||3,e.validation&&(this.validation=e.validation))}async makeRequest(e,t){const i={jsonrpc:"2.0",id:s,method:e,params:void 0!==t?t:null};this.validation&&("validateMethodRequest"in this.validation?this.validation.validateMethodRequest(e,i):this.validation.validateRequest(i));const c=void 0!==t?n(t):null,d={jsonrpc:"2.0",id:s,method:e,params:c};let u=null;for(let t=0;t<=this.retries;t++)try{const t=new AbortController,n=setTimeout(()=>t.abort(),this.timeout),s=await fetch(this.endpoint,{method:"POST",headers:{"Content-Type":"application/json",...this.headers},body:JSON.stringify(d),signal:t.signal});let i;clearTimeout(n);try{i=await s.json()}catch(e){if(!s.ok)throw new r(`HTTP error! status: ${s.status} - Failed to parse JSON response`,e);throw new r("Failed to parse JSON response",e)}if(i.error)throw new a(i.error.message,i.error.code,i.error.data);if(!s.ok)throw new r(`HTTP error! status: ${s.status}`,void 0,i);this.validation&&this.validation.validateResponse(i);const c=i.result?o(i.result):i.result;if(c&&"object"==typeof c&&"error"in c){const e=c.error;throw new a(`RPC Error: ${e}`,-32e3,c)}if(this.validation&&"validateMethodResponse"in this.validation){const t={...i,result:c};this.validation.validateMethodResponse(e,t)}return c}catch(e){if(u=e,e instanceof a)throw e;if(t===this.retries)break;await new Promise(e=>setTimeout(e,1e3*Math.pow(2,t)))}throw new r(u?.message||"Request failed after all retries",u||void 0)}withConfig(e){return new i({endpoint:e.endpoint??this.endpoint,headers:e.headers??this.headers,timeout:e.timeout??this.timeout,retries:e.retries??this.retries,...void 0!==e.validation?{validation:e.validation}:void 0!==this.validation?{validation:this.validation}:{}})}}const c=new i({endpoint:"https://rpc.mainnet.near.org"});class d extends Error{code;data;constructor(e,t,n){super(t),this.code=e,this.data=n,this.name="NearRpcError"}}function u(e,t,n){function o(n,o){var s;Object.defineProperty(n,"_zod",{value:n._zod??{},enumerable:!1}),(s=n._zod).traits??(s.traits=new Set),n._zod.traits.add(e),t(n,o);for(const e in r.prototype)e in n||Object.defineProperty(n,e,{value:r.prototype[e].bind(n)});n._zod.constr=r,n._zod.def=o}const s=n?.Parent??Object;class a extends s{}function r(e){var t;const s=n?.Parent?new a:this;o(s,e),(t=s._zod).deferred??(t.deferred=[]);for(const e of s._zod.deferred)e();return s}return Object.defineProperty(a,"name",{value:e}),Object.defineProperty(r,"init",{value:o}),Object.defineProperty(r,Symbol.hasInstance,{value:t=>!!(n?.Parent&&t instanceof n.Parent)||t?._zod?.traits?.has(e)}),Object.defineProperty(r,"name",{value:e}),r}class l extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const p={};function h(e){return p}function m(e,t){return"bigint"==typeof t?t.toString():t}function y(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function g(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function _(e,t,n){Object.defineProperty(e,t,{get(){{const o=n();return e[t]=o,o}},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function f(e){return JSON.stringify(e)}const I=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function k(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}const v=y(()=>{if("undefined"!=typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(e){return!1}});function E(e){if(!1===k(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!1!==k(n)&&!1!==Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")}const b=new Set(["string","number","symbol"]);function S(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function P(e,t=0){for(let n=t;n<e.issues.length;n++)if(!0!==e.issues[n]?.continue)return!0;return!1}function T(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function R(e){return"string"==typeof e?e:e?.message}function w(e,t,n){const o={...e,path:e.path??[]};if(!e.message){const s=R(e.inst?._zod.def?.error?.(e))??R(t?.error?.(e))??R(n.customError?.(e))??R(n.localeError?.(e))??"Invalid input";o.message=s}return delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}const x=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get:()=>JSON.stringify(t,m,2),enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},A=u("$ZodError",x),B=u("$ZodError",x,{Parent:Error}),C=(e=>(t,n,o,s)=>{const a=o?Object.assign(o,{async:!1}):{async:!1},r=t._zod.run({value:n,issues:[]},a);if(r instanceof Promise)throw new l;if(r.issues.length){const t=new(s?.Err??e)(r.issues.map(e=>w(e,a,h())));throw I(t,s?.callee),t}return r.value})(B),N=(e=>async(t,n,o,s)=>{const a=o?Object.assign(o,{async:!0}):{async:!0};let r=t._zod.run({value:n,issues:[]},a);if(r instanceof Promise&&(r=await r),r.issues.length){const t=new(s?.Err??e)(r.issues.map(e=>w(e,a,h())));throw I(t,s?.callee),t}return r.value})(B),M=(e=>(t,n,o)=>{const s=o?{...o,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},s);if(a instanceof Promise)throw new l;return a.issues.length?{success:!1,error:new(e??A)(a.issues.map(e=>w(e,s,h())))}:{success:!0,data:a.value}})(B),z=(e=>async(t,n,o)=>{const s=o?Object.assign(o,{async:!0}):{async:!0};let a=t._zod.run({value:n,issues:[]},s);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>w(e,s,h())))}:{success:!0,data:a.value}})(B),L=/^-?\d+(?:\.\d+)?/i,q=/true|false/i,j=/null/i;class O{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e)return e(this,{execution:"sync"}),void e(this,{execution:"async"});const t=e.split("\n").filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),o=t.map(e=>e.slice(n)).map(e=>" ".repeat(2*this.indent)+e);for(const e of o)this.content.push(e)}compile(){const e=Function,t=this?.args;return new e(...t,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}const D={major:4,minor:0,patch:5},H=u("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=D;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const t of o)for(const n of t._zod.onattach)n(e);if(0===o.length)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const t=(e,t,n)=>{let o,s=P(e);for(const a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(s)continue;const t=e.issues.length,r=a._zod.check(e);if(r instanceof Promise&&!1===n?.async)throw new l;if(o||r instanceof Promise)o=(o??Promise.resolve()).then(async()=>{await r;e.issues.length!==t&&(s||(s=P(e,t)))});else{if(e.issues.length===t)continue;s||(s=P(e,t))}}return o?o.then(()=>e):e};e._zod.run=(n,s)=>{const a=e._zod.parse(n,s);if(a instanceof Promise){if(!1===s.async)throw new l;return a.then(e=>t(e,o,s))}return t(a,o,s)}}e["~standard"]={validate:t=>{try{const n=M(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch(n){return z(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}}),K=u("$ZodString",(e,t)=>{var n;H.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??(n=e._zod.bag,new RegExp(`^${n?`[\\s\\S]{${n?.minimum??0},${n?.maximum??""}}`:"[\\s\\S]*"}$`)),e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=String(n.value)}catch(o){}return"string"==typeof n.value||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),$=u("$ZodNumber",(e,t)=>{H.init(e,t),e._zod.pattern=e._zod.bag.pattern??L,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=Number(n.value)}catch(e){}const s=n.value;if("number"==typeof s&&!Number.isNaN(s)&&Number.isFinite(s))return n;const a="number"==typeof s?Number.isNaN(s)?"NaN":Number.isFinite(s)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:s,inst:e,...a?{received:a}:{}}),n}}),V=u("$ZodBoolean",(e,t)=>{H.init(e,t),e._zod.pattern=q,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=Boolean(n.value)}catch(e){}const s=n.value;return"boolean"==typeof s||n.issues.push({expected:"boolean",code:"invalid_type",input:s,inst:e}),n}}),X=u("$ZodNull",(e,t)=>{H.init(e,t),e._zod.pattern=j,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{const o=t.value;return null===o||t.issues.push({expected:"null",code:"invalid_type",input:o,inst:e}),t}}),F=u("$ZodUnknown",(e,t)=>{H.init(e,t),e._zod.parse=e=>e});function G(e,t,n){e.issues.length&&t.issues.push(...T(n,e.issues)),t.value[n]=e.value}const U=u("$ZodArray",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>{const s=n.value;if(!Array.isArray(s))return n.issues.push({expected:"array",code:"invalid_type",input:s,inst:e}),n;n.value=Array(s.length);const a=[];for(let e=0;e<s.length;e++){const r=s[e],i=t.element._zod.run({value:r,issues:[]},o);i instanceof Promise?a.push(i.then(t=>G(t,n,e))):G(i,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function Z(e,t,n){e.issues.length&&t.issues.push(...T(n,e.issues)),t.value[n]=e.value}function W(e,t,n,o){e.issues.length?void 0===o[n]?t.value[n]=n in o?void 0:e.value:t.issues.push(...T(n,e.issues)):void 0===e.value?n in o&&(t.value[n]=void 0):t.value[n]=e.value}const J=u("$ZodObject",(e,t)=>{H.init(e,t);const n=y(()=>{const e=Object.keys(t.shape);for(const n of e)if(!(t.shape[n]instanceof H))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);const n=(o=t.shape,Object.keys(o).filter(e=>"optional"===o[e]._zod.optin&&"optional"===o[e]._zod.optout));var o;return{shape:t.shape,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(n)}});_(e._zod,"propValues",()=>{const e=t.shape,n={};for(const t in e){const o=e[t]._zod;if(o.values){n[t]??(n[t]=new Set);for(const e of o.values)n[t].add(e)}}return n});let o;const s=k,a=!p.jitless,r=a&&v.value,i=t.catchall;let c;e._zod.parse=(d,u)=>{c??(c=n.value);const l=d.value;if(!s(l))return d.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),d;const p=[];if(a&&r&&!1===u?.async&&!0!==u.jitless)o||(o=(e=>{const t=new O(["shape","payload","ctx"]),o=n.value,s=e=>{const t=f(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");const a=Object.create(null);let r=0;for(const e of o.keys)a[e]="key_"+r++;t.write("const newResult = {}");for(const e of o.keys)if(o.optionalKeys.has(e)){const n=a[e];t.write(`const ${n} = ${s(e)};`);const o=f(e);t.write(`\n if (${n}.issues.length) {\n if (input[${o}] === undefined) {\n if (${o} in input) {\n newResult[${o}] = undefined;\n }\n } else {\n payload.issues = payload.issues.concat(\n ${n}.issues.map((iss) => ({\n ...iss,\n path: iss.path ? [${o}, ...iss.path] : [${o}],\n }))\n );\n }\n } else if (${n}.value === undefined) {\n if (${o} in input) newResult[${o}] = undefined;\n } else {\n newResult[${o}] = ${n}.value;\n }\n `)}else{const n=a[e];t.write(`const ${n} = ${s(e)};`),t.write(`\n if (${n}.issues.length) payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${f(e)}, ...iss.path] : [${f(e)}]\n })));`),t.write(`newResult[${f(e)}] = ${n}.value`)}t.write("payload.value = newResult;"),t.write("return payload;");const i=t.compile();return(t,n)=>i(e,t,n)})(t.shape)),d=o(d,u);else{d.value={};const e=c.shape;for(const t of c.keys){const n=e[t],o=n._zod.run({value:l[t],issues:[]},u),s="optional"===n._zod.optin&&"optional"===n._zod.optout;o instanceof Promise?p.push(o.then(e=>s?W(e,d,t,l):Z(e,d,t))):s?W(o,d,t,l):Z(o,d,t)}}if(!i)return p.length?Promise.all(p).then(()=>d):d;const h=[],m=c.keySet,y=i._zod,g=y.def.type;for(const e of Object.keys(l)){if(m.has(e))continue;if("never"===g){h.push(e);continue}const t=y.run({value:l[e],issues:[]},u);t instanceof Promise?p.push(t.then(t=>Z(t,d,e))):Z(t,d,e)}return h.length&&d.issues.push({code:"unrecognized_keys",keys:h,input:l,inst:e}),p.length?Promise.all(p).then(()=>d):d}});function Y(e,t,n,o){for(const n of e)if(0===n.issues.length)return t.value=n.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>w(e,o,h())))}),t}const Q=u("$ZodUnion",(e,t)=>{H.init(e,t),_(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),_(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),_(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),_(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){const e=t.options.map(e=>e._zod.pattern);return new RegExp(`^(${e.map(e=>g(e.source)).join("|")})$`)}}),e._zod.parse=(n,o)=>{let s=!1;const a=[];for(const e of t.options){const t=e._zod.run({value:n.value,issues:[]},o);if(t instanceof Promise)a.push(t),s=!0;else{if(0===t.issues.length)return t;a.push(t)}}return s?Promise.all(a).then(t=>Y(t,n,e,o)):Y(a,n,e,o)}}),ee=u("$ZodIntersection",(e,t)=>{H.init(e,t),e._zod.parse=(e,n)=>{const o=e.value,s=t.left._zod.run({value:o,issues:[]},n),a=t.right._zod.run({value:o,issues:[]},n);return s instanceof Promise||a instanceof Promise?Promise.all([s,a]).then(([t,n])=>ne(e,t,n)):ne(e,s,a)}});function te(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e===+t)return{valid:!0,data:e};if(E(e)&&E(t)){const n=Object.keys(t),o=Object.keys(e).filter(e=>-1!==n.indexOf(e)),s={...e,...t};for(const n of o){const o=te(e[n],t[n]);if(!o.valid)return{valid:!1,mergeErrorPath:[n,...o.mergeErrorPath]};s[n]=o.data}return{valid:!0,data:s}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let o=0;o<e.length;o++){const s=te(e[o],t[o]);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function ne(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),P(e))return e;const o=te(t.value,n.value);if(!o.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}const oe=u("$ZodRecord",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>{const s=n.value;if(!E(s))return n.issues.push({expected:"record",code:"invalid_type",input:s,inst:e}),n;const a=[];if(t.keyType._zod.values){const r=t.keyType._zod.values;n.value={};for(const e of r)if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){const r=t.valueType._zod.run({value:s[e],issues:[]},o);r instanceof Promise?a.push(r.then(t=>{t.issues.length&&n.issues.push(...T(e,t.issues)),n.value[e]=t.value})):(r.issues.length&&n.issues.push(...T(e,r.issues)),n.value[e]=r.value)}let i;for(const e in s)r.has(e)||(i=i??[],i.push(e));i&&i.length>0&&n.issues.push({code:"unrecognized_keys",input:s,inst:e,keys:i})}else{n.value={};for(const r of Reflect.ownKeys(s)){if("__proto__"===r)continue;const i=t.keyType._zod.run({value:r,issues:[]},o);if(i instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(i.issues.length){n.issues.push({origin:"record",code:"invalid_key",issues:i.issues.map(e=>w(e,o,h())),input:r,path:[r],inst:e}),n.value[i.value]=i.value;continue}const c=t.valueType._zod.run({value:s[r],issues:[]},o);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...T(r,e.issues)),n.value[i.value]=e.value})):(c.issues.length&&n.issues.push(...T(r,c.issues)),n.value[i.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),se=u("$ZodEnum",(e,t)=>{H.init(e,t);const n=function(e){const t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,n])=>-1===t.indexOf(+e)).map(([e,t])=>t)}(t.entries);e._zod.values=new Set(n),e._zod.pattern=new RegExp(`^(${n.filter(e=>b.has(typeof e)).map(e=>"string"==typeof e?S(e):e.toString()).join("|")})$`),e._zod.parse=(t,o)=>{const s=t.value;return e._zod.values.has(s)||t.issues.push({code:"invalid_value",values:n,input:s,inst:e}),t}}),ae=u("$ZodLiteral",(e,t)=>{H.init(e,t),e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(e=>"string"==typeof e?S(e):e?e.toString():String(e)).join("|")})$`),e._zod.parse=(n,o)=>{const s=n.value;return e._zod.values.has(s)||n.issues.push({code:"invalid_value",values:t.values,input:s,inst:e}),n}}),re=u("$ZodOptional",(e,t)=>{H.init(e,t),e._zod.optin="optional",e._zod.optout="optional",_(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),_(e._zod,"pattern",()=>{const e=t.innerType._zod.pattern;return e?new RegExp(`^(${g(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>"optional"===t.innerType._zod.optin?t.innerType._zod.run(e,n):void 0===e.value?e:t.innerType._zod.run(e,n)}),ie=u("$ZodLazy",(e,t)=>{H.init(e,t),_(e._zod,"innerType",()=>t.getter()),_(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),_(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),_(e._zod,"optin",()=>e._zod.innerType._zod.optin),_(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)});const ce=u("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");H.init(e,t),e.def=t,e.parse=(t,n)=>C(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>M(e,t,n),e.parseAsync=async(t,n)=>N(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>z(e,t,n),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),e.clone=(t,n)=>function(e,t,n){const o=new e._zod.constr(t??e._zod.def);return t&&!n?.parent||(o._zod.parent=e),o}(e,t,n),e.brand=()=>e,e.register=(t,n)=>(t.add(e,n),e)}),de=u("ZodMiniString",(e,t)=>{K.init(e,t),ce.init(e,t)});function ue(e){return new de({type:"string"})}const le=u("ZodMiniNumber",(e,t)=>{$.init(e,t),ce.init(e,t)});function pe(e){return new le({type:"number",checks:[]})}const he=u("ZodMiniBoolean",(e,t)=>{V.init(e,t),ce.init(e,t)});function me(e){return new he({type:"boolean"})}const ye=u("ZodMiniNull",(e,t)=>{X.init(e,t),ce.init(e,t)});function ge(e){return new ye({type:"null"})}const _e=u("ZodMiniUnknown",(e,t)=>{F.init(e,t),ce.init(e,t)});function fe(){return new _e({type:"unknown"})}const Ie=u("ZodMiniArray",(e,t)=>{U.init(e,t),ce.init(e,t)});function ke(e,t){return new Ie({type:"array",element:e})}const ve=u("ZodMiniObject",(e,t)=>{J.init(e,t),ce.init(e,t),_(e,"shape",()=>t.shape)});function Ee(e,t){return new ve({type:"object",get shape(){var t,n,o;return t=this,n="shape",o={...e},Object.defineProperty(t,n,{value:o,writable:!0,enumerable:!0,configurable:!0}),this.shape}})}const be=u("ZodMiniUnion",(e,t)=>{Q.init(e,t),ce.init(e,t)});function Se(e,t){return new be({type:"union",options:e})}const Pe=u("ZodMiniIntersection",(e,t)=>{ee.init(e,t),ce.init(e,t)});function Te(e,t){return new Pe({type:"intersection",left:e,right:t})}const Re=u("ZodMiniRecord",(e,t)=>{oe.init(e,t),ce.init(e,t)});function we(e,t,n){return new Re({type:"record",keyType:e,valueType:t})}const xe=u("ZodMiniEnum",(e,t)=>{se.init(e,t),ce.init(e,t)});function Ae(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new xe({type:"enum",entries:n})}const Be=u("ZodMiniLiteral",(e,t)=>{ae.init(e,t),ce.init(e,t)});function Ce(e,t){return new Be({type:"literal",values:Array.isArray(e)?e:[e]})}const Ne=u("ZodMiniOptional",(e,t)=>{re.init(e,t),ce.init(e,t)});function Me(e){return new Ne({type:"optional",innerType:e})}const ze=u("ZodMiniLazy",(e,t)=>{ie.init(e,t),ce.init(e,t)});function Le(e){return new ze({type:"lazy",getter:e})}var qe=()=>Ee({keys:ke(Le(()=>Ee({accessKey:Le(()=>De()),publicKey:Le(()=>Ft())})))}),je=()=>Se([Ee({FunctionCall:Le(()=>Et())}),Ae(["FullAccess"])]),Oe=()=>Se([Ae(["FullAccess"]),Ee({FunctionCall:Ee({allowance:Me(Se([Se([ue(),ge()]),ge()])),methodNames:ke(ue()),receiverId:ue()})})]),De=()=>Ee({nonce:pe(),permission:Le(()=>Oe())}),He=()=>ue(),Ke=()=>Ee({accountId:Le(()=>He()),publicKey:Le(()=>Ft())}),$e=()=>Ee({addKeyCost:Le(()=>Ee({fullAccessCost:Le(()=>gt()),functionCallCost:Le(()=>gt()),functionCallCostPerByte:Le(()=>gt())})),createAccountCost:Le(()=>gt()),delegateCost:Le(()=>gt()),deleteAccountCost:Le(()=>gt()),deleteKeyCost:Le(()=>gt()),deployContractCost:Le(()=>gt()),deployContractCostPerByte:Le(()=>gt()),functionCallCost:Le(()=>gt()),functionCallCostPerByte:Le(()=>gt()),stakeCost:Le(()=>gt()),transferCost:Le(()=>gt())}),Ve=()=>Se([Ee({AccountAlreadyExists:Ee({accountId:Le(()=>He())})}),Ee({AccountDoesNotExist:Ee({accountId:Le(()=>He())})}),Ee({CreateAccountOnlyByRegistrar:Ee({accountId:Le(()=>He()),predecessorId:Le(()=>He()),registrarAccountId:Le(()=>He())})}),Ee({CreateAccountNotAllowed:Ee({accountId:Le(()=>He()),predecessorId:Le(()=>He())})}),Ee({ActorNoPermission:Ee({accountId:Le(()=>He()),actorId:Le(()=>He())})}),Ee({DeleteKeyDoesNotExist:Ee({accountId:Le(()=>He()),publicKey:Le(()=>Ft())})}),Ee({AddKeyAlreadyExists:Ee({accountId:Le(()=>He()),publicKey:Le(()=>Ft())})}),Ee({DeleteAccountStaking:Ee({accountId:Le(()=>He())})}),Ee({LackBalanceForState:Ee({accountId:Le(()=>He()),amount:ue()})}),Ee({TriesToUnstake:Ee({accountId:Le(()=>He())})}),Ee({TriesToStake:Ee({accountId:Le(()=>He()),balance:ue(),locked:ue(),stake:ue()})}),Ee({InsufficientStake:Ee({accountId:Le(()=>He()),minimumStake:ue(),stake:ue()})}),Ee({FunctionCallError:Le(()=>vt())}),Ee({NewReceiptValidationError:Le(()=>Zt())}),Ee({OnlyImplicitAccountCreationAllowed:Ee({accountId:Le(()=>He())})}),Ee({DeleteAccountWithLargeState:Ee({accountId:Le(()=>He())})}),Ae(["DelegateActionInvalidSignature"]),Ee({DelegateActionSenderDoesNotMatchTxReceiver:Ee({receiverId:Le(()=>He()),senderId:Le(()=>He())})}),Ae(["DelegateActionExpired"]),Ee({DelegateActionAccessKeyError:Le(()=>wt())}),Ee({DelegateActionInvalidNonce:Ee({akNonce:pe(),delegateNonce:pe()})}),Ee({DelegateActionNonceTooLarge:Ee({delegateNonce:pe(),upperBound:pe()})}),Ee({GlobalContractDoesNotExist:Ee({identifier:Le(()=>Tt())})})]),Xe=()=>Se([Ae(["CreateAccount"]),Ee({DeployContract:Ee({code:ue()})}),Ee({FunctionCall:Ee({args:Le(()=>It()),deposit:ue(),gas:pe(),methodName:ue()})}),Ee({Transfer:Ee({deposit:ue()})}),Ee({Stake:Ee({publicKey:Le(()=>Ft()),stake:ue()})}),Ee({AddKey:Ee({accessKey:Le(()=>De()),publicKey:Le(()=>Ft())})}),Ee({DeleteKey:Ee({publicKey:Le(()=>Ft())})}),Ee({DeleteAccount:Ee({beneficiaryId:Le(()=>He())})}),Ee({Delegate:Ee({delegateAction:Le(()=>st()),signature:Le(()=>Zn())})}),Ee({DeployGlobalContract:Ee({code:ue()})}),Ee({DeployGlobalContractByAccountId:Ee({code:ue()})}),Ee({UseGlobalContract:Ee({codeHash:Le(()=>ot())})}),Ee({UseGlobalContractByAccountId:Ee({accountId:Le(()=>He())})})]),Fe=()=>Se([Ae(["DeleteActionMustBeFinal"]),Ee({TotalPrepaidGasExceeded:Ee({limit:pe(),totalPrepaidGas:pe()})}),Ee({TotalNumberOfActionsExceeded:Ee({limit:pe(),totalNumberOfActions:pe()})}),Ee({AddKeyMethodNamesNumberOfBytesExceeded:Ee({limit:pe(),totalNumberOfBytes:pe()})}),Ee({AddKeyMethodNameLengthExceeded:Ee({length:pe(),limit:pe()})}),Ae(["IntegerOverflow"]),Ee({InvalidAccountId:Ee({accountId:ue()})}),Ee({ContractSizeExceeded:Ee({limit:pe(),size:pe()})}),Ee({FunctionCallMethodNameLengthExceeded:Ee({length:pe(),limit:pe()})}),Ee({FunctionCallArgumentsLengthExceeded:Ee({length:pe(),limit:pe()})}),Ee({UnsuitableStakingKey:Ee({publicKey:Le(()=>Ft())})}),Ae(["FunctionCallZeroAttachedGas"]),Ae(["DelegateActionMustBeOnlyOne"]),Ee({UnsupportedProtocolFeature:Ee({protocolFeature:ue(),version:pe()})})]),Ge=()=>Ee({accessKey:Le(()=>Ee({nonce:pe(),permission:Le(()=>je())})),publicKey:Le(()=>Ft())}),Ue=()=>Ee({data:ke(pe())}),Ze=()=>Ee({requests:ke(Le(()=>Ee({requestedValuesBitmap:Le(()=>Ue()),toShard:pe()})))}),We=()=>Ee({blockMerkleRoot:Le(()=>ot()),epochId:Le(()=>ot()),height:pe(),nextBpHash:Le(()=>ot()),nextEpochId:Le(()=>ot()),outcomeRoot:Le(()=>ot()),prevStateRoot:Le(()=>ot()),timestamp:pe(),timestampNanosec:ue()}),Je=()=>Se([pe(),Le(()=>ot())]),Ye=()=>Ee({hash:Le(()=>ot()),height:pe()}),Qe=()=>Ee({get:ue(),set:ue()}),et=()=>Ee({balanceBurnt:ue(),bandwidthRequests:Me(Se([Le(()=>Ee({V1:Le(()=>Ze())})),ge()])),chunkHash:Le(()=>ot()),congestionInfo:Me(Se([Le(()=>tt()),ge()])),encodedLength:pe(),encodedMerkleRoot:Le(()=>ot()),gasLimit:pe(),gasUsed:pe(),heightCreated:pe(),heightIncluded:pe(),outcomeRoot:Le(()=>ot()),outgoingReceiptsRoot:Le(()=>ot()),prevBlockHash:Le(()=>ot()),prevStateRoot:Le(()=>ot()),rentPaid:ue(),shardId:Le(()=>Vn()),signature:Le(()=>Zn()),txRoot:Le(()=>ot()),validatorProposals:ke(Le(()=>bo())),validatorReward:ue()}),tt=()=>Ee({allowedShard:pe(),bufferedReceiptsGas:ue(),delayedReceiptsGas:ue(),receiptBytes:pe()}),nt=()=>we(ue(),fe()),ot=()=>ue(),st=()=>Ee({actions:ke(Le(()=>Kt())),maxBlockHeight:pe(),nonce:pe(),publicKey:Le(()=>Ft()),receiverId:Le(()=>He()),senderId:Le(()=>He())}),at=()=>Ee({beneficiaryId:Le(()=>He())}),rt=()=>Ee({publicKey:Le(()=>Ft())}),it=()=>Ee({code:ue()}),ct=()=>Ee({code:ue(),deployMode:Le(()=>Pt())}),dt=()=>Ee({blockProductionDelayMillis:pe(),catchupStatus:ke(Le(()=>Ee({blocksToCatchup:ke(Le(()=>Ye())),shardSyncStatus:we(ue(),fe()),syncBlockHash:Le(()=>ot()),syncBlockHeight:pe()}))),currentHeadStatus:Le(()=>Ye()),currentHeaderHeadStatus:Le(()=>Ye()),networkInfo:Le(()=>Ht()),syncStatus:ue()}),ut=()=>Ee({nanos:pe(),secs:pe()}),lt=()=>Le(()=>ot()),pt=()=>Ee({gasProfile:Me(Se([Se([ke(Le(()=>Ee({cost:ue(),costCategory:ue(),gasUsed:ue()}))),ge()]),ge()])),version:pe()}),ht=()=>Ee({blockHash:Le(()=>ot()),id:Le(()=>ot()),outcome:Le(()=>Ee({executorId:Le(()=>He()),gasBurnt:pe(),logs:ke(ue()),metadata:Me(Le(()=>pt())),receiptIds:ke(Le(()=>ot())),status:Le(()=>mt()),tokensBurnt:ue()})),proof:ke(Le(()=>qt()))}),mt=()=>Se([Ae(["Unknown"]),Ee({Failure:Le(()=>go())}),Ee({SuccessValue:ue()}),Ee({SuccessReceiptId:Le(()=>ot())})]),yt=()=>Se([Ee({S3:Ee({bucket:ue(),region:ue()})}),Ee({Filesystem:Ee({rootDir:ue()})}),Ee({GCS:Ee({bucket:ue()})})]),gt=()=>Ee({execution:pe(),sendNotSir:pe(),sendSir:pe()}),_t=()=>Se([Ae(["NotStarted"]),Ae(["Started"]),Ee({Failure:Le(()=>go())}),Ee({SuccessValue:ue()})]),ft=()=>Ae(["optimistic","near-final","final"]),It=()=>ue(),kt=()=>Ee({args:ue(),deposit:ue(),gas:pe(),methodName:ue()}),vt=()=>Se([Ae(["WasmUnknownError","_EVMError"]),Ee({CompilationError:Le(()=>Se([Ee({CodeDoesNotExist:Ee({accountId:Le(()=>He())})}),Ee({PrepareError:Le(()=>Xt())}),Ee({WasmerCompileError:Ee({msg:ue()})})]))}),Ee({LinkError:Ee({msg:ue()})}),Ee({MethodResolveError:Le(()=>jt())}),Ee({WasmTrap:Le(()=>Ro())}),Ee({HostError:Le(()=>Rt())}),Ee({ExecutionError:ue()})]),Et=()=>Ee({allowance:Me(Se([Se([ue(),ge()]),ge()])),methodNames:ke(ue()),receiverId:ue()}),bt=()=>Ee({avgHiddenValidatorSeatsPerShard:ke(pe()),blockProducerKickoutThreshold:pe(),chainId:ue(),chunkProducerAssignmentChangesLimit:Me(pe()),chunkProducerKickoutThreshold:pe(),chunkValidatorOnlyKickoutThreshold:Me(pe()),dynamicResharding:me(),epochLength:pe(),fishermenThreshold:ue(),gasLimit:pe(),gasPriceAdjustmentRate:ke(pe()),genesisHeight:pe(),genesisTime:ue(),maxGasPrice:ue(),maxInflationRate:ke(pe()),maxKickoutStakePerc:Me(pe()),minGasPrice:ue(),minimumStakeDivisor:Me(pe()),minimumStakeRatio:Me(ke(pe())),minimumValidatorsPerShard:Me(pe()),numBlockProducerSeats:pe(),numBlockProducerSeatsPerShard:ke(pe()),numBlocksPerYear:pe(),numChunkOnlyProducerSeats:Me(pe()),numChunkProducerSeats:Me(pe()),numChunkValidatorSeats:Me(pe()),onlineMaxThreshold:Me(ke(pe())),onlineMinThreshold:Me(ke(pe())),protocolRewardRate:ke(pe()),protocolTreasuryAccount:Le(()=>He()),protocolUpgradeStakeThreshold:Me(ke(pe())),protocolVersion:pe(),shardLayout:Me(Le(()=>Xn())),shuffleShardAssignmentForChunkProducers:Me(me()),targetValidatorMandatesPerShard:Me(pe()),totalSupply:ue(),transactionValidityPeriod:pe(),useProductionConfig:Me(me()),validators:ke(Le(()=>Ee({accountId:Le(()=>He()),amount:ue(),publicKey:Le(()=>Ft())})))}),St=()=>ge(),Pt=()=>Se([Ae(["CodeHash"]),Ae(["AccountId"])]),Tt=()=>Se([Ee({CodeHash:Le(()=>ot())}),Ee({AccountId:Le(()=>He())})]),Rt=()=>Se([Ae(["BadUTF16"]),Ae(["BadUTF8"]),Ae(["GasExceeded"]),Ae(["GasLimitExceeded"]),Ae(["BalanceExceeded"]),Ae(["EmptyMethodName"]),Ee({GuestPanic:Ee({panicMsg:ue()})}),Ae(["IntegerOverflow"]),Ee({InvalidPromiseIndex:Ee({promiseIdx:pe()})}),Ae(["CannotAppendActionToJointPromise"]),Ae(["CannotReturnJointPromise"]),Ee({InvalidPromiseResultIndex:Ee({resultIdx:pe()})}),Ee({InvalidRegisterId:Ee({registerId:pe()})}),Ee({IteratorWasInvalidated:Ee({iteratorIndex:pe()})}),Ae(["MemoryAccessViolation"]),Ee({InvalidReceiptIndex:Ee({receiptIndex:pe()})}),Ee({InvalidIteratorIndex:Ee({iteratorIndex:pe()})}),Ae(["InvalidAccountId"]),Ae(["InvalidMethodName"]),Ae(["InvalidPublicKey"]),Ee({ProhibitedInView:Ee({methodName:ue()})}),Ee({NumberOfLogsExceeded:Ee({limit:pe()})}),Ee({KeyLengthExceeded:Ee({length:pe(),limit:pe()})}),Ee({ValueLengthExceeded:Ee({length:pe(),limit:pe()})}),Ee({TotalLogLengthExceeded:Ee({length:pe(),limit:pe()})}),Ee({NumberPromisesExceeded:Ee({limit:pe(),numberOfPromises:pe()})}),Ee({NumberInputDataDependenciesExceeded:Ee({limit:pe(),numberOfInputDataDependencies:pe()})}),Ee({ReturnedValueLengthExceeded:Ee({length:pe(),limit:pe()})}),Ee({ContractSizeExceeded:Ee({limit:pe(),size:pe()})}),Ee({Deprecated:Ee({methodName:ue()})}),Ee({ECRecoverError:Ee({msg:ue()})}),Ee({AltBn128InvalidInput:Ee({msg:ue()})}),Ee({Ed25519VerifyInvalidInput:Ee({msg:ue()})})]),wt=()=>Se([Ee({AccessKeyNotFound:Ee({accountId:Le(()=>He()),publicKey:Le(()=>Ft())})}),Ee({ReceiverMismatch:Ee({akReceiver:ue(),txReceiver:Le(()=>He())})}),Ee({MethodNameMismatch:Ee({methodName:ue()})}),Ae(["RequiresFullAccess"]),Ee({NotEnoughAllowance:Ee({accountId:Le(()=>He()),allowance:ue(),cost:ue(),publicKey:Le(()=>Ft())})}),Ae(["DepositWithFunctionCall"])]),xt=()=>Te(Se([Ee({result:ke(Le(()=>Gt()))}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})),At=()=>Te(Se([Ee({result:Le(()=>bt())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})),Bt=()=>Te(Se([Ee({result:Le(()=>mn())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})),Ct=()=>Te(Se([Ee({result:Le(()=>Cn())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})),Nt=()=>Te(Se([Ee({result:Le(()=>Mn())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})),Mt=()=>Te(Se([Ee({result:Le(()=>qn())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})),zt=()=>Ee({innerLite:Le(()=>We()),innerRestHash:Le(()=>ot()),prevBlockHash:Le(()=>ot())}),Lt=()=>Ee({accountIdValidityRulesVersion:Me(Le(()=>pe())),initialMemoryPages:pe(),maxActionsPerReceipt:pe(),maxArgumentsLength:pe(),maxContractSize:pe(),maxFunctionsNumberPerContract:Me(Se([Se([pe(),ge()]),ge()])),maxGasBurnt:pe(),maxLengthMethodName:pe(),maxLengthReturnedData:pe(),maxLengthStorageKey:pe(),maxLengthStorageValue:pe(),maxLocalsPerContract:Me(Se([Se([pe(),ge()]),ge()])),maxMemoryPages:pe(),maxNumberBytesMethodNames:pe(),maxNumberInputDataDependencies:pe(),maxNumberLogs:pe(),maxNumberRegisters:pe(),maxPromisesPerFunctionCallAction:pe(),maxReceiptSize:pe(),maxRegisterSize:pe(),maxStackHeight:pe(),maxTotalLogLength:pe(),maxTotalPrepaidGas:pe(),maxTransactionSize:pe(),maxYieldPayloadSize:pe(),perReceiptStorageProofSizeLimit:pe(),registersMemoryLimit:pe(),yieldTimeoutLengthInBlocks:pe()}),qt=()=>Ee({direction:Le(()=>Ae(["Left","Right"])),hash:Le(()=>ot())}),jt=()=>Ae(["MethodEmptyName","MethodNotFound","MethodInvalidSignature"]),Ot=()=>Se([Ae(["TrieIterator"]),Ae(["TriePrefetchingStorage"]),Ae(["TrieMemoryPartialStorage"]),Ae(["TrieStorage"])]),Dt=()=>ue(),Ht=()=>Ee({connectedPeers:ke(Le(()=>Vt())),knownProducers:ke(Le(()=>Ee({accountId:Le(()=>He()),nextHops:Me(Se([Se([ke(Le(()=>Ft())),ge()]),ge()])),peerId:Le(()=>Ft())}))),numConnectedPeers:pe(),peerMaxCount:pe(),tier1AccountsData:ke(Le(()=>Ee({accountKey:Le(()=>Ft()),peerId:Le(()=>Ft()),proxies:ke(Le(()=>ho())),timestamp:ue()}))),tier1AccountsKeys:ke(Le(()=>Ft())),tier1Connections:ke(Le(()=>Vt()))}),Kt=()=>Le(()=>Se([Ee({CreateAccount:Le(()=>nt())}),Ee({DeployContract:Le(()=>it())}),Ee({FunctionCall:Le(()=>kt())}),Ee({Transfer:Le(()=>yo())}),Ee({Stake:Le(()=>eo())}),Ee({AddKey:Le(()=>Ge())}),Ee({DeleteKey:Le(()=>rt())}),Ee({DeleteAccount:Le(()=>at())}),Ee({Delegate:Le(()=>Wn())}),Ee({DeployGlobalContract:Le(()=>ct())}),Ee({UseGlobalContract:Le(()=>fo())})])),$t=()=>Le(()=>Ft()),Vt=()=>Ee({accountId:Me(Se([Le(()=>He()),ge()])),addr:ue(),archival:me(),blockHash:Me(Se([Le(()=>ot()),ge()])),connectionEstablishedTimeMillis:pe(),height:Me(Se([Se([pe(),ge()]),ge()])),isHighestBlockInvalid:me(),isOutboundPeer:me(),lastTimePeerRequestedMillis:pe(),lastTimeReceivedMessageMillis:pe(),nonce:pe(),peerId:Le(()=>Ft()),receivedBytesPerSec:pe(),sentBytesPerSec:pe(),trackedShards:ke(Le(()=>Vn()))}),Xt=()=>Se([Ae(["Serialization"]),Ae(["Deserialization"]),Ae(["InternalMemoryDeclared"]),Ae(["GasInstrumentation"]),Ae(["StackHeightInstrumentation"]),Ae(["Instantiate"]),Ae(["Memory"]),Ae(["TooManyFunctions"]),Ae(["TooManyLocals"])]),Ft=()=>ue(),Gt=()=>Ee({end:pe(),start:pe()}),Ut=()=>Se([Ee({Action:Ee({actions:ke(Le(()=>Xe())),gasPrice:ue(),inputDataIds:ke(Le(()=>ot())),isPromiseYield:Me(me()),outputDataReceivers:ke(Le(()=>Ee({dataId:Le(()=>ot()),receiverId:Le(()=>He())}))),signerId:Le(()=>He()),signerPublicKey:Le(()=>Ft())})}),Ee({Data:Ee({data:Me(Se([Se([ue(),ge()]),ge()])),dataId:Le(()=>ot()),isPromiseResume:Me(me())})}),Ee({GlobalContractDistribution:Ee({alreadyDeliveredShards:ke(Le(()=>Vn())),code:ue(),id:Le(()=>Tt()),targetShard:Le(()=>Vn())})})]),Zt=()=>Se([Ee({InvalidPredecessorId:Ee({accountId:ue()})}),Ee({InvalidReceiverId:Ee({accountId:ue()})}),Ee({InvalidSignerId:Ee({accountId:ue()})}),Ee({InvalidDataReceiverId:Ee({accountId:ue()})}),Ee({ReturnedValueLengthExceeded:Ee({length:pe(),limit:pe()})}),Ee({NumberInputDataDependenciesExceeded:Ee({limit:pe(),numberOfInputDataDependencies:pe()})}),Ee({ActionsValidation:Le(()=>Fe())}),Ee({ReceiptSizeExceeded:Ee({limit:pe(),size:pe()})})]),Wt=()=>Ee({predecessorId:Le(()=>He()),priority:Me(pe()),receipt:Le(()=>Ut()),receiptId:Le(()=>ot()),receiverId:Le(()=>He())}),Jt=()=>Se([Ee({blockId:Le(()=>Je())}),Ee({finality:Le(()=>ft())}),Ee({syncCheckpoint:Le(()=>uo())})]),Yt=()=>Ee({author:Le(()=>He()),chunks:ke(Le(()=>et())),header:Le(()=>Ee({approvals:ke(Se([Le(()=>Zn()),ge()])),blockBodyHash:Me(Se([Le(()=>ot()),ge()])),blockMerkleRoot:Le(()=>ot()),blockOrdinal:Me(Se([Se([pe(),ge()]),ge()])),challengesResult:ke(Le(()=>Qn())),challengesRoot:Le(()=>ot()),chunkEndorsements:Me(Se([Se([ke(ke(pe())),ge()]),ge()])),chunkHeadersRoot:Le(()=>ot()),chunkMask:ke(me()),chunkReceiptsRoot:Le(()=>ot()),chunkTxRoot:Le(()=>ot()),chunksIncluded:pe(),epochId:Le(()=>ot()),epochSyncDataHash:Me(Se([Le(()=>ot()),ge()])),gasPrice:ue(),hash:Le(()=>ot()),height:pe(),lastDsFinalBlock:Le(()=>ot()),lastFinalBlock:Le(()=>ot()),latestProtocolVersion:pe(),nextBpHash:Le(()=>ot()),nextEpochId:Le(()=>ot()),outcomeRoot:Le(()=>ot()),prevHash:Le(()=>ot()),prevHeight:Me(Se([Se([pe(),ge()]),ge()])),prevStateRoot:Le(()=>ot()),randomValue:Le(()=>ot()),rentPaid:ue(),signature:Le(()=>Zn()),timestamp:pe(),timestampNanosec:ue(),totalSupply:ue(),validatorProposals:ke(Le(()=>bo())),validatorReward:ue()}))}),Qt=()=>Se([Ee({blockId:Le(()=>Je()),shardId:Le(()=>Vn())}),Ee({chunkId:Le(()=>ot())})]),en=()=>Ee({author:Le(()=>He()),header:Le(()=>et()),receipts:ke(Le(()=>Wt())),transactions:ke(Le(()=>Yn()))}),tn=()=>ge(),nn=()=>Ee({archive:me(),blockFetchHorizon:pe(),blockHeaderFetchHorizon:pe(),blockProductionTrackingDelay:ke(pe()),catchupStepPeriod:ke(pe()),chainId:ue(),chunkDistributionNetwork:Me(Se([Le(()=>Ee({enabled:me(),uris:Le(()=>Qe())})),ge()])),chunkRequestRetryPeriod:ke(pe()),chunkValidationThreads:pe(),chunkWaitMult:ke(pe()),clientBackgroundMigrationThreads:pe(),doomslugStepPeriod:ke(pe()),enableMultilineLogging:me(),enableStatisticsExport:me(),epochLength:pe(),epochSync:Le(()=>Ee({disableEpochSyncForBootstrapping:Me(me()),epochSyncHorizon:pe(),ignoreEpochSyncNetworkRequests:Me(me()),timeoutForEpochSync:Le(()=>ut())})),expectedShutdown:Le(()=>Dt()),gc:Le(()=>Ee({gcBlocksLimit:Me(pe()),gcForkCleanStep:Me(pe()),gcNumEpochsToKeep:Me(pe()),gcStepPeriod:Me(Le(()=>ut()))})),headerSyncExpectedHeightPerSecond:pe(),headerSyncInitialTimeout:ke(pe()),headerSyncProgressTimeout:ke(pe()),headerSyncStallBanTimeout:ke(pe()),logSummaryPeriod:ke(pe()),logSummaryStyle:Le(()=>Ae(["plain","colored"])),maxBlockProductionDelay:ke(pe()),maxBlockWaitDelay:ke(pe()),maxGasBurntView:Me(Se([Se([pe(),ge()]),ge()])),minBlockProductionDelay:ke(pe()),minNumPeers:pe(),numBlockProducerSeats:pe(),orphanStateWitnessMaxSize:pe(),orphanStateWitnessPoolSize:pe(),produceChunkAddTransactionsTimeLimit:ue(),produceEmptyBlocks:me(),reshardingConfig:Le(()=>Dt()),rpcAddr:Me(Se([Se([ue(),ge()]),ge()])),saveInvalidWitnesses:me(),saveLatestWitnesses:me(),saveTrieChanges:me(),saveTxOutcomes:me(),skipSyncWait:me(),stateRequestServerThreads:pe(),stateRequestThrottlePeriod:ke(pe()),stateRequestsPerThrottlePeriod:pe(),stateSync:Le(()=>oo()),stateSyncEnabled:me(),stateSyncExternalBackoff:ke(pe()),stateSyncExternalTimeout:ke(pe()),stateSyncP2pTimeout:ke(pe()),stateSyncRetryBackoff:ke(pe()),syncCheckPeriod:ke(pe()),syncHeightThreshold:pe(),syncMaxBlockRequests:pe(),syncStepPeriod:ke(pe()),trackedShardsConfig:Le(()=>mo()),transactionPoolSizeLimit:Me(Se([Se([pe(),ge()]),ge()])),transactionRequestHandlerThreads:pe(),trieViewerStateSizeLimit:Me(Se([Se([pe(),ge()]),ge()])),ttlAccountIdRouter:ke(pe()),txRoutingHeightHorizon:pe(),version:Le(()=>Po()),viewClientThreads:pe()}),on=()=>Se([Ee({blockId:Le(()=>Je()),shardId:Le(()=>Vn())}),Ee({chunkId:Le(()=>ot())})]),sn=()=>Ee({congestionLevel:pe()}),an=()=>Te(Se([Ee({cause:Le(()=>Rn()),name:Ae(["REQUEST_VALIDATION_ERROR"])}),Ee({cause:fe(),name:Ae(["HANDLER_ERROR"])}),Ee({cause:fe(),name:Ae(["INTERNAL_ERROR"])})]),Ee({cause:Me(fe()),code:pe(),data:Me(fe()),message:ue(),name:Me(fe())})),rn=()=>Ee({blockId:Me(Se([Le(()=>Je()),ge()]))}),cn=()=>Ee({gasPrice:ue()}),dn=()=>ge(),un=()=>ge(),ln=()=>Ee({blockHash:Le(()=>ot()),lightClientHead:Le(()=>ot())}),pn=()=>Ee({blockHeaderLite:Le(()=>zt()),blockProof:ke(Le(()=>qt()))}),hn=()=>Te(Se([Ee({senderId:Le(()=>He()),transactionHash:Le(()=>ot()),type:Ae(["transaction"])}),Ee({receiptId:Le(()=>ot()),receiverId:Le(()=>He()),type:Ae(["receipt"])})]),Ee({lightClientHead:Le(()=>ot())})),mn=()=>Ee({blockHeaderLite:Le(()=>zt()),blockProof:ke(Le(()=>qt())),outcomeProof:Le(()=>ht()),outcomeRootProof:ke(Le(()=>qt()))}),yn=()=>Ee({lastBlockHash:Le(()=>ot())}),gn=()=>Ee({approvalsAfterNext:Me(ke(Se([Le(()=>Zn()),ge()]))),innerLite:Me(Le(()=>We())),innerRestHash:Me(Le(()=>ot())),nextBlockInnerHash:Me(Le(()=>ot())),nextBps:Me(Se([Se([ke(Le(()=>bo())),ge()]),ge()])),prevBlockHash:Me(Le(()=>ot()))}),_n=()=>Ee({accountId:Le(()=>He())}),fn=()=>ge(),In=()=>Ee({activePeers:ke(Le(()=>kn())),knownProducers:ke(Le(()=>Ee({accountId:Le(()=>He()),addr:Me(Se([Se([ue(),ge()]),ge()])),peerId:Le(()=>$t())}))),numActivePeers:pe(),peerMaxCount:pe(),receivedBytesPerSec:pe(),sentBytesPerSec:pe()}),kn=()=>Ee({accountId:Me(Se([Le(()=>He()),ge()])),addr:Me(Se([Se([ue(),ge()]),ge()])),id:Le(()=>$t())}),vn=()=>Se([Ee({blockId:Le(()=>Je())}),Ee({finality:Le(()=>ft())}),Ee({syncCheckpoint:Le(()=>uo())})]),En=()=>Ee({avgHiddenValidatorSeatsPerShard:ke(pe()),blockProducerKickoutThreshold:pe(),chainId:ue(),chunkProducerKickoutThreshold:pe(),chunkValidatorOnlyKickoutThreshold:pe(),dynamicResharding:me(),epochLength:pe(),fishermenThreshold:ue(),gasLimit:pe(),gasPriceAdjustmentRate:ke(pe()),genesisHeight:pe(),genesisTime:ue(),maxGasPrice:ue(),maxInflationRate:ke(pe()),maxKickoutStakePerc:pe(),minGasPrice:ue(),minimumStakeDivisor:pe(),minimumStakeRatio:ke(pe()),minimumValidatorsPerShard:pe(),numBlockProducerSeats:pe(),numBlockProducerSeatsPerShard:ke(pe()),numBlocksPerYear:pe(),onlineMaxThreshold:ke(pe()),onlineMinThreshold:ke(pe()),protocolRewardRate:ke(pe()),protocolTreasuryAccount:Le(()=>He()),protocolUpgradeStakeThreshold:ke(pe()),protocolVersion:pe(),runtimeConfig:Le(()=>Kn()),shardLayout:Le(()=>Xn()),shuffleShardAssignmentForChunkProducers:me(),targetValidatorMandatesPerShard:pe(),transactionValidityPeriod:pe()}),bn=()=>Se([Te(Ee({blockId:Le(()=>Je())}),Ee({accountId:Le(()=>He()),requestType:Ae(["view_account"])})),Te(Ee({blockId:Le(()=>Je())}),Ee({accountId:Le(()=>He()),requestType:Ae(["view_code"])})),Te(Ee({blockId:Le(()=>Je())}),Ee({accountId:Le(()=>He()),includeProof:Me(me()),prefixBase64:Le(()=>io()),requestType:Ae(["view_state"])})),Te(Ee({blockId:Le(()=>Je())}),Ee({accountId:Le(()=>He()),publicKey:Le(()=>Ft()),requestType:Ae(["view_access_key"])})),Te(Ee({blockId:Le(()=>Je())}),Ee({accountId:Le(()=>He()),requestType:Ae(["view_access_key_list"])})),Te(Ee({blockId:Le(()=>Je())}),Ee({accountId:Le(()=>He()),argsBase64:Le(()=>It()),methodName:ue(),requestType:Ae(["call_function"])})),Te(Ee({blockId:Le(()=>Je())}),Ee({codeHash:Le(()=>ot()),requestType:Ae(["view_global_contract_code"])})),Te(Ee({blockId:Le(()=>Je())}),Ee({accountId:Le(()=>He()),requestType:Ae(["view_global_contract_code_by_account_id"])})),Te(Ee({finality:Le(()=>ft())}),Ee({accountId:Le(()=>He()),requestType:Ae(["view_account"])})),Te(Ee({finality:Le(()=>ft())}),Ee({accountId:Le(()=>He()),requestType:Ae(["view_code"])})),Te(Ee({finality:Le(()=>ft())}),Ee({accountId:Le(()=>He()),includeProof:Me(me()),prefixBase64:Le(()=>io()),requestType:Ae(["view_state"])})),Te(Ee({finality:Le(()=>ft())}),Ee({accountId:Le(()=>He()),publicKey:Le(()=>Ft()),requestType:Ae(["view_access_key"])})),Te(Ee({finality:Le(()=>ft())}),Ee({accountId:Le(()=>He()),requestType:Ae(["view_access_key_list"])})),Te(Ee({finality:Le(()=>ft())}),Ee({accountId:Le(()=>He()),argsBase64:Le(()=>It()),methodName:ue(),requestType:Ae(["call_function"])})),Te(Ee({finality:Le(()=>ft())}),Ee({codeHash:Le(()=>ot()),requestType:Ae(["view_global_contract_code"])})),Te(Ee({finality:Le(()=>ft())}),Ee({accountId:Le(()=>He()),requestType:Ae(["view_global_contract_code_by_account_id"])})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({accountId:Le(()=>He()),requestType:Ae(["view_account"])})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({accountId:Le(()=>He()),requestType:Ae(["view_code"])})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({accountId:Le(()=>He()),includeProof:Me(me()),prefixBase64:Le(()=>io()),requestType:Ae(["view_state"])})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({accountId:Le(()=>He()),publicKey:Le(()=>Ft()),requestType:Ae(["view_access_key"])})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({accountId:Le(()=>He()),requestType:Ae(["view_access_key_list"])})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({accountId:Le(()=>He()),argsBase64:Le(()=>It()),methodName:ue(),requestType:Ae(["call_function"])})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({codeHash:Le(()=>ot()),requestType:Ae(["view_global_contract_code"])})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({accountId:Le(()=>He()),requestType:Ae(["view_global_contract_code_by_account_id"])}))]),Sn=()=>Se([Le(()=>Ee({amount:ue(),codeHash:Le(()=>ot()),globalContractAccountId:Me(Se([Le(()=>He()),ge()])),globalContractHash:Me(Se([Le(()=>ot()),ge()])),locked:ue(),storagePaidAt:Me(pe()),storageUsage:pe()})),Le(()=>Ee({codeBase64:ue(),hash:Le(()=>ot())})),Le(()=>To()),Le(()=>Ee({logs:ke(ue()),result:ke(pe())})),Le(()=>De()),Le(()=>qe())]),Pn=()=>Ee({receiptId:Le(()=>ot())}),Tn=()=>Ee({predecessorId:Le(()=>He()),priority:Me(pe()),receipt:Le(()=>Ut()),receiptId:Le(()=>ot()),receiverId:Le(()=>He())}),Rn=()=>Se([Ee({info:Ee({methodName:ue()}),name:Ae(["METHOD_NOT_FOUND"])}),Ee({info:Ee({errorMessage:ue()}),name:Ae(["PARSE_ERROR"])})]),wn=()=>Ee({signedTxBase64:Le(()=>Jn()),waitUntil:Me(Le(()=>_o()))}),xn=()=>we(ue(),fe()),An=()=>Ee({coldHeadHeight:Me(Se([Se([pe(),ge()]),ge()])),finalHeadHeight:Me(Se([Se([pe(),ge()]),ge()])),headHeight:Me(Se([Se([pe(),ge()]),ge()])),hotDbKind:Me(Se([Se([ue(),ge()]),ge()]))}),Bn=()=>Se([Te(Ee({blockId:Le(()=>Je())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["account_changes"])})),Te(Ee({blockId:Le(()=>Je())}),Ee({changesType:Ae(["single_access_key_changes"]),keys:ke(Le(()=>Ke()))})),Te(Ee({blockId:Le(()=>Je())}),Ee({changesType:Ae(["single_gas_key_changes"]),keys:ke(Le(()=>Ke()))})),Te(Ee({blockId:Le(()=>Je())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["all_access_key_changes"])})),Te(Ee({blockId:Le(()=>Je())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["all_gas_key_changes"])})),Te(Ee({blockId:Le(()=>Je())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["contract_code_changes"])})),Te(Ee({blockId:Le(()=>Je())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["data_changes"]),keyPrefixBase64:Le(()=>io())})),Te(Ee({finality:Le(()=>ft())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["account_changes"])})),Te(Ee({finality:Le(()=>ft())}),Ee({changesType:Ae(["single_access_key_changes"]),keys:ke(Le(()=>Ke()))})),Te(Ee({finality:Le(()=>ft())}),Ee({changesType:Ae(["single_gas_key_changes"]),keys:ke(Le(()=>Ke()))})),Te(Ee({finality:Le(()=>ft())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["all_access_key_changes"])})),Te(Ee({finality:Le(()=>ft())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["all_gas_key_changes"])})),Te(Ee({finality:Le(()=>ft())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["contract_code_changes"])})),Te(Ee({finality:Le(()=>ft())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["data_changes"]),keyPrefixBase64:Le(()=>io())})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["account_changes"])})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({changesType:Ae(["single_access_key_changes"]),keys:ke(Le(()=>Ke()))})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({changesType:Ae(["single_gas_key_changes"]),keys:ke(Le(()=>Ke()))})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["all_access_key_changes"])})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["all_gas_key_changes"])})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["contract_code_changes"])})),Te(Ee({syncCheckpoint:Le(()=>uo())}),Ee({accountIds:ke(Le(()=>He())),changesType:Ae(["data_changes"]),keyPrefixBase64:Le(()=>io())}))]),Cn=()=>Ee({blockHash:Le(()=>ot()),changes:ke(Le(()=>to()))}),Nn=()=>Se([Ee({blockId:Le(()=>Je())}),Ee({finality:Le(()=>ft())}),Ee({syncCheckpoint:Le(()=>uo())})]),Mn=()=>Ee({blockHash:Le(()=>ot()),changes:ke(Le(()=>no()))}),zn=()=>ge(),Ln=()=>Ee({chainId:ue(),detailedDebugStatus:Me(Se([Le(()=>dt()),ge()])),genesisHash:Le(()=>ot()),latestProtocolVersion:pe(),nodeKey:Me(Se([Le(()=>Ft()),ge()])),nodePublicKey:Le(()=>Ft()),protocolVersion:pe(),rpcAddr:Me(Se([Se([ue(),ge()]),ge()])),syncInfo:Le(()=>so()),uptimeSec:pe(),validatorAccountId:Me(Se([Le(()=>He()),ge()])),validatorPublicKey:Me(Se([Le(()=>Ft()),ge()])),validators:ke(Le(()=>vo())),version:Le(()=>Po())}),qn=()=>Se([Le(()=>Ee({receipts:ke(Le(()=>Wt())),receiptsOutcome:ke(Le(()=>ht())),status:Le(()=>_t()),transaction:Le(()=>Yn()),transactionOutcome:Le(()=>ht())})),Le(()=>Ee({receiptsOutcome:ke(Le(()=>ht())),status:Le(()=>_t()),transaction:Le(()=>Yn()),transactionOutcome:Le(()=>ht())}))]),jn=()=>Se([Ee({signedTxBase64:Le(()=>Jn())}),Ee({senderAccountId:Le(()=>He()),txHash:Le(()=>ot())})]),On=()=>Se([Ae(["latest"]),Ee({epochId:Le(()=>lt())}),Ee({blockId:Le(()=>Je())})]),Dn=()=>Ee({currentFishermen:ke(Le(()=>bo())),currentProposals:ke(Le(()=>bo())),currentValidators:ke(Le(()=>Ee({accountId:Le(()=>He()),isSlashed:me(),numExpectedBlocks:pe(),numExpectedChunks:Me(pe()),numExpectedChunksPerShard:Me(ke(pe())),numExpectedEndorsements:Me(pe()),numExpectedEndorsementsPerShard:Me(ke(pe())),numProducedBlocks:pe(),numProducedChunks:Me(pe()),numProducedChunksPerShard:Me(ke(pe())),numProducedEndorsements:Me(pe()),numProducedEndorsementsPerShard:Me(ke(pe())),publicKey:Le(()=>Ft()),shards:ke(Le(()=>Vn())),shardsEndorsed:Me(ke(Le(()=>Vn()))),stake:ue()}))),epochHeight:pe(),epochStartHeight:pe(),nextFishermen:ke(Le(()=>bo())),nextValidators:ke(Le(()=>Ee({accountId:Le(()=>He()),publicKey:Le(()=>Ft()),shards:ke(Le(()=>Vn())),stake:ue()}))),prevEpochKickout:ke(Le(()=>Eo()))}),Hn=()=>Ee({blockId:Me(Se([Le(()=>Je()),ge()]))}),Kn=()=>Ee({accountCreationConfig:Le(()=>Ee({minAllowedTopLevelAccountLength:pe(),registrarAccountId:Le(()=>He())})),congestionControlConfig:Le(()=>Ee({allowedShardOutgoingGas:pe(),maxCongestionIncomingGas:pe(),maxCongestionMemoryConsumption:pe(),maxCongestionMissedChunks:pe(),maxCongestionOutgoingGas:pe(),maxOutgoingGas:pe(),maxTxGas:pe(),minOutgoingGas:pe(),minTxGas:pe(),outgoingReceiptsBigSizeLimit:pe(),outgoingReceiptsUsualSizeLimit:pe(),rejectTxCongestionThreshold:pe()})),storageAmountPerByte:ue(),transactionCosts:Le(()=>$n()),wasmConfig:Le(()=>Io()),witnessConfig:Le(()=>wo())}),$n=()=>Ee({actionCreationConfig:Le(()=>$e()),actionReceiptCreationConfig:Le(()=>gt()),burntGasReward:ke(pe()),dataReceiptCreationConfig:Le(()=>Ee({baseCost:Le(()=>gt()),costPerByte:Le(()=>gt())})),pessimisticGasPriceInflationRatio:ke(pe()),storageUsageConfig:Le(()=>ro())}),Vn=()=>pe(),Xn=()=>Se([Ee({V0:Le(()=>Fn())}),Ee({V1:Le(()=>Gn())}),Ee({V2:Le(()=>Un())})]),Fn=()=>Ee({numShards:pe(),version:pe()}),Gn=()=>Ee({boundaryAccounts:ke(Le(()=>He())),shardsSplitMap:Me(Se([Se([ke(ke(Le(()=>Vn()))),ge()]),ge()])),toParentShardMap:Me(Se([Se([ke(Le(()=>Vn())),ge()]),ge()])),version:pe()}),Un=()=>Ee({boundaryAccounts:ke(Le(()=>He())),idToIndexMap:we(ue(),pe()),indexToIdMap:we(ue(),Le(()=>Vn())),shardIds:ke(Le(()=>Vn())),shardsParentMap:Me(Se([Se([we(ue(),Le(()=>Vn())),ge()]),ge()])),shardsSplitMap:Me(Se([Se([we(ue(),ke(Le(()=>Vn()))),ge()]),ge()])),version:pe()}),Zn=()=>ue(),Wn=()=>Ee({delegateAction:Le(()=>st()),signature:Le(()=>Zn())}),Jn=()=>ue(),Yn=()=>Ee({actions:ke(Le(()=>Xe())),hash:Le(()=>ot()),nonce:pe(),priorityFee:Me(pe()),publicKey:Le(()=>Ft()),receiverId:Le(()=>He()),signature:Le(()=>Zn()),signerId:Le(()=>He())}),Qn=()=>Ee({accountId:Le(()=>He()),isDoubleSign:me()}),eo=()=>Ee({publicKey:Le(()=>Ft()),stake:ue()}),to=()=>Se([Ee({accountId:Le(()=>He()),type:Ae(["account_touched"])}),Ee({accountId:Le(()=>He()),type:Ae(["access_key_touched"])}),Ee({accountId:Le(()=>He()),type:Ae(["data_touched"])}),Ee({accountId:Le(()=>He()),type:Ae(["contract_code_touched"])})]),no=()=>Te(Se([Ee({change:Ee({accountId:Le(()=>He()),amount:ue(),codeHash:Le(()=>ot()),globalContractAccountId:Me(Se([Le(()=>He()),ge()])),globalContractHash:Me(Se([Le(()=>ot()),ge()])),locked:ue(),storagePaidAt:Me(pe()),storageUsage:pe()}),type:Ae(["account_update"])}),Ee({change:Ee({accountId:Le(()=>He())}),type:Ae(["account_deletion"])}),Ee({change:Ee({accessKey:Le(()=>De()),accountId:Le(()=>He()),publicKey:Le(()=>Ft())}),type:Ae(["access_key_update"])}),Ee({change:Ee({accountId:Le(()=>He()),publicKey:Le(()=>Ft())}),type:Ae(["access_key_deletion"])}),Ee({change:Ee({accountId:Le(()=>He()),gasKey:Le(()=>Ee({balance:pe(),numNonces:pe(),permission:Le(()=>Oe())})),publicKey:Le(()=>Ft())}),type:Ae(["gas_key_update"])}),Ee({change:Ee({accountId:Le(()=>He()),index:pe(),nonce:pe(),publicKey:Le(()=>Ft())}),type:Ae(["gas_key_nonce_update"])}),Ee({change:Ee({accountId:Le(()=>He()),publicKey:Le(()=>Ft())}),type:Ae(["gas_key_deletion"])}),Ee({change:Ee({accountId:Le(()=>He()),keyBase64:Le(()=>io()),valueBase64:Le(()=>co())}),type:Ae(["data_update"])}),Ee({change:Ee({accountId:Le(()=>He()),keyBase64:Le(()=>io())}),type:Ae(["data_deletion"])}),Ee({change:Ee({accountId:Le(()=>He()),codeBase64:ue()}),type:Ae(["contract_code_update"])}),Ee({change:Ee({accountId:Le(()=>He())}),type:Ae(["contract_code_deletion"])})]),Ee({cause:Le(()=>Se([Ee({type:Ae(["not_writable_to_disk"])}),Ee({type:Ae(["initial_state"])}),Ee({txHash:Le(()=>ot()),type:Ae(["transaction_processing"])}),Ee({receiptHash:Le(()=>ot()),type:Ae(["action_receipt_processing_started"])}),Ee({receiptHash:Le(()=>ot()),type:Ae(["action_receipt_gas_reward"])}),Ee({receiptHash:Le(()=>ot()),type:Ae(["receipt_processing"])}),Ee({receiptHash:Le(()=>ot()),type:Ae(["postponed_receipt"])}),Ee({type:Ae(["updated_delayed_receipts"])}),Ee({type:Ae(["validator_accounts_update"])}),Ee({type:Ae(["migration"])}),Ee({type:Ae(["bandwidth_scheduler_state_update"])})]))})),oo=()=>Ee({concurrency:Me(Le(()=>lo())),dump:Me(Se([Le(()=>Ee({credentialsFile:Me(Se([Se([ue(),ge()]),ge()])),iterationDelay:Me(Se([Le(()=>ut()),ge()])),location:Le(()=>yt()),restartDumpForShards:Me(Se([Se([ke(Le(()=>Vn())),ge()]),ge()]))})),ge()])),sync:Me(Le(()=>po()))}),so=()=>Ee({earliestBlockHash:Me(Se([Le(()=>ot()),ge()])),earliestBlockHeight:Me(Se([Se([pe(),ge()]),ge()])),earliestBlockTime:Me(Se([Se([ue(),ge()]),ge()])),epochId:Me(Se([Le(()=>lt()),ge()])),epochStartHeight:Me(Se([Se([pe(),ge()]),ge()])),latestBlockHash:Le(()=>ot()),latestBlockHeight:pe(),latestBlockTime:ue(),latestStateRoot:Le(()=>ot()),syncing:me()}),ao=()=>Se([Ae(["StorageInternalError"]),Ee({MissingTrieValue:Le(()=>Ee({context:Le(()=>Ot()),hash:Le(()=>ot())}))}),Ae(["UnexpectedTrieValue"]),Ee({StorageInconsistentState:ue()}),Ee({FlatStorageBlockNotSupported:ue()}),Ee({MemTrieLoadingError:ue()})]),ro=()=>Ee({numBytesAccount:pe(),numExtraBytesRecord:pe()}),io=()=>ue(),co=()=>ue(),uo=()=>Ae(["genesis","earliest_available"]),lo=()=>Ee({apply:pe(),applyDuringCatchup:pe(),peerDownloads:pe(),perShard:pe()}),po=()=>Se([Ae(["Peers"]),Ee({ExternalStorage:Le(()=>Ee({externalStorageFallbackThreshold:Me(pe()),location:Le(()=>yt()),numConcurrentRequests:Me(pe()),numConcurrentRequestsDuringCatchup:Me(pe())}))})]),ho=()=>Ee({addr:ue(),peerId:Le(()=>Ft())}),mo=()=>Se([Ae(["NoShards"]),Ee({Shards:ke(Le(()=>Ee({shardId:pe(),version:pe()})))}),Ae(["AllShards"]),Ee({ShadowValidator:Le(()=>He())}),Ee({Schedule:ke(ke(Le(()=>Vn())))}),Ee({Accounts:ke(Le(()=>He()))})]),yo=()=>Ee({deposit:ue()}),go=()=>Se([Ee({ActionError:Le(()=>Ee({index:Me(Se([Se([pe(),ge()]),ge()])),kind:Le(()=>Ve())}))}),Ee({InvalidTxError:Le(()=>Se([Ee({InvalidAccessKeyError:Le(()=>wt())}),Ee({InvalidSignerId:Ee({signerId:ue()})}),Ee({SignerDoesNotExist:Ee({signerId:Le(()=>He())})}),Ee({InvalidNonce:Ee({akNonce:pe(),txNonce:pe()})}),Ee({NonceTooLarge:Ee({txNonce:pe(),upperBound:pe()})}),Ee({InvalidReceiverId:Ee({receiverId:ue()})}),Ae(["InvalidSignature"]),Ee({NotEnoughBalance:Ee({balance:ue(),cost:ue(),signerId:Le(()=>He())})}),Ee({LackBalanceForState:Ee({amount:ue(),signerId:Le(()=>He())})}),Ae(["CostOverflow"]),Ae(["InvalidChain"]),Ae(["Expired"]),Ee({ActionsValidation:Le(()=>Fe())}),Ee({TransactionSizeExceeded:Ee({limit:pe(),size:pe()})}),Ae(["InvalidTransactionVersion"]),Ee({StorageError:Le(()=>ao())}),Ee({ShardCongested:Ee({congestionLevel:pe(),shardId:pe()})}),Ee({ShardStuck:Ee({missedChunks:pe(),shardId:pe()})})]))})]),_o=()=>Se([Ae(["NONE"]),Ae(["INCLUDED"]),Ae(["EXECUTED_OPTIMISTIC"]),Ae(["INCLUDED_FINAL"]),Ae(["EXECUTED"]),Ae(["FINAL"])]),fo=()=>Ee({contractIdentifier:Le(()=>Tt())}),Io=()=>Ee({discardCustomSections:me(),ethImplicitAccounts:me(),extCosts:Le(()=>Ee({altBn128G1MultiexpBase:pe(),altBn128G1MultiexpElement:pe(),altBn128G1SumBase:pe(),altBn128G1SumElement:pe(),altBn128PairingCheckBase:pe(),altBn128PairingCheckElement:pe(),base:pe(),bls12381G1MultiexpBase:pe(),bls12381G1MultiexpElement:pe(),bls12381G2MultiexpBase:pe(),bls12381G2MultiexpElement:pe(),bls12381MapFp2ToG2Base:pe(),bls12381MapFp2ToG2Element:pe(),bls12381MapFpToG1Base:pe(),bls12381MapFpToG1Element:pe(),bls12381P1DecompressBase:pe(),bls12381P1DecompressElement:pe(),bls12381P1SumBase:pe(),bls12381P1SumElement:pe(),bls12381P2DecompressBase:pe(),bls12381P2DecompressElement:pe(),bls12381P2SumBase:pe(),bls12381P2SumElement:pe(),bls12381PairingBase:pe(),bls12381PairingElement:pe(),contractCompileBase:pe(),contractCompileBytes:pe(),contractLoadingBase:pe(),contractLoadingBytes:pe(),ecrecoverBase:pe(),ed25519VerifyBase:pe(),ed25519VerifyByte:pe(),keccak256Base:pe(),keccak256Byte:pe(),keccak512Base:pe(),keccak512Byte:pe(),logBase:pe(),logByte:pe(),promiseAndBase:pe(),promiseAndPerPromise:pe(),promiseReturn:pe(),readCachedTrieNode:pe(),readMemoryBase:pe(),readMemoryByte:pe(),readRegisterBase:pe(),readRegisterByte:pe(),ripemd160Base:pe(),ripemd160Block:pe(),sha256Base:pe(),sha256Byte:pe(),storageHasKeyBase:pe(),storageHasKeyByte:pe(),storageIterCreateFromByte:pe(),storageIterCreatePrefixBase:pe(),storageIterCreatePrefixByte:pe(),storageIterCreateRangeBase:pe(),storageIterCreateToByte:pe(),storageIterNextBase:pe(),storageIterNextKeyByte:pe(),storageIterNextValueByte:pe(),storageLargeReadOverheadBase:pe(),storageLargeReadOverheadByte:pe(),storageReadBase:pe(),storageReadKeyByte:pe(),storageReadValueByte:pe(),storageRemoveBase:pe(),storageRemoveKeyByte:pe(),storageRemoveRetValueByte:pe(),storageWriteBase:pe(),storageWriteEvictedByte:pe(),storageWriteKeyByte:pe(),storageWriteValueByte:pe(),touchingTrieNode:pe(),utf16DecodingBase:pe(),utf16DecodingByte:pe(),utf8DecodingBase:pe(),utf8DecodingByte:pe(),validatorStakeBase:pe(),validatorTotalStakeBase:pe(),writeMemoryBase:pe(),writeMemoryByte:pe(),writeRegisterBase:pe(),writeRegisterByte:pe(),yieldCreateBase:pe(),yieldCreateByte:pe(),yieldResumeBase:pe(),yieldResumeByte:pe()})),fixContractLoadingCost:me(),globalContractHostFns:me(),growMemCost:pe(),implicitAccountCreation:me(),limitConfig:Le(()=>Lt()),reftypesBulkMemory:me(),regularOpCost:pe(),saturatingFloatToInt:me(),storageGetMode:Le(()=>Ae(["FlatStorage","Trie"])),vmKind:Le(()=>ko())}),ko=()=>Se([Ae(["Wasmer0"]),Ae(["Wasmtime"]),Ae(["Wasmer2"]),Ae(["NearVm"]),Ae(["NearVm2"])]),vo=()=>Ee({accountId:Le(()=>He())}),Eo=()=>Ee({accountId:Le(()=>He()),reason:Le(()=>Se([Ae(["_UnusedSlashed"]),Ee({NotEnoughBlocks:Ee({expected:pe(),produced:pe()})}),Ee({NotEnoughChunks:Ee({expected:pe(),produced:pe()})}),Ae(["Unstaked"]),Ee({NotEnoughStake:Ee({stakeU128:ue(),thresholdU128:ue()})}),Ae(["DidNotGetASeat"]),Ee({NotEnoughChunkEndorsements:Ee({expected:pe(),produced:pe()})}),Ee({ProtocolVersionTooOld:Ee({networkVersion:pe(),version:pe()})})]))}),bo=()=>Le(()=>So()),So=()=>Ee({accountId:Le(()=>He()),publicKey:Le(()=>Ft()),stake:ue()}),Po=()=>Ee({build:ue(),commit:ue(),rustcVersion:Me(ue()),version:ue()}),To=()=>Ee({proof:Me(ke(ue())),values:ke(Le(()=>Ee({key:Le(()=>io()),value:Le(()=>co())})))}),Ro=()=>Se([Ae(["Unreachable"]),Ae(["IncorrectCallIndirectSignature"]),Ae(["MemoryOutOfBounds"]),Ae(["CallIndirectOOB"]),Ae(["IllegalArithmetic"]),Ae(["MisalignedAtomicAccess"]),Ae(["IndirectCallToNull"]),Ae(["StackOverflow"]),Ae(["GenericTrap"])]),wo=()=>Ee({combinedTransactionsSizeLimit:pe(),mainStorageProofSizeSoftLimit:pe(),newTransactionsValidationStateSizeSoftLimit:pe()}),xo={EXPERIMENTAL_changes:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["EXPERIMENTAL_changes"]),params:Le(()=>Bn())})),responseSchema:()=>Le(()=>Nt())},EXPERIMENTAL_changes_in_block:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["EXPERIMENTAL_changes_in_block"]),params:Le(()=>Nn())})),responseSchema:()=>Le(()=>Ct())},EXPERIMENTAL_congestion_level:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["EXPERIMENTAL_congestion_level"]),params:Le(()=>on())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>sn())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},EXPERIMENTAL_genesis_config:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["EXPERIMENTAL_genesis_config"]),params:Le(()=>St())})),responseSchema:()=>Le(()=>At())},EXPERIMENTAL_light_client_block_proof:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["EXPERIMENTAL_light_client_block_proof"]),params:Le(()=>ln())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>pn())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},EXPERIMENTAL_light_client_proof:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["EXPERIMENTAL_light_client_proof"]),params:Le(()=>hn())})),responseSchema:()=>Le(()=>Bt())},EXPERIMENTAL_maintenance_windows:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["EXPERIMENTAL_maintenance_windows"]),params:Le(()=>_n())})),responseSchema:()=>Le(()=>xt())},EXPERIMENTAL_protocol_config:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["EXPERIMENTAL_protocol_config"]),params:Le(()=>vn())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>En())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},EXPERIMENTAL_receipt:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["EXPERIMENTAL_receipt"]),params:Le(()=>Pn())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>Tn())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},EXPERIMENTAL_split_storage_info:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["EXPERIMENTAL_split_storage_info"]),params:Le(()=>xn())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>An())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},EXPERIMENTAL_tx_status:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["EXPERIMENTAL_tx_status"]),params:Le(()=>jn())})),responseSchema:()=>Le(()=>Mt())},EXPERIMENTAL_validators_ordered:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["EXPERIMENTAL_validators_ordered"]),params:Le(()=>Hn())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:ke(Le(()=>bo()))}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},block:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["block"]),params:Le(()=>Jt())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>Yt())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},block_effects:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["block_effects"]),params:Le(()=>Nn())})),responseSchema:()=>Le(()=>Ct())},broadcast_tx_async:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["broadcast_tx_async"]),params:Le(()=>wn())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>ot())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},broadcast_tx_commit:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["broadcast_tx_commit"]),params:Le(()=>wn())})),responseSchema:()=>Le(()=>Mt())},changes:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["changes"]),params:Le(()=>Bn())})),responseSchema:()=>Le(()=>Nt())},chunk:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["chunk"]),params:Le(()=>Qt())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>en())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},client_config:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["client_config"]),params:Le(()=>tn())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>nn())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},gas_price:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["gas_price"]),params:Le(()=>rn())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>cn())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},genesis_config:{requestSchema:St,responseSchema:()=>Le(()=>At())},health:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["health"]),params:Le(()=>dn())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Se([Le(()=>un()),ge()])}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},light_client_proof:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["light_client_proof"]),params:Le(()=>hn())})),responseSchema:()=>Le(()=>Bt())},maintenance_windows:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["maintenance_windows"]),params:Le(()=>_n())})),responseSchema:()=>Le(()=>xt())},network_info:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["network_info"]),params:Le(()=>fn())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>In())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},next_light_client_block:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["next_light_client_block"]),params:Le(()=>yn())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>gn())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},query:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["query"]),params:Le(()=>bn())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>Sn())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},send_tx:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["send_tx"]),params:Le(()=>wn())})),responseSchema:()=>Le(()=>Mt())},status:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["status"]),params:Le(()=>zn())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>Ln())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))},tx:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["tx"]),params:Le(()=>jn())})),responseSchema:()=>Le(()=>Mt())},validators:{requestSchema:()=>Le(()=>Ee({id:ue(),jsonrpc:ue(),method:Ae(["validators"]),params:Le(()=>On())})),responseSchema:()=>Le(()=>Te(Se([Ee({result:Le(()=>Dn())}),Ee({error:Le(()=>an())})]),Ee({id:ue(),jsonrpc:ue()})))}},Ao=()=>Ee({jsonrpc:Ce("2.0"),id:ue(),method:ue(),params:Me(fe())}),Bo=()=>Ee({jsonrpc:Ce("2.0"),id:ue(),result:Me(fe()),error:Me(Ee({code:pe(),message:ue(),data:Me(fe())}))}),Co={"/EXPERIMENTAL_changes":"EXPERIMENTAL_changes","/EXPERIMENTAL_changes_in_block":"EXPERIMENTAL_changes_in_block","/EXPERIMENTAL_congestion_level":"EXPERIMENTAL_congestion_level","/EXPERIMENTAL_genesis_config":"EXPERIMENTAL_genesis_config","/EXPERIMENTAL_light_client_block_proof":"EXPERIMENTAL_light_client_block_proof","/EXPERIMENTAL_light_client_proof":"EXPERIMENTAL_light_client_proof","/EXPERIMENTAL_maintenance_windows":"EXPERIMENTAL_maintenance_windows","/EXPERIMENTAL_protocol_config":"EXPERIMENTAL_protocol_config","/EXPERIMENTAL_receipt":"EXPERIMENTAL_receipt","/EXPERIMENTAL_split_storage_info":"EXPERIMENTAL_split_storage_info","/EXPERIMENTAL_tx_status":"EXPERIMENTAL_tx_status","/EXPERIMENTAL_validators_ordered":"EXPERIMENTAL_validators_ordered","/block":"block","/block_effects":"block_effects","/broadcast_tx_async":"broadcast_tx_async","/broadcast_tx_commit":"broadcast_tx_commit","/changes":"changes","/chunk":"chunk","/client_config":"client_config","/gas_price":"gas_price","/genesis_config":"genesis_config","/health":"health","/light_client_proof":"light_client_proof","/maintenance_windows":"maintenance_windows","/network_info":"network_info","/next_light_client_block":"next_light_client_block","/query":"query","/send_tx":"send_tx","/status":"status","/tx":"tx","/validators":"validators"};Object.entries(Co).forEach(([e,t])=>{});var No=Object.values(Co);async function Mo(e,t){return e.makeRequest("EXPERIMENTAL_changes",t)}async function zo(e,t){return e.makeRequest("EXPERIMENTAL_changes_in_block",t)}async function Lo(e,t){return e.makeRequest("EXPERIMENTAL_congestion_level",t)}async function qo(e,t){return e.makeRequest("EXPERIMENTAL_genesis_config",t)}async function jo(e,t){return e.makeRequest("EXPERIMENTAL_light_client_block_proof",t)}async function Oo(e,t){return e.makeRequest("EXPERIMENTAL_light_client_proof",t)}async function Do(e,t){return e.makeRequest("EXPERIMENTAL_maintenance_windows",t)}async function Ho(e,t){return e.makeRequest("EXPERIMENTAL_protocol_config",t)}async function Ko(e,t){return e.makeRequest("EXPERIMENTAL_receipt",t)}async function $o(e,t){return e.makeRequest("EXPERIMENTAL_split_storage_info",t)}async function Vo(e,t){return e.makeRequest("EXPERIMENTAL_tx_status",t)}async function Xo(e,t){return e.makeRequest("EXPERIMENTAL_validators_ordered",t)}async function Fo(e,t){return e.makeRequest("block",t)}async function Go(e,t){return e.makeRequest("block_effects",t)}async function Uo(e,t){return e.makeRequest("broadcast_tx_async",t)}async function Zo(e,t){return e.makeRequest("broadcast_tx_commit",t)}async function Wo(e,t){return e.makeRequest("changes",t)}async function Jo(e,t){return e.makeRequest("chunk",t)}async function Yo(e,t){return e.makeRequest("client_config",t)}async function Qo(e,t){return e.makeRequest("gas_price",t)}async function es(e,t){return e.makeRequest("genesis_config",t)}async function ts(e,t){return e.makeRequest("health",t)}async function ns(e,t){return e.makeRequest("light_client_proof",t)}async function os(e,t){return e.makeRequest("maintenance_windows",t)}async function ss(e,t){return e.makeRequest("network_info",t)}async function as(e,t){return e.makeRequest("next_light_client_block",t)}async function rs(e,t){return e.makeRequest("query",t)}async function is(e,t){return e.makeRequest("send_tx",t)}async function cs(e,t){return e.makeRequest("status",t)}async function ds(e,t){return e.makeRequest("tx",t)}async function us(e,t){return e.makeRequest("validators",t)}async function ls(e,t){return rs(e,t.blockId?{requestType:"view_account",accountId:t.accountId,blockId:t.blockId}:{requestType:"view_account",accountId:t.accountId,finality:t.finality||"final"})}async function ps(e,t){const n={requestType:"call_function",accountId:t.accountId,methodName:t.methodName,argsBase64:t.argsBase64??""};return rs(e,t.blockId?{...n,blockId:t.blockId}:{...n,finality:t.finality||"final"})}async function hs(e,t){return rs(e,t.blockId?{requestType:"view_access_key",accountId:t.accountId,publicKey:t.publicKey,blockId:t.blockId}:{requestType:"view_access_key",accountId:t.accountId,publicKey:t.publicKey,finality:t.finality||"final"})}function ms(){const e=Ao(),t=Bo();return{validateRequest:t=>{try{e.parse(t)}catch(e){throw new r(`Invalid request format: ${e instanceof Error?e.message:"Unknown error"}`,e)}},validateResponse:e=>{try{t.parse(e)}catch(e){throw new a(`Invalid response format: ${e instanceof Error?e.message:"Unknown error"}`)}},validateMethodRequest:(t,n)=>{try{e.parse(n);const o=xo[t];if(o?.requestSchema){o.requestSchema().parse(n)}}catch(e){throw new r(`Invalid ${t} request: ${e instanceof Error?e.message:"Unknown error"}`,e)}},validateMethodResponse:(e,n)=>{try{if(t.parse(n),n.result&&"object"==typeof n.result&&"error"in n.result){const e=n.result.error;throw new a(`Server error: ${e}`,-32e3,n.result)}const o=xo[e];if(o?.responseSchema){o.responseSchema().parse(n)}}catch(t){if(t instanceof a)throw t;throw new a(`Invalid ${e} response: ${t instanceof Error?t.message:"Unknown error"}`)}}}}export{a as JsonRpcClientError,r as JsonRpcNetworkError,Ao as JsonRpcRequestSchema,Bo as JsonRpcResponseSchema,i as NearRpcClient,d as NearRpcError,No as RPC_METHODS,Fo as block,Go as blockEffects,Uo as broadcastTxAsync,Zo as broadcastTxCommit,Wo as changes,Jo as chunk,Yo as clientConfig,i as default,c as defaultClient,ms as enableValidation,Mo as experimentalChanges,zo as experimentalChangesInBlock,Lo as experimentalCongestionLevel,qo as experimentalGenesisConfig,jo as experimentalLightClientBlockProof,Oo as experimentalLightClientProof,Do as experimentalMaintenanceWindows,Ho as experimentalProtocolConfig,Ko as experimentalReceipt,$o as experimentalSplitStorageInfo,Vo as experimentalTxStatus,Xo as experimentalValidatorsOrdered,Qo as gasPrice,es as genesisConfig,ts as health,ns as lightClientProof,os as maintenanceWindows,ss as networkInfo,as as nextLightClientBlock,rs as query,is as sendTx,cs as status,ds as tx,us as validators,hs as viewAccessKey,ls as viewAccount,ps as viewFunction};
|
package/dist/client.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAiDxD,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AAGD,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,OAAO;IACzC,OAAO,EAAE,KAAK,CAAC;IACf,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,CAAC,CAAC;CACZ;AAGD,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,OAAO;IAC1C,OAAO,EAAE,KAAK,CAAC;IACf,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,CAAC,CAAC;IACX,KAAK,CAAC,EAAE,YAAY,CAAC;CACtB;AAGD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAGD,qBAAa,kBAAmB,SAAQ,KAAK;IAGlC,IAAI,CAAC,EAAE,MAAM;IACb,IAAI,CAAC,EAAE,OAAO;gBAFrB,OAAO,EAAE,MAAM,EACR,IAAI,CAAC,EAAE,MAAM,YAAA,EACb,IAAI,CAAC,EAAE,OAAO,YAAA;CAKxB;AAED,qBAAa,mBAAoB,SAAQ,KAAK;IAGnC,aAAa,CAAC,EAAE,KAAK;IACrB,YAAY,CAAC,EAAE,OAAO;gBAF7B,OAAO,EAAE,MAAM,EACR,aAAa,CAAC,EAAE,KAAK,YAAA,EACrB,YAAY,CAAC,EAAE,OAAO,YAAA;CAKhC;AAED;;;;GAIG;AACH,qBAAa,aAAa;IACxB,SAAgB,QAAQ,EAAE,MAAM,CAAC;IACjC,SAAgB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChD,SAAgB,OAAO,EAAE,MAAM,CAAC;IAChC,SAAgB,OAAO,EAAE,MAAM,CAAC;IAChC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA+B;gBAE9C,MAAM,EAAE,MAAM,GAAG,YAAY;IAiBzC;;;OAGG;IACG,WAAW,CAAC,OAAO,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO,EACpD,MAAM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,CAAC,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAiDxD,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AAGD,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,OAAO;IACzC,OAAO,EAAE,KAAK,CAAC;IACf,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,CAAC,CAAC;CACZ;AAGD,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,OAAO;IAC1C,OAAO,EAAE,KAAK,CAAC;IACf,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,CAAC,CAAC;IACX,KAAK,CAAC,EAAE,YAAY,CAAC;CACtB;AAGD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAGD,qBAAa,kBAAmB,SAAQ,KAAK;IAGlC,IAAI,CAAC,EAAE,MAAM;IACb,IAAI,CAAC,EAAE,OAAO;gBAFrB,OAAO,EAAE,MAAM,EACR,IAAI,CAAC,EAAE,MAAM,YAAA,EACb,IAAI,CAAC,EAAE,OAAO,YAAA;CAKxB;AAED,qBAAa,mBAAoB,SAAQ,KAAK;IAGnC,aAAa,CAAC,EAAE,KAAK;IACrB,YAAY,CAAC,EAAE,OAAO;gBAF7B,OAAO,EAAE,MAAM,EACR,aAAa,CAAC,EAAE,KAAK,YAAA,EACrB,YAAY,CAAC,EAAE,OAAO,YAAA;CAKhC;AAED;;;;GAIG;AACH,qBAAa,aAAa;IACxB,SAAgB,QAAQ,EAAE,MAAM,CAAC;IACjC,SAAgB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChD,SAAgB,OAAO,EAAE,MAAM,CAAC;IAChC,SAAgB,OAAO,EAAE,MAAM,CAAC;IAChC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA+B;gBAE9C,MAAM,EAAE,MAAM,GAAG,YAAY;IAiBzC;;;OAGG;IACG,WAAW,CAAC,OAAO,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO,EACpD,MAAM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,CAAC,OAAO,CAAC;IAkJnB;;OAEG;IACH,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,aAAa;CAazD;AAGD,eAAO,MAAM,aAAa,eAExB,CAAC"}
|
package/dist/index.js
CHANGED
@@ -214,6 +214,15 @@ var NearRpcClient = class _NearRpcClient {
|
|
214
214
|
this.validation.validateResponse(jsonResponse);
|
215
215
|
}
|
216
216
|
const camelCaseResult = jsonResponse.result ? convertKeysToCamelCase(jsonResponse.result) : jsonResponse.result;
|
217
|
+
if (camelCaseResult && typeof camelCaseResult === "object" && "error" in camelCaseResult) {
|
218
|
+
const errorMessage = camelCaseResult.error;
|
219
|
+
throw new JsonRpcClientError(
|
220
|
+
`RPC Error: ${errorMessage}`,
|
221
|
+
-32e3,
|
222
|
+
// Generic RPC error code
|
223
|
+
camelCaseResult
|
224
|
+
);
|
225
|
+
}
|
217
226
|
if (this.validation && "validateMethodResponse" in this.validation) {
|
218
227
|
const camelCaseResponse = {
|
219
228
|
...jsonResponse,
|
@@ -448,12 +457,23 @@ function enableValidation() {
|
|
448
457
|
validateMethodResponse: (method, response) => {
|
449
458
|
try {
|
450
459
|
responseSchema.parse(response);
|
460
|
+
if (response.result && typeof response.result === "object" && "error" in response.result) {
|
461
|
+
const serverError = response.result.error;
|
462
|
+
throw new JsonRpcClientError(
|
463
|
+
`Server error: ${serverError}`,
|
464
|
+
-32e3,
|
465
|
+
response.result
|
466
|
+
);
|
467
|
+
}
|
451
468
|
const methodSchemas = import_jsonrpc_types.VALIDATION_SCHEMA_MAP[method];
|
452
469
|
if (methodSchemas?.responseSchema) {
|
453
470
|
const methodResponseSchema = methodSchemas.responseSchema();
|
454
471
|
methodResponseSchema.parse(response);
|
455
472
|
}
|
456
473
|
} catch (error) {
|
474
|
+
if (error instanceof JsonRpcClientError) {
|
475
|
+
throw error;
|
476
|
+
}
|
457
477
|
throw new JsonRpcClientError(
|
458
478
|
`Invalid ${method} response: ${error instanceof Error ? error.message : "Unknown error"}`
|
459
479
|
);
|
package/dist/index.mjs
CHANGED
@@ -145,6 +145,15 @@ var NearRpcClient = class _NearRpcClient {
|
|
145
145
|
this.validation.validateResponse(jsonResponse);
|
146
146
|
}
|
147
147
|
const camelCaseResult = jsonResponse.result ? convertKeysToCamelCase(jsonResponse.result) : jsonResponse.result;
|
148
|
+
if (camelCaseResult && typeof camelCaseResult === "object" && "error" in camelCaseResult) {
|
149
|
+
const errorMessage = camelCaseResult.error;
|
150
|
+
throw new JsonRpcClientError(
|
151
|
+
`RPC Error: ${errorMessage}`,
|
152
|
+
-32e3,
|
153
|
+
// Generic RPC error code
|
154
|
+
camelCaseResult
|
155
|
+
);
|
156
|
+
}
|
148
157
|
if (this.validation && "validateMethodResponse" in this.validation) {
|
149
158
|
const camelCaseResponse = {
|
150
159
|
...jsonResponse,
|
@@ -386,12 +395,23 @@ function enableValidation() {
|
|
386
395
|
validateMethodResponse: (method, response) => {
|
387
396
|
try {
|
388
397
|
responseSchema.parse(response);
|
398
|
+
if (response.result && typeof response.result === "object" && "error" in response.result) {
|
399
|
+
const serverError = response.result.error;
|
400
|
+
throw new JsonRpcClientError(
|
401
|
+
`Server error: ${serverError}`,
|
402
|
+
-32e3,
|
403
|
+
response.result
|
404
|
+
);
|
405
|
+
}
|
389
406
|
const methodSchemas = VALIDATION_SCHEMA_MAP[method];
|
390
407
|
if (methodSchemas?.responseSchema) {
|
391
408
|
const methodResponseSchema = methodSchemas.responseSchema();
|
392
409
|
methodResponseSchema.parse(response);
|
393
410
|
}
|
394
411
|
} catch (error) {
|
412
|
+
if (error instanceof JsonRpcClientError) {
|
413
|
+
throw error;
|
414
|
+
}
|
395
415
|
throw new JsonRpcClientError(
|
396
416
|
`Invalid ${method} response: ${error instanceof Error ? error.message : "Unknown error"}`
|
397
417
|
);
|
package/dist/validation.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,cAAc,EACd,eAAe,EAGhB,MAAM,aAAa,CAAC;AAErB,MAAM,WAAW,gBAAgB;IAC/B,eAAe,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;IACnD,gBAAgB,EAAE,CAAC,QAAQ,EAAE,eAAe,KAAK,IAAI,CAAC;IACtD,qBAAqB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;IAC1E,sBAAsB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,KAAK,IAAI,CAAC;CAC9E;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,IAAI,gBAAgB,
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,cAAc,EACd,eAAe,EAGhB,MAAM,aAAa,CAAC;AAErB,MAAM,WAAW,gBAAgB;IAC/B,eAAe,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;IACnD,gBAAgB,EAAE,CAAC,QAAQ,EAAE,eAAe,KAAK,IAAI,CAAC;IACtD,qBAAqB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;IAC1E,sBAAsB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,KAAK,IAAI,CAAC;CAC9E;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,IAAI,gBAAgB,CAoFnD"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@psalomo/jsonrpc-client",
|
3
|
-
"version": "1.0
|
3
|
+
"version": "1.1.0",
|
4
4
|
"description": "TypeScript client for NEAR Protocol JSON-RPC API",
|
5
5
|
"main": "./dist/index.js",
|
6
6
|
"module": "./dist/index.mjs",
|
@@ -30,7 +30,7 @@
|
|
30
30
|
"test:coverage": "vitest run --coverage"
|
31
31
|
},
|
32
32
|
"dependencies": {
|
33
|
-
"@psalomo/jsonrpc-types": "^1.0
|
33
|
+
"@psalomo/jsonrpc-types": "^1.1.0"
|
34
34
|
},
|
35
35
|
"devDependencies": {
|
36
36
|
"@rollup/plugin-node-resolve": "^16.0.1",
|