@sentio/runtime 2.57.8 → 2.57.9-rc.10

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/lib/index.d.ts CHANGED
@@ -172,6 +172,7 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
172
172
  [x: string]: {
173
173
  nullValue?: _sentio_protos.RichValue_NullValue | undefined;
174
174
  intValue?: number | undefined;
175
+ int64Value?: bigint | undefined;
175
176
  floatValue?: number | undefined;
176
177
  bytesValue?: Uint8Array | undefined;
177
178
  boolValue?: boolean | undefined;
@@ -312,6 +313,7 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
312
313
  [x: string]: {
313
314
  nullValue?: _sentio_protos.RichValue_NullValue | undefined;
314
315
  intValue?: number | undefined;
316
+ int64Value?: bigint | undefined;
315
317
  floatValue?: number | undefined;
316
318
  bytesValue?: Uint8Array | undefined;
317
319
  boolValue?: boolean | undefined;
@@ -399,6 +401,7 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
399
401
  [x: string]: {
400
402
  nullValue?: _sentio_protos.RichValue_NullValue | undefined;
401
403
  intValue?: number | undefined;
404
+ int64Value?: bigint | undefined;
402
405
  floatValue?: number | undefined;
403
406
  bytesValue?: Uint8Array | undefined;
404
407
  boolValue?: boolean | undefined;
@@ -467,6 +470,7 @@ interface ExecutionConfig {
467
470
  processBindingTimeout: number;
468
471
  skipStartBlockValidation: boolean;
469
472
  rpcRetryTimes: number;
473
+ ethAbiDecoderConfig?: ExecutionConfig_DecoderWorkerConfig | undefined;
470
474
  }
471
475
  declare const ExecutionConfig: {
472
476
  encode(message: ExecutionConfig, writer?: _m0.Writer): _m0.Writer;
@@ -476,6 +480,19 @@ declare const ExecutionConfig: {
476
480
  create(base?: DeepPartial<ExecutionConfig>): ExecutionConfig;
477
481
  fromPartial(object: DeepPartial<ExecutionConfig>): ExecutionConfig;
478
482
  };
483
+ interface ExecutionConfig_DecoderWorkerConfig {
484
+ enabled: boolean;
485
+ workerCount?: number | undefined;
486
+ skipWhenDecodeFailed?: boolean | undefined;
487
+ }
488
+ declare const ExecutionConfig_DecoderWorkerConfig: {
489
+ encode(message: ExecutionConfig_DecoderWorkerConfig, writer?: _m0.Writer): _m0.Writer;
490
+ decode(input: _m0.Reader | Uint8Array, length?: number): ExecutionConfig_DecoderWorkerConfig;
491
+ fromJSON(object: any): ExecutionConfig_DecoderWorkerConfig;
492
+ toJSON(message: ExecutionConfig_DecoderWorkerConfig): unknown;
493
+ create(base?: DeepPartial<ExecutionConfig_DecoderWorkerConfig>): ExecutionConfig_DecoderWorkerConfig;
494
+ fromPartial(object: DeepPartial<ExecutionConfig_DecoderWorkerConfig>): ExecutionConfig_DecoderWorkerConfig;
495
+ };
479
496
  type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
480
497
  type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
481
498
  [K in keyof T]?: DeepPartial<T[K]>;
@@ -616,6 +633,11 @@ declare const processMetrics: {
616
633
  processor_rpc_duration: H;
617
634
  processor_rpc_queue_duration: H;
618
635
  processor_template_instance_count: C;
636
+ processor_worker_run_time: G;
637
+ processor_worker_wait_time: G;
638
+ processor_worker_utilization: G;
639
+ processor_worker_queue_size: G;
640
+ processor_worker_completed: G;
619
641
  stats(): {
620
642
  process_binding_count: number;
621
643
  process_binding_time: number;
@@ -630,6 +652,11 @@ declare const processMetrics: {
630
652
  processor_rpc_duration: number;
631
653
  processor_rpc_queue_duration: number;
632
654
  processor_template_instance_count: number;
655
+ processor_worker_run_time: number;
656
+ processor_worker_wait_time: number;
657
+ processor_worker_utilization: number;
658
+ processor_worker_queue_size: number;
659
+ processor_worker_completed: number;
633
660
  };
634
661
  };
635
662
  declare const metricsStorage: AsyncLocalStorage<string>;
package/lib/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireShim } from 'module'; const require = createRequireShim(import.meta.url);
2
- import{$ as O,A as p,X as N,Y as C,Z as V,_ as w,aa as A,ca as I,da as M,ea as b,fa as y,i as u,j as c,m as T,n as m,o as h,p as l,q as f,r as x,s as d}from"./chunk-RPFKMFGZ.js";var r=class e{stateMap=new Map;static INSTANCE=new e;static reset(){e.INSTANCE=new e}},i=class{constructor(){}key(){return this.constructor.name}getOrRegister(){let t=r.INSTANCE.stateMap.get(this.key());return t||(t=this.initValue(),r.INSTANCE.stateMap.set(this.key(),t)),t}unregister(){let t=r.INSTANCE.stateMap.get(this.key());return r.INSTANCE.stateMap.delete(this.key()),t}},a=class extends i{initValue(){return new Map}getValue(t){return this.getOrRegister().get(t)}getValues(){let t=this.getOrRegister();return Array.from(t.values())}getOrSetValue(t,s){let o=this.getOrRegister(),n=o.get(t);return n?(n!==s&&console.warn(t,"has been registered twice, use the previous one"),n):(o.set(t,s),s)}},g=class extends i{initValue(){return[]}getValues(){return this.getOrRegister()}addValue(t){return this.getOrRegister().push(t),t}};import("node:process").then(e=>e.stdout.write(""));import("node:process").then(e=>e.stdout.write(""));import("node:process").then(e=>e.stdout.write(""));export{I as DummyProvider,d as Endpoints,p as GLOBAL_CONFIG,g as ListStateStorage,a as MapStateStorage,u as Plugin,c as PluginManager,y as ProcessorServiceImpl,b as QueuedStaticJsonRpcProvider,r as State,i as StateStorage,A as StoreContext,h as USER_PROCESSOR,x as compareSemver,N as dbMetrics,m as errorString,M as getProvider,l as makeEthCallKey,T as mergeProcessResults,w as metricsStorage,f as parseSemver,V as processMetrics,C as providerMetrics,O as timeoutError};
2
+ import{$ as O,A as p,X as N,Y as C,Z as V,_ as w,aa as A,ca as I,da as M,ea as b,fa as y,i as u,j as c,m as T,n as m,o as h,p as l,q as f,r as x,s as d}from"./chunk-2VEXZO35.js";var r=class e{stateMap=new Map;static INSTANCE=new e;static reset(){e.INSTANCE=new e}},i=class{constructor(){}key(){return this.constructor.name}getOrRegister(){let t=r.INSTANCE.stateMap.get(this.key());return t||(t=this.initValue(),r.INSTANCE.stateMap.set(this.key(),t)),t}unregister(){let t=r.INSTANCE.stateMap.get(this.key());return r.INSTANCE.stateMap.delete(this.key()),t}},a=class extends i{initValue(){return new Map}getValue(t){return this.getOrRegister().get(t)}getValues(){let t=this.getOrRegister();return Array.from(t.values())}getOrSetValue(t,s){let o=this.getOrRegister(),n=o.get(t);return n?(n!==s&&console.warn(t,"has been registered twice, use the previous one"),n):(o.set(t,s),s)}},g=class extends i{initValue(){return[]}getValues(){return this.getOrRegister()}addValue(t){return this.getOrRegister().push(t),t}};import("node:process").then(e=>e.stdout.write(""));import("node:process").then(e=>e.stdout.write(""));import("node:process").then(e=>e.stdout.write(""));export{I as DummyProvider,d as Endpoints,p as GLOBAL_CONFIG,g as ListStateStorage,a as MapStateStorage,u as Plugin,c as PluginManager,y as ProcessorServiceImpl,b as QueuedStaticJsonRpcProvider,r as State,i as StateStorage,A as StoreContext,h as USER_PROCESSOR,x as compareSemver,N as dbMetrics,m as errorString,M as getProvider,l as makeEthCallKey,T as mergeProcessResults,w as metricsStorage,f as parseSemver,V as processMetrics,C as providerMetrics,O as timeoutError};
3
3
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as createRequireShim } from 'module'; const require = createRequireShim(import.meta.url);
3
- import{A as EE,B as it,C as _E,D as $r,E as SE,F as hE,G as Et,H as Q,I as TE,J as Gt,K as xi,L as _t,M as vE,N as St,O as mE,P as yE,Q as Ye,R as g,S as Mi,T as at,U as J,V as Pe,W as M,a as L,b as m,ba as AE,c as h,d as Je,e as Re,f as Y,fa as OE,g as WU,h as uE,j as Ml,k as lE,l as cE,q as Xn,r as jr,s as _r,t as Ll,u as fE,v as Jn,w as pE,x as dE,y as zU,z as XU}from"./chunk-RPFKMFGZ.js";var Ee=h(Il=>{"use strict";Il.fromCallback=function(t){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")t.apply(this,e);else return new Promise((n,i)=>{e.push((a,s)=>a!=null?i(a):n(s)),t.apply(this,e)})},"name",{value:t.name})};Il.fromPromise=function(t){return Object.defineProperty(function(...e){let n=e[e.length-1];if(typeof n!="function")return t.apply(this,e);e.pop(),t.apply(this,e).then(i=>n(null,i),n)},"name",{value:t.name})}});var NE=h((uQ,gE)=>{"use strict";var kt=L("constants"),JU=process.cwd,Li=null,QU=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Li||(Li=JU.call(process)),Li};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Cl=process.chdir,process.chdir=function(t){Li=null,Cl.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Cl));var Cl;gE.exports=ZU;function ZU(t){kt.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||n(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=i(t.chmod),t.fchmod=i(t.fchmod),t.lchmod=i(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=a(t.chmodSync),t.fchmodSync=a(t.fchmodSync),t.lchmodSync=a(t.lchmodSync),t.stat=r(t.stat),t.fstat=r(t.fstat),t.lstat=r(t.lstat),t.statSync=u(t.statSync),t.fstatSync=u(t.fstatSync),t.lstatSync=u(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(c,f,_){_&&process.nextTick(_)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(c,f,_,p){p&&process.nextTick(p)},t.lchownSync=function(){}),QU==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(c){function f(_,p,S){var v=Date.now(),T=0;c(_,p,function A(O){if(O&&(O.code==="EACCES"||O.code==="EPERM"||O.code==="EBUSY")&&Date.now()-v<6e4){setTimeout(function(){t.stat(p,function(N,D){N&&N.code==="ENOENT"?c(_,p,A):S(O)})},T),T<100&&(T+=10);return}S&&S(O)})}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f}(t.rename)),t.read=typeof t.read!="function"?t.read:function(c){function f(_,p,S,v,T,A){var O;if(A&&typeof A=="function"){var N=0;O=function(D,G,F){if(D&&D.code==="EAGAIN"&&N<10)return N++,c.call(t,_,p,S,v,T,O);A.apply(this,arguments)}}return c.call(t,_,p,S,v,T,O)}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(c){return function(f,_,p,S,v){for(var T=0;;)try{return c.call(t,f,_,p,S,v)}catch(A){if(A.code==="EAGAIN"&&T<10){T++;continue}throw A}}}(t.readSync);function e(c){c.lchmod=function(f,_,p){c.open(f,kt.O_WRONLY|kt.O_SYMLINK,_,function(S,v){if(S){p&&p(S);return}c.fchmod(v,_,function(T){c.close(v,function(A){p&&p(T||A)})})})},c.lchmodSync=function(f,_){var p=c.openSync(f,kt.O_WRONLY|kt.O_SYMLINK,_),S=!0,v;try{v=c.fchmodSync(p,_),S=!1}finally{if(S)try{c.closeSync(p)}catch{}else c.closeSync(p)}return v}}function n(c){kt.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(f,_,p,S){c.open(f,kt.O_SYMLINK,function(v,T){if(v){S&&S(v);return}c.futimes(T,_,p,function(A){c.close(T,function(O){S&&S(A||O)})})})},c.lutimesSync=function(f,_,p){var S=c.openSync(f,kt.O_SYMLINK),v,T=!0;try{v=c.futimesSync(S,_,p),T=!1}finally{if(T)try{c.closeSync(S)}catch{}else c.closeSync(S)}return v}):c.futimes&&(c.lutimes=function(f,_,p,S){S&&process.nextTick(S)},c.lutimesSync=function(){})}function i(c){return c&&function(f,_,p){return c.call(t,f,_,function(S){l(S)&&(S=null),p&&p.apply(this,arguments)})}}function a(c){return c&&function(f,_){try{return c.call(t,f,_)}catch(p){if(!l(p))throw p}}}function s(c){return c&&function(f,_,p,S){return c.call(t,f,_,p,function(v){l(v)&&(v=null),S&&S.apply(this,arguments)})}}function o(c){return c&&function(f,_,p){try{return c.call(t,f,_,p)}catch(S){if(!l(S))throw S}}}function r(c){return c&&function(f,_,p){typeof _=="function"&&(p=_,_=null);function S(v,T){T&&(T.uid<0&&(T.uid+=4294967296),T.gid<0&&(T.gid+=4294967296)),p&&p.apply(this,arguments)}return _?c.call(t,f,_,S):c.call(t,f,S)}}function u(c){return c&&function(f,_){var p=_?c.call(t,f,_):c.call(t,f);return p&&(p.uid<0&&(p.uid+=4294967296),p.gid<0&&(p.gid+=4294967296)),p}}function l(c){if(!c||c.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var bE=h((lQ,PE)=>{"use strict";var RE=L("stream").Stream;PE.exports=eD;function eD(t){return{ReadStream:e,WriteStream:n};function e(i,a){if(!(this instanceof e))return new e(i,a);RE.call(this);var s=this;this.path=i,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,a=a||{};for(var o=Object.keys(a),r=0,u=o.length;r<u;r++){var l=o[r];this[l]=a[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(c,f){if(c){s.emit("error",c),s.readable=!1;return}s.fd=f,s.emit("open",f),s._read()})}function n(i,a){if(!(this instanceof n))return new n(i,a);RE.call(this),this.path=i,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var s=Object.keys(a),o=0,r=s.length;o<r;o++){var u=s[o];this[u]=a[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var ME=h((cQ,xE)=>{"use strict";xE.exports=rD;var tD=Object.getPrototypeOf||function(t){return t.__proto__};function rD(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:tD(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}});var Wr=h((fQ,Dl)=>{"use strict";var ie=L("fs"),nD=NE(),oD=bE(),iD=ME(),Ii=L("util"),me,wi;typeof Symbol=="function"&&typeof Symbol.for=="function"?(me=Symbol.for("graceful-fs.queue"),wi=Symbol.for("graceful-fs.previous")):(me="___graceful-fs.queue",wi="___graceful-fs.previous");function aD(){}function CE(t,e){Object.defineProperty(t,me,{get:function(){return e}})}var Sr=aD;Ii.debuglog?Sr=Ii.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Sr=function(){var t=Ii.format.apply(Ii,arguments);t="GFS4: "+t.split(/\n/).join(`
3
+ import{A as EE,B as it,C as _E,D as $r,E as SE,F as hE,G as Et,H as Q,I as TE,J as Gt,K as xi,L as _t,M as vE,N as St,O as mE,P as yE,Q as Ye,R as g,S as Mi,T as at,U as J,V as Pe,W as M,a as L,b as m,ba as AE,c as h,d as Je,e as Re,f as Y,fa as OE,g as WU,h as uE,j as Ml,k as lE,l as cE,q as Xn,r as jr,s as _r,t as Ll,u as fE,v as Jn,w as pE,x as dE,y as zU,z as XU}from"./chunk-2VEXZO35.js";var Ee=h(Il=>{"use strict";Il.fromCallback=function(t){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")t.apply(this,e);else return new Promise((n,i)=>{e.push((a,s)=>a!=null?i(a):n(s)),t.apply(this,e)})},"name",{value:t.name})};Il.fromPromise=function(t){return Object.defineProperty(function(...e){let n=e[e.length-1];if(typeof n!="function")return t.apply(this,e);e.pop(),t.apply(this,e).then(i=>n(null,i),n)},"name",{value:t.name})}});var NE=h((uQ,gE)=>{"use strict";var kt=L("constants"),JU=process.cwd,Li=null,QU=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Li||(Li=JU.call(process)),Li};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Cl=process.chdir,process.chdir=function(t){Li=null,Cl.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Cl));var Cl;gE.exports=ZU;function ZU(t){kt.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||n(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=i(t.chmod),t.fchmod=i(t.fchmod),t.lchmod=i(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=a(t.chmodSync),t.fchmodSync=a(t.fchmodSync),t.lchmodSync=a(t.lchmodSync),t.stat=r(t.stat),t.fstat=r(t.fstat),t.lstat=r(t.lstat),t.statSync=u(t.statSync),t.fstatSync=u(t.fstatSync),t.lstatSync=u(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(c,f,_){_&&process.nextTick(_)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(c,f,_,p){p&&process.nextTick(p)},t.lchownSync=function(){}),QU==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(c){function f(_,p,S){var v=Date.now(),T=0;c(_,p,function A(O){if(O&&(O.code==="EACCES"||O.code==="EPERM"||O.code==="EBUSY")&&Date.now()-v<6e4){setTimeout(function(){t.stat(p,function(N,D){N&&N.code==="ENOENT"?c(_,p,A):S(O)})},T),T<100&&(T+=10);return}S&&S(O)})}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f}(t.rename)),t.read=typeof t.read!="function"?t.read:function(c){function f(_,p,S,v,T,A){var O;if(A&&typeof A=="function"){var N=0;O=function(D,G,F){if(D&&D.code==="EAGAIN"&&N<10)return N++,c.call(t,_,p,S,v,T,O);A.apply(this,arguments)}}return c.call(t,_,p,S,v,T,O)}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(c){return function(f,_,p,S,v){for(var T=0;;)try{return c.call(t,f,_,p,S,v)}catch(A){if(A.code==="EAGAIN"&&T<10){T++;continue}throw A}}}(t.readSync);function e(c){c.lchmod=function(f,_,p){c.open(f,kt.O_WRONLY|kt.O_SYMLINK,_,function(S,v){if(S){p&&p(S);return}c.fchmod(v,_,function(T){c.close(v,function(A){p&&p(T||A)})})})},c.lchmodSync=function(f,_){var p=c.openSync(f,kt.O_WRONLY|kt.O_SYMLINK,_),S=!0,v;try{v=c.fchmodSync(p,_),S=!1}finally{if(S)try{c.closeSync(p)}catch{}else c.closeSync(p)}return v}}function n(c){kt.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(f,_,p,S){c.open(f,kt.O_SYMLINK,function(v,T){if(v){S&&S(v);return}c.futimes(T,_,p,function(A){c.close(T,function(O){S&&S(A||O)})})})},c.lutimesSync=function(f,_,p){var S=c.openSync(f,kt.O_SYMLINK),v,T=!0;try{v=c.futimesSync(S,_,p),T=!1}finally{if(T)try{c.closeSync(S)}catch{}else c.closeSync(S)}return v}):c.futimes&&(c.lutimes=function(f,_,p,S){S&&process.nextTick(S)},c.lutimesSync=function(){})}function i(c){return c&&function(f,_,p){return c.call(t,f,_,function(S){l(S)&&(S=null),p&&p.apply(this,arguments)})}}function a(c){return c&&function(f,_){try{return c.call(t,f,_)}catch(p){if(!l(p))throw p}}}function s(c){return c&&function(f,_,p,S){return c.call(t,f,_,p,function(v){l(v)&&(v=null),S&&S.apply(this,arguments)})}}function o(c){return c&&function(f,_,p){try{return c.call(t,f,_,p)}catch(S){if(!l(S))throw S}}}function r(c){return c&&function(f,_,p){typeof _=="function"&&(p=_,_=null);function S(v,T){T&&(T.uid<0&&(T.uid+=4294967296),T.gid<0&&(T.gid+=4294967296)),p&&p.apply(this,arguments)}return _?c.call(t,f,_,S):c.call(t,f,S)}}function u(c){return c&&function(f,_){var p=_?c.call(t,f,_):c.call(t,f);return p&&(p.uid<0&&(p.uid+=4294967296),p.gid<0&&(p.gid+=4294967296)),p}}function l(c){if(!c||c.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var bE=h((lQ,PE)=>{"use strict";var RE=L("stream").Stream;PE.exports=eD;function eD(t){return{ReadStream:e,WriteStream:n};function e(i,a){if(!(this instanceof e))return new e(i,a);RE.call(this);var s=this;this.path=i,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,a=a||{};for(var o=Object.keys(a),r=0,u=o.length;r<u;r++){var l=o[r];this[l]=a[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(c,f){if(c){s.emit("error",c),s.readable=!1;return}s.fd=f,s.emit("open",f),s._read()})}function n(i,a){if(!(this instanceof n))return new n(i,a);RE.call(this),this.path=i,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var s=Object.keys(a),o=0,r=s.length;o<r;o++){var u=s[o];this[u]=a[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var ME=h((cQ,xE)=>{"use strict";xE.exports=rD;var tD=Object.getPrototypeOf||function(t){return t.__proto__};function rD(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:tD(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}});var Wr=h((fQ,Dl)=>{"use strict";var ie=L("fs"),nD=NE(),oD=bE(),iD=ME(),Ii=L("util"),me,wi;typeof Symbol=="function"&&typeof Symbol.for=="function"?(me=Symbol.for("graceful-fs.queue"),wi=Symbol.for("graceful-fs.previous")):(me="___graceful-fs.queue",wi="___graceful-fs.previous");function aD(){}function CE(t,e){Object.defineProperty(t,me,{get:function(){return e}})}var Sr=aD;Ii.debuglog?Sr=Ii.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Sr=function(){var t=Ii.format.apply(Ii,arguments);t="GFS4: "+t.split(/\n/).join(`
4
4
  GFS4: `),console.error(t)});ie[me]||(LE=global[me]||[],CE(ie,LE),ie.close=function(t){function e(n,i){return t.call(ie,n,function(a){a||IE(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,wi,{value:t}),e}(ie.close),ie.closeSync=function(t){function e(n){t.apply(ie,arguments),IE()}return Object.defineProperty(e,wi,{value:t}),e}(ie.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Sr(ie[me]),L("assert").equal(ie[me].length,0)}));var LE;global[me]||CE(global,ie[me]);Dl.exports=wl(iD(ie));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ie.__patched&&(Dl.exports=wl(ie),ie.__patched=!0);function wl(t){nD(t),t.gracefulify=wl,t.createReadStream=G,t.createWriteStream=F;var e=t.readFile;t.readFile=n;function n(x,B,w){return typeof B=="function"&&(w=B,B=null),z(x,B,w);function z(X,ne,oe,se){return e(X,ne,function(ee){ee&&(ee.code==="EMFILE"||ee.code==="ENFILE")?Kr([z,[X,ne,oe],ee,se||Date.now(),Date.now()]):typeof oe=="function"&&oe.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=a;function a(x,B,w,z){return typeof w=="function"&&(z=w,w=null),X(x,B,w,z);function X(ne,oe,se,ee,ve){return i(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Kr([X,[ne,oe,se,ee],re,ve||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(x,B,w,z){return typeof w=="function"&&(z=w,w=null),X(x,B,w,z);function X(ne,oe,se,ee,ve){return s(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Kr([X,[ne,oe,se,ee],re,ve||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}var r=t.copyFile;r&&(t.copyFile=u);function u(x,B,w,z){return typeof w=="function"&&(z=w,w=0),X(x,B,w,z);function X(ne,oe,se,ee,ve){return r(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Kr([X,[ne,oe,se,ee],re,ve||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}var l=t.readdir;t.readdir=f;var c=/^v[0-5]\./;function f(x,B,w){typeof B=="function"&&(w=B,B=null);var z=c.test(process.version)?function(oe,se,ee,ve){return l(oe,X(oe,se,ee,ve))}:function(oe,se,ee,ve){return l(oe,se,X(oe,se,ee,ve))};return z(x,B,w);function X(ne,oe,se,ee){return function(ve,re){ve&&(ve.code==="EMFILE"||ve.code==="ENFILE")?Kr([z,[ne,oe,se],ve,ee||Date.now(),Date.now()]):(re&&re.sort&&re.sort(),typeof se=="function"&&se.call(this,ve,re))}}}if(process.version.substr(0,4)==="v0.8"){var _=oD(t);A=_.ReadStream,N=_.WriteStream}var p=t.ReadStream;p&&(A.prototype=Object.create(p.prototype),A.prototype.open=O);var S=t.WriteStream;S&&(N.prototype=Object.create(S.prototype),N.prototype.open=D),Object.defineProperty(t,"ReadStream",{get:function(){return A},set:function(x){A=x},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return N},set:function(x){N=x},enumerable:!0,configurable:!0});var v=A;Object.defineProperty(t,"FileReadStream",{get:function(){return v},set:function(x){v=x},enumerable:!0,configurable:!0});var T=N;Object.defineProperty(t,"FileWriteStream",{get:function(){return T},set:function(x){T=x},enumerable:!0,configurable:!0});function A(x,B){return this instanceof A?(p.apply(this,arguments),this):A.apply(Object.create(A.prototype),arguments)}function O(){var x=this;j(x.path,x.flags,x.mode,function(B,w){B?(x.autoClose&&x.destroy(),x.emit("error",B)):(x.fd=w,x.emit("open",w),x.read())})}function N(x,B){return this instanceof N?(S.apply(this,arguments),this):N.apply(Object.create(N.prototype),arguments)}function D(){var x=this;j(x.path,x.flags,x.mode,function(B,w){B?(x.destroy(),x.emit("error",B)):(x.fd=w,x.emit("open",w))})}function G(x,B){return new t.ReadStream(x,B)}function F(x,B){return new t.WriteStream(x,B)}var ae=t.open;t.open=j;function j(x,B,w,z){return typeof w=="function"&&(z=w,w=null),X(x,B,w,z);function X(ne,oe,se,ee,ve){return ae(ne,oe,se,function(re,aQ){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Kr([X,[ne,oe,se,ee],re,ve||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}return t}function Kr(t){Sr("ENQUEUE",t[0].name,t[1]),ie[me].push(t),Ul()}var Ci;function IE(){for(var t=Date.now(),e=0;e<ie[me].length;++e)ie[me][e].length>2&&(ie[me][e][3]=t,ie[me][e][4]=t);Ul()}function Ul(){if(clearTimeout(Ci),Ci=void 0,ie[me].length!==0){var t=ie[me].shift(),e=t[0],n=t[1],i=t[2],a=t[3],s=t[4];if(a===void 0)Sr("RETRY",e.name,n),e.apply(null,n);else if(Date.now()-a>=6e4){Sr("TIMEOUT",e.name,n);var o=n.pop();typeof o=="function"&&o.call(null,i)}else{var r=Date.now()-s,u=Math.max(s-a,1),l=Math.min(u*1.2,100);r>=l?(Sr("RETRY",e.name,n),e.apply(null,n.concat([a]))):ie[me].push(t)}Ci===void 0&&(Ci=setTimeout(Ul,0))}}});var Ce=h(bt=>{"use strict";var wE=Ee().fromCallback,Ie=Wr(),sD=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(t=>typeof Ie[t]=="function");Object.assign(bt,Ie);sD.forEach(t=>{bt[t]=wE(Ie[t])});bt.exists=function(t,e){return typeof e=="function"?Ie.exists(t,e):new Promise(n=>Ie.exists(t,n))};bt.read=function(t,e,n,i,a,s){return typeof s=="function"?Ie.read(t,e,n,i,a,s):new Promise((o,r)=>{Ie.read(t,e,n,i,a,(u,l,c)=>{if(u)return r(u);o({bytesRead:l,buffer:c})})})};bt.write=function(t,e,...n){return typeof n[n.length-1]=="function"?Ie.write(t,e,...n):new Promise((i,a)=>{Ie.write(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesWritten:o,buffer:r})})})};bt.readv=function(t,e,...n){return typeof n[n.length-1]=="function"?Ie.readv(t,e,...n):new Promise((i,a)=>{Ie.readv(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesRead:o,buffers:r})})})};bt.writev=function(t,e,...n){return typeof n[n.length-1]=="function"?Ie.writev(t,e,...n):new Promise((i,a)=>{Ie.writev(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesWritten:o,buffers:r})})})};typeof Ie.realpath.native=="function"?bt.realpath.native=wE(Ie.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var DE=h((dQ,UE)=>{"use strict";var uD=L("path");UE.exports.checkPath=function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(uD.parse(e).root,""))){let i=new Error(`Path contains invalid characters: ${e}`);throw i.code="EINVAL",i}}});var kE=h((EQ,Vl)=>{"use strict";var VE=Ce(),{checkPath:BE}=DE(),GE=t=>{let e={mode:511};return typeof t=="number"?t:{...e,...t}.mode};Vl.exports.makeDir=async(t,e)=>(BE(t),VE.mkdir(t,{mode:GE(e),recursive:!0}));Vl.exports.makeDirSync=(t,e)=>(BE(t),VE.mkdirSync(t,{mode:GE(e),recursive:!0}))});var st=h((_Q,HE)=>{"use strict";var lD=Ee().fromPromise,{makeDir:cD,makeDirSync:Bl}=kE(),Gl=lD(cD);HE.exports={mkdirs:Gl,mkdirsSync:Bl,mkdirp:Gl,mkdirpSync:Bl,ensureDir:Gl,ensureDirSync:Bl}});var Ht=h((SQ,YE)=>{"use strict";var fD=Ee().fromPromise,FE=Ce();function pD(t){return FE.access(t).then(()=>!0).catch(()=>!1)}YE.exports={pathExists:fD(pD),pathExistsSync:FE.existsSync}});var kl=h((hQ,qE)=>{"use strict";var zr=Ce(),dD=Ee().fromPromise;async function ED(t,e,n){let i=await zr.open(t,"r+"),a=null;try{await zr.futimes(i,e,n)}finally{try{await zr.close(i)}catch(s){a=s}}if(a)throw a}function _D(t,e,n){let i=zr.openSync(t,"r+");return zr.futimesSync(i,e,n),zr.closeSync(i)}qE.exports={utimesMillis:dD(ED),utimesMillisSync:_D}});var hr=h((TQ,WE)=>{"use strict";var Xr=Ce(),_e=L("path"),jE=Ee().fromPromise;function SD(t,e,n){let i=n.dereference?a=>Xr.stat(a,{bigint:!0}):a=>Xr.lstat(a,{bigint:!0});return Promise.all([i(t),i(e).catch(a=>{if(a.code==="ENOENT")return null;throw a})]).then(([a,s])=>({srcStat:a,destStat:s}))}function hD(t,e,n){let i,a=n.dereference?o=>Xr.statSync(o,{bigint:!0}):o=>Xr.lstatSync(o,{bigint:!0}),s=a(t);try{i=a(e)}catch(o){if(o.code==="ENOENT")return{srcStat:s,destStat:null};throw o}return{srcStat:s,destStat:i}}async function TD(t,e,n,i){let{srcStat:a,destStat:s}=await SD(t,e,i);if(s){if(Qn(a,s)){let o=_e.basename(t),r=_e.basename(e);if(n==="move"&&o!==r&&o.toLowerCase()===r.toLowerCase())return{srcStat:a,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(a.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!a.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(a.isDirectory()&&Hl(t,e))throw new Error(Ui(t,e,n));return{srcStat:a,destStat:s}}function vD(t,e,n,i){let{srcStat:a,destStat:s}=hD(t,e,i);if(s){if(Qn(a,s)){let o=_e.basename(t),r=_e.basename(e);if(n==="move"&&o!==r&&o.toLowerCase()===r.toLowerCase())return{srcStat:a,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(a.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!a.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(a.isDirectory()&&Hl(t,e))throw new Error(Ui(t,e,n));return{srcStat:a,destStat:s}}async function $E(t,e,n,i){let a=_e.resolve(_e.dirname(t)),s=_e.resolve(_e.dirname(n));if(s===a||s===_e.parse(s).root)return;let o;try{o=await Xr.stat(s,{bigint:!0})}catch(r){if(r.code==="ENOENT")return;throw r}if(Qn(e,o))throw new Error(Ui(t,n,i));return $E(t,e,s,i)}function KE(t,e,n,i){let a=_e.resolve(_e.dirname(t)),s=_e.resolve(_e.dirname(n));if(s===a||s===_e.parse(s).root)return;let o;try{o=Xr.statSync(s,{bigint:!0})}catch(r){if(r.code==="ENOENT")return;throw r}if(Qn(e,o))throw new Error(Ui(t,n,i));return KE(t,e,s,i)}function Qn(t,e){return e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev}function Hl(t,e){let n=_e.resolve(t).split(_e.sep).filter(a=>a),i=_e.resolve(e).split(_e.sep).filter(a=>a);return n.every((a,s)=>i[s]===a)}function Ui(t,e,n){return`Cannot ${n} '${t}' to a subdirectory of itself, '${e}'.`}WE.exports={checkPaths:jE(TD),checkPathsSync:vD,checkParentPaths:jE($E),checkParentPathsSync:KE,isSrcSubdir:Hl,areIdentical:Qn}});var ZE=h((vQ,QE)=>{"use strict";var be=Ce(),Zn=L("path"),{mkdirs:mD}=st(),{pathExists:yD}=Ht(),{utimesMillis:AD}=kl(),eo=hr();async function OD(t,e,n={}){typeof n=="function"&&(n={filter:n}),n.clobber="clobber"in n?!!n.clobber:!0,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
5
5
 
6
6
  see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:i,destStat:a}=await eo.checkPaths(t,e,"copy",n);if(await eo.checkParentPaths(t,i,e,"copy"),!await XE(t,e,n))return;let o=Zn.dirname(e);await yD(o)||await mD(o),await JE(a,t,e,n)}async function XE(t,e,n){return n.filter?n.filter(t,e):!0}async function JE(t,e,n,i){let s=await(i.dereference?be.stat:be.lstat)(e);if(s.isDirectory())return PD(s,t,e,n,i);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return gD(s,t,e,n,i);if(s.isSymbolicLink())return bD(t,e,n,i);throw s.isSocket()?new Error(`Cannot copy a socket file: ${e}`):s.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}async function gD(t,e,n,i,a){if(!e)return zE(t,n,i,a);if(a.overwrite)return await be.unlink(i),zE(t,n,i,a);if(a.errorOnExist)throw new Error(`'${i}' already exists`)}async function zE(t,e,n,i){if(await be.copyFile(e,n),i.preserveTimestamps){ND(t.mode)&&await RD(n,t.mode);let a=await be.stat(e);await AD(n,a.atime,a.mtime)}return be.chmod(n,t.mode)}function ND(t){return(t&128)===0}function RD(t,e){return be.chmod(t,e|128)}async function PD(t,e,n,i,a){e||await be.mkdir(i);let s=await be.readdir(n);await Promise.all(s.map(async o=>{let r=Zn.join(n,o),u=Zn.join(i,o);if(!await XE(r,u,a))return;let{destStat:c}=await eo.checkPaths(r,u,"copy",a);return JE(c,r,u,a)})),e||await be.chmod(i,t.mode)}async function bD(t,e,n,i){let a=await be.readlink(e);if(i.dereference&&(a=Zn.resolve(process.cwd(),a)),!t)return be.symlink(a,n);let s=null;try{s=await be.readlink(n)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return be.symlink(a,n);throw o}if(i.dereference&&(s=Zn.resolve(process.cwd(),s)),eo.isSrcSubdir(a,s))throw new Error(`Cannot copy '${a}' to a subdirectory of itself, '${s}'.`);if(eo.isSrcSubdir(s,a))throw new Error(`Cannot overwrite '${s}' with '${a}'.`);return await be.unlink(n),be.symlink(a,n)}QE.exports=OD});var o_=h((mQ,n_)=>{"use strict";var we=Wr(),to=L("path"),xD=st().mkdirsSync,MD=kl().utimesMillisSync,ro=hr();function LD(t,e,n){typeof n=="function"&&(n={filter:n}),n=n||{},n.clobber="clobber"in n?!!n.clobber:!0,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentio/runtime",
3
- "version": "2.57.8",
3
+ "version": "2.57.9-rc.10",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -409,6 +409,13 @@ export interface ExecutionConfig {
409
409
  processBindingTimeout: number;
410
410
  skipStartBlockValidation: boolean;
411
411
  rpcRetryTimes: number;
412
+ ethAbiDecoderConfig?: ExecutionConfig_DecoderWorkerConfig | undefined;
413
+ }
414
+
415
+ export interface ExecutionConfig_DecoderWorkerConfig {
416
+ enabled: boolean;
417
+ workerCount?: number | undefined;
418
+ skipWhenDecodeFailed?: boolean | undefined;
412
419
  }
413
420
 
414
421
  export interface ProcessConfigRequest {
@@ -773,6 +780,7 @@ export interface MoveEventHandlerConfig {
773
780
  export interface MoveEventFilter {
774
781
  type: string;
775
782
  account: string;
783
+ eventAccount: string;
776
784
  }
777
785
 
778
786
  export interface MoveCallHandlerConfig {
@@ -1438,6 +1446,7 @@ function createBaseExecutionConfig(): ExecutionConfig {
1438
1446
  processBindingTimeout: 0,
1439
1447
  skipStartBlockValidation: false,
1440
1448
  rpcRetryTimes: 0,
1449
+ ethAbiDecoderConfig: undefined,
1441
1450
  };
1442
1451
  }
1443
1452
 
@@ -1458,6 +1467,9 @@ export const ExecutionConfig = {
1458
1467
  if (message.rpcRetryTimes !== 0) {
1459
1468
  writer.uint32(40).int32(message.rpcRetryTimes);
1460
1469
  }
1470
+ if (message.ethAbiDecoderConfig !== undefined) {
1471
+ ExecutionConfig_DecoderWorkerConfig.encode(message.ethAbiDecoderConfig, writer.uint32(50).fork()).ldelim();
1472
+ }
1461
1473
  return writer;
1462
1474
  },
1463
1475
 
@@ -1503,6 +1515,13 @@ export const ExecutionConfig = {
1503
1515
 
1504
1516
  message.rpcRetryTimes = reader.int32();
1505
1517
  continue;
1518
+ case 6:
1519
+ if (tag !== 50) {
1520
+ break;
1521
+ }
1522
+
1523
+ message.ethAbiDecoderConfig = ExecutionConfig_DecoderWorkerConfig.decode(reader, reader.uint32());
1524
+ continue;
1506
1525
  }
1507
1526
  if ((tag & 7) === 4 || tag === 0) {
1508
1527
  break;
@@ -1521,6 +1540,9 @@ export const ExecutionConfig = {
1521
1540
  ? globalThis.Boolean(object.skipStartBlockValidation)
1522
1541
  : false,
1523
1542
  rpcRetryTimes: isSet(object.rpcRetryTimes) ? globalThis.Number(object.rpcRetryTimes) : 0,
1543
+ ethAbiDecoderConfig: isSet(object.ethAbiDecoderConfig)
1544
+ ? ExecutionConfig_DecoderWorkerConfig.fromJSON(object.ethAbiDecoderConfig)
1545
+ : undefined,
1524
1546
  };
1525
1547
  },
1526
1548
 
@@ -1541,6 +1563,9 @@ export const ExecutionConfig = {
1541
1563
  if (message.rpcRetryTimes !== 0) {
1542
1564
  obj.rpcRetryTimes = Math.round(message.rpcRetryTimes);
1543
1565
  }
1566
+ if (message.ethAbiDecoderConfig !== undefined) {
1567
+ obj.ethAbiDecoderConfig = ExecutionConfig_DecoderWorkerConfig.toJSON(message.ethAbiDecoderConfig);
1568
+ }
1544
1569
  return obj;
1545
1570
  },
1546
1571
 
@@ -1554,6 +1579,100 @@ export const ExecutionConfig = {
1554
1579
  message.processBindingTimeout = object.processBindingTimeout ?? 0;
1555
1580
  message.skipStartBlockValidation = object.skipStartBlockValidation ?? false;
1556
1581
  message.rpcRetryTimes = object.rpcRetryTimes ?? 0;
1582
+ message.ethAbiDecoderConfig = (object.ethAbiDecoderConfig !== undefined && object.ethAbiDecoderConfig !== null)
1583
+ ? ExecutionConfig_DecoderWorkerConfig.fromPartial(object.ethAbiDecoderConfig)
1584
+ : undefined;
1585
+ return message;
1586
+ },
1587
+ };
1588
+
1589
+ function createBaseExecutionConfig_DecoderWorkerConfig(): ExecutionConfig_DecoderWorkerConfig {
1590
+ return { enabled: false, workerCount: undefined, skipWhenDecodeFailed: undefined };
1591
+ }
1592
+
1593
+ export const ExecutionConfig_DecoderWorkerConfig = {
1594
+ encode(message: ExecutionConfig_DecoderWorkerConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1595
+ if (message.enabled !== false) {
1596
+ writer.uint32(8).bool(message.enabled);
1597
+ }
1598
+ if (message.workerCount !== undefined) {
1599
+ writer.uint32(16).int32(message.workerCount);
1600
+ }
1601
+ if (message.skipWhenDecodeFailed !== undefined) {
1602
+ writer.uint32(24).bool(message.skipWhenDecodeFailed);
1603
+ }
1604
+ return writer;
1605
+ },
1606
+
1607
+ decode(input: _m0.Reader | Uint8Array, length?: number): ExecutionConfig_DecoderWorkerConfig {
1608
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1609
+ let end = length === undefined ? reader.len : reader.pos + length;
1610
+ const message = createBaseExecutionConfig_DecoderWorkerConfig();
1611
+ while (reader.pos < end) {
1612
+ const tag = reader.uint32();
1613
+ switch (tag >>> 3) {
1614
+ case 1:
1615
+ if (tag !== 8) {
1616
+ break;
1617
+ }
1618
+
1619
+ message.enabled = reader.bool();
1620
+ continue;
1621
+ case 2:
1622
+ if (tag !== 16) {
1623
+ break;
1624
+ }
1625
+
1626
+ message.workerCount = reader.int32();
1627
+ continue;
1628
+ case 3:
1629
+ if (tag !== 24) {
1630
+ break;
1631
+ }
1632
+
1633
+ message.skipWhenDecodeFailed = reader.bool();
1634
+ continue;
1635
+ }
1636
+ if ((tag & 7) === 4 || tag === 0) {
1637
+ break;
1638
+ }
1639
+ reader.skipType(tag & 7);
1640
+ }
1641
+ return message;
1642
+ },
1643
+
1644
+ fromJSON(object: any): ExecutionConfig_DecoderWorkerConfig {
1645
+ return {
1646
+ enabled: isSet(object.enabled) ? globalThis.Boolean(object.enabled) : false,
1647
+ workerCount: isSet(object.workerCount) ? globalThis.Number(object.workerCount) : undefined,
1648
+ skipWhenDecodeFailed: isSet(object.skipWhenDecodeFailed)
1649
+ ? globalThis.Boolean(object.skipWhenDecodeFailed)
1650
+ : undefined,
1651
+ };
1652
+ },
1653
+
1654
+ toJSON(message: ExecutionConfig_DecoderWorkerConfig): unknown {
1655
+ const obj: any = {};
1656
+ if (message.enabled !== false) {
1657
+ obj.enabled = message.enabled;
1658
+ }
1659
+ if (message.workerCount !== undefined) {
1660
+ obj.workerCount = Math.round(message.workerCount);
1661
+ }
1662
+ if (message.skipWhenDecodeFailed !== undefined) {
1663
+ obj.skipWhenDecodeFailed = message.skipWhenDecodeFailed;
1664
+ }
1665
+ return obj;
1666
+ },
1667
+
1668
+ create(base?: DeepPartial<ExecutionConfig_DecoderWorkerConfig>): ExecutionConfig_DecoderWorkerConfig {
1669
+ return ExecutionConfig_DecoderWorkerConfig.fromPartial(base ?? {});
1670
+ },
1671
+ fromPartial(object: DeepPartial<ExecutionConfig_DecoderWorkerConfig>): ExecutionConfig_DecoderWorkerConfig {
1672
+ const message = createBaseExecutionConfig_DecoderWorkerConfig();
1673
+ message.enabled = object.enabled ?? false;
1674
+ message.workerCount = object.workerCount ?? undefined;
1675
+ message.skipWhenDecodeFailed = object.skipWhenDecodeFailed ?? undefined;
1557
1676
  return message;
1558
1677
  },
1559
1678
  };
@@ -5769,7 +5888,7 @@ export const MoveEventHandlerConfig = {
5769
5888
  };
5770
5889
 
5771
5890
  function createBaseMoveEventFilter(): MoveEventFilter {
5772
- return { type: "", account: "" };
5891
+ return { type: "", account: "", eventAccount: "" };
5773
5892
  }
5774
5893
 
5775
5894
  export const MoveEventFilter = {
@@ -5780,6 +5899,9 @@ export const MoveEventFilter = {
5780
5899
  if (message.account !== "") {
5781
5900
  writer.uint32(18).string(message.account);
5782
5901
  }
5902
+ if (message.eventAccount !== "") {
5903
+ writer.uint32(26).string(message.eventAccount);
5904
+ }
5783
5905
  return writer;
5784
5906
  },
5785
5907
 
@@ -5804,6 +5926,13 @@ export const MoveEventFilter = {
5804
5926
 
5805
5927
  message.account = reader.string();
5806
5928
  continue;
5929
+ case 3:
5930
+ if (tag !== 26) {
5931
+ break;
5932
+ }
5933
+
5934
+ message.eventAccount = reader.string();
5935
+ continue;
5807
5936
  }
5808
5937
  if ((tag & 7) === 4 || tag === 0) {
5809
5938
  break;
@@ -5817,6 +5946,7 @@ export const MoveEventFilter = {
5817
5946
  return {
5818
5947
  type: isSet(object.type) ? globalThis.String(object.type) : "",
5819
5948
  account: isSet(object.account) ? globalThis.String(object.account) : "",
5949
+ eventAccount: isSet(object.eventAccount) ? globalThis.String(object.eventAccount) : "",
5820
5950
  };
5821
5951
  },
5822
5952
 
@@ -5828,6 +5958,9 @@ export const MoveEventFilter = {
5828
5958
  if (message.account !== "") {
5829
5959
  obj.account = message.account;
5830
5960
  }
5961
+ if (message.eventAccount !== "") {
5962
+ obj.eventAccount = message.eventAccount;
5963
+ }
5831
5964
  return obj;
5832
5965
  },
5833
5966
 
@@ -5838,6 +5971,7 @@ export const MoveEventFilter = {
5838
5971
  const message = createBaseMoveEventFilter();
5839
5972
  message.type = object.type ?? "";
5840
5973
  message.account = object.account ?? "";
5974
+ message.eventAccount = object.eventAccount ?? "";
5841
5975
  return message;
5842
5976
  },
5843
5977
  };