@sentio/runtime 2.54.0-rc.4 → 2.54.0-rc.6
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-
|
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-65634Y3V.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
|
package/lib/processor-runner.js
CHANGED
@@ -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-
|
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-65634Y3V.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
@@ -680,6 +680,7 @@ export interface LogHandlerConfig {
|
|
680
680
|
export interface FuelAssetHandlerConfig {
|
681
681
|
filters: FuelAssetHandlerConfig_AssetFilter[];
|
682
682
|
handlerId: number;
|
683
|
+
handlerName: string;
|
683
684
|
}
|
684
685
|
|
685
686
|
export interface FuelAssetHandlerConfig_AssetFilter {
|
@@ -691,11 +692,13 @@ export interface FuelAssetHandlerConfig_AssetFilter {
|
|
691
692
|
export interface FuelLogHandlerConfig {
|
692
693
|
logIds: string[];
|
693
694
|
handlerId: number;
|
695
|
+
handlerName: string;
|
694
696
|
}
|
695
697
|
|
696
698
|
export interface CosmosLogHandlerConfig {
|
697
699
|
logFilters: string[];
|
698
700
|
handlerId: number;
|
701
|
+
handlerName: string;
|
699
702
|
}
|
700
703
|
|
701
704
|
export interface LogFilter {
|
@@ -731,6 +734,7 @@ export interface MoveEventHandlerConfig {
|
|
731
734
|
filters: MoveEventFilter[];
|
732
735
|
handlerId: number;
|
733
736
|
fetchConfig: MoveFetchConfig | undefined;
|
737
|
+
handlerName: string;
|
734
738
|
}
|
735
739
|
|
736
740
|
export interface MoveEventFilter {
|
@@ -742,11 +746,13 @@ export interface MoveCallHandlerConfig {
|
|
742
746
|
filters: MoveCallFilter[];
|
743
747
|
handlerId: number;
|
744
748
|
fetchConfig: MoveFetchConfig | undefined;
|
749
|
+
handlerName: string;
|
745
750
|
}
|
746
751
|
|
747
752
|
export interface MoveResourceChangeConfig {
|
748
753
|
type: string;
|
749
754
|
handlerId: number;
|
755
|
+
handlerName: string;
|
750
756
|
}
|
751
757
|
|
752
758
|
export interface MoveCallFilter {
|
@@ -766,11 +772,13 @@ export interface MoveCallFilter_FromAndToAddress {
|
|
766
772
|
export interface StarknetEventHandlerConfig {
|
767
773
|
filters: StarknetEventFilter[];
|
768
774
|
handlerId: number;
|
775
|
+
handlerName: string;
|
769
776
|
}
|
770
777
|
|
771
778
|
export interface BTCTransactionHandlerConfig {
|
772
779
|
filters: BTCTransactionFilter[];
|
773
780
|
handlerId: number;
|
781
|
+
handlerName: string;
|
774
782
|
}
|
775
783
|
|
776
784
|
export interface BTCTransactionFilter {
|
@@ -833,6 +841,7 @@ export interface FuelCallFilter {
|
|
833
841
|
export interface FuelCallHandlerConfig {
|
834
842
|
filters: FuelCallFilter[];
|
835
843
|
handlerId: number;
|
844
|
+
handlerName: string;
|
836
845
|
}
|
837
846
|
|
838
847
|
export interface Topic {
|
@@ -4491,7 +4500,7 @@ export const LogHandlerConfig = {
|
|
4491
4500
|
};
|
4492
4501
|
|
4493
4502
|
function createBaseFuelAssetHandlerConfig(): FuelAssetHandlerConfig {
|
4494
|
-
return { filters: [], handlerId: 0 };
|
4503
|
+
return { filters: [], handlerId: 0, handlerName: "" };
|
4495
4504
|
}
|
4496
4505
|
|
4497
4506
|
export const FuelAssetHandlerConfig = {
|
@@ -4502,6 +4511,9 @@ export const FuelAssetHandlerConfig = {
|
|
4502
4511
|
if (message.handlerId !== 0) {
|
4503
4512
|
writer.uint32(16).int32(message.handlerId);
|
4504
4513
|
}
|
4514
|
+
if (message.handlerName !== "") {
|
4515
|
+
writer.uint32(26).string(message.handlerName);
|
4516
|
+
}
|
4505
4517
|
return writer;
|
4506
4518
|
},
|
4507
4519
|
|
@@ -4526,6 +4538,13 @@ export const FuelAssetHandlerConfig = {
|
|
4526
4538
|
|
4527
4539
|
message.handlerId = reader.int32();
|
4528
4540
|
continue;
|
4541
|
+
case 3:
|
4542
|
+
if (tag !== 26) {
|
4543
|
+
break;
|
4544
|
+
}
|
4545
|
+
|
4546
|
+
message.handlerName = reader.string();
|
4547
|
+
continue;
|
4529
4548
|
}
|
4530
4549
|
if ((tag & 7) === 4 || tag === 0) {
|
4531
4550
|
break;
|
@@ -4541,6 +4560,7 @@ export const FuelAssetHandlerConfig = {
|
|
4541
4560
|
? object.filters.map((e: any) => FuelAssetHandlerConfig_AssetFilter.fromJSON(e))
|
4542
4561
|
: [],
|
4543
4562
|
handlerId: isSet(object.handlerId) ? globalThis.Number(object.handlerId) : 0,
|
4563
|
+
handlerName: isSet(object.handlerName) ? globalThis.String(object.handlerName) : "",
|
4544
4564
|
};
|
4545
4565
|
},
|
4546
4566
|
|
@@ -4552,6 +4572,9 @@ export const FuelAssetHandlerConfig = {
|
|
4552
4572
|
if (message.handlerId !== 0) {
|
4553
4573
|
obj.handlerId = Math.round(message.handlerId);
|
4554
4574
|
}
|
4575
|
+
if (message.handlerName !== "") {
|
4576
|
+
obj.handlerName = message.handlerName;
|
4577
|
+
}
|
4555
4578
|
return obj;
|
4556
4579
|
},
|
4557
4580
|
|
@@ -4562,6 +4585,7 @@ export const FuelAssetHandlerConfig = {
|
|
4562
4585
|
const message = createBaseFuelAssetHandlerConfig();
|
4563
4586
|
message.filters = object.filters?.map((e) => FuelAssetHandlerConfig_AssetFilter.fromPartial(e)) || [];
|
4564
4587
|
message.handlerId = object.handlerId ?? 0;
|
4588
|
+
message.handlerName = object.handlerName ?? "";
|
4565
4589
|
return message;
|
4566
4590
|
},
|
4567
4591
|
};
|
@@ -4656,7 +4680,7 @@ export const FuelAssetHandlerConfig_AssetFilter = {
|
|
4656
4680
|
};
|
4657
4681
|
|
4658
4682
|
function createBaseFuelLogHandlerConfig(): FuelLogHandlerConfig {
|
4659
|
-
return { logIds: [], handlerId: 0 };
|
4683
|
+
return { logIds: [], handlerId: 0, handlerName: "" };
|
4660
4684
|
}
|
4661
4685
|
|
4662
4686
|
export const FuelLogHandlerConfig = {
|
@@ -4667,6 +4691,9 @@ export const FuelLogHandlerConfig = {
|
|
4667
4691
|
if (message.handlerId !== 0) {
|
4668
4692
|
writer.uint32(16).int32(message.handlerId);
|
4669
4693
|
}
|
4694
|
+
if (message.handlerName !== "") {
|
4695
|
+
writer.uint32(26).string(message.handlerName);
|
4696
|
+
}
|
4670
4697
|
return writer;
|
4671
4698
|
},
|
4672
4699
|
|
@@ -4691,6 +4718,13 @@ export const FuelLogHandlerConfig = {
|
|
4691
4718
|
|
4692
4719
|
message.handlerId = reader.int32();
|
4693
4720
|
continue;
|
4721
|
+
case 3:
|
4722
|
+
if (tag !== 26) {
|
4723
|
+
break;
|
4724
|
+
}
|
4725
|
+
|
4726
|
+
message.handlerName = reader.string();
|
4727
|
+
continue;
|
4694
4728
|
}
|
4695
4729
|
if ((tag & 7) === 4 || tag === 0) {
|
4696
4730
|
break;
|
@@ -4704,6 +4738,7 @@ export const FuelLogHandlerConfig = {
|
|
4704
4738
|
return {
|
4705
4739
|
logIds: globalThis.Array.isArray(object?.logIds) ? object.logIds.map((e: any) => globalThis.String(e)) : [],
|
4706
4740
|
handlerId: isSet(object.handlerId) ? globalThis.Number(object.handlerId) : 0,
|
4741
|
+
handlerName: isSet(object.handlerName) ? globalThis.String(object.handlerName) : "",
|
4707
4742
|
};
|
4708
4743
|
},
|
4709
4744
|
|
@@ -4715,6 +4750,9 @@ export const FuelLogHandlerConfig = {
|
|
4715
4750
|
if (message.handlerId !== 0) {
|
4716
4751
|
obj.handlerId = Math.round(message.handlerId);
|
4717
4752
|
}
|
4753
|
+
if (message.handlerName !== "") {
|
4754
|
+
obj.handlerName = message.handlerName;
|
4755
|
+
}
|
4718
4756
|
return obj;
|
4719
4757
|
},
|
4720
4758
|
|
@@ -4725,12 +4763,13 @@ export const FuelLogHandlerConfig = {
|
|
4725
4763
|
const message = createBaseFuelLogHandlerConfig();
|
4726
4764
|
message.logIds = object.logIds?.map((e) => e) || [];
|
4727
4765
|
message.handlerId = object.handlerId ?? 0;
|
4766
|
+
message.handlerName = object.handlerName ?? "";
|
4728
4767
|
return message;
|
4729
4768
|
},
|
4730
4769
|
};
|
4731
4770
|
|
4732
4771
|
function createBaseCosmosLogHandlerConfig(): CosmosLogHandlerConfig {
|
4733
|
-
return { logFilters: [], handlerId: 0 };
|
4772
|
+
return { logFilters: [], handlerId: 0, handlerName: "" };
|
4734
4773
|
}
|
4735
4774
|
|
4736
4775
|
export const CosmosLogHandlerConfig = {
|
@@ -4741,6 +4780,9 @@ export const CosmosLogHandlerConfig = {
|
|
4741
4780
|
if (message.handlerId !== 0) {
|
4742
4781
|
writer.uint32(16).int32(message.handlerId);
|
4743
4782
|
}
|
4783
|
+
if (message.handlerName !== "") {
|
4784
|
+
writer.uint32(26).string(message.handlerName);
|
4785
|
+
}
|
4744
4786
|
return writer;
|
4745
4787
|
},
|
4746
4788
|
|
@@ -4765,6 +4807,13 @@ export const CosmosLogHandlerConfig = {
|
|
4765
4807
|
|
4766
4808
|
message.handlerId = reader.int32();
|
4767
4809
|
continue;
|
4810
|
+
case 3:
|
4811
|
+
if (tag !== 26) {
|
4812
|
+
break;
|
4813
|
+
}
|
4814
|
+
|
4815
|
+
message.handlerName = reader.string();
|
4816
|
+
continue;
|
4768
4817
|
}
|
4769
4818
|
if ((tag & 7) === 4 || tag === 0) {
|
4770
4819
|
break;
|
@@ -4780,6 +4829,7 @@ export const CosmosLogHandlerConfig = {
|
|
4780
4829
|
? object.logFilters.map((e: any) => globalThis.String(e))
|
4781
4830
|
: [],
|
4782
4831
|
handlerId: isSet(object.handlerId) ? globalThis.Number(object.handlerId) : 0,
|
4832
|
+
handlerName: isSet(object.handlerName) ? globalThis.String(object.handlerName) : "",
|
4783
4833
|
};
|
4784
4834
|
},
|
4785
4835
|
|
@@ -4791,6 +4841,9 @@ export const CosmosLogHandlerConfig = {
|
|
4791
4841
|
if (message.handlerId !== 0) {
|
4792
4842
|
obj.handlerId = Math.round(message.handlerId);
|
4793
4843
|
}
|
4844
|
+
if (message.handlerName !== "") {
|
4845
|
+
obj.handlerName = message.handlerName;
|
4846
|
+
}
|
4794
4847
|
return obj;
|
4795
4848
|
},
|
4796
4849
|
|
@@ -4801,6 +4854,7 @@ export const CosmosLogHandlerConfig = {
|
|
4801
4854
|
const message = createBaseCosmosLogHandlerConfig();
|
4802
4855
|
message.logFilters = object.logFilters?.map((e) => e) || [];
|
4803
4856
|
message.handlerId = object.handlerId ?? 0;
|
4857
|
+
message.handlerName = object.handlerName ?? "";
|
4804
4858
|
return message;
|
4805
4859
|
},
|
4806
4860
|
};
|
@@ -5245,7 +5299,7 @@ export const MoveAccountFetchConfig = {
|
|
5245
5299
|
};
|
5246
5300
|
|
5247
5301
|
function createBaseMoveEventHandlerConfig(): MoveEventHandlerConfig {
|
5248
|
-
return { filters: [], handlerId: 0, fetchConfig: undefined };
|
5302
|
+
return { filters: [], handlerId: 0, fetchConfig: undefined, handlerName: "" };
|
5249
5303
|
}
|
5250
5304
|
|
5251
5305
|
export const MoveEventHandlerConfig = {
|
@@ -5259,6 +5313,9 @@ export const MoveEventHandlerConfig = {
|
|
5259
5313
|
if (message.fetchConfig !== undefined) {
|
5260
5314
|
MoveFetchConfig.encode(message.fetchConfig, writer.uint32(26).fork()).ldelim();
|
5261
5315
|
}
|
5316
|
+
if (message.handlerName !== "") {
|
5317
|
+
writer.uint32(34).string(message.handlerName);
|
5318
|
+
}
|
5262
5319
|
return writer;
|
5263
5320
|
},
|
5264
5321
|
|
@@ -5290,6 +5347,13 @@ export const MoveEventHandlerConfig = {
|
|
5290
5347
|
|
5291
5348
|
message.fetchConfig = MoveFetchConfig.decode(reader, reader.uint32());
|
5292
5349
|
continue;
|
5350
|
+
case 4:
|
5351
|
+
if (tag !== 34) {
|
5352
|
+
break;
|
5353
|
+
}
|
5354
|
+
|
5355
|
+
message.handlerName = reader.string();
|
5356
|
+
continue;
|
5293
5357
|
}
|
5294
5358
|
if ((tag & 7) === 4 || tag === 0) {
|
5295
5359
|
break;
|
@@ -5306,6 +5370,7 @@ export const MoveEventHandlerConfig = {
|
|
5306
5370
|
: [],
|
5307
5371
|
handlerId: isSet(object.handlerId) ? globalThis.Number(object.handlerId) : 0,
|
5308
5372
|
fetchConfig: isSet(object.fetchConfig) ? MoveFetchConfig.fromJSON(object.fetchConfig) : undefined,
|
5373
|
+
handlerName: isSet(object.handlerName) ? globalThis.String(object.handlerName) : "",
|
5309
5374
|
};
|
5310
5375
|
},
|
5311
5376
|
|
@@ -5320,6 +5385,9 @@ export const MoveEventHandlerConfig = {
|
|
5320
5385
|
if (message.fetchConfig !== undefined) {
|
5321
5386
|
obj.fetchConfig = MoveFetchConfig.toJSON(message.fetchConfig);
|
5322
5387
|
}
|
5388
|
+
if (message.handlerName !== "") {
|
5389
|
+
obj.handlerName = message.handlerName;
|
5390
|
+
}
|
5323
5391
|
return obj;
|
5324
5392
|
},
|
5325
5393
|
|
@@ -5333,6 +5401,7 @@ export const MoveEventHandlerConfig = {
|
|
5333
5401
|
message.fetchConfig = (object.fetchConfig !== undefined && object.fetchConfig !== null)
|
5334
5402
|
? MoveFetchConfig.fromPartial(object.fetchConfig)
|
5335
5403
|
: undefined;
|
5404
|
+
message.handlerName = object.handlerName ?? "";
|
5336
5405
|
return message;
|
5337
5406
|
},
|
5338
5407
|
};
|
@@ -5412,7 +5481,7 @@ export const MoveEventFilter = {
|
|
5412
5481
|
};
|
5413
5482
|
|
5414
5483
|
function createBaseMoveCallHandlerConfig(): MoveCallHandlerConfig {
|
5415
|
-
return { filters: [], handlerId: 0, fetchConfig: undefined };
|
5484
|
+
return { filters: [], handlerId: 0, fetchConfig: undefined, handlerName: "" };
|
5416
5485
|
}
|
5417
5486
|
|
5418
5487
|
export const MoveCallHandlerConfig = {
|
@@ -5426,6 +5495,9 @@ export const MoveCallHandlerConfig = {
|
|
5426
5495
|
if (message.fetchConfig !== undefined) {
|
5427
5496
|
MoveFetchConfig.encode(message.fetchConfig, writer.uint32(26).fork()).ldelim();
|
5428
5497
|
}
|
5498
|
+
if (message.handlerName !== "") {
|
5499
|
+
writer.uint32(34).string(message.handlerName);
|
5500
|
+
}
|
5429
5501
|
return writer;
|
5430
5502
|
},
|
5431
5503
|
|
@@ -5457,6 +5529,13 @@ export const MoveCallHandlerConfig = {
|
|
5457
5529
|
|
5458
5530
|
message.fetchConfig = MoveFetchConfig.decode(reader, reader.uint32());
|
5459
5531
|
continue;
|
5532
|
+
case 4:
|
5533
|
+
if (tag !== 34) {
|
5534
|
+
break;
|
5535
|
+
}
|
5536
|
+
|
5537
|
+
message.handlerName = reader.string();
|
5538
|
+
continue;
|
5460
5539
|
}
|
5461
5540
|
if ((tag & 7) === 4 || tag === 0) {
|
5462
5541
|
break;
|
@@ -5473,6 +5552,7 @@ export const MoveCallHandlerConfig = {
|
|
5473
5552
|
: [],
|
5474
5553
|
handlerId: isSet(object.handlerId) ? globalThis.Number(object.handlerId) : 0,
|
5475
5554
|
fetchConfig: isSet(object.fetchConfig) ? MoveFetchConfig.fromJSON(object.fetchConfig) : undefined,
|
5555
|
+
handlerName: isSet(object.handlerName) ? globalThis.String(object.handlerName) : "",
|
5476
5556
|
};
|
5477
5557
|
},
|
5478
5558
|
|
@@ -5487,6 +5567,9 @@ export const MoveCallHandlerConfig = {
|
|
5487
5567
|
if (message.fetchConfig !== undefined) {
|
5488
5568
|
obj.fetchConfig = MoveFetchConfig.toJSON(message.fetchConfig);
|
5489
5569
|
}
|
5570
|
+
if (message.handlerName !== "") {
|
5571
|
+
obj.handlerName = message.handlerName;
|
5572
|
+
}
|
5490
5573
|
return obj;
|
5491
5574
|
},
|
5492
5575
|
|
@@ -5500,12 +5583,13 @@ export const MoveCallHandlerConfig = {
|
|
5500
5583
|
message.fetchConfig = (object.fetchConfig !== undefined && object.fetchConfig !== null)
|
5501
5584
|
? MoveFetchConfig.fromPartial(object.fetchConfig)
|
5502
5585
|
: undefined;
|
5586
|
+
message.handlerName = object.handlerName ?? "";
|
5503
5587
|
return message;
|
5504
5588
|
},
|
5505
5589
|
};
|
5506
5590
|
|
5507
5591
|
function createBaseMoveResourceChangeConfig(): MoveResourceChangeConfig {
|
5508
|
-
return { type: "", handlerId: 0 };
|
5592
|
+
return { type: "", handlerId: 0, handlerName: "" };
|
5509
5593
|
}
|
5510
5594
|
|
5511
5595
|
export const MoveResourceChangeConfig = {
|
@@ -5516,6 +5600,9 @@ export const MoveResourceChangeConfig = {
|
|
5516
5600
|
if (message.handlerId !== 0) {
|
5517
5601
|
writer.uint32(16).int32(message.handlerId);
|
5518
5602
|
}
|
5603
|
+
if (message.handlerName !== "") {
|
5604
|
+
writer.uint32(26).string(message.handlerName);
|
5605
|
+
}
|
5519
5606
|
return writer;
|
5520
5607
|
},
|
5521
5608
|
|
@@ -5540,6 +5627,13 @@ export const MoveResourceChangeConfig = {
|
|
5540
5627
|
|
5541
5628
|
message.handlerId = reader.int32();
|
5542
5629
|
continue;
|
5630
|
+
case 3:
|
5631
|
+
if (tag !== 26) {
|
5632
|
+
break;
|
5633
|
+
}
|
5634
|
+
|
5635
|
+
message.handlerName = reader.string();
|
5636
|
+
continue;
|
5543
5637
|
}
|
5544
5638
|
if ((tag & 7) === 4 || tag === 0) {
|
5545
5639
|
break;
|
@@ -5553,6 +5647,7 @@ export const MoveResourceChangeConfig = {
|
|
5553
5647
|
return {
|
5554
5648
|
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
5555
5649
|
handlerId: isSet(object.handlerId) ? globalThis.Number(object.handlerId) : 0,
|
5650
|
+
handlerName: isSet(object.handlerName) ? globalThis.String(object.handlerName) : "",
|
5556
5651
|
};
|
5557
5652
|
},
|
5558
5653
|
|
@@ -5564,6 +5659,9 @@ export const MoveResourceChangeConfig = {
|
|
5564
5659
|
if (message.handlerId !== 0) {
|
5565
5660
|
obj.handlerId = Math.round(message.handlerId);
|
5566
5661
|
}
|
5662
|
+
if (message.handlerName !== "") {
|
5663
|
+
obj.handlerName = message.handlerName;
|
5664
|
+
}
|
5567
5665
|
return obj;
|
5568
5666
|
},
|
5569
5667
|
|
@@ -5574,6 +5672,7 @@ export const MoveResourceChangeConfig = {
|
|
5574
5672
|
const message = createBaseMoveResourceChangeConfig();
|
5575
5673
|
message.type = object.type ?? "";
|
5576
5674
|
message.handlerId = object.handlerId ?? 0;
|
5675
|
+
message.handlerName = object.handlerName ?? "";
|
5577
5676
|
return message;
|
5578
5677
|
},
|
5579
5678
|
};
|
@@ -5800,7 +5899,7 @@ export const MoveCallFilter_FromAndToAddress = {
|
|
5800
5899
|
};
|
5801
5900
|
|
5802
5901
|
function createBaseStarknetEventHandlerConfig(): StarknetEventHandlerConfig {
|
5803
|
-
return { filters: [], handlerId: 0 };
|
5902
|
+
return { filters: [], handlerId: 0, handlerName: "" };
|
5804
5903
|
}
|
5805
5904
|
|
5806
5905
|
export const StarknetEventHandlerConfig = {
|
@@ -5811,6 +5910,9 @@ export const StarknetEventHandlerConfig = {
|
|
5811
5910
|
if (message.handlerId !== 0) {
|
5812
5911
|
writer.uint32(16).int32(message.handlerId);
|
5813
5912
|
}
|
5913
|
+
if (message.handlerName !== "") {
|
5914
|
+
writer.uint32(26).string(message.handlerName);
|
5915
|
+
}
|
5814
5916
|
return writer;
|
5815
5917
|
},
|
5816
5918
|
|
@@ -5835,6 +5937,13 @@ export const StarknetEventHandlerConfig = {
|
|
5835
5937
|
|
5836
5938
|
message.handlerId = reader.int32();
|
5837
5939
|
continue;
|
5940
|
+
case 3:
|
5941
|
+
if (tag !== 26) {
|
5942
|
+
break;
|
5943
|
+
}
|
5944
|
+
|
5945
|
+
message.handlerName = reader.string();
|
5946
|
+
continue;
|
5838
5947
|
}
|
5839
5948
|
if ((tag & 7) === 4 || tag === 0) {
|
5840
5949
|
break;
|
@@ -5850,6 +5959,7 @@ export const StarknetEventHandlerConfig = {
|
|
5850
5959
|
? object.filters.map((e: any) => StarknetEventFilter.fromJSON(e))
|
5851
5960
|
: [],
|
5852
5961
|
handlerId: isSet(object.handlerId) ? globalThis.Number(object.handlerId) : 0,
|
5962
|
+
handlerName: isSet(object.handlerName) ? globalThis.String(object.handlerName) : "",
|
5853
5963
|
};
|
5854
5964
|
},
|
5855
5965
|
|
@@ -5861,6 +5971,9 @@ export const StarknetEventHandlerConfig = {
|
|
5861
5971
|
if (message.handlerId !== 0) {
|
5862
5972
|
obj.handlerId = Math.round(message.handlerId);
|
5863
5973
|
}
|
5974
|
+
if (message.handlerName !== "") {
|
5975
|
+
obj.handlerName = message.handlerName;
|
5976
|
+
}
|
5864
5977
|
return obj;
|
5865
5978
|
},
|
5866
5979
|
|
@@ -5871,12 +5984,13 @@ export const StarknetEventHandlerConfig = {
|
|
5871
5984
|
const message = createBaseStarknetEventHandlerConfig();
|
5872
5985
|
message.filters = object.filters?.map((e) => StarknetEventFilter.fromPartial(e)) || [];
|
5873
5986
|
message.handlerId = object.handlerId ?? 0;
|
5987
|
+
message.handlerName = object.handlerName ?? "";
|
5874
5988
|
return message;
|
5875
5989
|
},
|
5876
5990
|
};
|
5877
5991
|
|
5878
5992
|
function createBaseBTCTransactionHandlerConfig(): BTCTransactionHandlerConfig {
|
5879
|
-
return { filters: [], handlerId: 0 };
|
5993
|
+
return { filters: [], handlerId: 0, handlerName: "" };
|
5880
5994
|
}
|
5881
5995
|
|
5882
5996
|
export const BTCTransactionHandlerConfig = {
|
@@ -5887,6 +6001,9 @@ export const BTCTransactionHandlerConfig = {
|
|
5887
6001
|
if (message.handlerId !== 0) {
|
5888
6002
|
writer.uint32(16).int32(message.handlerId);
|
5889
6003
|
}
|
6004
|
+
if (message.handlerName !== "") {
|
6005
|
+
writer.uint32(26).string(message.handlerName);
|
6006
|
+
}
|
5890
6007
|
return writer;
|
5891
6008
|
},
|
5892
6009
|
|
@@ -5911,6 +6028,13 @@ export const BTCTransactionHandlerConfig = {
|
|
5911
6028
|
|
5912
6029
|
message.handlerId = reader.int32();
|
5913
6030
|
continue;
|
6031
|
+
case 3:
|
6032
|
+
if (tag !== 26) {
|
6033
|
+
break;
|
6034
|
+
}
|
6035
|
+
|
6036
|
+
message.handlerName = reader.string();
|
6037
|
+
continue;
|
5914
6038
|
}
|
5915
6039
|
if ((tag & 7) === 4 || tag === 0) {
|
5916
6040
|
break;
|
@@ -5926,6 +6050,7 @@ export const BTCTransactionHandlerConfig = {
|
|
5926
6050
|
? object.filters.map((e: any) => BTCTransactionFilter.fromJSON(e))
|
5927
6051
|
: [],
|
5928
6052
|
handlerId: isSet(object.handlerId) ? globalThis.Number(object.handlerId) : 0,
|
6053
|
+
handlerName: isSet(object.handlerName) ? globalThis.String(object.handlerName) : "",
|
5929
6054
|
};
|
5930
6055
|
},
|
5931
6056
|
|
@@ -5937,6 +6062,9 @@ export const BTCTransactionHandlerConfig = {
|
|
5937
6062
|
if (message.handlerId !== 0) {
|
5938
6063
|
obj.handlerId = Math.round(message.handlerId);
|
5939
6064
|
}
|
6065
|
+
if (message.handlerName !== "") {
|
6066
|
+
obj.handlerName = message.handlerName;
|
6067
|
+
}
|
5940
6068
|
return obj;
|
5941
6069
|
},
|
5942
6070
|
|
@@ -5947,6 +6075,7 @@ export const BTCTransactionHandlerConfig = {
|
|
5947
6075
|
const message = createBaseBTCTransactionHandlerConfig();
|
5948
6076
|
message.filters = object.filters?.map((e) => BTCTransactionFilter.fromPartial(e)) || [];
|
5949
6077
|
message.handlerId = object.handlerId ?? 0;
|
6078
|
+
message.handlerName = object.handlerName ?? "";
|
5950
6079
|
return message;
|
5951
6080
|
},
|
5952
6081
|
};
|
@@ -6862,7 +6991,7 @@ export const FuelCallFilter = {
|
|
6862
6991
|
};
|
6863
6992
|
|
6864
6993
|
function createBaseFuelCallHandlerConfig(): FuelCallHandlerConfig {
|
6865
|
-
return { filters: [], handlerId: 0 };
|
6994
|
+
return { filters: [], handlerId: 0, handlerName: "" };
|
6866
6995
|
}
|
6867
6996
|
|
6868
6997
|
export const FuelCallHandlerConfig = {
|
@@ -6873,6 +7002,9 @@ export const FuelCallHandlerConfig = {
|
|
6873
7002
|
if (message.handlerId !== 0) {
|
6874
7003
|
writer.uint32(16).int32(message.handlerId);
|
6875
7004
|
}
|
7005
|
+
if (message.handlerName !== "") {
|
7006
|
+
writer.uint32(26).string(message.handlerName);
|
7007
|
+
}
|
6876
7008
|
return writer;
|
6877
7009
|
},
|
6878
7010
|
|
@@ -6897,6 +7029,13 @@ export const FuelCallHandlerConfig = {
|
|
6897
7029
|
|
6898
7030
|
message.handlerId = reader.int32();
|
6899
7031
|
continue;
|
7032
|
+
case 3:
|
7033
|
+
if (tag !== 26) {
|
7034
|
+
break;
|
7035
|
+
}
|
7036
|
+
|
7037
|
+
message.handlerName = reader.string();
|
7038
|
+
continue;
|
6900
7039
|
}
|
6901
7040
|
if ((tag & 7) === 4 || tag === 0) {
|
6902
7041
|
break;
|
@@ -6912,6 +7051,7 @@ export const FuelCallHandlerConfig = {
|
|
6912
7051
|
? object.filters.map((e: any) => FuelCallFilter.fromJSON(e))
|
6913
7052
|
: [],
|
6914
7053
|
handlerId: isSet(object.handlerId) ? globalThis.Number(object.handlerId) : 0,
|
7054
|
+
handlerName: isSet(object.handlerName) ? globalThis.String(object.handlerName) : "",
|
6915
7055
|
};
|
6916
7056
|
},
|
6917
7057
|
|
@@ -6923,6 +7063,9 @@ export const FuelCallHandlerConfig = {
|
|
6923
7063
|
if (message.handlerId !== 0) {
|
6924
7064
|
obj.handlerId = Math.round(message.handlerId);
|
6925
7065
|
}
|
7066
|
+
if (message.handlerName !== "") {
|
7067
|
+
obj.handlerName = message.handlerName;
|
7068
|
+
}
|
6926
7069
|
return obj;
|
6927
7070
|
},
|
6928
7071
|
|
@@ -6933,6 +7076,7 @@ export const FuelCallHandlerConfig = {
|
|
6933
7076
|
const message = createBaseFuelCallHandlerConfig();
|
6934
7077
|
message.filters = object.filters?.map((e) => FuelCallFilter.fromPartial(e)) || [];
|
6935
7078
|
message.handlerId = object.handlerId ?? 0;
|
7079
|
+
message.handlerName = object.handlerName ?? "";
|
6936
7080
|
return message;
|
6937
7081
|
},
|
6938
7082
|
};
|