@sentio/runtime 2.44.0-rc.5 → 2.44.0-rc.7

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.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireShim } from 'module'; const require = createRequireShim(import.meta.url);
2
- import{V as N,W as C,X as V,Y as w,Z as O,_ as A,g as u,i as T,j as l,m,n as h,o as f,p as x,q as d,y as c}from"./chunk-6FTIOVPD.js";var r=class{stateMap=new Map;static reset(){r.INSTANCE=new r}},e=r;u(e,"INSTANCE",new r);var n=class{constructor(){}key(){return this.constructor.name}getOrRegister(){let t=e.INSTANCE.stateMap.get(this.key());return t||(t=this.initValue(),e.INSTANCE.stateMap.set(this.key(),t)),t}unregister(){let t=e.INSTANCE.stateMap.get(this.key());return e.INSTANCE.stateMap.delete(this.key()),t}},g=class extends n{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(),a=o.get(t);return a?(console.warn(t,"has been registered twice, use the previous one"),a):(o.set(t,s),s)}},p=class extends n{initValue(){return[]}getValues(){return this.getOrRegister()}addValue(t){return this.getOrRegister().push(t),t}};process.stdout.write("");process.stdout.write("");process.stdout.write("");export{V as DummyProvider,d as Endpoints,c as GLOBAL_CONFIG,p as ListStateStorage,g as MapStateStorage,T as Plugin,l as PluginManager,A as ProcessorServiceImpl,O as QueuedStaticJsonRpcProvider,e as State,n as StateStorage,C as StoreContext,f as USER_PROCESSOR,h as errorString,w as getProvider,x as makeEthCallKey,m as mergeProcessResults,N as timeoutError};
2
+ import{V as N,W as C,X as V,Y as w,Z as O,_ as A,g as u,i as T,j as l,m,n as h,o as f,p as x,q as d,y as c}from"./chunk-P74HTYGJ.js";var r=class{stateMap=new Map;static reset(){r.INSTANCE=new r}},e=r;u(e,"INSTANCE",new r);var n=class{constructor(){}key(){return this.constructor.name}getOrRegister(){let t=e.INSTANCE.stateMap.get(this.key());return t||(t=this.initValue(),e.INSTANCE.stateMap.set(this.key(),t)),t}unregister(){let t=e.INSTANCE.stateMap.get(this.key());return e.INSTANCE.stateMap.delete(this.key()),t}},g=class extends n{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(),a=o.get(t);return a?(console.warn(t,"has been registered twice, use the previous one"),a):(o.set(t,s),s)}},p=class extends n{initValue(){return[]}getValues(){return this.getOrRegister()}addValue(t){return this.getOrRegister().push(t),t}};process.stdout.write("");process.stdout.write("");process.stdout.write("");export{V as DummyProvider,d as Endpoints,c as GLOBAL_CONFIG,p as ListStateStorage,g as MapStateStorage,T as Plugin,l as PluginManager,A as ProcessorServiceImpl,O as QueuedStaticJsonRpcProvider,e as State,n as StateStorage,C as StoreContext,f as USER_PROCESSOR,h as errorString,w as getProvider,x as makeEthCallKey,m as mergeProcessResults,N 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 th,B as Qr,C as rh,D as nh,E as pt,F as J,G as ih,H as Yt,I as Io,J as dt,K as oh,L as ht,M as ah,N as uh,O as ke,P as A,Q as Lo,R as at,S as X,T as Ne,U as w,_ as sh,a as M,b as E,c as y,d as it,e as je,f as Y,h as Q1,k as Jd,l as Qd,q as Sr,r as ul,s as Z1,t as Jn,u as Zd,v as eh,w as eC,x as tC,y as sl,z as ot}from"./chunk-6FTIOVPD.js";var he=y(ll=>{"use strict";ll.fromCallback=function(t){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")t.apply(this,e);else return new Promise((n,o)=>{e.push((a,u)=>a!=null?o(a):n(u)),t.apply(this,e)})},"name",{value:t.name})};ll.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(o=>n(null,o),n)},"name",{value:t.name})}});var ch=y((P7,lh)=>{var $t=M("constants"),rC=process.cwd,Co=null,nC=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Co||(Co=rC.call(process)),Co};try{process.cwd()}catch{}typeof process.chdir=="function"&&(cl=process.chdir,process.chdir=function(t){Co=null,cl.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,cl));var cl;lh.exports=iC;function iC(t){$t.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||n(t),t.chown=u(t.chown),t.fchown=u(t.fchown),t.lchown=u(t.lchown),t.chmod=o(t.chmod),t.fchmod=o(t.fchmod),t.lchmod=o(t.lchmod),t.chownSync=i(t.chownSync),t.fchownSync=i(t.fchownSync),t.lchownSync=i(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=s(t.statSync),t.fstatSync=s(t.fstatSync),t.lstatSync=s(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(c,p,m){m&&process.nextTick(m)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(c,p,m,f){f&&process.nextTick(f)},t.lchownSync=function(){}),nC==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(c){function p(m,f,v){var S=Date.now(),_=0;c(m,f,function O(g){if(g&&(g.code==="EACCES"||g.code==="EPERM"||g.code==="EBUSY")&&Date.now()-S<6e4){setTimeout(function(){t.stat(f,function(b,L){b&&b.code==="ENOENT"?c(m,f,O):v(g)})},_),_<100&&(_+=10);return}v&&v(g)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.rename)),t.read=typeof t.read!="function"?t.read:function(c){function p(m,f,v,S,_,O){var g;if(O&&typeof O=="function"){var b=0;g=function(L,B,j){if(L&&L.code==="EAGAIN"&&b<10)return b++,c.call(t,m,f,v,S,_,g);O.apply(this,arguments)}}return c.call(t,m,f,v,S,_,g)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(c){return function(p,m,f,v,S){for(var _=0;;)try{return c.call(t,p,m,f,v,S)}catch(O){if(O.code==="EAGAIN"&&_<10){_++;continue}throw O}}}(t.readSync);function e(c){c.lchmod=function(p,m,f){c.open(p,$t.O_WRONLY|$t.O_SYMLINK,m,function(v,S){if(v){f&&f(v);return}c.fchmod(S,m,function(_){c.close(S,function(O){f&&f(_||O)})})})},c.lchmodSync=function(p,m){var f=c.openSync(p,$t.O_WRONLY|$t.O_SYMLINK,m),v=!0,S;try{S=c.fchmodSync(f,m),v=!1}finally{if(v)try{c.closeSync(f)}catch{}else c.closeSync(f)}return S}}function n(c){$t.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(p,m,f,v){c.open(p,$t.O_SYMLINK,function(S,_){if(S){v&&v(S);return}c.futimes(_,m,f,function(O){c.close(_,function(g){v&&v(O||g)})})})},c.lutimesSync=function(p,m,f){var v=c.openSync(p,$t.O_SYMLINK),S,_=!0;try{S=c.futimesSync(v,m,f),_=!1}finally{if(_)try{c.closeSync(v)}catch{}else c.closeSync(v)}return S}):c.futimes&&(c.lutimes=function(p,m,f,v){v&&process.nextTick(v)},c.lutimesSync=function(){})}function o(c){return c&&function(p,m,f){return c.call(t,p,m,function(v){l(v)&&(v=null),f&&f.apply(this,arguments)})}}function a(c){return c&&function(p,m){try{return c.call(t,p,m)}catch(f){if(!l(f))throw f}}}function u(c){return c&&function(p,m,f,v){return c.call(t,p,m,f,function(S){l(S)&&(S=null),v&&v.apply(this,arguments)})}}function i(c){return c&&function(p,m,f){try{return c.call(t,p,m,f)}catch(v){if(!l(v))throw v}}}function r(c){return c&&function(p,m,f){typeof m=="function"&&(f=m,m=null);function v(S,_){_&&(_.uid<0&&(_.uid+=4294967296),_.gid<0&&(_.gid+=4294967296)),f&&f.apply(this,arguments)}return m?c.call(t,p,m,v):c.call(t,p,v)}}function s(c){return c&&function(p,m){var f=m?c.call(t,p,m):c.call(t,p);return f&&(f.uid<0&&(f.uid+=4294967296),f.gid<0&&(f.gid+=4294967296)),f}}function l(c){if(!c||c.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var dh=y((w7,ph)=>{var fh=M("stream").Stream;ph.exports=oC;function oC(t){return{ReadStream:e,WriteStream:n};function e(o,a){if(!(this instanceof e))return new e(o,a);fh.call(this);var u=this;this.path=o,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,a=a||{};for(var i=Object.keys(a),r=0,s=i.length;r<s;r++){var l=i[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(){u._read()});return}t.open(this.path,this.flags,this.mode,function(c,p){if(c){u.emit("error",c),u.readable=!1;return}u.fd=p,u.emit("open",p),u._read()})}function n(o,a){if(!(this instanceof n))return new n(o,a);fh.call(this),this.path=o,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var u=Object.keys(a),i=0,r=u.length;i<r;i++){var s=u[i];this[s]=a[s]}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 mh=y((M7,hh)=>{"use strict";hh.exports=uC;var aC=Object.getPrototypeOf||function(t){return t.__proto__};function uC(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:aC(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}});var en=y((I7,dl)=>{var oe=M("fs"),sC=ch(),lC=dh(),cC=mh(),Uo=M("util"),_e,Vo;typeof Symbol=="function"&&typeof Symbol.for=="function"?(_e=Symbol.for("graceful-fs.queue"),Vo=Symbol.for("graceful-fs.previous")):(_e="___graceful-fs.queue",Vo="___graceful-fs.previous");function fC(){}function _h(t,e){Object.defineProperty(t,_e,{get:function(){return e}})}var Er=fC;Uo.debuglog?Er=Uo.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Er=function(){var t=Uo.format.apply(Uo,arguments);t="GFS4: "+t.split(/\n/).join(`
3
+ import{A as th,B as Qr,C as rh,D as nh,E as pt,F as J,G as ih,H as Yt,I as Io,J as dt,K as oh,L as ht,M as ah,N as uh,O as ke,P as A,Q as Lo,R as at,S as X,T as Ne,U as w,_ as sh,a as M,b as E,c as y,d as it,e as je,f as Y,h as Q1,k as Jd,l as Qd,q as Sr,r as ul,s as Z1,t as Jn,u as Zd,v as eh,w as eC,x as tC,y as sl,z as ot}from"./chunk-P74HTYGJ.js";var he=y(ll=>{"use strict";ll.fromCallback=function(t){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")t.apply(this,e);else return new Promise((n,o)=>{e.push((a,u)=>a!=null?o(a):n(u)),t.apply(this,e)})},"name",{value:t.name})};ll.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(o=>n(null,o),n)},"name",{value:t.name})}});var ch=y((P7,lh)=>{var $t=M("constants"),rC=process.cwd,Co=null,nC=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Co||(Co=rC.call(process)),Co};try{process.cwd()}catch{}typeof process.chdir=="function"&&(cl=process.chdir,process.chdir=function(t){Co=null,cl.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,cl));var cl;lh.exports=iC;function iC(t){$t.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||n(t),t.chown=u(t.chown),t.fchown=u(t.fchown),t.lchown=u(t.lchown),t.chmod=o(t.chmod),t.fchmod=o(t.fchmod),t.lchmod=o(t.lchmod),t.chownSync=i(t.chownSync),t.fchownSync=i(t.fchownSync),t.lchownSync=i(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=s(t.statSync),t.fstatSync=s(t.fstatSync),t.lstatSync=s(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(c,p,m){m&&process.nextTick(m)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(c,p,m,f){f&&process.nextTick(f)},t.lchownSync=function(){}),nC==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(c){function p(m,f,v){var S=Date.now(),_=0;c(m,f,function O(g){if(g&&(g.code==="EACCES"||g.code==="EPERM"||g.code==="EBUSY")&&Date.now()-S<6e4){setTimeout(function(){t.stat(f,function(b,L){b&&b.code==="ENOENT"?c(m,f,O):v(g)})},_),_<100&&(_+=10);return}v&&v(g)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.rename)),t.read=typeof t.read!="function"?t.read:function(c){function p(m,f,v,S,_,O){var g;if(O&&typeof O=="function"){var b=0;g=function(L,B,j){if(L&&L.code==="EAGAIN"&&b<10)return b++,c.call(t,m,f,v,S,_,g);O.apply(this,arguments)}}return c.call(t,m,f,v,S,_,g)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(c){return function(p,m,f,v,S){for(var _=0;;)try{return c.call(t,p,m,f,v,S)}catch(O){if(O.code==="EAGAIN"&&_<10){_++;continue}throw O}}}(t.readSync);function e(c){c.lchmod=function(p,m,f){c.open(p,$t.O_WRONLY|$t.O_SYMLINK,m,function(v,S){if(v){f&&f(v);return}c.fchmod(S,m,function(_){c.close(S,function(O){f&&f(_||O)})})})},c.lchmodSync=function(p,m){var f=c.openSync(p,$t.O_WRONLY|$t.O_SYMLINK,m),v=!0,S;try{S=c.fchmodSync(f,m),v=!1}finally{if(v)try{c.closeSync(f)}catch{}else c.closeSync(f)}return S}}function n(c){$t.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(p,m,f,v){c.open(p,$t.O_SYMLINK,function(S,_){if(S){v&&v(S);return}c.futimes(_,m,f,function(O){c.close(_,function(g){v&&v(O||g)})})})},c.lutimesSync=function(p,m,f){var v=c.openSync(p,$t.O_SYMLINK),S,_=!0;try{S=c.futimesSync(v,m,f),_=!1}finally{if(_)try{c.closeSync(v)}catch{}else c.closeSync(v)}return S}):c.futimes&&(c.lutimes=function(p,m,f,v){v&&process.nextTick(v)},c.lutimesSync=function(){})}function o(c){return c&&function(p,m,f){return c.call(t,p,m,function(v){l(v)&&(v=null),f&&f.apply(this,arguments)})}}function a(c){return c&&function(p,m){try{return c.call(t,p,m)}catch(f){if(!l(f))throw f}}}function u(c){return c&&function(p,m,f,v){return c.call(t,p,m,f,function(S){l(S)&&(S=null),v&&v.apply(this,arguments)})}}function i(c){return c&&function(p,m,f){try{return c.call(t,p,m,f)}catch(v){if(!l(v))throw v}}}function r(c){return c&&function(p,m,f){typeof m=="function"&&(f=m,m=null);function v(S,_){_&&(_.uid<0&&(_.uid+=4294967296),_.gid<0&&(_.gid+=4294967296)),f&&f.apply(this,arguments)}return m?c.call(t,p,m,v):c.call(t,p,v)}}function s(c){return c&&function(p,m){var f=m?c.call(t,p,m):c.call(t,p);return f&&(f.uid<0&&(f.uid+=4294967296),f.gid<0&&(f.gid+=4294967296)),f}}function l(c){if(!c||c.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var dh=y((w7,ph)=>{var fh=M("stream").Stream;ph.exports=oC;function oC(t){return{ReadStream:e,WriteStream:n};function e(o,a){if(!(this instanceof e))return new e(o,a);fh.call(this);var u=this;this.path=o,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,a=a||{};for(var i=Object.keys(a),r=0,s=i.length;r<s;r++){var l=i[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(){u._read()});return}t.open(this.path,this.flags,this.mode,function(c,p){if(c){u.emit("error",c),u.readable=!1;return}u.fd=p,u.emit("open",p),u._read()})}function n(o,a){if(!(this instanceof n))return new n(o,a);fh.call(this),this.path=o,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var u=Object.keys(a),i=0,r=u.length;i<r;i++){var s=u[i];this[s]=a[s]}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 mh=y((M7,hh)=>{"use strict";hh.exports=uC;var aC=Object.getPrototypeOf||function(t){return t.__proto__};function uC(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:aC(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}});var en=y((I7,dl)=>{var oe=M("fs"),sC=ch(),lC=dh(),cC=mh(),Uo=M("util"),_e,Vo;typeof Symbol=="function"&&typeof Symbol.for=="function"?(_e=Symbol.for("graceful-fs.queue"),Vo=Symbol.for("graceful-fs.previous")):(_e="___graceful-fs.queue",Vo="___graceful-fs.previous");function fC(){}function _h(t,e){Object.defineProperty(t,_e,{get:function(){return e}})}var Er=fC;Uo.debuglog?Er=Uo.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Er=function(){var t=Uo.format.apply(Uo,arguments);t="GFS4: "+t.split(/\n/).join(`
4
4
  GFS4: `),console.error(t)});oe[_e]||(vh=global[_e]||[],_h(oe,vh),oe.close=function(t){function e(n,o){return t.call(oe,n,function(a){a||yh(),typeof o=="function"&&o.apply(this,arguments)})}return Object.defineProperty(e,Vo,{value:t}),e}(oe.close),oe.closeSync=function(t){function e(n){t.apply(oe,arguments),yh()}return Object.defineProperty(e,Vo,{value:t}),e}(oe.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Er(oe[_e]),M("assert").equal(oe[_e].length,0)}));var vh;global[_e]||_h(global,oe[_e]);dl.exports=fl(cC(oe));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!oe.__patched&&(dl.exports=fl(oe),oe.__patched=!0);function fl(t){sC(t),t.gracefulify=fl,t.createReadStream=B,t.createWriteStream=j;var e=t.readFile;t.readFile=n;function n(P,k,U){return typeof k=="function"&&(U=k,k=null),z(P,k,U);function z(W,ne,ie,ue){return e(W,ne,function(Z){Z&&(Z.code==="EMFILE"||Z.code==="ENFILE")?Zr([z,[W,ne,ie],Z,ue||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var o=t.writeFile;t.writeFile=a;function a(P,k,U,z){return typeof U=="function"&&(z=U,U=null),W(P,k,U,z);function W(ne,ie,ue,Z,ye){return o(ne,ie,ue,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Zr([W,[ne,ie,ue,Z],re,ye||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var u=t.appendFile;u&&(t.appendFile=i);function i(P,k,U,z){return typeof U=="function"&&(z=U,U=null),W(P,k,U,z);function W(ne,ie,ue,Z,ye){return u(ne,ie,ue,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Zr([W,[ne,ie,ue,Z],re,ye||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var r=t.copyFile;r&&(t.copyFile=s);function s(P,k,U,z){return typeof U=="function"&&(z=U,U=0),W(P,k,U,z);function W(ne,ie,ue,Z,ye){return r(ne,ie,ue,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Zr([W,[ne,ie,ue,Z],re,ye||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var l=t.readdir;t.readdir=p;var c=/^v[0-5]\./;function p(P,k,U){typeof k=="function"&&(U=k,k=null);var z=c.test(process.version)?function(ie,ue,Z,ye){return l(ie,W(ie,ue,Z,ye))}:function(ie,ue,Z,ye){return l(ie,ue,W(ie,ue,Z,ye))};return z(P,k,U);function W(ne,ie,ue,Z){return function(ye,re){ye&&(ye.code==="EMFILE"||ye.code==="ENFILE")?Zr([z,[ne,ie,ue],ye,Z||Date.now(),Date.now()]):(re&&re.sort&&re.sort(),typeof ue=="function"&&ue.call(this,ye,re))}}}if(process.version.substr(0,4)==="v0.8"){var m=lC(t);O=m.ReadStream,b=m.WriteStream}var f=t.ReadStream;f&&(O.prototype=Object.create(f.prototype),O.prototype.open=g);var v=t.WriteStream;v&&(b.prototype=Object.create(v.prototype),b.prototype.open=L),Object.defineProperty(t,"ReadStream",{get:function(){return O},set:function(P){O=P},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return b},set:function(P){b=P},enumerable:!0,configurable:!0});var S=O;Object.defineProperty(t,"FileReadStream",{get:function(){return S},set:function(P){S=P},enumerable:!0,configurable:!0});var _=b;Object.defineProperty(t,"FileWriteStream",{get:function(){return _},set:function(P){_=P},enumerable:!0,configurable:!0});function O(P,k){return this instanceof O?(f.apply(this,arguments),this):O.apply(Object.create(O.prototype),arguments)}function g(){var P=this;$(P.path,P.flags,P.mode,function(k,U){k?(P.autoClose&&P.destroy(),P.emit("error",k)):(P.fd=U,P.emit("open",U),P.read())})}function b(P,k){return this instanceof b?(v.apply(this,arguments),this):b.apply(Object.create(b.prototype),arguments)}function L(){var P=this;$(P.path,P.flags,P.mode,function(k,U){k?(P.destroy(),P.emit("error",k)):(P.fd=U,P.emit("open",U))})}function B(P,k){return new t.ReadStream(P,k)}function j(P,k){return new t.WriteStream(P,k)}var ae=t.open;t.open=$;function $(P,k,U,z){return typeof U=="function"&&(z=U,U=null),W(P,k,U,z);function W(ne,ie,ue,Z,ye){return ae(ne,ie,ue,function(re,N7){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Zr([W,[ne,ie,ue,Z],re,ye||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}return t}function Zr(t){Er("ENQUEUE",t[0].name,t[1]),oe[_e].push(t),pl()}var Do;function yh(){for(var t=Date.now(),e=0;e<oe[_e].length;++e)oe[_e][e].length>2&&(oe[_e][e][3]=t,oe[_e][e][4]=t);pl()}function pl(){if(clearTimeout(Do),Do=void 0,oe[_e].length!==0){var t=oe[_e].shift(),e=t[0],n=t[1],o=t[2],a=t[3],u=t[4];if(a===void 0)Er("RETRY",e.name,n),e.apply(null,n);else if(Date.now()-a>=6e4){Er("TIMEOUT",e.name,n);var i=n.pop();typeof i=="function"&&i.call(null,o)}else{var r=Date.now()-u,s=Math.max(u-a,1),l=Math.min(s*1.2,100);r>=l?(Er("RETRY",e.name,n),e.apply(null,n.concat([a]))):oe[_e].push(t)}Do===void 0&&(Do=setTimeout(pl,0))}}});var Pe=y(Mt=>{"use strict";var Sh=he().fromCallback,Re=en(),pC=["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 Re[t]=="function");Object.assign(Mt,Re);pC.forEach(t=>{Mt[t]=Sh(Re[t])});Mt.exists=function(t,e){return typeof e=="function"?Re.exists(t,e):new Promise(n=>Re.exists(t,n))};Mt.read=function(t,e,n,o,a,u){return typeof u=="function"?Re.read(t,e,n,o,a,u):new Promise((i,r)=>{Re.read(t,e,n,o,a,(s,l,c)=>{if(s)return r(s);i({bytesRead:l,buffer:c})})})};Mt.write=function(t,e,...n){return typeof n[n.length-1]=="function"?Re.write(t,e,...n):new Promise((o,a)=>{Re.write(t,e,...n,(u,i,r)=>{if(u)return a(u);o({bytesWritten:i,buffer:r})})})};Mt.readv=function(t,e,...n){return typeof n[n.length-1]=="function"?Re.readv(t,e,...n):new Promise((o,a)=>{Re.readv(t,e,...n,(u,i,r)=>{if(u)return a(u);o({bytesRead:i,buffers:r})})})};Mt.writev=function(t,e,...n){return typeof n[n.length-1]=="function"?Re.writev(t,e,...n):new Promise((o,a)=>{Re.writev(t,e,...n,(u,i,r)=>{if(u)return a(u);o({bytesWritten:i,buffers:r})})})};typeof Re.realpath.native=="function"?Mt.realpath.native=Sh(Re.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var Th=y((C7,Eh)=>{"use strict";var dC=M("path");Eh.exports.checkPath=function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(dC.parse(e).root,""))){let o=new Error(`Path contains invalid characters: ${e}`);throw o.code="EINVAL",o}}});var bh=y((U7,hl)=>{"use strict";var gh=Pe(),{checkPath:Oh}=Th(),Ah=t=>{let e={mode:511};return typeof t=="number"?t:{...e,...t}.mode};hl.exports.makeDir=async(t,e)=>(Oh(t),gh.mkdir(t,{mode:Ah(e),recursive:!0}));hl.exports.makeDirSync=(t,e)=>(Oh(t),gh.mkdirSync(t,{mode:Ah(e),recursive:!0}))});var ut=y((D7,xh)=>{"use strict";var hC=he().fromPromise,{makeDir:mC,makeDirSync:ml}=bh(),vl=hC(mC);xh.exports={mkdirs:vl,mkdirsSync:ml,mkdirp:vl,mkdirpSync:ml,ensureDir:vl,ensureDirSync:ml}});var Kt=y((V7,Rh)=>{"use strict";var vC=he().fromPromise,Nh=Pe();function yC(t){return Nh.access(t).then(()=>!0).catch(()=>!1)}Rh.exports={pathExists:vC(yC),pathExistsSync:Nh.existsSync}});var yl=y((k7,Ph)=>{"use strict";var tn=Pe(),_C=he().fromPromise;async function SC(t,e,n){let o=await tn.open(t,"r+"),a=null;try{await tn.futimes(o,e,n)}finally{try{await tn.close(o)}catch(u){a=u}}if(a)throw a}function EC(t,e,n){let o=tn.openSync(t,"r+");return tn.futimesSync(o,e,n),tn.closeSync(o)}Ph.exports={utimesMillis:_C(SC),utimesMillisSync:EC}});var Tr=y((B7,Lh)=>{"use strict";var rn=Pe(),me=M("path"),wh=he().fromPromise;function TC(t,e,n){let o=n.dereference?a=>rn.stat(a,{bigint:!0}):a=>rn.lstat(a,{bigint:!0});return Promise.all([o(t),o(e).catch(a=>{if(a.code==="ENOENT")return null;throw a})]).then(([a,u])=>({srcStat:a,destStat:u}))}function gC(t,e,n){let o,a=n.dereference?i=>rn.statSync(i,{bigint:!0}):i=>rn.lstatSync(i,{bigint:!0}),u=a(t);try{o=a(e)}catch(i){if(i.code==="ENOENT")return{srcStat:u,destStat:null};throw i}return{srcStat:u,destStat:o}}async function OC(t,e,n,o){let{srcStat:a,destStat:u}=await TC(t,e,o);if(u){if(Qn(a,u)){let i=me.basename(t),r=me.basename(e);if(n==="move"&&i!==r&&i.toLowerCase()===r.toLowerCase())return{srcStat:a,destStat:u,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(a.isDirectory()&&!u.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!a.isDirectory()&&u.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(a.isDirectory()&&_l(t,e))throw new Error(ko(t,e,n));return{srcStat:a,destStat:u}}function AC(t,e,n,o){let{srcStat:a,destStat:u}=gC(t,e,o);if(u){if(Qn(a,u)){let i=me.basename(t),r=me.basename(e);if(n==="move"&&i!==r&&i.toLowerCase()===r.toLowerCase())return{srcStat:a,destStat:u,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(a.isDirectory()&&!u.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!a.isDirectory()&&u.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(a.isDirectory()&&_l(t,e))throw new Error(ko(t,e,n));return{srcStat:a,destStat:u}}async function Mh(t,e,n,o){let a=me.resolve(me.dirname(t)),u=me.resolve(me.dirname(n));if(u===a||u===me.parse(u).root)return;let i;try{i=await rn.stat(u,{bigint:!0})}catch(r){if(r.code==="ENOENT")return;throw r}if(Qn(e,i))throw new Error(ko(t,n,o));return Mh(t,e,u,o)}function Ih(t,e,n,o){let a=me.resolve(me.dirname(t)),u=me.resolve(me.dirname(n));if(u===a||u===me.parse(u).root)return;let i;try{i=rn.statSync(u,{bigint:!0})}catch(r){if(r.code==="ENOENT")return;throw r}if(Qn(e,i))throw new Error(ko(t,n,o));return Ih(t,e,u,o)}function Qn(t,e){return e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev}function _l(t,e){let n=me.resolve(t).split(me.sep).filter(a=>a),o=me.resolve(e).split(me.sep).filter(a=>a);return n.every((a,u)=>o[u]===a)}function ko(t,e,n){return`Cannot ${n} '${t}' to a subdirectory of itself, '${e}'.`}Lh.exports={checkPaths:wh(OC),checkPathsSync:AC,checkParentPaths:wh(Mh),checkParentPathsSync:Ih,isSrcSubdir:_l,areIdentical:Qn}});var kh=y((G7,Vh)=>{"use strict";var Oe=Pe(),Zn=M("path"),{mkdirs:bC}=ut(),{pathExists:xC}=Kt(),{utimesMillis:NC}=yl(),ei=Tr();async function RC(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:o,destStat:a}=await ei.checkPaths(t,e,"copy",n);if(await ei.checkParentPaths(t,o,e,"copy"),!await Uh(t,e,n))return;let i=Zn.dirname(e);await xC(i)||await bC(i),await Dh(a,t,e,n)}async function Uh(t,e,n){return n.filter?n.filter(t,e):!0}async function Dh(t,e,n,o){let u=await(o.dereference?Oe.stat:Oe.lstat)(e);if(u.isDirectory())return IC(u,t,e,n,o);if(u.isFile()||u.isCharacterDevice()||u.isBlockDevice())return PC(u,t,e,n,o);if(u.isSymbolicLink())return LC(t,e,n,o);throw u.isSocket()?new Error(`Cannot copy a socket file: ${e}`):u.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}async function PC(t,e,n,o,a){if(!e)return Ch(t,n,o,a);if(a.overwrite)return await Oe.unlink(o),Ch(t,n,o,a);if(a.errorOnExist)throw new Error(`'${o}' already exists`)}async function Ch(t,e,n,o){if(await Oe.copyFile(e,n),o.preserveTimestamps){wC(t.mode)&&await MC(n,t.mode);let a=await Oe.stat(e);await NC(n,a.atime,a.mtime)}return Oe.chmod(n,t.mode)}function wC(t){return(t&128)===0}function MC(t,e){return Oe.chmod(t,e|128)}async function IC(t,e,n,o,a){e||await Oe.mkdir(o);let u=await Oe.readdir(n);await Promise.all(u.map(async i=>{let r=Zn.join(n,i),s=Zn.join(o,i);if(!await Uh(r,s,a))return;let{destStat:c}=await ei.checkPaths(r,s,"copy",a);return Dh(c,r,s,a)})),e||await Oe.chmod(o,t.mode)}async function LC(t,e,n,o){let a=await Oe.readlink(e);if(o.dereference&&(a=Zn.resolve(process.cwd(),a)),!t)return Oe.symlink(a,n);let u=null;try{u=await Oe.readlink(n)}catch(i){if(i.code==="EINVAL"||i.code==="UNKNOWN")return Oe.symlink(a,n);throw i}if(o.dereference&&(u=Zn.resolve(process.cwd(),u)),ei.isSrcSubdir(a,u))throw new Error(`Cannot copy '${a}' to a subdirectory of itself, '${u}'.`);if(ei.isSrcSubdir(u,a))throw new Error(`Cannot overwrite '${u}' with '${a}'.`);return await Oe.unlink(n),Oe.symlink(a,n)}Vh.exports=RC});var Hh=y((q7,Fh)=>{"use strict";var we=en(),ti=M("path"),CC=ut().mkdirsSync,UC=yl().utimesMillisSync,ri=Tr();function DC(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.44.0-rc.5",
3
+ "version": "2.44.0-rc.7",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -213,6 +213,7 @@ export enum HandlerType {
213
213
  COSMOS_CALL = 14,
214
214
  STARKNET_EVENT = 15,
215
215
  BTC_TRANSACTION = 16,
216
+ BTC_BLOCK = 18,
216
217
  UNRECOGNIZED = -1,
217
218
  }
218
219
 
@@ -272,6 +273,9 @@ export function handlerTypeFromJSON(object: any): HandlerType {
272
273
  case 16:
273
274
  case "BTC_TRANSACTION":
274
275
  return HandlerType.BTC_TRANSACTION;
276
+ case 18:
277
+ case "BTC_BLOCK":
278
+ return HandlerType.BTC_BLOCK;
275
279
  case -1:
276
280
  case "UNRECOGNIZED":
277
281
  default:
@@ -317,6 +321,8 @@ export function handlerTypeToJSON(object: HandlerType): string {
317
321
  return "STARKNET_EVENT";
318
322
  case HandlerType.BTC_TRANSACTION:
319
323
  return "BTC_TRANSACTION";
324
+ case HandlerType.BTC_BLOCK:
325
+ return "BTC_BLOCK";
320
326
  case HandlerType.UNRECOGNIZED:
321
327
  default:
322
328
  return "UNRECOGNIZED";
@@ -1032,6 +1038,7 @@ export interface Data {
1032
1038
  cosmosCall?: Data_CosmosCall | undefined;
1033
1039
  starknetEvents?: Data_StarknetEvent | undefined;
1034
1040
  btcTransaction?: Data_BTCTransaction | undefined;
1041
+ btcBlock?: Data_BTCBlock | undefined;
1035
1042
  }
1036
1043
 
1037
1044
  export interface Data_EthLog {
@@ -1135,6 +1142,11 @@ export interface Data_BTCTransaction {
1135
1142
  timestamp: Date | undefined;
1136
1143
  }
1137
1144
 
1145
+ export interface Data_BTCBlock {
1146
+ block: { [key: string]: any } | undefined;
1147
+ timestamp: Date | undefined;
1148
+ }
1149
+
1138
1150
  export interface DataBinding {
1139
1151
  data: Data | undefined;
1140
1152
  handlerType: HandlerType;
@@ -8349,6 +8361,7 @@ function createBaseData(): Data {
8349
8361
  cosmosCall: undefined,
8350
8362
  starknetEvents: undefined,
8351
8363
  btcTransaction: undefined,
8364
+ btcBlock: undefined,
8352
8365
  };
8353
8366
  }
8354
8367
 
@@ -8408,6 +8421,9 @@ export const Data = {
8408
8421
  if (message.btcTransaction !== undefined) {
8409
8422
  Data_BTCTransaction.encode(message.btcTransaction, writer.uint32(138).fork()).ldelim();
8410
8423
  }
8424
+ if (message.btcBlock !== undefined) {
8425
+ Data_BTCBlock.encode(message.btcBlock, writer.uint32(154).fork()).ldelim();
8426
+ }
8411
8427
  return writer;
8412
8428
  },
8413
8429
 
@@ -8544,6 +8560,13 @@ export const Data = {
8544
8560
 
8545
8561
  message.btcTransaction = Data_BTCTransaction.decode(reader, reader.uint32());
8546
8562
  continue;
8563
+ case 19:
8564
+ if (tag !== 154) {
8565
+ break;
8566
+ }
8567
+
8568
+ message.btcBlock = Data_BTCBlock.decode(reader, reader.uint32());
8569
+ continue;
8547
8570
  }
8548
8571
  if ((tag & 7) === 4 || tag === 0) {
8549
8572
  break;
@@ -8575,6 +8598,7 @@ export const Data = {
8575
8598
  cosmosCall: isSet(object.cosmosCall) ? Data_CosmosCall.fromJSON(object.cosmosCall) : undefined,
8576
8599
  starknetEvents: isSet(object.starknetEvents) ? Data_StarknetEvent.fromJSON(object.starknetEvents) : undefined,
8577
8600
  btcTransaction: isSet(object.btcTransaction) ? Data_BTCTransaction.fromJSON(object.btcTransaction) : undefined,
8601
+ btcBlock: isSet(object.btcBlock) ? Data_BTCBlock.fromJSON(object.btcBlock) : undefined,
8578
8602
  };
8579
8603
  },
8580
8604
 
@@ -8634,6 +8658,9 @@ export const Data = {
8634
8658
  if (message.btcTransaction !== undefined) {
8635
8659
  obj.btcTransaction = Data_BTCTransaction.toJSON(message.btcTransaction);
8636
8660
  }
8661
+ if (message.btcBlock !== undefined) {
8662
+ obj.btcBlock = Data_BTCBlock.toJSON(message.btcBlock);
8663
+ }
8637
8664
  return obj;
8638
8665
  },
8639
8666
 
@@ -8694,6 +8721,9 @@ export const Data = {
8694
8721
  message.btcTransaction = (object.btcTransaction !== undefined && object.btcTransaction !== null)
8695
8722
  ? Data_BTCTransaction.fromPartial(object.btcTransaction)
8696
8723
  : undefined;
8724
+ message.btcBlock = (object.btcBlock !== undefined && object.btcBlock !== null)
8725
+ ? Data_BTCBlock.fromPartial(object.btcBlock)
8726
+ : undefined;
8697
8727
  return message;
8698
8728
  },
8699
8729
  };
@@ -10229,6 +10259,80 @@ export const Data_BTCTransaction = {
10229
10259
  },
10230
10260
  };
10231
10261
 
10262
+ function createBaseData_BTCBlock(): Data_BTCBlock {
10263
+ return { block: undefined, timestamp: undefined };
10264
+ }
10265
+
10266
+ export const Data_BTCBlock = {
10267
+ encode(message: Data_BTCBlock, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
10268
+ if (message.block !== undefined) {
10269
+ Struct.encode(Struct.wrap(message.block), writer.uint32(10).fork()).ldelim();
10270
+ }
10271
+ if (message.timestamp !== undefined) {
10272
+ Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim();
10273
+ }
10274
+ return writer;
10275
+ },
10276
+
10277
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_BTCBlock {
10278
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
10279
+ let end = length === undefined ? reader.len : reader.pos + length;
10280
+ const message = createBaseData_BTCBlock();
10281
+ while (reader.pos < end) {
10282
+ const tag = reader.uint32();
10283
+ switch (tag >>> 3) {
10284
+ case 1:
10285
+ if (tag !== 10) {
10286
+ break;
10287
+ }
10288
+
10289
+ message.block = Struct.unwrap(Struct.decode(reader, reader.uint32()));
10290
+ continue;
10291
+ case 2:
10292
+ if (tag !== 18) {
10293
+ break;
10294
+ }
10295
+
10296
+ message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
10297
+ continue;
10298
+ }
10299
+ if ((tag & 7) === 4 || tag === 0) {
10300
+ break;
10301
+ }
10302
+ reader.skipType(tag & 7);
10303
+ }
10304
+ return message;
10305
+ },
10306
+
10307
+ fromJSON(object: any): Data_BTCBlock {
10308
+ return {
10309
+ block: isObject(object.block) ? object.block : undefined,
10310
+ timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
10311
+ };
10312
+ },
10313
+
10314
+ toJSON(message: Data_BTCBlock): unknown {
10315
+ const obj: any = {};
10316
+ if (message.block !== undefined) {
10317
+ obj.block = message.block;
10318
+ }
10319
+ if (message.timestamp !== undefined) {
10320
+ obj.timestamp = message.timestamp.toISOString();
10321
+ }
10322
+ return obj;
10323
+ },
10324
+
10325
+ create(base?: DeepPartial<Data_BTCBlock>): Data_BTCBlock {
10326
+ return Data_BTCBlock.fromPartial(base ?? {});
10327
+ },
10328
+ fromPartial(object: DeepPartial<Data_BTCBlock>): Data_BTCBlock {
10329
+ const message = createBaseData_BTCBlock();
10330
+ message.block = object.block ?? undefined;
10331
+ message.timestamp = object.timestamp ?? undefined;
10332
+ return message;
10333
+ },
10334
+ };
10335
+
10232
10336
  function createBaseDataBinding(): DataBinding {
10233
10337
  return { data: undefined, handlerType: 0, handlerIds: [] };
10234
10338
  }