@sentio/runtime 2.52.2 → 2.53.0-rc.1

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{$ as O,V as x,W as d,X as N,Y as C,Z as V,_ as w,aa as A,ba as I,ca as M,i as p,j as c,m as T,n as m,o as h,p as l,q as f,y as g}from"./chunk-22Q4XJYM.js";var r=class e{stateMap=new Map;static INSTANCE=new e;static reset(){e.INSTANCE=new e}},n=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 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 i=this.getOrRegister(),o=i.get(t);return o?(console.warn(t,"has been registered twice, use the previous one"),o):(i.set(t,s),s)}},u=class extends n{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{O as DummyProvider,f as Endpoints,g as GLOBAL_CONFIG,u as ListStateStorage,a as MapStateStorage,p as Plugin,c as PluginManager,M as ProcessorServiceImpl,I as QueuedStaticJsonRpcProvider,r as State,n as StateStorage,w as StoreContext,h as USER_PROCESSOR,x as dbMetrics,m as errorString,A as getProvider,l as makeEthCallKey,T as mergeProcessResults,C as metricsStorage,N as processMetrics,d as providerMetrics,V as timeoutError};
2
+ import{$ as O,V as x,W as d,X as N,Y as C,Z as V,_ as w,aa as A,ba as I,ca as M,i as p,j as c,m as T,n as m,o as h,p as l,q as f,y as g}from"./chunk-5A67KXOX.js";var r=class e{stateMap=new Map;static INSTANCE=new e;static reset(){e.INSTANCE=new e}},n=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 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 i=this.getOrRegister(),o=i.get(t);return o?(console.warn(t,"has been registered twice, use the previous one"),o):(i.set(t,s),s)}},u=class extends n{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{O as DummyProvider,f as Endpoints,g as GLOBAL_CONFIG,u as ListStateStorage,a as MapStateStorage,p as Plugin,c as PluginManager,M as ProcessorServiceImpl,I as QueuedStaticJsonRpcProvider,r as State,n as StateStorage,w as StoreContext,h as USER_PROCESSOR,x as dbMetrics,m as errorString,A as getProvider,l as makeEthCallKey,T as mergeProcessResults,C as metricsStorage,N as processMetrics,d as providerMetrics,V 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 lE,B as Kr,C as cE,D as fE,E as Et,F as Q,G as pE,H as Gt,I as Ii,J as _t,K as dE,L as St,M as EE,N as _E,O as Ye,P as g,Q as Ci,R as at,S as J,T as Pe,U as M,a as L,b as m,c as h,ca as SE,d as Je,e as Fe,f as Y,g as HD,h as nE,j as wl,k as oE,l as iE,q as Sr,r as Dl,s as aE,t as eo,u as uE,v as sE,w as FD,x as YD,y as Ul,z as it}from"./chunk-22Q4XJYM.js";var Ee=h(Vl=>{"use strict";Vl.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,u)=>a!=null?i(a):n(u)),t.apply(this,e)})},"name",{value:t.name})};Vl.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 TE=h((Q7,hE)=>{"use strict";var kt=L("constants"),qD=process.cwd,wi=null,jD=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return wi||(wi=qD.call(process)),wi};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Bl=process.chdir,process.chdir=function(t){wi=null,Bl.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Bl));var Bl;hE.exports=$D;function $D(t){kt.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=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=s(t.statSync),t.fstatSync=s(t.fstatSync),t.lstatSync=s(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(c,p,_){_&&process.nextTick(_)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(c,p,_,f){f&&process.nextTick(f)},t.lchownSync=function(){}),jD==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(c){function p(_,f,S){var v=Date.now(),T=0;c(_,f,function A(O){if(O&&(O.code==="EACCES"||O.code==="EPERM"||O.code==="EBUSY")&&Date.now()-v<6e4){setTimeout(function(){t.stat(f,function(N,U){N&&N.code==="ENOENT"?c(_,f,A):S(O)})},T),T<100&&(T+=10);return}S&&S(O)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.rename)),t.read=typeof t.read!="function"?t.read:function(c){function p(_,f,S,v,T,A){var O;if(A&&typeof A=="function"){var N=0;O=function(U,G,F){if(U&&U.code==="EAGAIN"&&N<10)return N++,c.call(t,_,f,S,v,T,O);A.apply(this,arguments)}}return c.call(t,_,f,S,v,T,O)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(c){return function(p,_,f,S,v){for(var T=0;;)try{return c.call(t,p,_,f,S,v)}catch(A){if(A.code==="EAGAIN"&&T<10){T++;continue}throw A}}}(t.readSync);function e(c){c.lchmod=function(p,_,f){c.open(p,kt.O_WRONLY|kt.O_SYMLINK,_,function(S,v){if(S){f&&f(S);return}c.fchmod(v,_,function(T){c.close(v,function(A){f&&f(T||A)})})})},c.lchmodSync=function(p,_){var f=c.openSync(p,kt.O_WRONLY|kt.O_SYMLINK,_),S=!0,v;try{v=c.fchmodSync(f,_),S=!1}finally{if(S)try{c.closeSync(f)}catch{}else c.closeSync(f)}return v}}function n(c){kt.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(p,_,f,S){c.open(p,kt.O_SYMLINK,function(v,T){if(v){S&&S(v);return}c.futimes(T,_,f,function(A){c.close(T,function(O){S&&S(A||O)})})})},c.lutimesSync=function(p,_,f){var S=c.openSync(p,kt.O_SYMLINK),v,T=!0;try{v=c.futimesSync(S,_,f),T=!1}finally{if(T)try{c.closeSync(S)}catch{}else c.closeSync(S)}return v}):c.futimes&&(c.lutimes=function(p,_,f,S){S&&process.nextTick(S)},c.lutimesSync=function(){})}function i(c){return c&&function(p,_,f){return c.call(t,p,_,function(S){l(S)&&(S=null),f&&f.apply(this,arguments)})}}function a(c){return c&&function(p,_){try{return c.call(t,p,_)}catch(f){if(!l(f))throw f}}}function u(c){return c&&function(p,_,f,S){return c.call(t,p,_,f,function(v){l(v)&&(v=null),S&&S.apply(this,arguments)})}}function o(c){return c&&function(p,_,f){try{return c.call(t,p,_,f)}catch(S){if(!l(S))throw S}}}function r(c){return c&&function(p,_,f){typeof _=="function"&&(f=_,_=null);function S(v,T){T&&(T.uid<0&&(T.uid+=4294967296),T.gid<0&&(T.gid+=4294967296)),f&&f.apply(this,arguments)}return _?c.call(t,p,_,S):c.call(t,p,S)}}function s(c){return c&&function(p,_){var f=_?c.call(t,p,_):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 yE=h((Z7,mE)=>{"use strict";var vE=L("stream").Stream;mE.exports=KD;function KD(t){return{ReadStream:e,WriteStream:n};function e(i,a){if(!(this instanceof e))return new e(i,a);vE.call(this);var u=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,s=o.length;r<s;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(){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(i,a){if(!(this instanceof n))return new n(i,a);vE.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 u=Object.keys(a),o=0,r=u.length;o<r;o++){var s=u[o];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 OE=h((eQ,AE)=>{"use strict";AE.exports=zD;var WD=Object.getPrototypeOf||function(t){return t.__proto__};function zD(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:WD(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}});var zr=h((tQ,Hl)=>{"use strict";var ie=L("fs"),XD=TE(),JD=yE(),QD=OE(),Di=L("util"),me,Vi;typeof Symbol=="function"&&typeof Symbol.for=="function"?(me=Symbol.for("graceful-fs.queue"),Vi=Symbol.for("graceful-fs.previous")):(me="___graceful-fs.queue",Vi="___graceful-fs.previous");function ZD(){}function RE(t,e){Object.defineProperty(t,me,{get:function(){return e}})}var hr=ZD;Di.debuglog?hr=Di.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(hr=function(){var t=Di.format.apply(Di,arguments);t="GFS4: "+t.split(/\n/).join(`
3
+ import{A as lE,B as Kr,C as cE,D as fE,E as Et,F as Q,G as pE,H as Gt,I as Ii,J as _t,K as dE,L as St,M as EE,N as _E,O as Ye,P as g,Q as Ci,R as at,S as J,T as Pe,U as M,a as L,b as m,c as h,ca as SE,d as Je,e as Fe,f as Y,g as HD,h as nE,j as wl,k as oE,l as iE,q as Sr,r as Dl,s as aE,t as eo,u as uE,v as sE,w as FD,x as YD,y as Ul,z as it}from"./chunk-5A67KXOX.js";var Ee=h(Vl=>{"use strict";Vl.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,u)=>a!=null?i(a):n(u)),t.apply(this,e)})},"name",{value:t.name})};Vl.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 TE=h((Q7,hE)=>{"use strict";var kt=L("constants"),qD=process.cwd,wi=null,jD=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return wi||(wi=qD.call(process)),wi};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Bl=process.chdir,process.chdir=function(t){wi=null,Bl.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Bl));var Bl;hE.exports=$D;function $D(t){kt.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=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=s(t.statSync),t.fstatSync=s(t.fstatSync),t.lstatSync=s(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(c,p,_){_&&process.nextTick(_)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(c,p,_,f){f&&process.nextTick(f)},t.lchownSync=function(){}),jD==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(c){function p(_,f,S){var v=Date.now(),T=0;c(_,f,function A(O){if(O&&(O.code==="EACCES"||O.code==="EPERM"||O.code==="EBUSY")&&Date.now()-v<6e4){setTimeout(function(){t.stat(f,function(N,U){N&&N.code==="ENOENT"?c(_,f,A):S(O)})},T),T<100&&(T+=10);return}S&&S(O)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.rename)),t.read=typeof t.read!="function"?t.read:function(c){function p(_,f,S,v,T,A){var O;if(A&&typeof A=="function"){var N=0;O=function(U,G,F){if(U&&U.code==="EAGAIN"&&N<10)return N++,c.call(t,_,f,S,v,T,O);A.apply(this,arguments)}}return c.call(t,_,f,S,v,T,O)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(c){return function(p,_,f,S,v){for(var T=0;;)try{return c.call(t,p,_,f,S,v)}catch(A){if(A.code==="EAGAIN"&&T<10){T++;continue}throw A}}}(t.readSync);function e(c){c.lchmod=function(p,_,f){c.open(p,kt.O_WRONLY|kt.O_SYMLINK,_,function(S,v){if(S){f&&f(S);return}c.fchmod(v,_,function(T){c.close(v,function(A){f&&f(T||A)})})})},c.lchmodSync=function(p,_){var f=c.openSync(p,kt.O_WRONLY|kt.O_SYMLINK,_),S=!0,v;try{v=c.fchmodSync(f,_),S=!1}finally{if(S)try{c.closeSync(f)}catch{}else c.closeSync(f)}return v}}function n(c){kt.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(p,_,f,S){c.open(p,kt.O_SYMLINK,function(v,T){if(v){S&&S(v);return}c.futimes(T,_,f,function(A){c.close(T,function(O){S&&S(A||O)})})})},c.lutimesSync=function(p,_,f){var S=c.openSync(p,kt.O_SYMLINK),v,T=!0;try{v=c.futimesSync(S,_,f),T=!1}finally{if(T)try{c.closeSync(S)}catch{}else c.closeSync(S)}return v}):c.futimes&&(c.lutimes=function(p,_,f,S){S&&process.nextTick(S)},c.lutimesSync=function(){})}function i(c){return c&&function(p,_,f){return c.call(t,p,_,function(S){l(S)&&(S=null),f&&f.apply(this,arguments)})}}function a(c){return c&&function(p,_){try{return c.call(t,p,_)}catch(f){if(!l(f))throw f}}}function u(c){return c&&function(p,_,f,S){return c.call(t,p,_,f,function(v){l(v)&&(v=null),S&&S.apply(this,arguments)})}}function o(c){return c&&function(p,_,f){try{return c.call(t,p,_,f)}catch(S){if(!l(S))throw S}}}function r(c){return c&&function(p,_,f){typeof _=="function"&&(f=_,_=null);function S(v,T){T&&(T.uid<0&&(T.uid+=4294967296),T.gid<0&&(T.gid+=4294967296)),f&&f.apply(this,arguments)}return _?c.call(t,p,_,S):c.call(t,p,S)}}function s(c){return c&&function(p,_){var f=_?c.call(t,p,_):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 yE=h((Z7,mE)=>{"use strict";var vE=L("stream").Stream;mE.exports=KD;function KD(t){return{ReadStream:e,WriteStream:n};function e(i,a){if(!(this instanceof e))return new e(i,a);vE.call(this);var u=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,s=o.length;r<s;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(){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(i,a){if(!(this instanceof n))return new n(i,a);vE.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 u=Object.keys(a),o=0,r=u.length;o<r;o++){var s=u[o];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 OE=h((eQ,AE)=>{"use strict";AE.exports=zD;var WD=Object.getPrototypeOf||function(t){return t.__proto__};function zD(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:WD(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}});var zr=h((tQ,Hl)=>{"use strict";var ie=L("fs"),XD=TE(),JD=yE(),QD=OE(),Di=L("util"),me,Vi;typeof Symbol=="function"&&typeof Symbol.for=="function"?(me=Symbol.for("graceful-fs.queue"),Vi=Symbol.for("graceful-fs.previous")):(me="___graceful-fs.queue",Vi="___graceful-fs.previous");function ZD(){}function RE(t,e){Object.defineProperty(t,me,{get:function(){return e}})}var hr=ZD;Di.debuglog?hr=Di.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(hr=function(){var t=Di.format.apply(Di,arguments);t="GFS4: "+t.split(/\n/).join(`
4
4
  GFS4: `),console.error(t)});ie[me]||(gE=global[me]||[],RE(ie,gE),ie.close=function(t){function e(n,i){return t.call(ie,n,function(a){a||NE(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,Vi,{value:t}),e}(ie.close),ie.closeSync=function(t){function e(n){t.apply(ie,arguments),NE()}return Object.defineProperty(e,Vi,{value:t}),e}(ie.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){hr(ie[me]),L("assert").equal(ie[me].length,0)}));var gE;global[me]||RE(global,ie[me]);Hl.exports=Gl(QD(ie));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ie.__patched&&(Hl.exports=Gl(ie),ie.__patched=!0);function Gl(t){XD(t),t.gracefulify=Gl,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,ue){return e(X,ne,function(ee){ee&&(ee.code==="EMFILE"||ee.code==="ENFILE")?Wr([z,[X,ne,oe],ee,ue||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,ue,ee,ve){return i(ne,oe,ue,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Wr([X,[ne,oe,ue,ee],re,ve||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}var u=t.appendFile;u&&(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,ue,ee,ve){return u(ne,oe,ue,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Wr([X,[ne,oe,ue,ee],re,ve||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}var r=t.copyFile;r&&(t.copyFile=s);function s(x,B,w,z){return typeof w=="function"&&(z=w,w=0),X(x,B,w,z);function X(ne,oe,ue,ee,ve){return r(ne,oe,ue,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Wr([X,[ne,oe,ue,ee],re,ve||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}var l=t.readdir;t.readdir=p;var c=/^v[0-5]\./;function p(x,B,w){typeof B=="function"&&(w=B,B=null);var z=c.test(process.version)?function(oe,ue,ee,ve){return l(oe,X(oe,ue,ee,ve))}:function(oe,ue,ee,ve){return l(oe,ue,X(oe,ue,ee,ve))};return z(x,B,w);function X(ne,oe,ue,ee){return function(ve,re){ve&&(ve.code==="EMFILE"||ve.code==="ENFILE")?Wr([z,[ne,oe,ue],ve,ee||Date.now(),Date.now()]):(re&&re.sort&&re.sort(),typeof ue=="function"&&ue.call(this,ve,re))}}}if(process.version.substr(0,4)==="v0.8"){var _=JD(t);A=_.ReadStream,N=_.WriteStream}var f=t.ReadStream;f&&(A.prototype=Object.create(f.prototype),A.prototype.open=O);var S=t.WriteStream;S&&(N.prototype=Object.create(S.prototype),N.prototype.open=U),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?(f.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 U(){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,ue,ee,ve){return ae(ne,oe,ue,function(re,X7){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Wr([X,[ne,oe,ue,ee],re,ve||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}return t}function Wr(t){hr("ENQUEUE",t[0].name,t[1]),ie[me].push(t),kl()}var Ui;function NE(){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);kl()}function kl(){if(clearTimeout(Ui),Ui=void 0,ie[me].length!==0){var t=ie[me].shift(),e=t[0],n=t[1],i=t[2],a=t[3],u=t[4];if(a===void 0)hr("RETRY",e.name,n),e.apply(null,n);else if(Date.now()-a>=6e4){hr("TIMEOUT",e.name,n);var o=n.pop();typeof o=="function"&&o.call(null,i)}else{var r=Date.now()-u,s=Math.max(u-a,1),l=Math.min(s*1.2,100);r>=l?(hr("RETRY",e.name,n),e.apply(null,n.concat([a]))):ie[me].push(t)}Ui===void 0&&(Ui=setTimeout(kl,0))}}});var Ie=h(xt=>{"use strict";var PE=Ee().fromCallback,Le=zr(),eU=["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 Le[t]=="function");Object.assign(xt,Le);eU.forEach(t=>{xt[t]=PE(Le[t])});xt.exists=function(t,e){return typeof e=="function"?Le.exists(t,e):new Promise(n=>Le.exists(t,n))};xt.read=function(t,e,n,i,a,u){return typeof u=="function"?Le.read(t,e,n,i,a,u):new Promise((o,r)=>{Le.read(t,e,n,i,a,(s,l,c)=>{if(s)return r(s);o({bytesRead:l,buffer:c})})})};xt.write=function(t,e,...n){return typeof n[n.length-1]=="function"?Le.write(t,e,...n):new Promise((i,a)=>{Le.write(t,e,...n,(u,o,r)=>{if(u)return a(u);i({bytesWritten:o,buffer:r})})})};xt.readv=function(t,e,...n){return typeof n[n.length-1]=="function"?Le.readv(t,e,...n):new Promise((i,a)=>{Le.readv(t,e,...n,(u,o,r)=>{if(u)return a(u);i({bytesRead:o,buffers:r})})})};xt.writev=function(t,e,...n){return typeof n[n.length-1]=="function"?Le.writev(t,e,...n):new Promise((i,a)=>{Le.writev(t,e,...n,(u,o,r)=>{if(u)return a(u);i({bytesWritten:o,buffers:r})})})};typeof Le.realpath.native=="function"?xt.realpath.native=PE(Le.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var xE=h((nQ,bE)=>{"use strict";var tU=L("path");bE.exports.checkPath=function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(tU.parse(e).root,""))){let i=new Error(`Path contains invalid characters: ${e}`);throw i.code="EINVAL",i}}});var CE=h((oQ,Fl)=>{"use strict";var ME=Ie(),{checkPath:LE}=xE(),IE=t=>{let e={mode:511};return typeof t=="number"?t:{...e,...t}.mode};Fl.exports.makeDir=async(t,e)=>(LE(t),ME.mkdir(t,{mode:IE(e),recursive:!0}));Fl.exports.makeDirSync=(t,e)=>(LE(t),ME.mkdirSync(t,{mode:IE(e),recursive:!0}))});var ut=h((iQ,wE)=>{"use strict";var rU=Ee().fromPromise,{makeDir:nU,makeDirSync:Yl}=CE(),ql=rU(nU);wE.exports={mkdirs:ql,mkdirsSync:Yl,mkdirp:ql,mkdirpSync:Yl,ensureDir:ql,ensureDirSync:Yl}});var Ht=h((aQ,UE)=>{"use strict";var oU=Ee().fromPromise,DE=Ie();function iU(t){return DE.access(t).then(()=>!0).catch(()=>!1)}UE.exports={pathExists:oU(iU),pathExistsSync:DE.existsSync}});var jl=h((uQ,VE)=>{"use strict";var Xr=Ie(),aU=Ee().fromPromise;async function uU(t,e,n){let i=await Xr.open(t,"r+"),a=null;try{await Xr.futimes(i,e,n)}finally{try{await Xr.close(i)}catch(u){a=u}}if(a)throw a}function sU(t,e,n){let i=Xr.openSync(t,"r+");return Xr.futimesSync(i,e,n),Xr.closeSync(i)}VE.exports={utimesMillis:aU(uU),utimesMillisSync:sU}});var Tr=h((sQ,HE)=>{"use strict";var Jr=Ie(),_e=L("path"),BE=Ee().fromPromise;function lU(t,e,n){let i=n.dereference?a=>Jr.stat(a,{bigint:!0}):a=>Jr.lstat(a,{bigint:!0});return Promise.all([i(t),i(e).catch(a=>{if(a.code==="ENOENT")return null;throw a})]).then(([a,u])=>({srcStat:a,destStat:u}))}function cU(t,e,n){let i,a=n.dereference?o=>Jr.statSync(o,{bigint:!0}):o=>Jr.lstatSync(o,{bigint:!0}),u=a(t);try{i=a(e)}catch(o){if(o.code==="ENOENT")return{srcStat:u,destStat:null};throw o}return{srcStat:u,destStat:i}}async function fU(t,e,n,i){let{srcStat:a,destStat:u}=await lU(t,e,i);if(u){if(to(a,u)){let o=_e.basename(t),r=_e.basename(e);if(n==="move"&&o!==r&&o.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(Bi(t,e,n));return{srcStat:a,destStat:u}}function pU(t,e,n,i){let{srcStat:a,destStat:u}=cU(t,e,i);if(u){if(to(a,u)){let o=_e.basename(t),r=_e.basename(e);if(n==="move"&&o!==r&&o.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(Bi(t,e,n));return{srcStat:a,destStat:u}}async function GE(t,e,n,i){let a=_e.resolve(_e.dirname(t)),u=_e.resolve(_e.dirname(n));if(u===a||u===_e.parse(u).root)return;let o;try{o=await Jr.stat(u,{bigint:!0})}catch(r){if(r.code==="ENOENT")return;throw r}if(to(e,o))throw new Error(Bi(t,n,i));return GE(t,e,u,i)}function kE(t,e,n,i){let a=_e.resolve(_e.dirname(t)),u=_e.resolve(_e.dirname(n));if(u===a||u===_e.parse(u).root)return;let o;try{o=Jr.statSync(u,{bigint:!0})}catch(r){if(r.code==="ENOENT")return;throw r}if(to(e,o))throw new Error(Bi(t,n,i));return kE(t,e,u,i)}function to(t,e){return e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev}function $l(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,u)=>i[u]===a)}function Bi(t,e,n){return`Cannot ${n} '${t}' to a subdirectory of itself, '${e}'.`}HE.exports={checkPaths:BE(fU),checkPathsSync:pU,checkParentPaths:BE(GE),checkParentPathsSync:kE,isSrcSubdir:$l,areIdentical:to}});var $E=h((lQ,jE)=>{"use strict";var be=Ie(),ro=L("path"),{mkdirs:dU}=ut(),{pathExists:EU}=Ht(),{utimesMillis:_U}=jl(),no=Tr();async function SU(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 no.checkPaths(t,e,"copy",n);if(await no.checkParentPaths(t,i,e,"copy"),!await YE(t,e,n))return;let o=ro.dirname(e);await EU(o)||await dU(o),await qE(a,t,e,n)}async function YE(t,e,n){return n.filter?n.filter(t,e):!0}async function qE(t,e,n,i){let u=await(i.dereference?be.stat:be.lstat)(e);if(u.isDirectory())return mU(u,t,e,n,i);if(u.isFile()||u.isCharacterDevice()||u.isBlockDevice())return hU(u,t,e,n,i);if(u.isSymbolicLink())return yU(t,e,n,i);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 hU(t,e,n,i,a){if(!e)return FE(t,n,i,a);if(a.overwrite)return await be.unlink(i),FE(t,n,i,a);if(a.errorOnExist)throw new Error(`'${i}' already exists`)}async function FE(t,e,n,i){if(await be.copyFile(e,n),i.preserveTimestamps){TU(t.mode)&&await vU(n,t.mode);let a=await be.stat(e);await _U(n,a.atime,a.mtime)}return be.chmod(n,t.mode)}function TU(t){return(t&128)===0}function vU(t,e){return be.chmod(t,e|128)}async function mU(t,e,n,i,a){e||await be.mkdir(i);let u=await be.readdir(n);await Promise.all(u.map(async o=>{let r=ro.join(n,o),s=ro.join(i,o);if(!await YE(r,s,a))return;let{destStat:c}=await no.checkPaths(r,s,"copy",a);return qE(c,r,s,a)})),e||await be.chmod(i,t.mode)}async function yU(t,e,n,i){let a=await be.readlink(e);if(i.dereference&&(a=ro.resolve(process.cwd(),a)),!t)return be.symlink(a,n);let u=null;try{u=await be.readlink(n)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return be.symlink(a,n);throw o}if(i.dereference&&(u=ro.resolve(process.cwd(),u)),no.isSrcSubdir(a,u))throw new Error(`Cannot copy '${a}' to a subdirectory of itself, '${u}'.`);if(no.isSrcSubdir(u,a))throw new Error(`Cannot overwrite '${u}' with '${a}'.`);return await be.unlink(n),be.symlink(a,n)}jE.exports=SU});var JE=h((cQ,XE)=>{"use strict";var Ce=zr(),oo=L("path"),AU=ut().mkdirsSync,OU=jl().utimesMillisSync,io=Tr();function gU(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.52.2",
3
+ "version": "2.53.0-rc.1",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -418,6 +418,7 @@ export interface ProcessConfigResponse {
418
418
  export interface ContractConfig {
419
419
  contract: ContractInfo | undefined;
420
420
  intervalConfigs: OnIntervalConfig[];
421
+ moveIntervalConfigs: MoveOnIntervalConfig[];
421
422
  logConfigs: LogHandlerConfig[];
422
423
  traceConfigs: TraceHandlerConfig[];
423
424
  transactionConfig: TransactionHandlerConfig[];
@@ -620,7 +621,8 @@ export interface MoveOnIntervalConfig {
620
621
  intervalConfig: OnIntervalConfig | undefined;
621
622
  type: string;
622
623
  ownerType: MoveOwnerType;
623
- fetchConfig: MoveAccountFetchConfig | undefined;
624
+ resourceFetchConfig: MoveAccountFetchConfig | undefined;
625
+ fetchConfig: MoveFetchConfig | undefined;
624
626
  }
625
627
 
626
628
  export interface ContractInfo {
@@ -1118,6 +1120,9 @@ export interface Data_SuiCall {
1118
1120
  export interface Data_SuiObject {
1119
1121
  objects: { [key: string]: any }[];
1120
1122
  self?: { [key: string]: any } | undefined;
1123
+ objectId: string;
1124
+ objectVersion: bigint;
1125
+ objectDigest: string;
1121
1126
  timestamp: Date | undefined;
1122
1127
  slot: bigint;
1123
1128
  }
@@ -1745,6 +1750,7 @@ function createBaseContractConfig(): ContractConfig {
1745
1750
  return {
1746
1751
  contract: undefined,
1747
1752
  intervalConfigs: [],
1753
+ moveIntervalConfigs: [],
1748
1754
  logConfigs: [],
1749
1755
  traceConfigs: [],
1750
1756
  transactionConfig: [],
@@ -1772,6 +1778,9 @@ export const ContractConfig = {
1772
1778
  for (const v of message.intervalConfigs) {
1773
1779
  OnIntervalConfig.encode(v!, writer.uint32(90).fork()).ldelim();
1774
1780
  }
1781
+ for (const v of message.moveIntervalConfigs) {
1782
+ MoveOnIntervalConfig.encode(v!, writer.uint32(154).fork()).ldelim();
1783
+ }
1775
1784
  for (const v of message.logConfigs) {
1776
1785
  LogHandlerConfig.encode(v!, writer.uint32(26).fork()).ldelim();
1777
1786
  }
@@ -1850,6 +1859,13 @@ export const ContractConfig = {
1850
1859
 
1851
1860
  message.intervalConfigs.push(OnIntervalConfig.decode(reader, reader.uint32()));
1852
1861
  continue;
1862
+ case 19:
1863
+ if (tag !== 154) {
1864
+ break;
1865
+ }
1866
+
1867
+ message.moveIntervalConfigs.push(MoveOnIntervalConfig.decode(reader, reader.uint32()));
1868
+ continue;
1853
1869
  case 3:
1854
1870
  if (tag !== 26) {
1855
1871
  break;
@@ -1977,6 +1993,9 @@ export const ContractConfig = {
1977
1993
  intervalConfigs: globalThis.Array.isArray(object?.intervalConfigs)
1978
1994
  ? object.intervalConfigs.map((e: any) => OnIntervalConfig.fromJSON(e))
1979
1995
  : [],
1996
+ moveIntervalConfigs: globalThis.Array.isArray(object?.moveIntervalConfigs)
1997
+ ? object.moveIntervalConfigs.map((e: any) => MoveOnIntervalConfig.fromJSON(e))
1998
+ : [],
1980
1999
  logConfigs: globalThis.Array.isArray(object?.logConfigs)
1981
2000
  ? object.logConfigs.map((e: any) => LogHandlerConfig.fromJSON(e))
1982
2001
  : [],
@@ -2030,6 +2049,9 @@ export const ContractConfig = {
2030
2049
  if (message.intervalConfigs?.length) {
2031
2050
  obj.intervalConfigs = message.intervalConfigs.map((e) => OnIntervalConfig.toJSON(e));
2032
2051
  }
2052
+ if (message.moveIntervalConfigs?.length) {
2053
+ obj.moveIntervalConfigs = message.moveIntervalConfigs.map((e) => MoveOnIntervalConfig.toJSON(e));
2054
+ }
2033
2055
  if (message.logConfigs?.length) {
2034
2056
  obj.logConfigs = message.logConfigs.map((e) => LogHandlerConfig.toJSON(e));
2035
2057
  }
@@ -2090,6 +2112,7 @@ export const ContractConfig = {
2090
2112
  ? ContractInfo.fromPartial(object.contract)
2091
2113
  : undefined;
2092
2114
  message.intervalConfigs = object.intervalConfigs?.map((e) => OnIntervalConfig.fromPartial(e)) || [];
2115
+ message.moveIntervalConfigs = object.moveIntervalConfigs?.map((e) => MoveOnIntervalConfig.fromPartial(e)) || [];
2093
2116
  message.logConfigs = object.logConfigs?.map((e) => LogHandlerConfig.fromPartial(e)) || [];
2094
2117
  message.traceConfigs = object.traceConfigs?.map((e) => TraceHandlerConfig.fromPartial(e)) || [];
2095
2118
  message.transactionConfig = object.transactionConfig?.map((e) => TransactionHandlerConfig.fromPartial(e)) || [];
@@ -3550,7 +3573,7 @@ export const AptosOnIntervalConfig = {
3550
3573
  };
3551
3574
 
3552
3575
  function createBaseMoveOnIntervalConfig(): MoveOnIntervalConfig {
3553
- return { intervalConfig: undefined, type: "", ownerType: 0, fetchConfig: undefined };
3576
+ return { intervalConfig: undefined, type: "", ownerType: 0, resourceFetchConfig: undefined, fetchConfig: undefined };
3554
3577
  }
3555
3578
 
3556
3579
  export const MoveOnIntervalConfig = {
@@ -3564,8 +3587,11 @@ export const MoveOnIntervalConfig = {
3564
3587
  if (message.ownerType !== 0) {
3565
3588
  writer.uint32(24).int32(message.ownerType);
3566
3589
  }
3590
+ if (message.resourceFetchConfig !== undefined) {
3591
+ MoveAccountFetchConfig.encode(message.resourceFetchConfig, writer.uint32(34).fork()).ldelim();
3592
+ }
3567
3593
  if (message.fetchConfig !== undefined) {
3568
- MoveAccountFetchConfig.encode(message.fetchConfig, writer.uint32(34).fork()).ldelim();
3594
+ MoveFetchConfig.encode(message.fetchConfig, writer.uint32(42).fork()).ldelim();
3569
3595
  }
3570
3596
  return writer;
3571
3597
  },
@@ -3603,7 +3629,14 @@ export const MoveOnIntervalConfig = {
3603
3629
  break;
3604
3630
  }
3605
3631
 
3606
- message.fetchConfig = MoveAccountFetchConfig.decode(reader, reader.uint32());
3632
+ message.resourceFetchConfig = MoveAccountFetchConfig.decode(reader, reader.uint32());
3633
+ continue;
3634
+ case 5:
3635
+ if (tag !== 42) {
3636
+ break;
3637
+ }
3638
+
3639
+ message.fetchConfig = MoveFetchConfig.decode(reader, reader.uint32());
3607
3640
  continue;
3608
3641
  }
3609
3642
  if ((tag & 7) === 4 || tag === 0) {
@@ -3619,7 +3652,10 @@ export const MoveOnIntervalConfig = {
3619
3652
  intervalConfig: isSet(object.intervalConfig) ? OnIntervalConfig.fromJSON(object.intervalConfig) : undefined,
3620
3653
  type: isSet(object.type) ? globalThis.String(object.type) : "",
3621
3654
  ownerType: isSet(object.ownerType) ? moveOwnerTypeFromJSON(object.ownerType) : 0,
3622
- fetchConfig: isSet(object.fetchConfig) ? MoveAccountFetchConfig.fromJSON(object.fetchConfig) : undefined,
3655
+ resourceFetchConfig: isSet(object.resourceFetchConfig)
3656
+ ? MoveAccountFetchConfig.fromJSON(object.resourceFetchConfig)
3657
+ : undefined,
3658
+ fetchConfig: isSet(object.fetchConfig) ? MoveFetchConfig.fromJSON(object.fetchConfig) : undefined,
3623
3659
  };
3624
3660
  },
3625
3661
 
@@ -3634,8 +3670,11 @@ export const MoveOnIntervalConfig = {
3634
3670
  if (message.ownerType !== 0) {
3635
3671
  obj.ownerType = moveOwnerTypeToJSON(message.ownerType);
3636
3672
  }
3673
+ if (message.resourceFetchConfig !== undefined) {
3674
+ obj.resourceFetchConfig = MoveAccountFetchConfig.toJSON(message.resourceFetchConfig);
3675
+ }
3637
3676
  if (message.fetchConfig !== undefined) {
3638
- obj.fetchConfig = MoveAccountFetchConfig.toJSON(message.fetchConfig);
3677
+ obj.fetchConfig = MoveFetchConfig.toJSON(message.fetchConfig);
3639
3678
  }
3640
3679
  return obj;
3641
3680
  },
@@ -3650,8 +3689,11 @@ export const MoveOnIntervalConfig = {
3650
3689
  : undefined;
3651
3690
  message.type = object.type ?? "";
3652
3691
  message.ownerType = object.ownerType ?? 0;
3692
+ message.resourceFetchConfig = (object.resourceFetchConfig !== undefined && object.resourceFetchConfig !== null)
3693
+ ? MoveAccountFetchConfig.fromPartial(object.resourceFetchConfig)
3694
+ : undefined;
3653
3695
  message.fetchConfig = (object.fetchConfig !== undefined && object.fetchConfig !== null)
3654
- ? MoveAccountFetchConfig.fromPartial(object.fetchConfig)
3696
+ ? MoveFetchConfig.fromPartial(object.fetchConfig)
3655
3697
  : undefined;
3656
3698
  return message;
3657
3699
  },
@@ -9788,7 +9830,15 @@ export const Data_SuiCall = {
9788
9830
  };
9789
9831
 
9790
9832
  function createBaseData_SuiObject(): Data_SuiObject {
9791
- return { objects: [], self: undefined, timestamp: undefined, slot: BigInt("0") };
9833
+ return {
9834
+ objects: [],
9835
+ self: undefined,
9836
+ objectId: "",
9837
+ objectVersion: BigInt("0"),
9838
+ objectDigest: "",
9839
+ timestamp: undefined,
9840
+ slot: BigInt("0"),
9841
+ };
9792
9842
  }
9793
9843
 
9794
9844
  export const Data_SuiObject = {
@@ -9799,6 +9849,18 @@ export const Data_SuiObject = {
9799
9849
  if (message.self !== undefined) {
9800
9850
  Struct.encode(Struct.wrap(message.self), writer.uint32(34).fork()).ldelim();
9801
9851
  }
9852
+ if (message.objectId !== "") {
9853
+ writer.uint32(42).string(message.objectId);
9854
+ }
9855
+ if (message.objectVersion !== BigInt("0")) {
9856
+ if (BigInt.asUintN(64, message.objectVersion) !== message.objectVersion) {
9857
+ throw new globalThis.Error("value provided for field message.objectVersion of type uint64 too large");
9858
+ }
9859
+ writer.uint32(48).uint64(message.objectVersion.toString());
9860
+ }
9861
+ if (message.objectDigest !== "") {
9862
+ writer.uint32(58).string(message.objectDigest);
9863
+ }
9802
9864
  if (message.timestamp !== undefined) {
9803
9865
  Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim();
9804
9866
  }
@@ -9832,6 +9894,27 @@ export const Data_SuiObject = {
9832
9894
 
9833
9895
  message.self = Struct.unwrap(Struct.decode(reader, reader.uint32()));
9834
9896
  continue;
9897
+ case 5:
9898
+ if (tag !== 42) {
9899
+ break;
9900
+ }
9901
+
9902
+ message.objectId = reader.string();
9903
+ continue;
9904
+ case 6:
9905
+ if (tag !== 48) {
9906
+ break;
9907
+ }
9908
+
9909
+ message.objectVersion = longToBigint(reader.uint64() as Long);
9910
+ continue;
9911
+ case 7:
9912
+ if (tag !== 58) {
9913
+ break;
9914
+ }
9915
+
9916
+ message.objectDigest = reader.string();
9917
+ continue;
9835
9918
  case 2:
9836
9919
  if (tag !== 18) {
9837
9920
  break;
@@ -9859,6 +9942,9 @@ export const Data_SuiObject = {
9859
9942
  return {
9860
9943
  objects: globalThis.Array.isArray(object?.objects) ? [...object.objects] : [],
9861
9944
  self: isObject(object.self) ? object.self : undefined,
9945
+ objectId: isSet(object.objectId) ? globalThis.String(object.objectId) : "",
9946
+ objectVersion: isSet(object.objectVersion) ? BigInt(object.objectVersion) : BigInt("0"),
9947
+ objectDigest: isSet(object.objectDigest) ? globalThis.String(object.objectDigest) : "",
9862
9948
  timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
9863
9949
  slot: isSet(object.slot) ? BigInt(object.slot) : BigInt("0"),
9864
9950
  };
@@ -9872,6 +9958,15 @@ export const Data_SuiObject = {
9872
9958
  if (message.self !== undefined) {
9873
9959
  obj.self = message.self;
9874
9960
  }
9961
+ if (message.objectId !== "") {
9962
+ obj.objectId = message.objectId;
9963
+ }
9964
+ if (message.objectVersion !== BigInt("0")) {
9965
+ obj.objectVersion = message.objectVersion.toString();
9966
+ }
9967
+ if (message.objectDigest !== "") {
9968
+ obj.objectDigest = message.objectDigest;
9969
+ }
9875
9970
  if (message.timestamp !== undefined) {
9876
9971
  obj.timestamp = message.timestamp.toISOString();
9877
9972
  }
@@ -9888,6 +9983,9 @@ export const Data_SuiObject = {
9888
9983
  const message = createBaseData_SuiObject();
9889
9984
  message.objects = object.objects?.map((e) => e) || [];
9890
9985
  message.self = object.self ?? undefined;
9986
+ message.objectId = object.objectId ?? "";
9987
+ message.objectVersion = object.objectVersion ?? BigInt("0");
9988
+ message.objectDigest = object.objectDigest ?? "";
9891
9989
  message.timestamp = object.timestamp ?? undefined;
9892
9990
  message.slot = object.slot ?? BigInt("0");
9893
9991
  return message;
@@ -383,6 +383,7 @@ export interface Project {
383
383
  enableDisk: boolean;
384
384
  /** @deprecated */
385
385
  enableMaterializedView: boolean;
386
+ defaultTimerange: TimeRangeLite | undefined;
386
387
  }
387
388
 
388
389
  export enum Project_Visibility {
@@ -480,6 +481,7 @@ export interface ProjectInfo {
480
481
  enableDisk: boolean;
481
482
  /** @deprecated */
482
483
  enableMaterializedView: boolean;
484
+ defaultTimerange: TimeRangeLite | undefined;
483
485
  }
484
486
 
485
487
  export interface EventLogColumn {
@@ -1457,6 +1459,7 @@ export enum TabularData_ColumnType {
1457
1459
  BOOLEAN = 2,
1458
1460
  LIST = 3,
1459
1461
  TIME = 4,
1462
+ MAP = 5,
1460
1463
  UNRECOGNIZED = -1,
1461
1464
  }
1462
1465
 
@@ -1477,6 +1480,9 @@ export function tabularData_ColumnTypeFromJSON(object: any): TabularData_ColumnT
1477
1480
  case 4:
1478
1481
  case "TIME":
1479
1482
  return TabularData_ColumnType.TIME;
1483
+ case 5:
1484
+ case "MAP":
1485
+ return TabularData_ColumnType.MAP;
1480
1486
  case -1:
1481
1487
  case "UNRECOGNIZED":
1482
1488
  default:
@@ -1496,6 +1502,8 @@ export function tabularData_ColumnTypeToJSON(object: TabularData_ColumnType): st
1496
1502
  return "LIST";
1497
1503
  case TabularData_ColumnType.TIME:
1498
1504
  return "TIME";
1505
+ case TabularData_ColumnType.MAP:
1506
+ return "MAP";
1499
1507
  case TabularData_ColumnType.UNRECOGNIZED:
1500
1508
  default:
1501
1509
  return "UNRECOGNIZED";
@@ -2739,6 +2747,7 @@ function createBaseProject(): Project {
2739
2747
  superset: undefined,
2740
2748
  enableDisk: false,
2741
2749
  enableMaterializedView: false,
2750
+ defaultTimerange: undefined,
2742
2751
  };
2743
2752
  }
2744
2753
 
@@ -2807,6 +2816,9 @@ export const Project = {
2807
2816
  if (message.enableMaterializedView !== false) {
2808
2817
  writer.uint32(160).bool(message.enableMaterializedView);
2809
2818
  }
2819
+ if (message.defaultTimerange !== undefined) {
2820
+ TimeRangeLite.encode(message.defaultTimerange, writer.uint32(170).fork()).ldelim();
2821
+ }
2810
2822
  return writer;
2811
2823
  },
2812
2824
 
@@ -2950,6 +2962,13 @@ export const Project = {
2950
2962
 
2951
2963
  message.enableMaterializedView = reader.bool();
2952
2964
  continue;
2965
+ case 21:
2966
+ if (tag !== 170) {
2967
+ break;
2968
+ }
2969
+
2970
+ message.defaultTimerange = TimeRangeLite.decode(reader, reader.uint32());
2971
+ continue;
2953
2972
  }
2954
2973
  if ((tag & 7) === 4 || tag === 0) {
2955
2974
  break;
@@ -2986,6 +3005,7 @@ export const Project = {
2986
3005
  enableMaterializedView: isSet(object.enableMaterializedView)
2987
3006
  ? globalThis.Boolean(object.enableMaterializedView)
2988
3007
  : false,
3008
+ defaultTimerange: isSet(object.defaultTimerange) ? TimeRangeLite.fromJSON(object.defaultTimerange) : undefined,
2989
3009
  };
2990
3010
  },
2991
3011
 
@@ -3048,6 +3068,9 @@ export const Project = {
3048
3068
  if (message.enableMaterializedView !== false) {
3049
3069
  obj.enableMaterializedView = message.enableMaterializedView;
3050
3070
  }
3071
+ if (message.defaultTimerange !== undefined) {
3072
+ obj.defaultTimerange = TimeRangeLite.toJSON(message.defaultTimerange);
3073
+ }
3051
3074
  return obj;
3052
3075
  },
3053
3076
 
@@ -3077,6 +3100,9 @@ export const Project = {
3077
3100
  : undefined;
3078
3101
  message.enableDisk = object.enableDisk ?? false;
3079
3102
  message.enableMaterializedView = object.enableMaterializedView ?? false;
3103
+ message.defaultTimerange = (object.defaultTimerange !== undefined && object.defaultTimerange !== null)
3104
+ ? TimeRangeLite.fromPartial(object.defaultTimerange)
3105
+ : undefined;
3080
3106
  return message;
3081
3107
  },
3082
3108
  };
@@ -3171,6 +3197,7 @@ function createBaseProjectInfo(): ProjectInfo {
3171
3197
  superset: undefined,
3172
3198
  enableDisk: false,
3173
3199
  enableMaterializedView: false,
3200
+ defaultTimerange: undefined,
3174
3201
  };
3175
3202
  }
3176
3203
 
@@ -3224,6 +3251,9 @@ export const ProjectInfo = {
3224
3251
  if (message.enableMaterializedView !== false) {
3225
3252
  writer.uint32(160).bool(message.enableMaterializedView);
3226
3253
  }
3254
+ if (message.defaultTimerange !== undefined) {
3255
+ TimeRangeLite.encode(message.defaultTimerange, writer.uint32(170).fork()).ldelim();
3256
+ }
3227
3257
  return writer;
3228
3258
  },
3229
3259
 
@@ -3332,6 +3362,13 @@ export const ProjectInfo = {
3332
3362
 
3333
3363
  message.enableMaterializedView = reader.bool();
3334
3364
  continue;
3365
+ case 21:
3366
+ if (tag !== 170) {
3367
+ break;
3368
+ }
3369
+
3370
+ message.defaultTimerange = TimeRangeLite.decode(reader, reader.uint32());
3371
+ continue;
3335
3372
  }
3336
3373
  if ((tag & 7) === 4 || tag === 0) {
3337
3374
  break;
@@ -3359,6 +3396,7 @@ export const ProjectInfo = {
3359
3396
  enableMaterializedView: isSet(object.enableMaterializedView)
3360
3397
  ? globalThis.Boolean(object.enableMaterializedView)
3361
3398
  : false,
3399
+ defaultTimerange: isSet(object.defaultTimerange) ? TimeRangeLite.fromJSON(object.defaultTimerange) : undefined,
3362
3400
  };
3363
3401
  },
3364
3402
 
@@ -3406,6 +3444,9 @@ export const ProjectInfo = {
3406
3444
  if (message.enableMaterializedView !== false) {
3407
3445
  obj.enableMaterializedView = message.enableMaterializedView;
3408
3446
  }
3447
+ if (message.defaultTimerange !== undefined) {
3448
+ obj.defaultTimerange = TimeRangeLite.toJSON(message.defaultTimerange);
3449
+ }
3409
3450
  return obj;
3410
3451
  },
3411
3452
 
@@ -3430,6 +3471,9 @@ export const ProjectInfo = {
3430
3471
  : undefined;
3431
3472
  message.enableDisk = object.enableDisk ?? false;
3432
3473
  message.enableMaterializedView = object.enableMaterializedView ?? false;
3474
+ message.defaultTimerange = (object.defaultTimerange !== undefined && object.defaultTimerange !== null)
3475
+ ? TimeRangeLite.fromPartial(object.defaultTimerange)
3476
+ : undefined;
3433
3477
  return message;
3434
3478
  },
3435
3479
  };