@sentio/runtime 4.0.0-rc.8 → 4.0.0

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.
Files changed (42) hide show
  1. package/lib/chunk-AUPVVLD3.js +3 -0
  2. package/lib/chunk-GIDETKWP.js +3 -0
  3. package/lib/{chunk-LSYQ34WX.js.map → chunk-GIDETKWP.js.map} +1 -1
  4. package/lib/chunk-OWUO6IOO.js +4 -0
  5. package/lib/{chunk-JTBA3KXU.js.map → chunk-OWUO6IOO.js.map} +1 -1
  6. package/lib/chunk-TW627LH5.js +3 -0
  7. package/lib/{chunk-I45UXGDM.js.map → chunk-TW627LH5.js.map} +1 -1
  8. package/lib/chunk-ZBEAD3P3.js +15 -0
  9. package/lib/{chunk-7JGO6QCN.js.map → chunk-ZBEAD3P3.js.map} +1 -1
  10. package/lib/getMachineId-bsd-D4LAJDEF.js +3 -0
  11. package/lib/{getMachineId-bsd-OV63RCBF.js.map → getMachineId-bsd-D4LAJDEF.js.map} +1 -1
  12. package/lib/getMachineId-darwin-LI2YUJNR.js +4 -0
  13. package/lib/{getMachineId-darwin-7BY3RHHX.js.map → getMachineId-darwin-LI2YUJNR.js.map} +1 -1
  14. package/lib/getMachineId-linux-U5ITOJBK.js +3 -0
  15. package/lib/{getMachineId-linux-SN23MJRK.js.map → getMachineId-linux-U5ITOJBK.js.map} +1 -1
  16. package/lib/getMachineId-unsupported-5HCFSWXA.js +3 -0
  17. package/lib/{getMachineId-unsupported-CQYUAEDB.js.map → getMachineId-unsupported-5HCFSWXA.js.map} +1 -1
  18. package/lib/getMachineId-win-MPVRXIQL.js +3 -0
  19. package/lib/{getMachineId-win-NL4ZQSDA.js.map → getMachineId-win-MPVRXIQL.js.map} +1 -1
  20. package/lib/index.d.ts +6 -19
  21. package/lib/index.js +1 -21389
  22. package/lib/index.js.map +1 -1
  23. package/lib/processor-runner.js +92 -51086
  24. package/lib/processor-runner.js.map +1 -1
  25. package/package.json +1 -1
  26. package/src/chain-config.ts +1 -1
  27. package/src/endpoints.ts +5 -5
  28. package/src/gen/processor/protos/processor_pb.ts +6 -1
  29. package/src/index.ts +0 -1
  30. package/lib/chunk-7JGO6QCN.js +0 -15174
  31. package/lib/chunk-I45UXGDM.js +0 -1697
  32. package/lib/chunk-JTBA3KXU.js +0 -4988
  33. package/lib/chunk-KVSDPGUI.js +0 -50
  34. package/lib/chunk-LSYQ34WX.js +0 -21
  35. package/lib/getMachineId-bsd-OV63RCBF.js +0 -41
  36. package/lib/getMachineId-darwin-7BY3RHHX.js +0 -41
  37. package/lib/getMachineId-linux-SN23MJRK.js +0 -33
  38. package/lib/getMachineId-unsupported-CQYUAEDB.js +0 -24
  39. package/lib/getMachineId-win-NL4ZQSDA.js +0 -43
  40. package/src/multicall.ts +0 -1605
  41. package/src/provider.ts +0 -195
  42. /package/lib/{chunk-KVSDPGUI.js.map → chunk-AUPVVLD3.js.map} +0 -0
@@ -0,0 +1,3 @@
1
+ import { createRequire as createRequireShim } from 'module'; const require = createRequireShim(import.meta.url);
2
+ import{a as t,b as s}from"./chunk-GIDETKWP.js";import{j as r,o as n}from"./chunk-TW627LH5.js";import{b as i}from"./chunk-AUPVVLD3.js";import{promises as o}from"fs";async function m(){try{return(await o.readFile("/etc/hostid",{encoding:"utf8"})).trim()}catch(e){r.debug(`error reading machine id: ${e}`)}try{return(await t("kenv -q smbios.system.uuid")).stdout.trim()}catch(e){r.debug(`error reading machine id: ${e}`)}}var a=i(()=>{s();n()});a();export{m as getMachineId};
3
+ //# sourceMappingURL=getMachineId-bsd-D4LAJDEF.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../node_modules/.pnpm/@opentelemetry+resources@2.7.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/src/detectors/platform/node/machine-id/getMachineId-bsd.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { promises as fs } from 'fs';\nimport { execAsync } from './execAsync';\nimport { diag } from '@opentelemetry/api';\n\nexport async function getMachineId(): Promise<string | undefined> {\n try {\n const result = await fs.readFile('/etc/hostid', { encoding: 'utf8' });\n return result.trim();\n } catch (e) {\n diag.debug(`error reading machine id: ${e}`);\n }\n\n try {\n const result = await execAsync('kenv -q smbios.system.uuid');\n return result.stdout.trim();\n } catch (e) {\n diag.debug(`error reading machine id: ${e}`);\n }\n\n return undefined;\n}\n"],"mappings":";;;;;;;;;;;;;;AAKA,SAAS,YAAY,UAAU;AAI/B,eAAsB,eAAY;AAChC,MAAI;AACF,UAAM,SAAS,MAAM,GAAG,SAAS,eAAe,EAAE,UAAU,OAAM,CAAE;AACpE,WAAO,OAAO,KAAI;WACX,GAAG;AACV,SAAK,MAAM,6BAA6B,CAAC,EAAE;;AAG7C,MAAI;AACF,UAAM,SAAS,MAAM,UAAU,4BAA4B;AAC3D,WAAO,OAAO,OAAO,KAAI;WAClB,GAAG;AACV,SAAK,MAAM,6BAA6B,CAAC,EAAE;;AAG7C,SAAO;AACT;AAzBA;;AAMA;AACA;;;","names":[]}
1
+ {"version":3,"sources":["../../../node_modules/.pnpm/@opentelemetry+resources@2.7.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/src/detectors/platform/node/machine-id/getMachineId-bsd.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { promises as fs } from 'fs';\nimport { execAsync } from './execAsync';\nimport { diag } from '@opentelemetry/api';\n\nexport async function getMachineId(): Promise<string | undefined> {\n try {\n const result = await fs.readFile('/etc/hostid', { encoding: 'utf8' });\n return result.trim();\n } catch (e) {\n diag.debug(`error reading machine id: ${e}`);\n }\n\n try {\n const result = await execAsync('kenv -q smbios.system.uuid');\n return result.stdout.trim();\n } catch (e) {\n diag.debug(`error reading machine id: ${e}`);\n }\n\n return undefined;\n}\n"],"mappings":";sIAKA,OAAS,YAAYA,MAAU,KAI/B,eAAsBC,GAAY,CAChC,GAAI,CAEF,OADe,MAAMD,EAAG,SAAS,cAAe,CAAE,SAAU,MAAM,CAAE,GACtD,KAAI,QACX,EAAG,CACVE,EAAK,MAAM,6BAA6B,CAAC,EAAE,EAG7C,GAAI,CAEF,OADe,MAAMC,EAAU,4BAA4B,GAC7C,OAAO,KAAI,QAClB,EAAG,CACVD,EAAK,MAAM,6BAA6B,CAAC,EAAE,EAI/C,CAzBA,IAAAE,EAAAC,EAAA,KAMAC,IACAC","names":["fs","getMachineId","diag","execAsync","init_getMachineId_bsd","__esmMin","init_execAsync","init_esm"]}
@@ -0,0 +1,4 @@
1
+ import { createRequire as createRequireShim } from 'module'; const require = createRequireShim(import.meta.url);
2
+ import{a as n,b as s}from"./chunk-GIDETKWP.js";import{j as i,o}from"./chunk-TW627LH5.js";import{b as d}from"./chunk-AUPVVLD3.js";async function l(){try{let t=(await n('ioreg -rd1 -c "IOPlatformExpertDevice"')).stdout.split(`
3
+ `).find(c=>c.includes("IOPlatformUUID"));if(!t)return;let r=t.split('" = "');if(r.length===2)return r[1].slice(0,-1)}catch(e){i.debug(`error reading machine id: ${e}`)}}var a=d(()=>{s();o()});a();export{l as getMachineId};
4
+ //# sourceMappingURL=getMachineId-darwin-LI2YUJNR.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../node_modules/.pnpm/@opentelemetry+resources@2.7.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/src/detectors/platform/node/machine-id/getMachineId-darwin.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { execAsync } from './execAsync';\nimport { diag } from '@opentelemetry/api';\n\nexport async function getMachineId(): Promise<string | undefined> {\n try {\n const result = await execAsync('ioreg -rd1 -c \"IOPlatformExpertDevice\"');\n\n const idLine = result.stdout\n .split('\\n')\n .find(line => line.includes('IOPlatformUUID'));\n\n if (!idLine) {\n return undefined;\n }\n\n const parts = idLine.split('\" = \"');\n if (parts.length === 2) {\n return parts[1].slice(0, -1);\n }\n } catch (e) {\n diag.debug(`error reading machine id: ${e}`);\n }\n\n return undefined;\n}\n"],"mappings":";;;;;;;;;;;;;;AAQA,eAAsB,eAAY;AAChC,MAAI;AACF,UAAM,SAAS,MAAM,UAAU,wCAAwC;AAEvE,UAAM,SAAS,OAAO,OACnB,MAAM,IAAI,EACV,KAAK,UAAQ,KAAK,SAAS,gBAAgB,CAAC;AAE/C,QAAI,CAAC,QAAQ;AACX,aAAO;;AAGT,UAAM,QAAQ,OAAO,MAAM,OAAO;AAClC,QAAI,MAAM,WAAW,GAAG;AACtB,aAAO,MAAM,CAAC,EAAE,MAAM,GAAG,EAAE;;WAEtB,GAAG;AACV,SAAK,MAAM,6BAA6B,CAAC,EAAE;;AAG7C,SAAO;AACT;AA7BA;;AAKA;AACA;;;","names":[]}
1
+ {"version":3,"sources":["../../../node_modules/.pnpm/@opentelemetry+resources@2.7.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/src/detectors/platform/node/machine-id/getMachineId-darwin.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { execAsync } from './execAsync';\nimport { diag } from '@opentelemetry/api';\n\nexport async function getMachineId(): Promise<string | undefined> {\n try {\n const result = await execAsync('ioreg -rd1 -c \"IOPlatformExpertDevice\"');\n\n const idLine = result.stdout\n .split('\\n')\n .find(line => line.includes('IOPlatformUUID'));\n\n if (!idLine) {\n return undefined;\n }\n\n const parts = idLine.split('\" = \"');\n if (parts.length === 2) {\n return parts[1].slice(0, -1);\n }\n } catch (e) {\n diag.debug(`error reading machine id: ${e}`);\n }\n\n return undefined;\n}\n"],"mappings":";iIAQA,eAAsBA,GAAY,CAChC,GAAI,CAGF,IAAMC,GAFS,MAAMC,EAAU,wCAAwC,GAEjD,OACnB,MAAM;CAAI,EACV,KAAKC,GAAQA,EAAK,SAAS,gBAAgB,CAAC,EAE/C,GAAI,CAACF,EACH,OAGF,IAAMG,EAAQH,EAAO,MAAM,OAAO,EAClC,GAAIG,EAAM,SAAW,EACnB,OAAOA,EAAM,CAAC,EAAE,MAAM,EAAG,EAAE,QAEtB,EAAG,CACVC,EAAK,MAAM,6BAA6B,CAAC,EAAE,EAI/C,CA7BA,IAAAC,EAAAC,EAAA,KAKAC,IACAC","names":["getMachineId","idLine","execAsync","line","parts","diag","init_getMachineId_darwin","__esmMin","init_execAsync","init_esm"]}
@@ -0,0 +1,3 @@
1
+ import { createRequire as createRequireShim } from 'module'; const require = createRequireShim(import.meta.url);
2
+ import{j as r,o as a}from"./chunk-TW627LH5.js";import{b as n}from"./chunk-AUPVVLD3.js";import{promises as o}from"fs";async function m(){let t=["/etc/machine-id","/var/lib/dbus/machine-id"];for(let i of t)try{return(await o.readFile(i,{encoding:"utf8"})).trim()}catch(e){r.debug(`error reading machine id: ${e}`)}}var c=n(()=>{a()});c();export{m as getMachineId};
3
+ //# sourceMappingURL=getMachineId-linux-U5ITOJBK.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../node_modules/.pnpm/@opentelemetry+resources@2.7.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/src/detectors/platform/node/machine-id/getMachineId-linux.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { promises as fs } from 'fs';\nimport { diag } from '@opentelemetry/api';\n\nexport async function getMachineId(): Promise<string | undefined> {\n const paths = ['/etc/machine-id', '/var/lib/dbus/machine-id'];\n\n for (const path of paths) {\n try {\n const result = await fs.readFile(path, { encoding: 'utf8' });\n return result.trim();\n } catch (e) {\n diag.debug(`error reading machine id: ${e}`);\n }\n }\n\n return undefined;\n}\n"],"mappings":";;;;;;;;;;AAIA,SAAS,YAAY,UAAU;AAG/B,eAAsB,eAAY;AAChC,QAAM,QAAQ,CAAC,mBAAmB,0BAA0B;AAE5D,aAAW,QAAQ,OAAO;AACxB,QAAI;AACF,YAAM,SAAS,MAAM,GAAG,SAAS,MAAM,EAAE,UAAU,OAAM,CAAE;AAC3D,aAAO,OAAO,KAAI;aACX,GAAG;AACV,WAAK,MAAM,6BAA6B,CAAC,EAAE;;;AAI/C,SAAO;AACT;AApBA;;AAKA;;;","names":[]}
1
+ {"version":3,"sources":["../../../node_modules/.pnpm/@opentelemetry+resources@2.7.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/src/detectors/platform/node/machine-id/getMachineId-linux.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { promises as fs } from 'fs';\nimport { diag } from '@opentelemetry/api';\n\nexport async function getMachineId(): Promise<string | undefined> {\n const paths = ['/etc/machine-id', '/var/lib/dbus/machine-id'];\n\n for (const path of paths) {\n try {\n const result = await fs.readFile(path, { encoding: 'utf8' });\n return result.trim();\n } catch (e) {\n diag.debug(`error reading machine id: ${e}`);\n }\n }\n\n return undefined;\n}\n"],"mappings":";uFAIA,OAAS,YAAYA,MAAU,KAG/B,eAAsBC,GAAY,CAChC,IAAMC,EAAQ,CAAC,kBAAmB,0BAA0B,EAE5D,QAAWC,KAAQD,EACjB,GAAI,CAEF,OADe,MAAMF,EAAG,SAASG,EAAM,CAAE,SAAU,MAAM,CAAE,GAC7C,KAAI,QACX,EAAG,CACVC,EAAK,MAAM,6BAA6B,CAAC,EAAE,EAKjD,CApBA,IAAAC,EAAAC,EAAA,KAKAC","names":["fs","getMachineId","paths","path","diag","init_getMachineId_linux","__esmMin","init_esm"]}
@@ -0,0 +1,3 @@
1
+ import { createRequire as createRequireShim } from 'module'; const require = createRequireShim(import.meta.url);
2
+ import{j as e,o as d}from"./chunk-TW627LH5.js";import{b as n}from"./chunk-AUPVVLD3.js";async function t(){e.debug("could not read machine-id: unsupported platform")}var o=n(()=>{d()});o();export{t as getMachineId};
3
+ //# sourceMappingURL=getMachineId-unsupported-5HCFSWXA.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../node_modules/.pnpm/@opentelemetry+resources@2.7.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/src/detectors/platform/node/machine-id/getMachineId-unsupported.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { diag } from '@opentelemetry/api';\n\nexport async function getMachineId(): Promise<string | undefined> {\n diag.debug('could not read machine-id: unsupported platform');\n return undefined;\n}\n"],"mappings":";;;;;;;;;;AAOA,eAAsB,eAAY;AAChC,OAAK,MAAM,iDAAiD;AAC5D,SAAO;AACT;AAVA;;AAKA;;;","names":[]}
1
+ {"version":3,"sources":["../../../node_modules/.pnpm/@opentelemetry+resources@2.7.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/src/detectors/platform/node/machine-id/getMachineId-unsupported.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { diag } from '@opentelemetry/api';\n\nexport async function getMachineId(): Promise<string | undefined> {\n diag.debug('could not read machine-id: unsupported platform');\n return undefined;\n}\n"],"mappings":";uFAOA,eAAsBA,GAAY,CAChCC,EAAK,MAAM,iDAAiD,CAE9D,CAVA,IAAAC,EAAAC,EAAA,KAKAC","names":["getMachineId","diag","init_getMachineId_unsupported","__esmMin","init_esm"]}
@@ -0,0 +1,3 @@
1
+ import { createRequire as createRequireShim } from 'module'; const require = createRequireShim(import.meta.url);
2
+ import{a as s,b as d}from"./chunk-GIDETKWP.js";import{j as n,o as a}from"./chunk-TW627LH5.js";import{b as o}from"./chunk-AUPVVLD3.js";import*as r from"process";async function f(){let c="QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid",e="%windir%\\System32\\REG.exe";r.arch==="ia32"&&"PROCESSOR_ARCHITEW6432"in r.env&&(e="%windir%\\sysnative\\cmd.exe /c "+e);try{let i=(await s(`${e} ${c}`)).stdout.split("REG_SZ");if(i.length===2)return i[1].trim()}catch(t){n.debug(`error reading machine id: ${t}`)}}var m=o(()=>{d();a()});m();export{f as getMachineId};
3
+ //# sourceMappingURL=getMachineId-win-MPVRXIQL.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../node_modules/.pnpm/@opentelemetry+resources@2.7.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/src/detectors/platform/node/machine-id/getMachineId-win.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport * as process from 'process';\nimport { execAsync } from './execAsync';\nimport { diag } from '@opentelemetry/api';\n\nexport async function getMachineId(): Promise<string | undefined> {\n const args =\n 'QUERY HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\Microsoft\\\\Cryptography /v MachineGuid';\n let command = '%windir%\\\\System32\\\\REG.exe';\n if (process.arch === 'ia32' && 'PROCESSOR_ARCHITEW6432' in process.env) {\n command = '%windir%\\\\sysnative\\\\cmd.exe /c ' + command;\n }\n\n try {\n const result = await execAsync(`${command} ${args}`);\n const parts = result.stdout.split('REG_SZ');\n if (parts.length === 2) {\n return parts[1].trim();\n }\n } catch (e) {\n diag.debug(`error reading machine id: ${e}`);\n }\n\n return undefined;\n}\n"],"mappings":";;;;;;;;;;;;;;AAKA,YAAY,aAAa;AAIzB,eAAsB,eAAY;AAChC,QAAM,OACJ;AACF,MAAI,UAAU;AACd,MAAY,iBAAS,UAAU,4BAAoC,aAAK;AACtE,cAAU,qCAAqC;;AAGjD,MAAI;AACF,UAAM,SAAS,MAAM,UAAU,GAAG,OAAO,IAAI,IAAI,EAAE;AACnD,UAAM,QAAQ,OAAO,OAAO,MAAM,QAAQ;AAC1C,QAAI,MAAM,WAAW,GAAG;AACtB,aAAO,MAAM,CAAC,EAAE,KAAI;;WAEf,GAAG;AACV,SAAK,MAAM,6BAA6B,CAAC,EAAE;;AAG7C,SAAO;AACT;AA5BA;;AAMA;AACA;;;","names":[]}
1
+ {"version":3,"sources":["../../../node_modules/.pnpm/@opentelemetry+resources@2.7.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/src/detectors/platform/node/machine-id/getMachineId-win.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport * as process from 'process';\nimport { execAsync } from './execAsync';\nimport { diag } from '@opentelemetry/api';\n\nexport async function getMachineId(): Promise<string | undefined> {\n const args =\n 'QUERY HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\Microsoft\\\\Cryptography /v MachineGuid';\n let command = '%windir%\\\\System32\\\\REG.exe';\n if (process.arch === 'ia32' && 'PROCESSOR_ARCHITEW6432' in process.env) {\n command = '%windir%\\\\sysnative\\\\cmd.exe /c ' + command;\n }\n\n try {\n const result = await execAsync(`${command} ${args}`);\n const parts = result.stdout.split('REG_SZ');\n if (parts.length === 2) {\n return parts[1].trim();\n }\n } catch (e) {\n diag.debug(`error reading machine id: ${e}`);\n }\n\n return undefined;\n}\n"],"mappings":";sIAKA,UAAYA,MAAa,UAIzB,eAAsBC,GAAY,CAChC,IAAMC,EACJ,6EACEC,EAAU,8BACF,SAAS,QAAU,2BAAoC,QACjEA,EAAU,mCAAqCA,GAGjD,GAAI,CAEF,IAAMC,GADS,MAAMC,EAAU,GAAGF,CAAO,IAAID,CAAI,EAAE,GAC9B,OAAO,MAAM,QAAQ,EAC1C,GAAIE,EAAM,SAAW,EACnB,OAAOA,EAAM,CAAC,EAAE,KAAI,QAEfE,EAAG,CACVC,EAAK,MAAM,6BAA6BD,CAAC,EAAE,EAI/C,CA5BA,IAAAE,EAAAC,EAAA,KAMAC,IACAC","names":["process","getMachineId","args","command","parts","execAsync","e","diag","init_getMachineId_win","__esmMin","init_execAsync","init_esm"]}
package/lib/index.d.ts CHANGED
@@ -7,9 +7,6 @@ import { MessageInitShape } from '@bufbuild/protobuf';
7
7
  import { ServiceImpl, HandlerContext } from '@connectrpc/connect';
8
8
  import { Subject } from 'rxjs';
9
9
  import { Command } from '@commander-js/extra-typings';
10
- import { JsonRpcProvider, Network } from 'ethers';
11
- import PQueue from 'p-queue';
12
- import { EthChainId } from '@sentio/chain';
13
10
  import { AsyncLocalStorage } from 'node:async_hooks';
14
11
  import { Counter, Attributes, Gauge, Histogram } from '@opentelemetry/api';
15
12
 
@@ -56,13 +53,13 @@ declare function compareSemver(a: Semver, b: Semver): number;
56
53
  declare function locatePackageJson(pkgId: string): any;
57
54
 
58
55
  /**
59
- * Resolved RPC endpoint for a chain: the base URL plus optional gRPC metadata
60
- * (key-value pairs) attached to every request, e.g. the `authority` routing key
61
- * for the Sui gRPC client talking to the Sentio rpc-node.
56
+ * Resolved RPC endpoint for a chain: the base URL plus optional HTTP headers
57
+ * attached to every request, e.g. the `X-Forwarded-Host` routing key for the Sui
58
+ * gRPC client talking to the Sentio rpc-node.
62
59
  */
63
60
  interface ChainRpc {
64
61
  url: string;
65
- meta?: Record<string, string>;
62
+ headers?: Record<string, string>;
66
63
  }
67
64
  declare class Endpoints {
68
65
  static INSTANCE: Endpoints;
@@ -77,7 +74,7 @@ declare function configureEndpoints(options: any): void;
77
74
 
78
75
  interface RpcConfig {
79
76
  Url: string;
80
- Meta?: Record<string, string>;
77
+ Headers?: Record<string, string>;
81
78
  }
82
79
  interface ChainConfig {
83
80
  ChainID: string;
@@ -1600,16 +1597,6 @@ interface GlobalConfig {
1600
1597
  }
1601
1598
  declare const GLOBAL_CONFIG: GlobalConfig;
1602
1599
 
1603
- declare const DummyProvider: JsonRpcProvider;
1604
- declare function getProvider(chainId?: EthChainId): JsonRpcProvider;
1605
- declare class QueuedStaticJsonRpcProvider extends JsonRpcProvider {
1606
- #private;
1607
- executor: PQueue;
1608
- constructor(url: string, network: Network, concurrency: number, batchCount?: number);
1609
- send(method: string, params: Array<any>): Promise<any>;
1610
- toString(): string;
1611
- }
1612
-
1613
1600
  declare class C {
1614
1601
  private name;
1615
1602
  private _counter;
@@ -1760,4 +1747,4 @@ declare const processMetrics: {
1760
1747
  };
1761
1748
  declare const metricsStorage: AsyncLocalStorage<string>;
1762
1749
 
1763
- export { type ChainConfig, type ChainRpc, DummyProvider, Endpoints, GLOBAL_CONFIG, type GlobalConfig, ListStateStorage, MapStateStorage, ProcessorServiceImplV3, QueuedStaticJsonRpcProvider, type RpcConfig, type Semver, State, StateStorage, USER_PROCESSOR, compareSemver, configureEndpoints, dbMetrics, errorString, getProvider, locatePackageJson, makeEthCallKey, mergeProcessResults, mergeProcessResultsInPlace, metricsStorage, parseSemver, processMetrics, providerMetrics, recordRuntimeInfo };
1750
+ export { type ChainConfig, type ChainRpc, Endpoints, GLOBAL_CONFIG, type GlobalConfig, ListStateStorage, MapStateStorage, ProcessorServiceImplV3, type RpcConfig, type Semver, State, StateStorage, USER_PROCESSOR, compareSemver, configureEndpoints, dbMetrics, errorString, locatePackageJson, makeEthCallKey, mergeProcessResults, mergeProcessResultsInPlace, metricsStorage, parseSemver, processMetrics, providerMetrics, recordRuntimeInfo };