@sentio/runtime 2.57.9-rc.1 → 2.57.9-rc.2

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;
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-XXTZA73Q.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-XXTZA73Q.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.9-rc.1",
3
+ "version": "2.57.9-rc.2",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -773,6 +773,7 @@ export interface MoveEventHandlerConfig {
773
773
  export interface MoveEventFilter {
774
774
  type: string;
775
775
  account: string;
776
+ eventAccount: string;
776
777
  }
777
778
 
778
779
  export interface MoveCallHandlerConfig {
@@ -5769,7 +5770,7 @@ export const MoveEventHandlerConfig = {
5769
5770
  };
5770
5771
 
5771
5772
  function createBaseMoveEventFilter(): MoveEventFilter {
5772
- return { type: "", account: "" };
5773
+ return { type: "", account: "", eventAccount: "" };
5773
5774
  }
5774
5775
 
5775
5776
  export const MoveEventFilter = {
@@ -5780,6 +5781,9 @@ export const MoveEventFilter = {
5780
5781
  if (message.account !== "") {
5781
5782
  writer.uint32(18).string(message.account);
5782
5783
  }
5784
+ if (message.eventAccount !== "") {
5785
+ writer.uint32(26).string(message.eventAccount);
5786
+ }
5783
5787
  return writer;
5784
5788
  },
5785
5789
 
@@ -5804,6 +5808,13 @@ export const MoveEventFilter = {
5804
5808
 
5805
5809
  message.account = reader.string();
5806
5810
  continue;
5811
+ case 3:
5812
+ if (tag !== 26) {
5813
+ break;
5814
+ }
5815
+
5816
+ message.eventAccount = reader.string();
5817
+ continue;
5807
5818
  }
5808
5819
  if ((tag & 7) === 4 || tag === 0) {
5809
5820
  break;
@@ -5817,6 +5828,7 @@ export const MoveEventFilter = {
5817
5828
  return {
5818
5829
  type: isSet(object.type) ? globalThis.String(object.type) : "",
5819
5830
  account: isSet(object.account) ? globalThis.String(object.account) : "",
5831
+ eventAccount: isSet(object.eventAccount) ? globalThis.String(object.eventAccount) : "",
5820
5832
  };
5821
5833
  },
5822
5834
 
@@ -5828,6 +5840,9 @@ export const MoveEventFilter = {
5828
5840
  if (message.account !== "") {
5829
5841
  obj.account = message.account;
5830
5842
  }
5843
+ if (message.eventAccount !== "") {
5844
+ obj.eventAccount = message.eventAccount;
5845
+ }
5831
5846
  return obj;
5832
5847
  },
5833
5848
 
@@ -5838,6 +5853,7 @@ export const MoveEventFilter = {
5838
5853
  const message = createBaseMoveEventFilter();
5839
5854
  message.type = object.type ?? "";
5840
5855
  message.account = object.account ?? "";
5856
+ message.eventAccount = object.eventAccount ?? "";
5841
5857
  return message;
5842
5858
  },
5843
5859
  };
@@ -1499,6 +1499,9 @@ export enum TabularData_ColumnType {
1499
1499
  LIST = 3,
1500
1500
  TIME = 4,
1501
1501
  MAP = 5,
1502
+ JSON = 6,
1503
+ TOKEN = 7,
1504
+ DYNAMIC = 8,
1502
1505
  UNRECOGNIZED = -1,
1503
1506
  }
1504
1507
 
@@ -1522,6 +1525,15 @@ export function tabularData_ColumnTypeFromJSON(object: any): TabularData_ColumnT
1522
1525
  case 5:
1523
1526
  case "MAP":
1524
1527
  return TabularData_ColumnType.MAP;
1528
+ case 6:
1529
+ case "JSON":
1530
+ return TabularData_ColumnType.JSON;
1531
+ case 7:
1532
+ case "TOKEN":
1533
+ return TabularData_ColumnType.TOKEN;
1534
+ case 8:
1535
+ case "DYNAMIC":
1536
+ return TabularData_ColumnType.DYNAMIC;
1525
1537
  case -1:
1526
1538
  case "UNRECOGNIZED":
1527
1539
  default:
@@ -1543,6 +1555,12 @@ export function tabularData_ColumnTypeToJSON(object: TabularData_ColumnType): st
1543
1555
  return "TIME";
1544
1556
  case TabularData_ColumnType.MAP:
1545
1557
  return "MAP";
1558
+ case TabularData_ColumnType.JSON:
1559
+ return "JSON";
1560
+ case TabularData_ColumnType.TOKEN:
1561
+ return "TOKEN";
1562
+ case TabularData_ColumnType.DYNAMIC:
1563
+ return "DYNAMIC";
1546
1564
  case TabularData_ColumnType.UNRECOGNIZED:
1547
1565
  default:
1548
1566
  return "UNRECOGNIZED";
@@ -1922,6 +1940,7 @@ export interface Notification_AttributesEntry {
1922
1940
  export interface RichValue {
1923
1941
  nullValue?: RichValue_NullValue | undefined;
1924
1942
  intValue?: number | undefined;
1943
+ int64Value?: bigint | undefined;
1925
1944
  floatValue?: number | undefined;
1926
1945
  bytesValue?: Uint8Array | undefined;
1927
1946
  boolValue?: boolean | undefined;
@@ -1994,6 +2013,24 @@ export interface TokenAmount {
1994
2013
  specifiedAt: Date | undefined;
1995
2014
  }
1996
2015
 
2016
+ export interface RequestLog {
2017
+ requestId: string;
2018
+ endpointId: string;
2019
+ owner: string;
2020
+ slug: string;
2021
+ statusCode: number;
2022
+ error: string;
2023
+ requestBody: Uint8Array;
2024
+ requestHeader: { [key: string]: any } | undefined;
2025
+ responseBody: Uint8Array;
2026
+ responseHeader: { [key: string]: any } | undefined;
2027
+ createdAt: Date | undefined;
2028
+ duration: bigint;
2029
+ queryDuration: bigint;
2030
+ method: string;
2031
+ rpcNodeId: string;
2032
+ }
2033
+
1997
2034
  function createBaseUsageTracker(): UsageTracker {
1998
2035
  return {
1999
2036
  apiSku: "",
@@ -13214,6 +13251,7 @@ function createBaseRichValue(): RichValue {
13214
13251
  return {
13215
13252
  nullValue: undefined,
13216
13253
  intValue: undefined,
13254
+ int64Value: undefined,
13217
13255
  floatValue: undefined,
13218
13256
  bytesValue: undefined,
13219
13257
  boolValue: undefined,
@@ -13235,6 +13273,12 @@ export const RichValue = {
13235
13273
  if (message.intValue !== undefined) {
13236
13274
  writer.uint32(16).int32(message.intValue);
13237
13275
  }
13276
+ if (message.int64Value !== undefined) {
13277
+ if (BigInt.asIntN(64, message.int64Value) !== message.int64Value) {
13278
+ throw new globalThis.Error("value provided for field message.int64Value of type int64 too large");
13279
+ }
13280
+ writer.uint32(104).int64(message.int64Value.toString());
13281
+ }
13238
13282
  if (message.floatValue !== undefined) {
13239
13283
  writer.uint32(25).double(message.floatValue);
13240
13284
  }
@@ -13289,6 +13333,13 @@ export const RichValue = {
13289
13333
 
13290
13334
  message.intValue = reader.int32();
13291
13335
  continue;
13336
+ case 13:
13337
+ if (tag !== 104) {
13338
+ break;
13339
+ }
13340
+
13341
+ message.int64Value = longToBigint(reader.int64() as Long);
13342
+ continue;
13292
13343
  case 3:
13293
13344
  if (tag !== 25) {
13294
13345
  break;
@@ -13372,6 +13423,7 @@ export const RichValue = {
13372
13423
  return {
13373
13424
  nullValue: isSet(object.nullValue) ? richValue_NullValueFromJSON(object.nullValue) : undefined,
13374
13425
  intValue: isSet(object.intValue) ? globalThis.Number(object.intValue) : undefined,
13426
+ int64Value: isSet(object.int64Value) ? BigInt(object.int64Value) : undefined,
13375
13427
  floatValue: isSet(object.floatValue) ? globalThis.Number(object.floatValue) : undefined,
13376
13428
  bytesValue: isSet(object.bytesValue) ? bytesFromBase64(object.bytesValue) : undefined,
13377
13429
  boolValue: isSet(object.boolValue) ? globalThis.Boolean(object.boolValue) : undefined,
@@ -13393,6 +13445,9 @@ export const RichValue = {
13393
13445
  if (message.intValue !== undefined) {
13394
13446
  obj.intValue = Math.round(message.intValue);
13395
13447
  }
13448
+ if (message.int64Value !== undefined) {
13449
+ obj.int64Value = message.int64Value.toString();
13450
+ }
13396
13451
  if (message.floatValue !== undefined) {
13397
13452
  obj.floatValue = message.floatValue;
13398
13453
  }
@@ -13433,6 +13488,7 @@ export const RichValue = {
13433
13488
  const message = createBaseRichValue();
13434
13489
  message.nullValue = object.nullValue ?? undefined;
13435
13490
  message.intValue = object.intValue ?? undefined;
13491
+ message.int64Value = object.int64Value ?? undefined;
13436
13492
  message.floatValue = object.floatValue ?? undefined;
13437
13493
  message.bytesValue = object.bytesValue ?? undefined;
13438
13494
  message.boolValue = object.boolValue ?? undefined;
@@ -13974,6 +14030,297 @@ export const TokenAmount = {
13974
14030
  },
13975
14031
  };
13976
14032
 
14033
+ function createBaseRequestLog(): RequestLog {
14034
+ return {
14035
+ requestId: "",
14036
+ endpointId: "",
14037
+ owner: "",
14038
+ slug: "",
14039
+ statusCode: 0,
14040
+ error: "",
14041
+ requestBody: new Uint8Array(0),
14042
+ requestHeader: undefined,
14043
+ responseBody: new Uint8Array(0),
14044
+ responseHeader: undefined,
14045
+ createdAt: undefined,
14046
+ duration: BigInt("0"),
14047
+ queryDuration: BigInt("0"),
14048
+ method: "",
14049
+ rpcNodeId: "",
14050
+ };
14051
+ }
14052
+
14053
+ export const RequestLog = {
14054
+ encode(message: RequestLog, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
14055
+ if (message.requestId !== "") {
14056
+ writer.uint32(10).string(message.requestId);
14057
+ }
14058
+ if (message.endpointId !== "") {
14059
+ writer.uint32(18).string(message.endpointId);
14060
+ }
14061
+ if (message.owner !== "") {
14062
+ writer.uint32(26).string(message.owner);
14063
+ }
14064
+ if (message.slug !== "") {
14065
+ writer.uint32(34).string(message.slug);
14066
+ }
14067
+ if (message.statusCode !== 0) {
14068
+ writer.uint32(40).uint32(message.statusCode);
14069
+ }
14070
+ if (message.error !== "") {
14071
+ writer.uint32(50).string(message.error);
14072
+ }
14073
+ if (message.requestBody.length !== 0) {
14074
+ writer.uint32(58).bytes(message.requestBody);
14075
+ }
14076
+ if (message.requestHeader !== undefined) {
14077
+ Struct.encode(Struct.wrap(message.requestHeader), writer.uint32(66).fork()).ldelim();
14078
+ }
14079
+ if (message.responseBody.length !== 0) {
14080
+ writer.uint32(74).bytes(message.responseBody);
14081
+ }
14082
+ if (message.responseHeader !== undefined) {
14083
+ Struct.encode(Struct.wrap(message.responseHeader), writer.uint32(82).fork()).ldelim();
14084
+ }
14085
+ if (message.createdAt !== undefined) {
14086
+ Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(90).fork()).ldelim();
14087
+ }
14088
+ if (message.duration !== BigInt("0")) {
14089
+ if (BigInt.asUintN(64, message.duration) !== message.duration) {
14090
+ throw new globalThis.Error("value provided for field message.duration of type uint64 too large");
14091
+ }
14092
+ writer.uint32(96).uint64(message.duration.toString());
14093
+ }
14094
+ if (message.queryDuration !== BigInt("0")) {
14095
+ if (BigInt.asUintN(64, message.queryDuration) !== message.queryDuration) {
14096
+ throw new globalThis.Error("value provided for field message.queryDuration of type uint64 too large");
14097
+ }
14098
+ writer.uint32(104).uint64(message.queryDuration.toString());
14099
+ }
14100
+ if (message.method !== "") {
14101
+ writer.uint32(114).string(message.method);
14102
+ }
14103
+ if (message.rpcNodeId !== "") {
14104
+ writer.uint32(122).string(message.rpcNodeId);
14105
+ }
14106
+ return writer;
14107
+ },
14108
+
14109
+ decode(input: _m0.Reader | Uint8Array, length?: number): RequestLog {
14110
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
14111
+ let end = length === undefined ? reader.len : reader.pos + length;
14112
+ const message = createBaseRequestLog();
14113
+ while (reader.pos < end) {
14114
+ const tag = reader.uint32();
14115
+ switch (tag >>> 3) {
14116
+ case 1:
14117
+ if (tag !== 10) {
14118
+ break;
14119
+ }
14120
+
14121
+ message.requestId = reader.string();
14122
+ continue;
14123
+ case 2:
14124
+ if (tag !== 18) {
14125
+ break;
14126
+ }
14127
+
14128
+ message.endpointId = reader.string();
14129
+ continue;
14130
+ case 3:
14131
+ if (tag !== 26) {
14132
+ break;
14133
+ }
14134
+
14135
+ message.owner = reader.string();
14136
+ continue;
14137
+ case 4:
14138
+ if (tag !== 34) {
14139
+ break;
14140
+ }
14141
+
14142
+ message.slug = reader.string();
14143
+ continue;
14144
+ case 5:
14145
+ if (tag !== 40) {
14146
+ break;
14147
+ }
14148
+
14149
+ message.statusCode = reader.uint32();
14150
+ continue;
14151
+ case 6:
14152
+ if (tag !== 50) {
14153
+ break;
14154
+ }
14155
+
14156
+ message.error = reader.string();
14157
+ continue;
14158
+ case 7:
14159
+ if (tag !== 58) {
14160
+ break;
14161
+ }
14162
+
14163
+ message.requestBody = reader.bytes();
14164
+ continue;
14165
+ case 8:
14166
+ if (tag !== 66) {
14167
+ break;
14168
+ }
14169
+
14170
+ message.requestHeader = Struct.unwrap(Struct.decode(reader, reader.uint32()));
14171
+ continue;
14172
+ case 9:
14173
+ if (tag !== 74) {
14174
+ break;
14175
+ }
14176
+
14177
+ message.responseBody = reader.bytes();
14178
+ continue;
14179
+ case 10:
14180
+ if (tag !== 82) {
14181
+ break;
14182
+ }
14183
+
14184
+ message.responseHeader = Struct.unwrap(Struct.decode(reader, reader.uint32()));
14185
+ continue;
14186
+ case 11:
14187
+ if (tag !== 90) {
14188
+ break;
14189
+ }
14190
+
14191
+ message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
14192
+ continue;
14193
+ case 12:
14194
+ if (tag !== 96) {
14195
+ break;
14196
+ }
14197
+
14198
+ message.duration = longToBigint(reader.uint64() as Long);
14199
+ continue;
14200
+ case 13:
14201
+ if (tag !== 104) {
14202
+ break;
14203
+ }
14204
+
14205
+ message.queryDuration = longToBigint(reader.uint64() as Long);
14206
+ continue;
14207
+ case 14:
14208
+ if (tag !== 114) {
14209
+ break;
14210
+ }
14211
+
14212
+ message.method = reader.string();
14213
+ continue;
14214
+ case 15:
14215
+ if (tag !== 122) {
14216
+ break;
14217
+ }
14218
+
14219
+ message.rpcNodeId = reader.string();
14220
+ continue;
14221
+ }
14222
+ if ((tag & 7) === 4 || tag === 0) {
14223
+ break;
14224
+ }
14225
+ reader.skipType(tag & 7);
14226
+ }
14227
+ return message;
14228
+ },
14229
+
14230
+ fromJSON(object: any): RequestLog {
14231
+ return {
14232
+ requestId: isSet(object.requestId) ? globalThis.String(object.requestId) : "",
14233
+ endpointId: isSet(object.endpointId) ? globalThis.String(object.endpointId) : "",
14234
+ owner: isSet(object.owner) ? globalThis.String(object.owner) : "",
14235
+ slug: isSet(object.slug) ? globalThis.String(object.slug) : "",
14236
+ statusCode: isSet(object.statusCode) ? globalThis.Number(object.statusCode) : 0,
14237
+ error: isSet(object.error) ? globalThis.String(object.error) : "",
14238
+ requestBody: isSet(object.requestBody) ? bytesFromBase64(object.requestBody) : new Uint8Array(0),
14239
+ requestHeader: isObject(object.requestHeader) ? object.requestHeader : undefined,
14240
+ responseBody: isSet(object.responseBody) ? bytesFromBase64(object.responseBody) : new Uint8Array(0),
14241
+ responseHeader: isObject(object.responseHeader) ? object.responseHeader : undefined,
14242
+ createdAt: isSet(object.createdAt) ? fromJsonTimestamp(object.createdAt) : undefined,
14243
+ duration: isSet(object.duration) ? BigInt(object.duration) : BigInt("0"),
14244
+ queryDuration: isSet(object.queryDuration) ? BigInt(object.queryDuration) : BigInt("0"),
14245
+ method: isSet(object.method) ? globalThis.String(object.method) : "",
14246
+ rpcNodeId: isSet(object.rpcNodeId) ? globalThis.String(object.rpcNodeId) : "",
14247
+ };
14248
+ },
14249
+
14250
+ toJSON(message: RequestLog): unknown {
14251
+ const obj: any = {};
14252
+ if (message.requestId !== "") {
14253
+ obj.requestId = message.requestId;
14254
+ }
14255
+ if (message.endpointId !== "") {
14256
+ obj.endpointId = message.endpointId;
14257
+ }
14258
+ if (message.owner !== "") {
14259
+ obj.owner = message.owner;
14260
+ }
14261
+ if (message.slug !== "") {
14262
+ obj.slug = message.slug;
14263
+ }
14264
+ if (message.statusCode !== 0) {
14265
+ obj.statusCode = Math.round(message.statusCode);
14266
+ }
14267
+ if (message.error !== "") {
14268
+ obj.error = message.error;
14269
+ }
14270
+ if (message.requestBody.length !== 0) {
14271
+ obj.requestBody = base64FromBytes(message.requestBody);
14272
+ }
14273
+ if (message.requestHeader !== undefined) {
14274
+ obj.requestHeader = message.requestHeader;
14275
+ }
14276
+ if (message.responseBody.length !== 0) {
14277
+ obj.responseBody = base64FromBytes(message.responseBody);
14278
+ }
14279
+ if (message.responseHeader !== undefined) {
14280
+ obj.responseHeader = message.responseHeader;
14281
+ }
14282
+ if (message.createdAt !== undefined) {
14283
+ obj.createdAt = message.createdAt.toISOString();
14284
+ }
14285
+ if (message.duration !== BigInt("0")) {
14286
+ obj.duration = message.duration.toString();
14287
+ }
14288
+ if (message.queryDuration !== BigInt("0")) {
14289
+ obj.queryDuration = message.queryDuration.toString();
14290
+ }
14291
+ if (message.method !== "") {
14292
+ obj.method = message.method;
14293
+ }
14294
+ if (message.rpcNodeId !== "") {
14295
+ obj.rpcNodeId = message.rpcNodeId;
14296
+ }
14297
+ return obj;
14298
+ },
14299
+
14300
+ create(base?: DeepPartial<RequestLog>): RequestLog {
14301
+ return RequestLog.fromPartial(base ?? {});
14302
+ },
14303
+ fromPartial(object: DeepPartial<RequestLog>): RequestLog {
14304
+ const message = createBaseRequestLog();
14305
+ message.requestId = object.requestId ?? "";
14306
+ message.endpointId = object.endpointId ?? "";
14307
+ message.owner = object.owner ?? "";
14308
+ message.slug = object.slug ?? "";
14309
+ message.statusCode = object.statusCode ?? 0;
14310
+ message.error = object.error ?? "";
14311
+ message.requestBody = object.requestBody ?? new Uint8Array(0);
14312
+ message.requestHeader = object.requestHeader ?? undefined;
14313
+ message.responseBody = object.responseBody ?? new Uint8Array(0);
14314
+ message.responseHeader = object.responseHeader ?? undefined;
14315
+ message.createdAt = object.createdAt ?? undefined;
14316
+ message.duration = object.duration ?? BigInt("0");
14317
+ message.queryDuration = object.queryDuration ?? BigInt("0");
14318
+ message.method = object.method ?? "";
14319
+ message.rpcNodeId = object.rpcNodeId ?? "";
14320
+ return message;
14321
+ },
14322
+ };
14323
+
13977
14324
  function bytesFromBase64(b64: string): Uint8Array {
13978
14325
  if ((globalThis as any).Buffer) {
13979
14326
  return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));