@sentio/sdk-bundle 2.55.0 → 2.55.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/lib/aptos/builtin/0x1.js +1 -1
  2. package/lib/aptos/builtin/0x3.js +1 -1
  3. package/lib/aptos/builtin/0x4.js +1 -1
  4. package/lib/aptos/builtin/index.js +1 -1
  5. package/lib/aptos/ext/index.js +1 -1
  6. package/lib/aptos/index.js +1 -1
  7. package/lib/btc/index.js +1 -1
  8. package/lib/{chunk-I7TWNRII.js → chunk-24TKIKAC.js} +2 -2
  9. package/lib/{chunk-ECZHCPDZ.js → chunk-26VKFV5Y.js} +2 -2
  10. package/lib/{chunk-F3FKHNF5.js → chunk-4ZKROMHQ.js} +2 -2
  11. package/lib/{chunk-D2L7KWZ2.js → chunk-5NXOOGVA.js} +2 -2
  12. package/lib/{chunk-MD3T4H6B.js → chunk-6P4HU4KH.js} +2 -2
  13. package/lib/{chunk-4VKVPYSL.js → chunk-A3BBP3JY.js} +2 -2
  14. package/lib/{chunk-JL6D6MPI.js → chunk-CQUL5GH2.js} +2 -2
  15. package/lib/{chunk-P2KJHIUL.js → chunk-EJ3LB3BV.js} +2 -2
  16. package/lib/{chunk-KV6ZVB7D.js → chunk-HWODJFVJ.js} +2 -2
  17. package/lib/{chunk-B3UDK7W6.js → chunk-JUDV27KS.js} +2 -2
  18. package/lib/{chunk-YQ55FG72.js → chunk-NEZRMKYM.js} +2 -2
  19. package/lib/{chunk-UQPDY6MT.js → chunk-QR7CH6SO.js} +2 -2
  20. package/lib/{chunk-BS7I2ZMW.js → chunk-RIHABKWB.js} +2 -2
  21. package/lib/{chunk-WR6FD24P.js → chunk-RZTTP64K.js} +2 -2
  22. package/lib/{chunk-QHT2WN3B.js → chunk-SQBMMGFT.js} +2 -2
  23. package/lib/{chunk-JVCO6QTF.js → chunk-SXK7O76Y.js} +2 -2
  24. package/lib/{chunk-N2VKAC4J.js → chunk-VA46M7OL.js} +2 -2
  25. package/lib/{chunk-CX3O4KA4.js → chunk-VLD3QNSH.js} +105 -105
  26. package/lib/{chunk-CX3O4KA4.js.map → chunk-VLD3QNSH.js.map} +1 -1
  27. package/lib/{chunk-MO32SIXZ.js → chunk-YQ346IMF.js} +2 -2
  28. package/lib/chunk-ZSDI5U4B.js +6 -0
  29. package/lib/chunk-ZSDI5U4B.js.map +1 -0
  30. package/lib/core/index.js +1 -1
  31. package/lib/eth/builtin/eacaggregatorproxy.js +1 -1
  32. package/lib/eth/builtin/erc1155.js +1 -1
  33. package/lib/eth/builtin/erc20.js +1 -1
  34. package/lib/eth/builtin/erc721.js +1 -1
  35. package/lib/eth/builtin/index.js +1 -1
  36. package/lib/eth/builtin/weth9.js +1 -1
  37. package/lib/eth/index.js +1 -1
  38. package/lib/fuel/index.js +1 -1
  39. package/lib/index.js +1 -1
  40. package/lib/move/index.js +1 -1
  41. package/lib/solana/builtin/index.js +1 -1
  42. package/lib/solana/index.js +1 -1
  43. package/lib/stark/index.js +1 -1
  44. package/lib/store/index.js +1 -1
  45. package/lib/sui/builtin/0x1.js +1 -1
  46. package/lib/sui/builtin/0x2.js +1 -1
  47. package/lib/sui/builtin/0x3.js +1 -1
  48. package/lib/sui/builtin/index.js +1 -1
  49. package/lib/sui/ext/index.js +1 -1
  50. package/lib/sui/index.js +1 -1
  51. package/lib/testing/index.js +1 -1
  52. package/lib/utils/index.js +1 -1
  53. package/package.json +2 -2
  54. package/lib/chunk-SUNKPJCY.js +0 -6
  55. package/lib/chunk-SUNKPJCY.js.map +0 -1
  56. /package/lib/{chunk-I7TWNRII.js.map → chunk-24TKIKAC.js.map} +0 -0
  57. /package/lib/{chunk-ECZHCPDZ.js.map → chunk-26VKFV5Y.js.map} +0 -0
  58. /package/lib/{chunk-F3FKHNF5.js.map → chunk-4ZKROMHQ.js.map} +0 -0
  59. /package/lib/{chunk-D2L7KWZ2.js.map → chunk-5NXOOGVA.js.map} +0 -0
  60. /package/lib/{chunk-MD3T4H6B.js.map → chunk-6P4HU4KH.js.map} +0 -0
  61. /package/lib/{chunk-4VKVPYSL.js.map → chunk-A3BBP3JY.js.map} +0 -0
  62. /package/lib/{chunk-JL6D6MPI.js.map → chunk-CQUL5GH2.js.map} +0 -0
  63. /package/lib/{chunk-P2KJHIUL.js.map → chunk-EJ3LB3BV.js.map} +0 -0
  64. /package/lib/{chunk-KV6ZVB7D.js.map → chunk-HWODJFVJ.js.map} +0 -0
  65. /package/lib/{chunk-B3UDK7W6.js.map → chunk-JUDV27KS.js.map} +0 -0
  66. /package/lib/{chunk-YQ55FG72.js.map → chunk-NEZRMKYM.js.map} +0 -0
  67. /package/lib/{chunk-UQPDY6MT.js.map → chunk-QR7CH6SO.js.map} +0 -0
  68. /package/lib/{chunk-BS7I2ZMW.js.map → chunk-RIHABKWB.js.map} +0 -0
  69. /package/lib/{chunk-WR6FD24P.js.map → chunk-RZTTP64K.js.map} +0 -0
  70. /package/lib/{chunk-QHT2WN3B.js.map → chunk-SQBMMGFT.js.map} +0 -0
  71. /package/lib/{chunk-JVCO6QTF.js.map → chunk-SXK7O76Y.js.map} +0 -0
  72. /package/lib/{chunk-N2VKAC4J.js.map → chunk-VA46M7OL.js.map} +0 -0
  73. /package/lib/{chunk-MO32SIXZ.js.map → chunk-YQ346IMF.js.map} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{a as I,b as R}from"./chunk-4WNGQ3EZ.js";import{B as f,Ed as B,Ia as P,Ja as N,La as b,Ma as _,Na as O,U as V,Ud as A,ke as l,oe as F,te as H}from"./chunk-CX3O4KA4.js";import{a as v}from"./chunk-RA75ESSD.js";import{a as o,f as x}from"./chunk-G5BIPHMS.js";var h=class extends F{constructor(e,n,a,s){super({});this.chainId=e;this.name=n;this.tx=a;this.address=s}static{o(this,"BTCContext")}getMetaDataInternal(e,n){return{address:this.address,contractName:this.name,blockNumber:BigInt(this.tx.blockheight??0),transactionIndex:0,transactionHash:this.tx.txid,chainId:this.getChainId(),name:e,logIndex:0,labels:B(n)}}getChainId(){return this.chainId}},m=class extends F{constructor(e,n,a,s){super({});this.chainId=e;this.name=n;this.block=a;this.address=s}static{o(this,"BTCBlockContext")}getMetaDataInternal(e,n){return{address:this.address??"",contractName:this.name,blockNumber:BigInt(this.block.height??0),transactionIndex:0,transactionHash:"",chainId:this.getChainId(),name:e,logIndex:0,labels:B(n)}}getChainId(){return this.chainId}};import("node:process").then(r=>r.stdout.write(""));import{ListStateStorage as M}from"@sentio/runtime";var g=x(A(),1);var u=class r extends M{static{o(this,"BTCProcessorState")}static INSTANCE=new r},w=class r{constructor(t){this.config=t;return R(this)}static{o(this,"BTCProcessor")}callHandlers=[];blockHandlers=[];static bind(t){let e=new r(t);return u.INSTANCE.addValue(e),e}onTransaction(t,e){let n={handlerName:I(),handler:o(async a=>{let s=a.transaction,i=new h(this.config.chainId,this.config.name??this.config.address??"",s,this.config.address??s.vout?.[0]?.scriptPubKey?.address);return await t(s,i),i.stopAndGetResult()},"handler"),filter:e};return this.callHandlers.push(n),this}onInterval(t,e,n,a){e&&e.backfillInterval<e.recentInterval&&(e.backfillInterval=e.recentInterval);let s=this;return this.blockHandlers.push({blockInterval:n,timeIntervalInMinutes:e,handlerName:I(),handler:o(async function(i){let d=i.block;if(!d)throw new g.ServerError(g.Status.INVALID_ARGUMENT,"Block is empty");let p={...d};a?.getTransactions&&(p.tx=d.rawtx?.map(L=>L));let y=new m(s.config.chainId,s.config.name??s.config.address??"",p,s.config.address);return await t(p,y),y.stopAndGetResult()},"handler"),fetchConfig:a}),this}onBlockInterval(t,e=250,n=1e3,a){return this.onInterval(t,void 0,{recentInterval:e,backfillInterval:n},a)}onTimeInterval(t,e=60,n=240,a){return this.onInterval(t,{recentInterval:e,backfillInterval:n},void 0,a)}};import("node:process").then(r=>r.stdout.write(""));function q(r){if(r){let t=_.create(),e=[],n=[],a=[];for(let s of Array.isArray(r)?r:[r]){let{preVOut:i,preTransaction:d,...p}=s;e.push(p),i&&n.push(i),d&&a.push(d)}if(t.filters=b.create({filters:T(e)}),n.length>0){let s=T(n);s&&s.length>0&&(t.preVOut=s[0])}return a.length>0&&(t.preTransaction=C(a)?.[0]),t}}o(q,"toVinFilter");function G(r){if(r){let t=O.create(),e=Array.isArray(r)?r:[r];return t.filters=b.create({filters:T(e)}),t}}o(G,"toVOutFilter");function C(r){return(Array.isArray(r)?r:[r]).map(e=>({filter:T(e.filter),inputFilter:q(e.inputFilter),outputFilter:G(e.outputFilter)}))}o(C,"filters2Proto");function z(r){let t=P.create();r instanceof Date&&(t.eq=l(r)),typeof r=="number"&&(t.eq=l(r)),typeof r=="string"&&(t.eq=l(r)),r instanceof v&&(t.eq=l(r)),typeof r=="bigint"&&(t.eq=l(r)),typeof r=="boolean"&&(t.eq=l(r)),Array.isArray(r)&&(t.in={values:r.map(e=>l(e))});for(let[e,n]of Object.entries(r))switch(e){case"prefix":case"contains":case"notContains":t[e]=n.toString();break;case"length":t.lengthEq=n;break;case"lengthGt":case"lengthLt":t[e]=n;break;case"hasAny":case"hasAll":case"in":t[e]={values:n.map(a=>l(a))};break;case"eq":case"gt":case"gte":case"lt":case"lte":case"ne":t[e]=l(n);break;default:throw new Error("Unknown condition op: "+e)}return t}o(z,"toCondition");function T(r){if(r&&r.length>0){let t=[];for(let e of r){let n=N.create();for(let[a,s]of Object.entries(e))n.conditions[a]=z(s);t.push(n)}return t}return[]}o(T,"convertFilters");import("node:process").then(r=>r.stdout.write(""));import{errorString as D,GLOBAL_CONFIG as S,mergeProcessResults as E,Plugin as K,PluginManager as U,USER_PROCESSOR as j}from"@sentio/runtime";var c=x(A(),1);var k=class extends K{static{o(this,"BTCPlugin")}name="BTCPlugin";handlers={txHandlers:[],blockHandlers:[]};async configure(t){let e={txHandlers:[],blockHandlers:[]};for(let n of u.INSTANCE.getValues()){let a=V.fromPartial({processorType:j,contract:{name:n.config.name,chainId:n.config.chainId.toString(),address:n.config.address||"*",abi:""},startBlock:n.config.startBlock,endBlock:n.config.endBlock});for(let s of n.callHandlers){let i=e.txHandlers.push(s.handler)-1,d=s.handlerName;s.filter?a.btcTransactionConfigs.push({filters:C(s.filter),handlerId:i,handlerName:d}):a.contract?.address!="*"&&a.btcTransactionConfigs.push({filters:C({outputFilter:{script_address:n.config.address}}),handlerId:i,handlerName:d})}for(let s of n.blockHandlers){let i=e.blockHandlers.push(s.handler)-1;a.intervalConfigs.push({slot:0,slotInterval:s.blockInterval,minutes:0,minutesInterval:s.timeIntervalInMinutes,handlerId:i,handlerName:s.handlerName,fetchConfig:{transaction:s.fetchConfig?.getTransactions??!1,trace:!1,block:!0,transactionReceipt:!1,transactionReceiptLogs:!1}})}t.contractConfigs.push(a)}this.handlers=e}supportedHandlers=[f.BTC_TRANSACTION,f.BTC_BLOCK];processBinding(t){switch(t.handlerType){case f.BTC_TRANSACTION:return this.processTransaction(t);case f.BTC_BLOCK:return this.processBlock(t);default:throw new c.ServerError(c.Status.INVALID_ARGUMENT,"No handle type registered "+t.handlerType)}}async start(t){}stateDiff(t){return H.INSTANCE.getValues().length!==t.templateInstances.length}async processTransaction(t){if(!t.data?.btcTransaction)throw new c.ServerError(c.Status.INVALID_ARGUMENT,"BTCEvents can't be null");let e=[],n=t.data?.btcTransaction;for(let a of t.handlerIds){let s=this.handlers.txHandlers[a](t.data?.btcTransaction).catch(i=>{throw new c.ServerError(c.Status.INTERNAL,"error processing transaction: "+JSON.stringify(n)+`
2
+ import{a as I,b as R}from"./chunk-4WNGQ3EZ.js";import{B as f,Dd as B,Ia as P,Ja as N,La as b,Ma as _,Na as O,Td as A,U as V,je as l,ne as F,se as H}from"./chunk-VLD3QNSH.js";import{a as v}from"./chunk-RA75ESSD.js";import{a as o,f as x}from"./chunk-G5BIPHMS.js";var h=class extends F{constructor(e,n,a,s){super({});this.chainId=e;this.name=n;this.tx=a;this.address=s}static{o(this,"BTCContext")}getMetaDataInternal(e,n){return{address:this.address,contractName:this.name,blockNumber:BigInt(this.tx.blockheight??0),transactionIndex:0,transactionHash:this.tx.txid,chainId:this.getChainId(),name:e,logIndex:0,labels:B(n)}}getChainId(){return this.chainId}},m=class extends F{constructor(e,n,a,s){super({});this.chainId=e;this.name=n;this.block=a;this.address=s}static{o(this,"BTCBlockContext")}getMetaDataInternal(e,n){return{address:this.address??"",contractName:this.name,blockNumber:BigInt(this.block.height??0),transactionIndex:0,transactionHash:"",chainId:this.getChainId(),name:e,logIndex:0,labels:B(n)}}getChainId(){return this.chainId}};import("node:process").then(r=>r.stdout.write(""));import{ListStateStorage as M}from"@sentio/runtime";var g=x(A(),1);var u=class r extends M{static{o(this,"BTCProcessorState")}static INSTANCE=new r},w=class r{constructor(t){this.config=t;return R(this)}static{o(this,"BTCProcessor")}callHandlers=[];blockHandlers=[];static bind(t){let e=new r(t);return u.INSTANCE.addValue(e),e}onTransaction(t,e){let n={handlerName:I(),handler:o(async a=>{let s=a.transaction,i=new h(this.config.chainId,this.config.name??this.config.address??"",s,this.config.address??s.vout?.[0]?.scriptPubKey?.address);return await t(s,i),i.stopAndGetResult()},"handler"),filter:e};return this.callHandlers.push(n),this}onInterval(t,e,n,a){e&&e.backfillInterval<e.recentInterval&&(e.backfillInterval=e.recentInterval);let s=this;return this.blockHandlers.push({blockInterval:n,timeIntervalInMinutes:e,handlerName:I(),handler:o(async function(i){let d=i.block;if(!d)throw new g.ServerError(g.Status.INVALID_ARGUMENT,"Block is empty");let p={...d};a?.getTransactions&&(p.tx=d.rawtx?.map(L=>L));let y=new m(s.config.chainId,s.config.name??s.config.address??"",p,s.config.address);return await t(p,y),y.stopAndGetResult()},"handler"),fetchConfig:a}),this}onBlockInterval(t,e=250,n=1e3,a){return this.onInterval(t,void 0,{recentInterval:e,backfillInterval:n},a)}onTimeInterval(t,e=60,n=240,a){return this.onInterval(t,{recentInterval:e,backfillInterval:n},void 0,a)}};import("node:process").then(r=>r.stdout.write(""));function q(r){if(r){let t=_.create(),e=[],n=[],a=[];for(let s of Array.isArray(r)?r:[r]){let{preVOut:i,preTransaction:d,...p}=s;e.push(p),i&&n.push(i),d&&a.push(d)}if(t.filters=b.create({filters:T(e)}),n.length>0){let s=T(n);s&&s.length>0&&(t.preVOut=s[0])}return a.length>0&&(t.preTransaction=C(a)?.[0]),t}}o(q,"toVinFilter");function G(r){if(r){let t=O.create(),e=Array.isArray(r)?r:[r];return t.filters=b.create({filters:T(e)}),t}}o(G,"toVOutFilter");function C(r){return(Array.isArray(r)?r:[r]).map(e=>({filter:T(e.filter),inputFilter:q(e.inputFilter),outputFilter:G(e.outputFilter)}))}o(C,"filters2Proto");function z(r){let t=P.create();r instanceof Date&&(t.eq=l(r)),typeof r=="number"&&(t.eq=l(r)),typeof r=="string"&&(t.eq=l(r)),r instanceof v&&(t.eq=l(r)),typeof r=="bigint"&&(t.eq=l(r)),typeof r=="boolean"&&(t.eq=l(r)),Array.isArray(r)&&(t.in={values:r.map(e=>l(e))});for(let[e,n]of Object.entries(r))switch(e){case"prefix":case"contains":case"notContains":t[e]=n.toString();break;case"length":t.lengthEq=n;break;case"lengthGt":case"lengthLt":t[e]=n;break;case"hasAny":case"hasAll":case"in":t[e]={values:n.map(a=>l(a))};break;case"eq":case"gt":case"gte":case"lt":case"lte":case"ne":t[e]=l(n);break;default:throw new Error("Unknown condition op: "+e)}return t}o(z,"toCondition");function T(r){if(r&&r.length>0){let t=[];for(let e of r){let n=N.create();for(let[a,s]of Object.entries(e))n.conditions[a]=z(s);t.push(n)}return t}return[]}o(T,"convertFilters");import("node:process").then(r=>r.stdout.write(""));import{errorString as D,GLOBAL_CONFIG as S,mergeProcessResults as E,Plugin as K,PluginManager as U,USER_PROCESSOR as j}from"@sentio/runtime";var c=x(A(),1);var k=class extends K{static{o(this,"BTCPlugin")}name="BTCPlugin";handlers={txHandlers:[],blockHandlers:[]};async configure(t){let e={txHandlers:[],blockHandlers:[]};for(let n of u.INSTANCE.getValues()){let a=V.fromPartial({processorType:j,contract:{name:n.config.name,chainId:n.config.chainId.toString(),address:n.config.address||"*",abi:""},startBlock:n.config.startBlock,endBlock:n.config.endBlock});for(let s of n.callHandlers){let i=e.txHandlers.push(s.handler)-1,d=s.handlerName;s.filter?a.btcTransactionConfigs.push({filters:C(s.filter),handlerId:i,handlerName:d}):a.contract?.address!="*"&&a.btcTransactionConfigs.push({filters:C({outputFilter:{script_address:n.config.address}}),handlerId:i,handlerName:d})}for(let s of n.blockHandlers){let i=e.blockHandlers.push(s.handler)-1;a.intervalConfigs.push({slot:0,slotInterval:s.blockInterval,minutes:0,minutesInterval:s.timeIntervalInMinutes,handlerId:i,handlerName:s.handlerName,fetchConfig:{transaction:s.fetchConfig?.getTransactions??!1,trace:!1,block:!0,transactionReceipt:!1,transactionReceiptLogs:!1}})}t.contractConfigs.push(a)}this.handlers=e}supportedHandlers=[f.BTC_TRANSACTION,f.BTC_BLOCK];processBinding(t){switch(t.handlerType){case f.BTC_TRANSACTION:return this.processTransaction(t);case f.BTC_BLOCK:return this.processBlock(t);default:throw new c.ServerError(c.Status.INVALID_ARGUMENT,"No handle type registered "+t.handlerType)}}async start(t){}stateDiff(t){return H.INSTANCE.getValues().length!==t.templateInstances.length}async processTransaction(t){if(!t.data?.btcTransaction)throw new c.ServerError(c.Status.INVALID_ARGUMENT,"BTCEvents can't be null");let e=[],n=t.data?.btcTransaction;for(let a of t.handlerIds){let s=this.handlers.txHandlers[a](t.data?.btcTransaction).catch(i=>{throw new c.ServerError(c.Status.INTERNAL,"error processing transaction: "+JSON.stringify(n)+`
3
3
  `+D(i))});S.execution.sequential&&await s,e.push(s)}return E(await Promise.all(e))}async processBlock(t){if(!t.data?.btcBlock)throw new c.ServerError(c.Status.INVALID_ARGUMENT,"Block can't be empty");let e=t.data.btcBlock,n=[];for(let a of t.handlerIds){let s=this.handlers.blockHandlers[a](e).catch(i=>{throw new c.ServerError(c.Status.INTERNAL,"error processing block: "+JSON.stringify(e)+`
4
4
  `+D(i))});S.execution.sequential&&await s,n.push(s)}return E(await Promise.all(n))}};U.INSTANCE.register(new k);import("node:process").then(r=>r.stdout.write(""));export{h as a,m as b,u as c,w as d,C as e,k as f};
5
- //# sourceMappingURL=chunk-MO32SIXZ.js.map
5
+ //# sourceMappingURL=chunk-YQ346IMF.js.map
@@ -0,0 +1,6 @@
1
+ import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
+ import{a as C,b}from"./chunk-4WNGQ3EZ.js";import{a as dt}from"./chunk-IVMOWPFA.js";import{Ad as st,B as T,Bd as at,Db as tt,Dd as it,Tb as F,Td as ct,U as q,Ub as M,ne as lt,se as R,uc as et,ue as K,vc as A,wc as B,xc as ot,xd as j,yc as L,yd as rt,zc as J,zd as nt}from"./chunk-VLD3QNSH.js";import{a as i,f as H}from"./chunk-G5BIPHMS.js";import{errorString as O,GLOBAL_CONFIG as Y,mergeProcessResults as Z,Plugin as yt,PluginManager as kt,USER_PROCESSOR as vt}from"@sentio/runtime";var f=H(ct(),1);import{MapStateStorage as It}from"@sentio/runtime";var h=class o extends It{static{i(this,"FuelProcessorState")}static INSTANCE=new o};import("node:process").then(o=>o.stdout.write(""));var W=H(dt(),1);import{Endpoints as Pt}from"@sentio/runtime";var Tt={MAIN_NET:W.FuelChainId.FUEL_MAINNET,TEST_NET:W.FuelChainId.FUEL_TESTNET};function bt(o){switch(o){case Tt.TEST_NET:return"https://testnet.fuel.network/v1/graphql"}return"https://mainnet.fuel.network/v1/graphql"}i(bt,"getRpcEndpoint");function v(o){let t=Pt.INSTANCE.chainServer.get(o);return t||(t=bt(o)),st.create(t)}i(v,"getProvider");import("node:process").then(o=>o.stdout.write(""));var S=class{constructor(t,e,r,a,s){this.args=a;this.logs=s}static{i(this,"FuelCall")}},I=class extends lt{constructor(e,r,a,s,n,l){super({});this.chainId=e;this.contractAddress=r;this.contractName=a;this.timestamp=s;this.transaction=n;this.block=l}static{i(this,"FuelContext")}logIndex=-1;getChainId(){return this.chainId}setLogIndex(e){this.logIndex=e}getMetaDataInternal(e,r){return{address:this.contractAddress,contractName:this.contractName,blockNumber:BigInt(this.block?.height?.toString()??(this.transaction?.blockNumber||0)),transactionIndex:0,transactionHash:this.transaction?.id||"",chainId:this.getChainId(),name:e,logIndex:this.logIndex,labels:it(r)}}},N=class extends I{constructor(e,r,a,s,n,l,c){super(e,a,s,n,l,c);this.chainId=e;this.contract=r;this.contractAddress=a;this.contractName=s;this.timestamp=n;this.transaction=l;this.block=c}static{i(this,"FuelContractContext")}get provider(){return this.contract.provider}};import("node:process").then(o=>o.stdout.write(""));var y={includeFailed:!1};function ut(o,t){for(let e of o||[])if(e.type==B.Coin&&e.assetId==t)return e.owner}i(ut,"findSenderFromInputs");function w(o,t){let e=M(o.rawPayload),r=o?.status.receipts?.map(j)||[],[a]=new J().decode(e,0),{gasCosts:s,feeParameters:n,txParameters:l,baseAssetId:c}=t.getChain().consensusParameters,g=o.status?.block?.header?.height,{gasPriceFactor:d,gasPerByte:m}=n,{maxInputs:p,maxGasPerTx:P}=l,u={type:o.status?.__typename,...o.status};return{...rt({id:o.id,receipts:r,transaction:a,transactionBytes:e,gqlTransactionStatus:u,gasPerByte:F(m),gasPriceFactor:F(d),maxInputs:p,gasCosts:s,gasPrice:F(o.gasPrice),maxGasPerTx:P,baseAssetId:c}),blockNumber:g,sender:ut(a.inputs,c)}}i(w,"decodeFuelTransaction");function $(o,t){if(o&&(o.type===L.LogData||o.type===L.Log)){let e=new A(t),r=o.type===L.Log?new et("u64").encode(o.val0):o.data,a=o.val1.toString(),[s]=e.decodeLog(r,a);return{logId:a,data:s}}return null}i($,"decodeLog");async function z(o,t,e){let r=M(o.rawPayload),[a]=new J().decode(r,0),s=o?.status.receipts?.map(j)||[],n={type:o.status?.__typename,...o.status},l=n?.block?.header?.height,c=Object.values(t)[0],g=[];s.forEach((p,P)=>{try{let u=$(p,c);u&&g.push({...u,receiptIndex:P})}catch(u){console.warn("Failed to decode log",u)}});let d=new nt(o.status.transactionId,e,{main:Object.values(t)[0],otherContractsAbis:{}});return d.gqlTransaction={...o,status:n},{...await d.getTransactionSummary(),blockNumber:l,logs:g,sender:ut(a.inputs,e.getChain().consensusParameters.baseAssetId)}}i(z,"decodeFuelTransactionWithAbi");import("node:process").then(o=>o.stdout.write(""));var E=H(ct(),1);var k=class o{constructor(t){this.config=t;return b(this)}static{i(this,"FuelProcessor")}txHandlers=[];blockHandlers=[];logHandlers=[];provider;contract;static bind(t){let e=new o(t);return Q(t,e),e}latestGasPrice;async configure(){this.provider=await v(this.config.chainId),this.provider.getLatestGasPrice=async()=>{if(this.latestGasPrice)return F(this.latestGasPrice);let{latestGasPrice:t}=await this.provider.operations.getLatestGasPrice();return this.latestGasPrice=t?.gasPrice,F(t.gasPrice)},this.contract=new at(this.config.address,this.config.abi,this.provider)}onTransaction(t,e=y){let r={handlerName:C(),handler:i(async a=>{let s=this.config.abi?{[this.config.address]:this.config.abi}:{},n=await z(a.transaction,s,this.provider),l=new N(this.config.chainId,this.contract,this.config.address,this.config.name??this.config.address,a.timestamp||new Date(0),n,null);return await t(n,l),l.stopAndGetResult()},"handler"),fetchConfig:{filters:[],...e}};return this.txHandlers.push(r),this}onCall(t,e,r=y){let a=new Set(Array.isArray(t)?t:[t]);if(!this.config.abi)throw new Error("ABI must be provided to use onCall");let s=this.config.abi,n={},l=new A(s);for(let g of a)try{let d=l.functions[g],m=F(d.selector,"hex").toString();n[d.name]={function:m,includeFailed:!!r.includeFailed}}catch(d){console.error(d)}let c={handlerName:C(),handler:i(async g=>{try{let d=g.transaction,m=await z(d,{[this.config.address]:s},this.provider),p=new I(this.config.chainId,this.config.address,this.config.name??this.config.address,g.timestamp||new Date(0),m,null);for(let P of m.operations)for(let u of P.calls||[])if(a.has(u.functionName)){let U=this.contract.functions[u.functionName],ht=Object.values(u.argumentsProvided||{}),Ft=U(...ht),Ct=new S(Ft,m,!1,u.argumentsProvided,m.logs);await e(Ct,p)}return p.stopAndGetResult()}catch(d){return console.error(d),{gauges:[],counters:[],events:[],exports:[],states:{configUpdated:!1}}}},"handler"),fetchConfig:{filters:Object.values(n)}};return this.txHandlers.push(c),this}onLog(t,e){let r=new Set(Array.isArray(t)?t:[t]),a={handlerName:C(),handler:i(async({transaction:s,receiptIndex:n,timestamp:l})=>{try{let c=w(s,this.provider),g=Number(n),d=c.receipts[g],m=$(d,this.config.abi);if(m){let p=new N(this.config.chainId,this.contract,this.config.address,this.config.name??this.config.address,l||new Date(0),c,null);return p.setLogIndex(g),await e({receiptIndex:g,...m},p),p.stopAndGetResult()}else console.error(`Log with receipt index ${n} not found in tx`)}catch(c){console.error(c)}return tt.fromPartial({})},"handler"),logConfig:{logIds:Array.from(r)}};return this.logHandlers.push(a),this}onInterval(t,e,r){e&&e.backfillInterval<e.recentInterval&&(e.backfillInterval=e.recentInterval);let a=this;return this.blockHandlers.push({blockInterval:r,timeIntervalInMinutes:e,handlerName:C(),handler:i(async function(s){let n=s.block;if(!n)throw new E.ServerError(E.Status.INVALID_ARGUMENT,"Block is empty");let l={id:n.id,height:F(n.height),time:n.time,header:{applicationHash:n.applicationHash,daHeight:F(n.daHeight),eventInboxRoot:n.eventInboxRoot,messageOutboxRoot:n.messageOutboxRoot,prevRoot:n.prevRoot,stateTransitionBytecodeVersion:n.stateTransitionBytecodeVersion,transactionsCount:n.transactionsCount,transactionsRoot:n.transactionsRoot}},c=new N(a.config.chainId,a.contract,a.config.address,a.config.name??a.config.address,s.timestamp||new Date(0),null,l);return await t(l,c),c.stopAndGetResult()},"handler")}),this}onBlockInterval(t,e=250,r=1e3){return this.onInterval(t,void 0,{recentInterval:e,backfillInterval:r})}onTimeInterval(t,e=60,r=240){return this.onInterval(t,{recentInterval:e,backfillInterval:r},void 0)}};function x(o){let t=[o.address];return o.chainId&&t.push(o.chainId),o.name&&t.push(o.name),o.startBlock&&t.push(o.startBlock.toString()),o.endBlock&&t.push(o.endBlock.toString()),t.join("_")}i(x,"getOptionsSignature");function pe(o){let t=x(o);return h.INSTANCE.getValue(t)}i(pe,"getFuelProcessor");function Q(o,t){let e=x(o);h.INSTANCE.getOrSetValue(e,t)}i(Q,"addFuelProcessor");import("node:process").then(o=>o.stdout.write(""));var _=class o{constructor(t){this.config=t;return b(this)}static{i(this,"FuelAssetProcessor")}txHandlers=[];blockHandlers=[];provider;static bind(t){let e=new o(t),r="assets_"+x({...t,address:"*"});return h.INSTANCE.getOrSetValue(r,e),e}async configure(){this.provider=await v(this.config.chainId)}onTransfer(t,e){let r=[],a=X(t.assetId),s=X(t.from),n=X(t.to);for(let c of a)for(let g of s)for(let d of n)r.push({assetId:c,fromAddress:g,toAddress:d});let l={handlerName:C(),handler:i(async c=>{let g=c.transaction,d=w(g,this.provider),m={from:[],to:[]};for(let u of d.transaction.inputs||[])u.type==B.Coin&&m.from.push({address:u.owner,assetId:u.assetId,amount:BigInt(u.amount.toString(10))});for(let u of d.transaction.outputs||[])if(u.type==ot.Coin){let U=u.amount.toString(10);m.to.push({address:u.to,amount:BigInt(U),assetId:u.assetId})}let p=m.from[0].assetId||"",P=new I(this.config.chainId,p,this.config.name??"",c.timestamp||new Date(0),d,null);return await e(m,P),P.stopAndGetResult()},"handler"),assetConfig:{filters:r}};return this.txHandlers.push(l),this}};function X(o){return o?Array.isArray(o)?o.length>0?o:[void 0]:[o]:[void 0]}i(X,"arrayify");import("node:process").then(o=>o.stdout.write(""));import{mergeProcessResults as xt}from"@sentio/runtime";var D=class o{constructor(t){this.config=t;return b(this)}static{i(this,"FuelGlobalProcessor")}txHandlers=[];blockHandlers=[];provider;static bind(t){let e=new o(t),r="global_"+x({...t,address:K});return h.INSTANCE.getOrSetValue(r,e),e}async configure(){this.provider=await v(this.config.chainId)}onTransaction(t,e=y){let r={handlerName:C(),handler:i(async a=>{let s;try{s=w(a.transaction,this.provider)}catch(l){return console.error("error decoding transaction",l),xt([])}let n=new I(this.config.chainId,K,this.config.name??"*",a.timestamp||new Date(0),s,null);return await t(s,n),n.stopAndGetResult()},"handler"),fetchConfig:{filters:[],...e}};return this.txHandlers.push(r),this}};import("node:process").then(o=>o.stdout.write(""));var V=class extends yt{static{i(this,"FuelPlugin")}name="FuelPlugin";handlers={transactionHandlers:[],blockHandlers:[],logHandlers:[]};async configure(t){let e={transactionHandlers:[],blockHandlers:[],logHandlers:[]};for(let r of h.INSTANCE.getValues()){let a=q.fromPartial({processorType:vt,contract:{name:r.config.name,chainId:r.config.chainId.toString(),address:r.config.address||"*",abi:""},startBlock:r.config.startBlock,endBlock:r.config.endBlock});for(let s of r.txHandlers){let n=e.transactionHandlers.push(s.handler)-1,l=s.handlerName;if(r instanceof k){let c={handlerId:n,handlerName:l};a.fuelTransactionConfigs.push(c)}else if(r instanceof _){let c=s.assetConfig;a.assetConfigs.push({filters:c?.filters||[],handlerId:n,handlerName:l})}else if(r instanceof D){let c={handlerId:n,handlerName:l,filters:[]};a.fuelTransactionConfigs.push(c),a.contract.address="*"}}for(let s of r.logHandlers??[]){let n=e.logHandlers.push(s.handler)-1,l=s.handlerName;r instanceof k&&a.fuelLogConfigs.push({logIds:s.logConfig?.logIds||[],handlerId:n,handlerName:l})}for(let s of r.blockHandlers){let n=e.blockHandlers.push(s.handler)-1;a.intervalConfigs.push({slot:0,slotInterval:s.blockInterval,minutes:0,minutesInterval:s.timeIntervalInMinutes,handlerId:n,handlerName:s.handlerName,fetchConfig:void 0})}t.contractConfigs.push(a)}this.handlers=e}supportedHandlers=[T.FUEL_TRANSACTION,T.FUEL_RECEIPT,T.FUEL_CALL,T.FUEL_BLOCK];processBinding(t){switch(t.handlerType){case T.FUEL_TRANSACTION:return this.processTransaction(t);case T.FUEL_RECEIPT:return this.processLog(t);case T.FUEL_BLOCK:return this.processBlock(t);default:throw new f.ServerError(f.Status.INVALID_ARGUMENT,"No handle type registered "+t.handlerType)}}async start(t){try{for(let e of h.INSTANCE.getValues())await e.configure()}catch(e){throw new f.ServerError(f.Status.INTERNAL,"error starting FuelPlugin: "+O(e))}}stateDiff(t){return R.INSTANCE.getValues().length!==t.templateInstances.length}async processLog(t){if(!t.data?.fuelLog?.transaction)throw new f.ServerError(f.Status.INVALID_ARGUMENT,"transaction can't be null");let e=t.data.fuelLog,r=[];for(let a of t.handlerIds){let s=this.handlers.logHandlers[a](e).catch(n=>{throw new f.ServerError(f.Status.INTERNAL,"error processing transaction: "+JSON.stringify(e)+`
3
+ `+O(n))});Y.execution.sequential&&await s,r.push(s)}return Z(await Promise.all(r))}async processTransaction(t){if(!t.data?.fuelTransaction?.transaction)throw new f.ServerError(f.Status.INVALID_ARGUMENT,"transaction can't be null");let e=t.data.fuelTransaction,r=[];for(let a of t.handlerIds){let s=this.handlers.transactionHandlers[a](e).catch(n=>{throw new f.ServerError(f.Status.INTERNAL,"error processing transaction: "+JSON.stringify(e.transaction)+`
4
+ `+O(n))});Y.execution.sequential&&await s,r.push(s)}return Z(await Promise.all(r))}async processBlock(t){if(!t.data?.fuelBlock?.block)throw new f.ServerError(f.Status.INVALID_ARGUMENT,"Block can't be empty");let e=t.data.fuelBlock,r=[];for(let a of t.handlerIds){let s=this.handlers.blockHandlers[a](e).catch(n=>{throw console.error("error processing block: ",n),new f.ServerError(f.Status.INTERNAL,"error processing block: "+e.block?.height+`
5
+ `+O(n))});Y.execution.sequential&&await s,r.push(s)}return Z(await Promise.all(r))}};kt.INSTANCE.register(new V);import("node:process").then(o=>o.stdout.write(""));import{ListStateStorage as Nt}from"@sentio/runtime";var G=class o extends Nt{static{i(this,"FuelProcessorTemplateProcessorState")}static INSTANCE=new o},ft=class{static{i(this,"FuelBaseProcessorTemplate")}id;binds=new Set;blockHandlers=[];logHandlers=[];transactionHandlers=[];constructor(){this.id=G.INSTANCE.getValues().length,G.INSTANCE.addValue(this)}bind(t,e){let r=x({address:t.address,chainId:e.chainId});if(this.binds.has(r)){console.log(`Same address can be bind to one template only once, ignore duplicate bind: ${r}`);return}this.binds.add(r);let a=this.bindInternal({...t,chainId:e.chainId});for(let n of this.logHandlers)a.onLog(n.logIdFilter,n.handler);for(let n of this.blockHandlers)a.onInterval(n.handler,n.timeIntervalInMinutes,n.blockInterval);for(let n of this.transactionHandlers)a.onTransaction(n.handler);let s={templateId:this.id,contract:{address:t.address,name:t.name||"",chainId:e.chainId,abi:""},startBlock:BigInt(t.startBlock||0),endBlock:BigInt(t.endBlock||0),baseLabels:{}};R.INSTANCE.addValue(s),e.update({states:{configUpdated:!0}})}onLog(t,e){return this.logHandlers.push({logIdFilter:t,handler:e}),this}onBlockInterval(t,e=1e3,r=4e3){return this.onInterval(t,void 0,{recentInterval:e,backfillInterval:r})}onTimeInterval(t,e=60,r=240){return this.onInterval(t,{recentInterval:e,backfillInterval:r},void 0)}onInterval(t,e,r){return this.blockHandlers.push({handler:t,timeIntervalInMinutes:e,blockInterval:r}),this}onTransaction(t,e=y){return this.transactionHandlers.push({handler:t,fetchConfig:e}),this}};import("node:process").then(o=>o.stdout.write(""));var pt=H(dt(),1);var gt=class extends k{static{i(this,"FuelAbstractProcessor")}constructor(t,e){return e||(e={chainId:pt.FuelChainId.FUEL_MAINNET,address:"*"}),super({...e,abi:t}),Q(e,this),b(this)}},mt=class{static{i(this,"TypedCall")}args;returnValue;argsObject;logs};import("node:process").then(o=>o.stdout.write(""));import("node:process").then(o=>o.stdout.write(""));export{h as a,Tt as b,bt as c,v as d,S as e,I as f,N as g,y as h,w as i,$ as j,z as k,k as l,x as m,pe as n,Q as o,_ as p,D as q,V as r,G as s,ft as t,gt as u,mt as v};
6
+ //# sourceMappingURL=chunk-ZSDI5U4B.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/fuel/fuel-plugin.ts","../src/fuel/types.ts","../src/fuel/network.ts","../src/fuel/context.ts","../src/fuel/transaction.ts","../src/fuel/fuel-processor.ts","../src/fuel/asset-processor.ts","../src/fuel/global-processor.ts","../src/fuel/fuel-processor-template.ts","../src/fuel/base-processor.ts","../src/fuel/index.ts"],"sourcesContent":["import { errorString, GLOBAL_CONFIG, mergeProcessResults, Plugin, PluginManager, USER_PROCESSOR } from '@sentio/runtime'\nimport {\n ContractConfig,\n Data_FuelBlock,\n Data_FuelReceipt,\n Data_FuelTransaction,\n DataBinding,\n HandlerType,\n ProcessConfigResponse,\n ProcessResult,\n StartRequest\n} from '@sentio/protos'\n\nimport { ServerError, Status } from 'nice-grpc'\nimport { TemplateInstanceState } from '../core/template.js'\nimport { FuelAssetProcessor } from './asset-processor.js'\nimport { FuelProcessorState } from './types.js'\nimport { FuelProcessor } from './fuel-processor.js'\nimport { FuelGlobalProcessor } from './global-processor.js'\n\ninterface Handlers {\n transactionHandlers: ((trace: Data_FuelTransaction) => Promise<ProcessResult>)[]\n blockHandlers: ((block: Data_FuelBlock) => Promise<ProcessResult>)[]\n logHandlers: ((log: Data_FuelReceipt) => Promise<ProcessResult>)[]\n}\n\nexport class FuelPlugin extends Plugin {\n name: string = 'FuelPlugin'\n handlers: Handlers = {\n transactionHandlers: [],\n blockHandlers: [],\n logHandlers: []\n }\n\n async configure(config: ProcessConfigResponse) {\n const handlers: Handlers = {\n transactionHandlers: [],\n blockHandlers: [],\n logHandlers: []\n }\n\n for (const processor of FuelProcessorState.INSTANCE.getValues()) {\n const contractConfig = ContractConfig.fromPartial({\n processorType: USER_PROCESSOR,\n contract: {\n name: processor.config.name,\n chainId: processor.config.chainId.toString(),\n address: processor.config.address || '*',\n abi: ''\n },\n startBlock: processor.config.startBlock,\n endBlock: processor.config.endBlock\n })\n for (const txHandler of processor.txHandlers) {\n const handlerId = handlers.transactionHandlers.push(txHandler.handler) - 1\n const handlerName = txHandler.handlerName\n if (processor instanceof FuelProcessor) {\n // on transaction\n const fetchConfig = {\n handlerId,\n handlerName\n }\n contractConfig.fuelTransactionConfigs.push(fetchConfig)\n } else if (processor instanceof FuelAssetProcessor) {\n const assetConfig = txHandler.assetConfig\n contractConfig.assetConfigs.push({\n filters: assetConfig?.filters || [],\n handlerId,\n handlerName\n })\n } else if (processor instanceof FuelGlobalProcessor) {\n const fetchConfig = {\n handlerId,\n handlerName,\n filters: []\n }\n contractConfig.fuelTransactionConfigs.push(fetchConfig)\n contractConfig.contract!.address = '*'\n }\n }\n\n for (const logHandler of processor.logHandlers ?? []) {\n const handlerId = handlers.logHandlers.push(logHandler.handler) - 1\n const handlerName = logHandler.handlerName\n if (processor instanceof FuelProcessor) {\n contractConfig.fuelLogConfigs.push({\n logIds: logHandler.logConfig?.logIds || [],\n handlerId,\n handlerName\n })\n }\n }\n\n for (const blockHandler of processor.blockHandlers) {\n const handlerId = handlers.blockHandlers.push(blockHandler.handler) - 1\n contractConfig.intervalConfigs.push({\n slot: 0,\n slotInterval: blockHandler.blockInterval,\n minutes: 0,\n minutesInterval: blockHandler.timeIntervalInMinutes,\n handlerId: handlerId,\n handlerName: blockHandler.handlerName,\n fetchConfig: undefined\n // fetchConfig: blockHandler.fetchConfig\n })\n }\n\n config.contractConfigs.push(contractConfig)\n }\n\n this.handlers = handlers\n }\n\n supportedHandlers = [\n HandlerType.FUEL_TRANSACTION,\n HandlerType.FUEL_RECEIPT,\n HandlerType.FUEL_CALL,\n HandlerType.FUEL_BLOCK\n ]\n\n processBinding(request: DataBinding): Promise<ProcessResult> {\n switch (request.handlerType) {\n case HandlerType.FUEL_TRANSACTION:\n return this.processTransaction(request)\n case HandlerType.FUEL_RECEIPT:\n return this.processLog(request)\n case HandlerType.FUEL_BLOCK:\n return this.processBlock(request)\n default:\n throw new ServerError(Status.INVALID_ARGUMENT, 'No handle type registered ' + request.handlerType)\n }\n }\n\n async start(request: StartRequest) {\n try {\n for (const processor of FuelProcessorState.INSTANCE.getValues()) {\n await processor.configure()\n }\n } catch (e) {\n throw new ServerError(Status.INTERNAL, 'error starting FuelPlugin: ' + errorString(e))\n }\n }\n\n stateDiff(config: ProcessConfigResponse): boolean {\n return TemplateInstanceState.INSTANCE.getValues().length !== config.templateInstances.length\n }\n\n async processLog(binding: DataBinding): Promise<ProcessResult> {\n if (!binding.data?.fuelLog?.transaction) {\n throw new ServerError(Status.INVALID_ARGUMENT, \"transaction can't be null\")\n }\n const log = binding.data.fuelLog\n\n const promises: Promise<ProcessResult>[] = []\n\n for (const handlerId of binding.handlerIds) {\n const promise = this.handlers.logHandlers[handlerId](log).catch((e) => {\n throw new ServerError(\n Status.INTERNAL,\n 'error processing transaction: ' + JSON.stringify(log) + '\\n' + errorString(e)\n )\n })\n if (GLOBAL_CONFIG.execution.sequential) {\n await promise\n }\n promises.push(promise)\n }\n return mergeProcessResults(await Promise.all(promises))\n }\n async processTransaction(binding: DataBinding): Promise<ProcessResult> {\n if (!binding.data?.fuelTransaction?.transaction) {\n throw new ServerError(Status.INVALID_ARGUMENT, \"transaction can't be null\")\n }\n const fuelTransaction = binding.data.fuelTransaction\n\n const promises: Promise<ProcessResult>[] = []\n\n for (const handlerId of binding.handlerIds) {\n const promise = this.handlers.transactionHandlers[handlerId](fuelTransaction).catch((e) => {\n throw new ServerError(\n Status.INTERNAL,\n 'error processing transaction: ' + JSON.stringify(fuelTransaction.transaction) + '\\n' + errorString(e)\n )\n })\n if (GLOBAL_CONFIG.execution.sequential) {\n await promise\n }\n promises.push(promise)\n }\n return mergeProcessResults(await Promise.all(promises))\n }\n\n async processBlock(binding: DataBinding): Promise<ProcessResult> {\n if (!binding.data?.fuelBlock?.block) {\n throw new ServerError(Status.INVALID_ARGUMENT, \"Block can't be empty\")\n }\n const ethBlock = binding.data.fuelBlock\n\n const promises: Promise<ProcessResult>[] = []\n for (const handlerId of binding.handlerIds) {\n const promise = this.handlers.blockHandlers[handlerId](ethBlock).catch((e) => {\n console.error('error processing block: ', e)\n throw new ServerError(\n Status.INTERNAL,\n 'error processing block: ' + ethBlock.block?.height + '\\n' + errorString(e)\n )\n })\n if (GLOBAL_CONFIG.execution.sequential) {\n await promise\n }\n promises.push(promise)\n }\n return mergeProcessResults(await Promise.all(promises))\n }\n}\n\nPluginManager.INSTANCE.register(new FuelPlugin())\n;import(\"node:process\").then((p) => p.stdout.write(\"\"));","import { MapStateStorage } from '@sentio/runtime'\nimport {\n Data_FuelBlock,\n Data_FuelReceipt,\n Data_FuelTransaction,\n FuelAssetHandlerConfig,\n FuelCallHandlerConfig,\n HandleInterval,\n OnIntervalConfig,\n ProcessResult\n} from '@sentio/protos'\nimport { Block, TransactionSummary } from 'fuels'\n\nexport interface FuelBaseProcessor<T> {\n configure(): Promise<void>\n config: T\n txHandlers: CallHandler<Data_FuelTransaction>[]\n blockHandlers: BlockHandler[]\n logHandlers?: LogHandler<Data_FuelReceipt>[]\n}\n\nexport class FuelProcessorState extends MapStateStorage<FuelBaseProcessor<any>> {\n static INSTANCE = new FuelProcessorState()\n}\n\nexport type CallHandler<T> = {\n handlerName: string\n handler: (call: T) => Promise<ProcessResult>\n fetchConfig?: Partial<FuelCallHandlerConfig>\n assetConfig?: Partial<FuelAssetHandlerConfig>\n}\n\nexport type LogHandler<T> = {\n handlerName: string\n handler: (call: T) => Promise<ProcessResult>\n logConfig?: {\n logIds: string[]\n }\n}\n\nexport type BlockHandler = {\n blockInterval?: HandleInterval\n timeIntervalInMinutes?: HandleInterval\n handler: (block: Data_FuelBlock) => Promise<ProcessResult>\n handlerName: string\n fetchConfig?: Partial<OnIntervalConfig>\n}\n\nexport interface FuelLog<T> {\n logId: string\n data: T\n receiptIndex: number\n}\n\nexport type FuelTransaction = TransactionSummary & {\n blockNumber?: string\n logs?: FuelLog<any>[]\n sender?: string\n}\n\nexport type FuelBlock = Omit<Block, 'transactionIds'>\n;import(\"node:process\").then((p) => p.stdout.write(\"\"));","import { FuelChainId } from '@sentio/chain'\nimport { Endpoints } from '@sentio/runtime'\nimport { Provider } from 'fuels'\n\nexport type FuelNetwork = FuelChainId\nexport const FuelNetwork = <const>{\n MAIN_NET: FuelChainId.FUEL_MAINNET,\n TEST_NET: FuelChainId.FUEL_TESTNET\n}\n\nexport function getRpcEndpoint(network: FuelNetwork): string {\n switch (network) {\n case FuelNetwork.TEST_NET:\n return 'https://testnet.fuel.network/v1/graphql'\n }\n return 'https://mainnet.fuel.network/v1/graphql'\n}\n\nexport function getProvider(network: FuelNetwork): Promise<Provider> {\n let chainServer = Endpoints.INSTANCE.chainServer.get(network)\n if (!chainServer) {\n chainServer = getRpcEndpoint(network)\n // throw new ServerError(Status.INTERNAL, 'RPC endpoint not provided')\n }\n return Provider.create(chainServer)\n}\n;import(\"node:process\").then((p) => p.stdout.write(\"\"));","import { BaseContext, Labels, normalizeLabels } from '../core/index.js'\nimport { FuelChainId } from '@sentio/chain'\nimport { RecordMetaData } from '@sentio/protos'\nimport type { CallResult, Contract } from 'fuels'\nimport { InvocationScopeLike } from 'fuels'\nimport { FuelBlock, FuelLog, FuelTransaction } from './types.js'\n\nexport class FuelCall {\n constructor(\n funcScopes: InvocationScopeLike | Array<InvocationScopeLike>,\n callResult: CallResult,\n isMultiCall: boolean,\n readonly args?: Record<string, any>,\n readonly logs?: FuelLog<unknown>[]\n ) {\n // super(funcScopes, callResult, isMultiCall)\n }\n}\n\nexport class FuelContext extends BaseContext {\n private logIndex: number = -1\n constructor(\n readonly chainId: FuelChainId,\n readonly contractAddress: string,\n readonly contractName: string,\n readonly timestamp: Date,\n readonly transaction: FuelTransaction | null,\n readonly block: FuelBlock | null\n ) {\n super({})\n }\n\n getChainId(): FuelChainId {\n return this.chainId\n }\n\n setLogIndex(logIndex: number): void {\n this.logIndex = logIndex\n }\n\n protected getMetaDataInternal(name: string, labels: Labels): RecordMetaData {\n return {\n address: this.contractAddress,\n contractName: this.contractName,\n blockNumber: BigInt(this.block?.height?.toString() ?? (this.transaction?.blockNumber || 0)),\n transactionIndex: 0,\n transactionHash: this.transaction?.id || '', // TODO\n chainId: this.getChainId(),\n name: name,\n logIndex: this.logIndex,\n labels: normalizeLabels(labels)\n }\n }\n}\n\nexport class FuelContractContext<TContract extends Contract> extends FuelContext {\n constructor(\n readonly chainId: FuelChainId,\n readonly contract: TContract,\n readonly contractAddress: string,\n readonly contractName: string,\n readonly timestamp: Date,\n readonly transaction: FuelTransaction | null,\n readonly block: FuelBlock | null\n ) {\n super(chainId, contractAddress, contractName, timestamp, transaction, block)\n }\n\n get provider() {\n return this.contract.provider\n }\n}\n;import(\"node:process\").then((p) => p.stdout.write(\"\"));","import {\n AbiMap,\n arrayify,\n assembleTransactionSummary,\n BigNumberCoder,\n bn,\n Input,\n InputType,\n Interface,\n JsonAbi,\n processGqlReceipt,\n Provider,\n ReceiptType,\n TransactionCoder,\n TransactionResponse\n} from 'fuels'\nimport { FuelLog, FuelTransaction } from './types.js'\n\nexport type FuelFetchConfig = {\n includeFailed?: boolean\n}\n\nexport const DEFAULT_FUEL_FETCH_CONFIG: FuelFetchConfig = {\n includeFailed: false\n}\n\nfunction findSenderFromInputs(inputs: Input[] | undefined, baseAssetId: string): string | undefined {\n for (const input of inputs || []) {\n if (input.type == InputType.Coin && input.assetId == baseAssetId) {\n return input.owner\n }\n }\n return undefined\n}\n\nexport function decodeFuelTransaction(gqlTransaction: any, provider: Provider): FuelTransaction {\n const rawPayload = arrayify(gqlTransaction.rawPayload)\n const receipts = gqlTransaction?.status.receipts?.map(processGqlReceipt) || []\n\n const [decodedTransaction] = new TransactionCoder().decode(rawPayload, 0)\n const { gasCosts, feeParameters, txParameters, baseAssetId } = provider.getChain().consensusParameters\n const blockNumber = gqlTransaction.status?.block?.header?.height\n const { gasPriceFactor, gasPerByte } = feeParameters\n const { maxInputs, maxGasPerTx } = txParameters\n const gqlTransactionStatus = {\n type: gqlTransaction.status?.__typename,\n ...gqlTransaction.status\n }\n return {\n ...assembleTransactionSummary({\n id: gqlTransaction.id,\n receipts,\n transaction: decodedTransaction,\n transactionBytes: rawPayload,\n gqlTransactionStatus,\n gasPerByte: bn(gasPerByte),\n gasPriceFactor: bn(gasPriceFactor),\n maxInputs,\n gasCosts,\n gasPrice: bn(gqlTransaction.gasPrice),\n maxGasPerTx,\n baseAssetId\n }),\n blockNumber,\n sender: findSenderFromInputs(decodedTransaction.inputs, baseAssetId)\n }\n}\n\nexport function decodeLog(receipt: any | undefined, abi: JsonAbi) {\n if (receipt && (receipt.type === ReceiptType.LogData || receipt.type === ReceiptType.Log)) {\n const interfaceToUse = new Interface(abi)\n const data = receipt.type === ReceiptType.Log ? new BigNumberCoder('u64').encode(receipt.val0) : receipt.data\n const logId: string = receipt.val1.toString()\n const [decodedLog] = interfaceToUse.decodeLog(data, logId)\n return { logId, data: decodedLog }\n }\n return null\n}\n\nexport async function decodeFuelTransactionWithAbi(\n gqlTransaction: any,\n abiMap: AbiMap,\n provider: Provider\n): Promise<FuelTransaction> {\n const rawPayload = arrayify(gqlTransaction.rawPayload)\n const [decodedTransaction] = new TransactionCoder().decode(rawPayload, 0)\n\n const receipts = gqlTransaction?.status.receipts?.map(processGqlReceipt) || []\n\n // const {\n // consensusParameters: {\n // feeParameters: { gasPerByte, gasPriceFactor },\n // txParameters: { maxInputs, maxGasPerTx },\n // gasCosts\n // }\n // } = provider.getChain()\n //\n const gqlTransactionStatus = {\n type: gqlTransaction.status?.__typename,\n ...gqlTransaction.status\n }\n\n const blockNumber = gqlTransactionStatus?.block?.header?.height\n const abi = Object.values(abiMap)[0]\n const logs = [] as FuelLog<any>[]\n ;(receipts as any[]).forEach((receipt, idx) => {\n try {\n const log = decodeLog(receipt, abi)\n if (log) {\n logs.push({ ...log, receiptIndex: idx })\n }\n } catch (e) {\n console.warn('Failed to decode log', e)\n }\n })\n\n const txResponse = new TransactionResponse(gqlTransaction.status.transactionId, provider, {\n main: Object.values(abiMap)[0],\n otherContractsAbis: {}\n })\n\n // @ts-ignore - hack\n txResponse.gqlTransaction = {\n ...gqlTransaction,\n status: gqlTransactionStatus\n }\n const summary = await txResponse.getTransactionSummary()\n\n return {\n /*...assembleTransactionSummary({\n id: gqlTransaction.id,\n receipts,\n transaction: decodedTransaction,\n transactionBytes: rawPayload,\n gqlTransactionStatus,\n gasPerByte: bn(gasPerByte),\n gasPriceFactor: bn(gasPriceFactor),\n abiMap,\n maxInputs,\n gasCosts,\n maxGasPerTx,\n gasPrice: bn(gqlTransaction.gasPrice)\n }),*/\n ...summary,\n blockNumber,\n logs,\n sender: findSenderFromInputs(decodedTransaction.inputs, provider.getChain().consensusParameters.baseAssetId)\n }\n}\n;import(\"node:process\").then((p) => p.stdout.write(\"\"));","import {\n Data_FuelBlock,\n Data_FuelTransaction,\n Data_FuelReceipt,\n FuelCallFilter,\n HandleInterval,\n ProcessResult\n} from '@sentio/protos'\nimport { FuelCall, FuelContext, FuelContractContext } from './context.js'\nimport { bn, Contract, Interface, JsonAbi, Provider } from 'fuels'\nimport { FuelNetwork, getProvider } from './network.js'\nimport {\n decodeFuelTransaction,\n decodeFuelTransactionWithAbi,\n decodeLog,\n DEFAULT_FUEL_FETCH_CONFIG,\n FuelFetchConfig\n} from './transaction.js'\nimport {\n BlockHandler,\n CallHandler,\n FuelBaseProcessor,\n FuelBlock,\n FuelLog,\n FuelProcessorState,\n FuelTransaction,\n LogHandler\n} from './types.js'\nimport { PromiseOrVoid } from '../core/index.js'\nimport { ServerError, Status } from 'nice-grpc'\nimport { getHandlerName, proxyProcessor } from '../utils/metrics.js'\n\nexport class FuelProcessor<TContract extends Contract> implements FuelBaseProcessor<FuelProcessorConfig> {\n txHandlers: CallHandler<Data_FuelTransaction>[] = []\n blockHandlers: BlockHandler[] = []\n logHandlers: LogHandler<Data_FuelReceipt>[] = []\n\n private provider: Provider\n private contract: TContract\n\n static bind(config: FuelProcessorConfig): FuelProcessor<any> {\n const processor = new FuelProcessor(config)\n addFuelProcessor(config, processor)\n return processor\n }\n\n constructor(readonly config: FuelProcessorConfig) {\n return proxyProcessor(this)\n }\n\n latestGasPrice: string | undefined\n\n async configure() {\n this.provider = await getProvider(this.config.chainId)\n this.provider.getLatestGasPrice = async () => {\n // avoid flood the endpoint, cache the latest gas price\n if (this.latestGasPrice) {\n return bn(this.latestGasPrice)\n }\n const { latestGasPrice } = await this.provider.operations.getLatestGasPrice()\n this.latestGasPrice = latestGasPrice?.gasPrice\n return bn(latestGasPrice.gasPrice)\n }\n\n this.contract = new Contract(this.config.address, this.config.abi!, this.provider) as TContract\n }\n\n public onTransaction(\n handler: (transaction: FuelTransaction, ctx: FuelContractContext<TContract>) => PromiseOrVoid,\n config: FuelFetchConfig = DEFAULT_FUEL_FETCH_CONFIG\n ) {\n const callHandler = {\n handlerName: getHandlerName(),\n handler: async (call: Data_FuelTransaction) => {\n const abiMap = this.config.abi\n ? {\n [this.config.address]: this.config.abi\n }\n : {}\n const tx = await decodeFuelTransactionWithAbi(call.transaction, abiMap, this.provider)\n\n const ctx = new FuelContractContext(\n this.config.chainId,\n this.contract,\n this.config.address,\n this.config.name ?? this.config.address,\n call.timestamp || new Date(0),\n tx,\n null\n )\n await handler(tx, ctx)\n return ctx.stopAndGetResult()\n },\n fetchConfig: {\n filters: [],\n ...config\n }\n }\n this.txHandlers.push(callHandler)\n return this\n }\n\n // hide onCall for now\n private onCall(\n nameFilter: string | string[],\n handler: (call: FuelCall, ctx: FuelContext) => void | Promise<void>,\n config: FuelFetchConfig = DEFAULT_FUEL_FETCH_CONFIG\n ) {\n const names = new Set(Array.isArray(nameFilter) ? nameFilter : [nameFilter])\n\n if (!this.config.abi) {\n throw new Error('ABI must be provided to use onCall')\n }\n const abi = this.config.abi\n\n const filters: Record<string, FuelCallFilter> = {}\n const abiInterface = new Interface(abi)\n for (const name of names) {\n try {\n const func = abiInterface.functions[name]\n const filter = bn(func.selector, 'hex').toString()\n filters[func.name] = {\n function: filter,\n includeFailed: !!config.includeFailed\n }\n } catch (e) {\n console.error(e)\n }\n }\n\n const callHandler = {\n handlerName: getHandlerName(),\n handler: async (call: Data_FuelTransaction) => {\n try {\n // const contract = new Contract(this.config.address, abi, this.provider)\n const gqlTransaction = call.transaction\n const tx = await decodeFuelTransactionWithAbi(gqlTransaction, { [this.config.address]: abi }, this.provider)\n\n const ctx = new FuelContext(\n this.config.chainId,\n this.config.address,\n this.config.name ?? this.config.address,\n call.timestamp || new Date(0),\n tx,\n null\n )\n for (const op of tx.operations) {\n for (const call of op.calls || []) {\n if (names.has(call.functionName)) {\n const fn = this.contract.functions[call.functionName]\n const args = Object.values(call.argumentsProvided || {})\n const scope = fn(...args)\n const invocationResult = new FuelCall(scope, tx, false, call.argumentsProvided, tx.logs)\n await handler(invocationResult, ctx)\n }\n }\n }\n\n return ctx.stopAndGetResult()\n } catch (e) {\n console.error(e)\n return {\n gauges: [],\n counters: [],\n events: [],\n exports: [],\n states: {\n configUpdated: false\n }\n }\n }\n },\n fetchConfig: {\n filters: Object.values(filters)\n }\n }\n this.txHandlers.push(callHandler)\n return this\n }\n\n public onLog<T>(\n logIdFilter: string | string[],\n handler: (logs: FuelLog<T>, ctx: FuelContractContext<TContract>) => PromiseOrVoid\n ) {\n const logIds = new Set(Array.isArray(logIdFilter) ? logIdFilter : [logIdFilter])\n\n const logHandler = {\n handlerName: getHandlerName(),\n handler: async ({ transaction, receiptIndex, timestamp }: Data_FuelReceipt) => {\n try {\n const tx = decodeFuelTransaction(transaction, this.provider)\n const index = Number(receiptIndex)\n const receipt = tx.receipts[index]\n const log = decodeLog(receipt, this.config.abi)\n if (log) {\n const ctx = new FuelContractContext(\n this.config.chainId,\n this.contract,\n this.config.address,\n this.config.name ?? this.config.address,\n timestamp || new Date(0),\n tx,\n null\n )\n ctx.setLogIndex(index)\n await handler({ receiptIndex: index, ...log }, ctx)\n return ctx.stopAndGetResult()\n } else {\n console.error(`Log with receipt index ${receiptIndex} not found in tx`)\n }\n } catch (e) {\n console.error(e)\n }\n\n return ProcessResult.fromPartial({})\n },\n logConfig: {\n logIds: Array.from(logIds)\n }\n }\n this.logHandlers.push(logHandler)\n return this\n }\n\n public onInterval(\n handler: (block: FuelBlock, ctx: FuelContractContext<TContract>) => PromiseOrVoid,\n timeInterval: HandleInterval | undefined,\n blockInterval: HandleInterval | undefined\n // fetchConfig: Partial<FuelFetchConfig> | undefined\n ): this {\n if (timeInterval) {\n if (timeInterval.backfillInterval < timeInterval.recentInterval) {\n timeInterval.backfillInterval = timeInterval.recentInterval\n }\n }\n\n const processor = this\n\n this.blockHandlers.push({\n blockInterval,\n timeIntervalInMinutes: timeInterval,\n handlerName: getHandlerName(),\n handler: async function (data: Data_FuelBlock) {\n const header = data.block\n if (!header) {\n throw new ServerError(Status.INVALID_ARGUMENT, 'Block is empty')\n }\n\n const block: FuelBlock = {\n id: header.id,\n height: bn(header.height),\n time: header.time,\n header: {\n applicationHash: header.applicationHash,\n daHeight: bn(header.daHeight),\n eventInboxRoot: header.eventInboxRoot,\n messageOutboxRoot: header.messageOutboxRoot,\n prevRoot: header.prevRoot,\n stateTransitionBytecodeVersion: header.stateTransitionBytecodeVersion,\n transactionsCount: header.transactionsCount,\n transactionsRoot: header.transactionsRoot\n }\n }\n\n const ctx = new FuelContractContext(\n processor.config.chainId,\n processor.contract,\n processor.config.address,\n processor.config.name ?? processor.config.address,\n data.timestamp || new Date(0),\n null,\n block\n )\n await handler(block, ctx)\n return ctx.stopAndGetResult()\n }\n })\n return this\n }\n\n public onBlockInterval(\n handler: (block: FuelBlock, ctx: FuelContractContext<TContract>) => PromiseOrVoid,\n blockInterval = 250,\n backfillBlockInterval = 1000\n // fetchConfig?: Partial<FuelFetchConfig>\n ): this {\n return this.onInterval(\n handler,\n undefined,\n {\n recentInterval: blockInterval,\n backfillInterval: backfillBlockInterval\n }\n // fetchConfig,\n )\n }\n\n public onTimeInterval(\n handler: (block: FuelBlock, ctx: FuelContractContext<TContract>) => PromiseOrVoid,\n timeIntervalInMinutes = 60,\n backfillTimeIntervalInMinutes = 240\n // fetchConfig?: Partial<FuelFetchConfig>,\n ): this {\n return this.onInterval(\n handler,\n { recentInterval: timeIntervalInMinutes, backfillInterval: backfillTimeIntervalInMinutes },\n undefined\n // fetchConfig\n )\n }\n}\n\nexport type FuelProcessorConfig = {\n address: string\n name?: string\n chainId: FuelNetwork\n startBlock?: bigint\n endBlock?: bigint\n abi: JsonAbi\n}\n\nexport function getOptionsSignature(opts: Omit<FuelProcessorConfig, 'abi'>): string {\n const sig = [opts.address]\n if (opts.chainId) {\n sig.push(opts.chainId)\n }\n if (opts.name) {\n sig.push(opts.name)\n }\n if (opts.startBlock) {\n sig.push(opts.startBlock.toString())\n }\n if (opts.endBlock) {\n sig.push(opts.endBlock.toString())\n }\n return sig.join('_')\n}\n\n// Dedup processor that bind multiple times\nexport function getFuelProcessor(opts: Omit<FuelProcessorConfig, 'abi'>) {\n const sig = getOptionsSignature(opts)\n return FuelProcessorState.INSTANCE.getValue(sig)\n}\n\nexport function addFuelProcessor(opts: Omit<FuelProcessorConfig, 'abi'>, processor: FuelBaseProcessor<any>) {\n const sig = getOptionsSignature(opts)\n\n FuelProcessorState.INSTANCE.getOrSetValue(sig, processor)\n}\n;import(\"node:process\").then((p) => p.stdout.write(\"\"));","import { CallHandler, FuelBaseProcessor, FuelProcessorState } from './types.js'\nimport { Data_FuelTransaction, FuelAssetHandlerConfig_AssetFilter } from '@sentio/protos'\nimport { FuelNetwork, getProvider } from './network.js'\nimport { FuelContext } from './context.js'\nimport { decodeFuelTransaction } from './transaction.js'\nimport { Provider, InputType, OutputType } from 'fuels'\nimport { getOptionsSignature } from './fuel-processor.js'\nimport { getHandlerName, proxyProcessor } from '../utils/metrics.js'\n\nexport class FuelAssetProcessor implements FuelBaseProcessor<FuelAssetProcessorConfig> {\n txHandlers: CallHandler<Data_FuelTransaction>[] = []\n blockHandlers = []\n private provider: Provider\n\n static bind(config: FuelAssetProcessorConfig): FuelAssetProcessor {\n const processor = new FuelAssetProcessor(config)\n const sig =\n 'assets_' +\n getOptionsSignature({\n ...config,\n address: '*'\n })\n FuelProcessorState.INSTANCE.getOrSetValue(sig, processor)\n return processor\n }\n\n constructor(readonly config: FuelAssetProcessorConfig) {\n return proxyProcessor(this)\n }\n\n async configure(): Promise<void> {\n this.provider = await getProvider(this.config.chainId)\n }\n\n onTransfer(filter: TransferFilter, handler: (transfers: FuelTransfer, ctx: FuelContext) => void | Promise<void>) {\n const filters: FuelAssetHandlerConfig_AssetFilter[] = []\n\n const assetIds = arrayify(filter.assetId)\n const froms = arrayify(filter.from)\n const tos = arrayify(filter.to)\n\n for (const assetId of assetIds) {\n for (const from of froms) {\n for (const to of tos) {\n filters.push({\n assetId: assetId,\n fromAddress: from,\n toAddress: to\n })\n }\n }\n }\n\n const callHandler = {\n handlerName: getHandlerName(),\n handler: async (call: Data_FuelTransaction) => {\n const gqlTransaction = call.transaction\n const tx = decodeFuelTransaction(gqlTransaction, this.provider)\n\n const transfer: FuelTransfer = {\n from: [],\n to: []\n }\n for (const input of tx.transaction.inputs || []) {\n if (input.type == InputType.Coin) {\n transfer.from.push({\n address: input.owner,\n assetId: input.assetId,\n amount: BigInt(input.amount.toString(10))\n })\n }\n }\n\n for (const output of tx.transaction.outputs || []) {\n if (output.type == OutputType.Coin) {\n const value = output.amount.toString(10)\n transfer.to.push({\n address: output.to,\n amount: BigInt(value),\n assetId: output.assetId\n })\n }\n }\n\n const assetId = transfer.from[0].assetId || ''\n\n const ctx = new FuelContext(\n this.config.chainId,\n assetId,\n this.config.name ?? '',\n call.timestamp || new Date(0),\n tx,\n null\n )\n await handler(transfer, ctx)\n return ctx.stopAndGetResult()\n },\n assetConfig: {\n filters\n }\n }\n this.txHandlers.push(callHandler)\n return this\n }\n}\n\nexport type FuelAssetProcessorConfig = {\n name?: string\n chainId: FuelNetwork\n startBlock?: bigint\n endBlock?: bigint\n}\n\nexport type TransferFilter = {\n from?: string | string[]\n to?: string | string[]\n assetId?: string | string[]\n}\n\nexport type FuelTransfer = {\n from: {\n assetId: string\n address: string\n amount: bigint\n }[]\n to: {\n address: string\n amount: bigint\n assetId: string\n }[]\n}\n\nfunction arrayify(value?: string | string[]): Array<string | undefined> {\n if (value) {\n if (Array.isArray(value)) {\n return value.length > 0 ? value : [undefined]\n }\n return [value]\n }\n return [undefined]\n}\n;import(\"node:process\").then((p) => p.stdout.write(\"\"));","import { CallHandler, FuelBaseProcessor, FuelProcessorState, FuelTransaction } from './types.js'\nimport { Data_FuelTransaction } from '@sentio/protos'\nimport { Provider } from 'fuels'\nimport { getProvider } from './network.js'\nimport { decodeFuelTransaction, DEFAULT_FUEL_FETCH_CONFIG, FuelFetchConfig } from './transaction.js'\nimport { FuelContext } from './context.js'\nimport { FuelProcessorConfig, getOptionsSignature } from './fuel-processor.js'\nimport { mergeProcessResults } from '@sentio/runtime'\nimport { ALL_ADDRESS } from '../core/index.js'\nimport { getHandlerName, proxyProcessor } from '../utils/metrics.js'\n\ntype GlobalFuelProcessorConfig = Omit<FuelProcessorConfig, 'address' | 'abi'>\n\nexport class FuelGlobalProcessor implements FuelBaseProcessor<GlobalFuelProcessorConfig> {\n txHandlers: CallHandler<Data_FuelTransaction>[] = []\n blockHandlers = []\n\n private provider: Provider\n\n static bind(config: GlobalFuelProcessorConfig): FuelGlobalProcessor {\n const processor = new FuelGlobalProcessor(config)\n const sig =\n 'global_' +\n getOptionsSignature({\n ...config,\n address: ALL_ADDRESS\n })\n FuelProcessorState.INSTANCE.getOrSetValue(sig, processor)\n return processor\n }\n\n constructor(readonly config: GlobalFuelProcessorConfig) {\n return proxyProcessor(this)\n }\n\n async configure() {\n this.provider = await getProvider(this.config.chainId)\n }\n\n public onTransaction(\n handler: (transaction: FuelTransaction, ctx: FuelContext) => void | Promise<void>,\n config: FuelFetchConfig = DEFAULT_FUEL_FETCH_CONFIG\n ) {\n const callHandler = {\n handlerName: getHandlerName(),\n handler: async (call: Data_FuelTransaction) => {\n let tx: FuelTransaction\n try {\n tx = decodeFuelTransaction(call.transaction, this.provider)\n } catch (e) {\n console.error('error decoding transaction', e)\n return mergeProcessResults([])\n }\n const ctx = new FuelContext(\n this.config.chainId,\n ALL_ADDRESS,\n this.config.name ?? '*',\n call.timestamp || new Date(0),\n tx,\n null\n )\n await handler(tx, ctx)\n return ctx.stopAndGetResult()\n },\n fetchConfig: {\n filters: [],\n ...config\n }\n }\n this.txHandlers.push(callHandler)\n return this\n }\n}\n;import(\"node:process\").then((p) => p.stdout.write(\"\"));","import { FuelContext, FuelContractContext } from './context.js'\nimport { HandleInterval, TemplateInstance } from '@sentio/protos'\nimport { PromiseOrVoid } from '../core/promises.js'\nimport { ListStateStorage } from '@sentio/runtime'\nimport { TemplateInstanceState } from '../core/template.js'\nimport { Contract } from 'fuels'\nimport { FuelBlock, FuelLog, FuelTransaction } from './types.js'\nimport { DEFAULT_FUEL_FETCH_CONFIG, FuelFetchConfig } from './transaction.js'\nimport { FuelProcessor, FuelProcessorConfig, getOptionsSignature } from './fuel-processor.js'\n\nexport class FuelProcessorTemplateProcessorState extends ListStateStorage<FuelBaseProcessorTemplate<Contract>> {\n static INSTANCE = new FuelProcessorTemplateProcessorState()\n}\n\nexport abstract class FuelBaseProcessorTemplate<TContract extends Contract> {\n id: number\n binds = new Set<string>()\n blockHandlers: {\n handler: (block: FuelBlock, ctx: FuelContractContext<TContract>) => PromiseOrVoid\n blockInterval?: HandleInterval\n timeIntervalInMinutes?: HandleInterval\n // fetchConfig?: FuelFetchConfig\n }[] = []\n\n logHandlers: {\n logIdFilter: string | string[]\n handler: (logs: FuelLog<any>, ctx: FuelContractContext<TContract>) => PromiseOrVoid\n // fetchConfig?: FuelFetchConfig\n }[] = []\n\n transactionHandlers: {\n handler: (transaction: FuelTransaction, ctx: FuelContractContext<TContract>) => PromiseOrVoid\n fetchConfig: FuelFetchConfig\n }[] = []\n\n constructor() {\n this.id = FuelProcessorTemplateProcessorState.INSTANCE.getValues().length\n FuelProcessorTemplateProcessorState.INSTANCE.addValue(this)\n }\n\n /**\n * Bind template using {@param options}, using {@param ctx}'s network value if not provided in the option\n * @param options\n * @param ctx\n */\n public bind(options: Omit<Omit<FuelProcessorConfig, 'chainId'>, 'abi'>, ctx: FuelContext): void {\n const sig = getOptionsSignature({\n address: options.address,\n chainId: ctx.chainId\n })\n if (this.binds.has(sig)) {\n console.log(`Same address can be bind to one template only once, ignore duplicate bind: ${sig}`)\n return\n }\n this.binds.add(sig)\n\n const processor = this.bindInternal({ ...options, chainId: ctx.chainId })\n\n for (const eh of this.logHandlers) {\n processor.onLog(eh.logIdFilter, eh.handler)\n }\n for (const bh of this.blockHandlers) {\n processor.onInterval(bh.handler, bh.timeIntervalInMinutes, bh.blockInterval)\n }\n for (const th of this.transactionHandlers) {\n processor.onTransaction(th.handler)\n }\n\n const instance: TemplateInstance = {\n templateId: this.id,\n contract: {\n address: options.address,\n name: options.name || '',\n chainId: ctx.chainId,\n abi: ''\n },\n startBlock: BigInt(options.startBlock || 0),\n endBlock: BigInt(options.endBlock || 0),\n baseLabels: {}\n // baseLabels: options.baseLabels\n }\n TemplateInstanceState.INSTANCE.addValue(instance)\n ctx.update({\n states: {\n configUpdated: true\n }\n })\n }\n\n protected onLog<T>(\n logIdFilter: string | string[],\n handler: (logs: FuelLog<T>, ctx: FuelContractContext<TContract>) => PromiseOrVoid\n // fetchConfig?: Partial<FuelFetchConfig>\n ) {\n this.logHandlers.push({\n logIdFilter,\n handler\n // fetchConfig: { ...fetchConfig}\n })\n return this\n }\n\n public onBlockInterval(\n handler: (block: FuelBlock, ctx: FuelContractContext<TContract>) => PromiseOrVoid,\n blockInterval = 1000,\n backfillBlockInterval = 4000\n // fetchConfig?: Partial<FuelFetchConfig>\n ) {\n return this.onInterval(\n handler,\n undefined,\n {\n recentInterval: blockInterval,\n backfillInterval: backfillBlockInterval\n }\n // fetchConfig\n )\n }\n\n public onTimeInterval(\n handler: (block: FuelBlock, ctx: FuelContractContext<TContract>) => PromiseOrVoid,\n timeIntervalInMinutes = 60,\n backfillBlockInterval = 240\n // fetchConfig?: Partial<FuelFetchConfig>\n ) {\n return this.onInterval(\n handler,\n { recentInterval: timeIntervalInMinutes, backfillInterval: backfillBlockInterval },\n undefined\n // fetchConfig\n )\n }\n\n public onInterval(\n handler: (block: FuelBlock, ctx: FuelContractContext<TContract>) => PromiseOrVoid,\n timeInterval: HandleInterval | undefined,\n blockInterval: HandleInterval | undefined\n // fetchConfig?: FuelFetchConfig\n ) {\n this.blockHandlers.push({\n handler,\n timeIntervalInMinutes: timeInterval,\n blockInterval\n // fetchConfig: { ...fetchConfig }\n })\n return this\n }\n\n protected onTransaction(\n handler: (transaction: FuelTransaction, ctx: FuelContractContext<TContract>) => PromiseOrVoid,\n config: FuelFetchConfig = DEFAULT_FUEL_FETCH_CONFIG\n ) {\n this.transactionHandlers.push({\n handler,\n fetchConfig: config\n })\n return this\n }\n\n protected abstract bindInternal(options: Omit<FuelProcessorConfig, 'abi'>): FuelProcessor<TContract>\n}\n;import(\"node:process\").then((p) => p.stdout.write(\"\"));","import { addFuelProcessor, FuelProcessor, FuelProcessorConfig } from './fuel-processor.js'\nimport { Contract, JsonAbi } from 'fuels'\n// import { FuelCall } from './context.js'\nimport { FuelChainId } from '@sentio/chain'\nimport { FuelLog } from './types.js'\nimport { proxyProcessor } from '../utils/metrics.js'\n\nexport abstract class FuelAbstractProcessor<TContract extends Contract> extends FuelProcessor<TContract> {\n protected constructor(abi: JsonAbi, config?: Omit<FuelProcessorConfig, 'abi'>) {\n if (!config) {\n config = {\n chainId: FuelChainId.FUEL_MAINNET,\n address: '*'\n }\n }\n super({\n ...config,\n abi\n })\n addFuelProcessor(config, this)\n return proxyProcessor(this)\n }\n}\n\nexport class TypedCall<T extends Array<any>, R> {\n args: T\n returnValue: R\n argsObject?: Record<string, any>\n logs?: FuelLog<unknown>[]\n\n // constructor(call: FuelCall) {\n // this.args = call.args as T\n // this.returnValue = call.value as R\n // this.argsObject = call.args\n // this.logs = call.logs\n // }\n}\n;import(\"node:process\").then((p) => p.stdout.write(\"\"));","export { FuelPlugin } from './fuel-plugin.js'\nexport * from './context.js'\nexport * from './fuel-processor.js'\nexport * from './fuel-processor-template.js'\nexport * from './network.js'\nexport * from './transaction.js'\nexport * from './base-processor.js'\nexport * from './asset-processor.js'\nexport * from './types.js'\nexport * from './global-processor.js'\n;import(\"node:process\").then((p) => p.stdout.write(\"\"));"],"mappings":";mVAAA,OAAS,eAAAA,EAAa,iBAAAC,EAAe,uBAAAC,EAAqB,UAAAC,GAAQ,iBAAAC,GAAe,kBAAAC,OAAsB,kBAavG,IAAAC,EAAoC,UCbpC,OAAS,mBAAAC,OAAuB,kBAqBzB,IAAMC,EAAN,MAA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AAO,KAAK,WACVF,EACA,CAAE,eAAgBG,EAAuB,iBAAkBD,CAAsB,EACjF,MAEF,CACF,CAEO,WACLF,EACAI,EACAH,EAEA,CACA,YAAK,cAAc,KAAK,CACtB,QAAAD,EACA,sBAAuBI,EACvB,cAAAH,CAEF,CAAC,EACM,IACT,CAEU,cACRD,EACAK,EAA0BC,EAC1B,CACA,YAAK,oBAAoB,KAAK,CAC5B,QAAAN,EACA,YAAaK,CACf,CAAC,EACM,IACT,CAGF,EACC,OAAO,cAAc,EAAE,KAAME,GAAMA,EAAE,OAAO,MAAM,EAAE,CAAC,EC9JtD,IAAAC,GAA4B,UAIrB,IAAeC,GAAf,cAAyEC,CAAyB,CAPzG,MAOyG,CAAAC,EAAA,8BAC7F,YAAYC,EAAcC,EAA2C,CAC7E,OAAKA,IACHA,EAAS,CACP,QAAS,eAAY,aACrB,QAAS,GACX,GAEF,MAAM,CACJ,GAAGA,EACH,IAAAD,CACF,CAAC,EACDE,EAAiBD,EAAQ,IAAI,EACtBE,EAAe,IAAI,CAC5B,CACF,EAEaC,GAAN,KAAyC,CAxBhD,MAwBgD,CAAAL,EAAA,kBAC9C,KACA,YACA,WACA,IAQF,EACC,OAAO,cAAc,EAAE,KAAMM,GAAMA,EAAE,OAAO,MAAM,EAAE,CAAC,EC3BrD,OAAO,cAAc,EAAE,KAAMC,GAAMA,EAAE,OAAO,MAAM,EAAE,CAAC","names":["errorString","GLOBAL_CONFIG","mergeProcessResults","Plugin","PluginManager","USER_PROCESSOR","import_nice_grpc","MapStateStorage","FuelProcessorState","_FuelProcessorState","MapStateStorage","__name","p","import_chain","Endpoints","FuelNetwork","getRpcEndpoint","network","__name","getProvider","chainServer","Endpoints","Provider","p","FuelCall","funcScopes","callResult","isMultiCall","args","logs","__name","FuelContext","BaseContext","chainId","contractAddress","contractName","timestamp","transaction","block","logIndex","name","labels","normalizeLabels","FuelContractContext","contract","p","DEFAULT_FUEL_FETCH_CONFIG","findSenderFromInputs","inputs","baseAssetId","input","InputType","__name","decodeFuelTransaction","gqlTransaction","provider","rawPayload","arrayify","receipts","processGqlReceipt","decodedTransaction","TransactionCoder","gasCosts","feeParameters","txParameters","blockNumber","gasPriceFactor","gasPerByte","maxInputs","maxGasPerTx","gqlTransactionStatus","assembleTransactionSummary","bn","decodeLog","receipt","abi","ReceiptType","interfaceToUse","Interface","data","BigNumberCoder","logId","decodedLog","decodeFuelTransactionWithAbi","abiMap","logs","idx","log","e","txResponse","TransactionResponse","p","import_nice_grpc","FuelProcessor","_FuelProcessor","config","proxyProcessor","__name","processor","addFuelProcessor","getProvider","bn","latestGasPrice","Contract","handler","DEFAULT_FUEL_FETCH_CONFIG","callHandler","getHandlerName","call","abiMap","tx","decodeFuelTransactionWithAbi","ctx","FuelContractContext","nameFilter","names","abi","filters","abiInterface","Interface","name","func","filter","e","gqlTransaction","FuelContext","op","fn","args","scope","invocationResult","FuelCall","logIdFilter","logIds","logHandler","transaction","receiptIndex","timestamp","decodeFuelTransaction","index","receipt","log","decodeLog","ProcessResult","timeInterval","blockInterval","data","header","block","backfillBlockInterval","timeIntervalInMinutes","backfillTimeIntervalInMinutes","getOptionsSignature","opts","sig","getFuelProcessor","FuelProcessorState","p","FuelAssetProcessor","_FuelAssetProcessor","config","proxyProcessor","__name","processor","sig","getOptionsSignature","FuelProcessorState","getProvider","filter","handler","filters","assetIds","arrayify","froms","tos","assetId","from","to","callHandler","getHandlerName","call","gqlTransaction","tx","decodeFuelTransaction","transfer","input","InputType","output","OutputType","value","ctx","FuelContext","p","mergeProcessResults","FuelGlobalProcessor","_FuelGlobalProcessor","config","proxyProcessor","__name","processor","sig","getOptionsSignature","ALL_ADDRESS","FuelProcessorState","getProvider","handler","DEFAULT_FUEL_FETCH_CONFIG","callHandler","getHandlerName","call","tx","decodeFuelTransaction","e","mergeProcessResults","ctx","FuelContext","p","FuelPlugin","Plugin","__name","config","handlers","processor","FuelProcessorState","contractConfig","ContractConfig","USER_PROCESSOR","txHandler","handlerId","handlerName","FuelProcessor","fetchConfig","FuelAssetProcessor","assetConfig","FuelGlobalProcessor","logHandler","blockHandler","HandlerType","request","errorString","TemplateInstanceState","binding","log","promises","promise","e","GLOBAL_CONFIG","mergeProcessResults","fuelTransaction","ethBlock","PluginManager","p","ListStateStorage","FuelProcessorTemplateProcessorState","_FuelProcessorTemplateProcessorState","ListStateStorage","__name","FuelBaseProcessorTemplate","options","ctx","sig","getOptionsSignature","processor","eh","bh","th","instance","TemplateInstanceState","logIdFilter","handler","blockInterval","backfillBlockInterval","timeIntervalInMinutes","timeInterval","config","DEFAULT_FUEL_FETCH_CONFIG","p","import_chain","FuelAbstractProcessor","FuelProcessor","__name","abi","config","addFuelProcessor","proxyProcessor","TypedCall","p","p"]}
package/lib/core/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{Dd as b,Ed as c,Gd as d,Hd as e,Id as f,Jd as g,Kd as h,Ld as i,Md as j,Nd as k,Od as l,Pd as m,Qd as n,Rd as o,Sd as p,Td as q,oe as r,pe as s,qe as t,re as u,se as v,ue as w,ve as x}from"../chunk-CX3O4KA4.js";import{a}from"../chunk-RA75ESSD.js";import"../chunk-G5BIPHMS.js";export{x as ALL_ADDRESS,v as AccountEventTracker,r as BaseContext,g as BasicFieldType,a as BigDecimal,w as CorePlugin,m as Counter,n as CounterBinding,d as DatabaseSchema,i as EventLogger,f as EventLoggerBinding,e as EventLoggerState,u as EventTracker,t as EventTrackerState,s as Exporter,o as Gauge,p as GaugeBinding,q as Meter,l as MetricOptions,h as fieldsToProtos,c as normalizeLabels,b as scaleDown,k as toBigInteger,j as toMetricValue};
2
+ import{Cd as b,Dd as c,Fd as d,Gd as e,Hd as f,Id as g,Jd as h,Kd as i,Ld as j,Md as k,Nd as l,Od as m,Pd as n,Qd as o,Rd as p,Sd as q,ne as r,oe as s,pe as t,qe as u,re as v,te as w,ue as x}from"../chunk-VLD3QNSH.js";import{a}from"../chunk-RA75ESSD.js";import"../chunk-G5BIPHMS.js";export{x as ALL_ADDRESS,v as AccountEventTracker,r as BaseContext,g as BasicFieldType,a as BigDecimal,w as CorePlugin,m as Counter,n as CounterBinding,d as DatabaseSchema,i as EventLogger,f as EventLoggerBinding,e as EventLoggerState,u as EventTracker,t as EventTrackerState,s as Exporter,o as Gauge,p as GaugeBinding,q as Meter,l as MetricOptions,h as fieldsToProtos,c as normalizeLabels,b as scaleDown,k as toBigInteger,j as toMetricValue};
3
3
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{a as b,b as c,c as d,d as e,e as f,f as g,g as h,h as i,i as j,j as k}from"../../chunk-F3FKHNF5.js";import{C as a}from"../../chunk-QHT2WN3B.js";import"../../chunk-4WNGQ3EZ.js";import"../../chunk-IVMOWPFA.js";import"../../chunk-CX3O4KA4.js";import"../../chunk-RA75ESSD.js";import"../../chunk-G5BIPHMS.js";export{c as EACAggregatorProxyBoundContractView,b as EACAggregatorProxyContractView,d as EACAggregatorProxyProcessor,e as EACAggregatorProxyProcessorTemplate,a as EACAggregatorProxy__factory,f as getEACAggregatorProxyContract,g as getEACAggregatorProxyContractOnContext,h as mockAnswerUpdatedLog,i as mockNewRoundLog,j as mockOwnershipTransferRequestedLog,k as mockOwnershipTransferredLog};
2
+ import{a as b,b as c,c as d,d as e,e as f,f as g,g as h,h as i,i as j,j as k}from"../../chunk-4ZKROMHQ.js";import{C as a}from"../../chunk-SQBMMGFT.js";import"../../chunk-4WNGQ3EZ.js";import"../../chunk-IVMOWPFA.js";import"../../chunk-VLD3QNSH.js";import"../../chunk-RA75ESSD.js";import"../../chunk-G5BIPHMS.js";export{c as EACAggregatorProxyBoundContractView,b as EACAggregatorProxyContractView,d as EACAggregatorProxyProcessor,e as EACAggregatorProxyProcessorTemplate,a as EACAggregatorProxy__factory,f as getEACAggregatorProxyContract,g as getEACAggregatorProxyContractOnContext,h as mockAnswerUpdatedLog,i as mockNewRoundLog,j as mockOwnershipTransferRequestedLog,k as mockOwnershipTransferredLog};
3
3
  //# sourceMappingURL=eacaggregatorproxy.js.map
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{a as b,b as c,c as d,d as e,e as f,f as g,g as h,h as i,i as j,j as k}from"../../chunk-ECZHCPDZ.js";import{D as a}from"../../chunk-QHT2WN3B.js";import"../../chunk-4WNGQ3EZ.js";import"../../chunk-IVMOWPFA.js";import"../../chunk-CX3O4KA4.js";import"../../chunk-RA75ESSD.js";import"../../chunk-G5BIPHMS.js";export{c as ERC1155BoundContractView,b as ERC1155ContractView,d as ERC1155Processor,e as ERC1155ProcessorTemplate,a as ERC1155__factory,f as getERC1155Contract,g as getERC1155ContractOnContext,h as mockApprovalForAllLog,i as mockTransferBatchLog,j as mockTransferSingleLog,k as mockURILog};
2
+ import{a as b,b as c,c as d,d as e,e as f,f as g,g as h,h as i,i as j,j as k}from"../../chunk-26VKFV5Y.js";import{D as a}from"../../chunk-SQBMMGFT.js";import"../../chunk-4WNGQ3EZ.js";import"../../chunk-IVMOWPFA.js";import"../../chunk-VLD3QNSH.js";import"../../chunk-RA75ESSD.js";import"../../chunk-G5BIPHMS.js";export{c as ERC1155BoundContractView,b as ERC1155ContractView,d as ERC1155Processor,e as ERC1155ProcessorTemplate,a as ERC1155__factory,f as getERC1155Contract,g as getERC1155ContractOnContext,h as mockApprovalForAllLog,i as mockTransferBatchLog,j as mockTransferSingleLog,k as mockURILog};
3
3
  //# sourceMappingURL=erc1155.js.map
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{$ as e,E as a,Y as b,Z as c,_ as d,aa as f,ba as g,ca as h,da as i,ea as j}from"../../chunk-QHT2WN3B.js";import"../../chunk-4WNGQ3EZ.js";import"../../chunk-IVMOWPFA.js";import"../../chunk-CX3O4KA4.js";import"../../chunk-RA75ESSD.js";import"../../chunk-G5BIPHMS.js";export{c as ERC20BoundContractView,b as ERC20ContractView,d as ERC20Processor,e as ERC20ProcessorTemplate,a as ERC20__factory,f as getERC20Contract,g as getERC20ContractOnContext,h as mockApprovalLog,i as mockOwnershipTransferredLog,j as mockTransferLog};
2
+ import{$ as e,E as a,Y as b,Z as c,_ as d,aa as f,ba as g,ca as h,da as i,ea as j}from"../../chunk-SQBMMGFT.js";import"../../chunk-4WNGQ3EZ.js";import"../../chunk-IVMOWPFA.js";import"../../chunk-VLD3QNSH.js";import"../../chunk-RA75ESSD.js";import"../../chunk-G5BIPHMS.js";export{c as ERC20BoundContractView,b as ERC20ContractView,d as ERC20Processor,e as ERC20ProcessorTemplate,a as ERC20__factory,f as getERC20Contract,g as getERC20ContractOnContext,h as mockApprovalLog,i as mockOwnershipTransferredLog,j as mockTransferLog};
3
3
  //# sourceMappingURL=erc20.js.map
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{G as a,I as b,J as c,K as d,L as e,M as f,N as g,O as h,P as i,Q as j}from"../../chunk-QHT2WN3B.js";import"../../chunk-4WNGQ3EZ.js";import"../../chunk-IVMOWPFA.js";import"../../chunk-CX3O4KA4.js";import"../../chunk-RA75ESSD.js";import"../../chunk-G5BIPHMS.js";export{c as ERC721BoundContractView,b as ERC721ContractView,d as ERC721Processor,e as ERC721ProcessorTemplate,a as ERC721__factory,f as getERC721Contract,g as getERC721ContractOnContext,i as mockApprovalForAllLog,h as mockApprovalLog,j as mockTransferLog};
2
+ import{G as a,I as b,J as c,K as d,L as e,M as f,N as g,O as h,P as i,Q as j}from"../../chunk-SQBMMGFT.js";import"../../chunk-4WNGQ3EZ.js";import"../../chunk-IVMOWPFA.js";import"../../chunk-VLD3QNSH.js";import"../../chunk-RA75ESSD.js";import"../../chunk-G5BIPHMS.js";export{c as ERC721BoundContractView,b as ERC721ContractView,d as ERC721Processor,e as ERC721ProcessorTemplate,a as ERC721__factory,f as getERC721Contract,g as getERC721ContractOnContext,i as mockApprovalForAllLog,h as mockApprovalLog,j as mockTransferLog};
3
3
  //# sourceMappingURL=erc721.js.map
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{c as C,d as g,k as R}from"../../chunk-ECZHCPDZ.js";import{c as T,d as l,k as y}from"../../chunk-KV6ZVB7D.js";import{a,b as c,d as x}from"../../chunk-WR6FD24P.js";import{c as P,d as f,k as E}from"../../chunk-F3FKHNF5.js";import{$ as p,K as o,L as e,R as s,_ as t,fa as m}from"../../chunk-QHT2WN3B.js";import"../../chunk-4WNGQ3EZ.js";import"../../chunk-IVMOWPFA.js";import"../../chunk-CX3O4KA4.js";import"../../chunk-RA75ESSD.js";import"../../chunk-G5BIPHMS.js";import("node:process").then(r=>r.stdout.write(""));export{P as EACAggregatorProxyProcessor,f as EACAggregatorProxyProcessorTemplate,C as ERC1155Processor,g as ERC1155ProcessorTemplate,a as ERC20BytesProcessor,c as ERC20BytesProcessorTemplate,t as ERC20Processor,p as ERC20ProcessorTemplate,o as ERC721Processor,e as ERC721ProcessorTemplate,T as WETH9Processor,l as WETH9ProcessorTemplate,E as eacaggregatorproxy,R as erc1155,m as erc20,x as erc20bytes,s as erc721,y as weth9};
2
+ import{c as C,d as g,k as R}from"../../chunk-26VKFV5Y.js";import{c as T,d as l,k as y}from"../../chunk-HWODJFVJ.js";import{a,b as c,d as x}from"../../chunk-RZTTP64K.js";import{c as P,d as f,k as E}from"../../chunk-4ZKROMHQ.js";import{$ as p,K as o,L as e,R as s,_ as t,fa as m}from"../../chunk-SQBMMGFT.js";import"../../chunk-4WNGQ3EZ.js";import"../../chunk-IVMOWPFA.js";import"../../chunk-VLD3QNSH.js";import"../../chunk-RA75ESSD.js";import"../../chunk-G5BIPHMS.js";import("node:process").then(r=>r.stdout.write(""));export{P as EACAggregatorProxyProcessor,f as EACAggregatorProxyProcessorTemplate,C as ERC1155Processor,g as ERC1155ProcessorTemplate,a as ERC20BytesProcessor,c as ERC20BytesProcessorTemplate,t as ERC20Processor,p as ERC20ProcessorTemplate,o as ERC721Processor,e as ERC721ProcessorTemplate,T as WETH9Processor,l as WETH9ProcessorTemplate,E as eacaggregatorproxy,R as erc1155,m as erc20,x as erc20bytes,s as erc721,y as weth9};
3
3
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{a as b,b as c,c as d,d as e,e as f,f as g,g as h,h as i,i as j,j as k}from"../../chunk-KV6ZVB7D.js";import{H as a}from"../../chunk-QHT2WN3B.js";import"../../chunk-4WNGQ3EZ.js";import"../../chunk-IVMOWPFA.js";import"../../chunk-CX3O4KA4.js";import"../../chunk-RA75ESSD.js";import"../../chunk-G5BIPHMS.js";export{c as WETH9BoundContractView,b as WETH9ContractView,d as WETH9Processor,e as WETH9ProcessorTemplate,a as WETH9__factory,f as getWETH9Contract,g as getWETH9ContractOnContext,h as mockApprovalLog,j as mockDepositLog,i as mockTransferLog,k as mockWithdrawalLog};
2
+ import{a as b,b as c,c as d,d as e,e as f,f as g,g as h,h as i,i as j,j as k}from"../../chunk-HWODJFVJ.js";import{H as a}from"../../chunk-SQBMMGFT.js";import"../../chunk-4WNGQ3EZ.js";import"../../chunk-IVMOWPFA.js";import"../../chunk-VLD3QNSH.js";import"../../chunk-RA75ESSD.js";import"../../chunk-G5BIPHMS.js";export{c as WETH9BoundContractView,b as WETH9ContractView,d as WETH9Processor,e as WETH9ProcessorTemplate,a as WETH9__factory,f as getWETH9Contract,g as getWETH9ContractOnContext,h as mockApprovalLog,j as mockDepositLog,i as mockTransferLog,k as mockWithdrawalLog};
3
3
  //# sourceMappingURL=weth9.js.map
package/lib/eth/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{A as B,B as C,S as D,T as E,U as F,V as G,W as H,X as I,a as c,b as d,c as e,d as f,e as g,f as h,h as i,i as j,j as k,k as l,l as m,m as n,n as o,o as p,p as q,q as r,r as s,s as t,t as u,u as v,v as w,w as x,x as y,y as z,z as A}from"../chunk-QHT2WN3B.js";import"../chunk-4WNGQ3EZ.js";import"../chunk-IVMOWPFA.js";import{Hb as b,ma as a}from"../chunk-CX3O4KA4.js";import"../chunk-RA75ESSD.js";import"../chunk-G5BIPHMS.js";var export_EthChainId=H.EthChainId;export{w as AccountBindOptions,d as AccountContext,D as AccountProcessor,u as BaseProcessor,C as BaseProcessorTemplate,v as BindOptions,h as BoundContractView,f as ContractContext,g as ContractView,G as DummyProvider,export_EthChainId as EthChainId,c as EthContext,a as EthFetchConfig,E as EthPlugin,B as GenericProcessor,e as GlobalContext,t as GlobalProcessor,b as PreprocessResult,i as SimpleEthersError,A as addContractByABI,y as addProcessor,s as defaultPreprocessHandler,p as encodeCallData,k as fixEmptyKey,l as formatEthData,m as formatRichBlock,z as getContractByABI,x as getProcessor,F as getProvider,n as isNullAddress,I as makeEthCallKey,q as newContract,r as newInterface,j as transformEtherError,o as validateAndNormalizeAddress};
2
+ import{A as B,B as C,S as D,T as E,U as F,V as G,W as H,X as I,a as c,b as d,c as e,d as f,e as g,f as h,h as i,i as j,j as k,k as l,l as m,m as n,n as o,o as p,p as q,q as r,r as s,s as t,t as u,u as v,v as w,w as x,x as y,y as z,z as A}from"../chunk-SQBMMGFT.js";import"../chunk-4WNGQ3EZ.js";import"../chunk-IVMOWPFA.js";import{Gb as b,ma as a}from"../chunk-VLD3QNSH.js";import"../chunk-RA75ESSD.js";import"../chunk-G5BIPHMS.js";var export_EthChainId=H.EthChainId;export{w as AccountBindOptions,d as AccountContext,D as AccountProcessor,u as BaseProcessor,C as BaseProcessorTemplate,v as BindOptions,h as BoundContractView,f as ContractContext,g as ContractView,G as DummyProvider,export_EthChainId as EthChainId,c as EthContext,a as EthFetchConfig,E as EthPlugin,B as GenericProcessor,e as GlobalContext,t as GlobalProcessor,b as PreprocessResult,i as SimpleEthersError,A as addContractByABI,y as addProcessor,s as defaultPreprocessHandler,p as encodeCallData,k as fixEmptyKey,l as formatEthData,m as formatRichBlock,z as getContractByABI,x as getProcessor,F as getProvider,n as isNullAddress,I as makeEthCallKey,q as newContract,r as newInterface,j as transformEtherError,o as validateAndNormalizeAddress};
3
3
  //# sourceMappingURL=index.js.map
package/lib/fuel/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v}from"../chunk-SUNKPJCY.js";import"../chunk-4WNGQ3EZ.js";import"../chunk-IVMOWPFA.js";import"../chunk-CX3O4KA4.js";import"../chunk-RA75ESSD.js";import"../chunk-G5BIPHMS.js";export{h as DEFAULT_FUEL_FETCH_CONFIG,u as FuelAbstractProcessor,p as FuelAssetProcessor,t as FuelBaseProcessorTemplate,e as FuelCall,f as FuelContext,g as FuelContractContext,q as FuelGlobalProcessor,b as FuelNetwork,r as FuelPlugin,l as FuelProcessor,a as FuelProcessorState,s as FuelProcessorTemplateProcessorState,v as TypedCall,o as addFuelProcessor,i as decodeFuelTransaction,k as decodeFuelTransactionWithAbi,j as decodeLog,n as getFuelProcessor,m as getOptionsSignature,d as getProvider,c as getRpcEndpoint};
2
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v}from"../chunk-ZSDI5U4B.js";import"../chunk-4WNGQ3EZ.js";import"../chunk-IVMOWPFA.js";import"../chunk-VLD3QNSH.js";import"../chunk-RA75ESSD.js";import"../chunk-G5BIPHMS.js";export{h as DEFAULT_FUEL_FETCH_CONFIG,u as FuelAbstractProcessor,p as FuelAssetProcessor,t as FuelBaseProcessorTemplate,e as FuelCall,f as FuelContext,g as FuelContractContext,q as FuelGlobalProcessor,b as FuelNetwork,r as FuelPlugin,l as FuelProcessor,a as FuelProcessorState,s as FuelProcessorTemplateProcessorState,v as TypedCall,o as addFuelProcessor,i as decodeFuelTransaction,k as decodeFuelTransactionWithAbi,j as decodeLog,n as getFuelProcessor,m as getOptionsSignature,d as getProvider,c as getRpcEndpoint};
3
3
  //# sourceMappingURL=index.js.map
package/lib/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import"./chunk-SUCYR7EB.js";import{$,$a,A,Aa,Ab,B,Ba,Bb,C,Ca,Cb,D,Da,Db,Dd as Ub,E,Ea,Eb,Ed as Vb,F,Fa,Fb,G,Ga,Gb,Gd as Wb,H,Ha,Hb,Hd as Xb,I,Ia,Ib,Id as Yb,J,Ja,Jb,Jd as Zb,K,Ka,Kb,Kd as _b,L,La,Lb,Ld as $b,M,Ma,Mb,Md as ac,N,Na,Nb,Nd as bc,O,Oa,Ob,Od as cc,P,Pa,Pb,Pd as dc,Q,Qa,Qb,Qd as ec,R,Ra,Rb,Rd as fc,S,Sa,Sb,Sd as gc,T,Ta,Td as hc,U,Ua,V,Va,W,Wa,X,Xa,Y,Ya,Z,Za,_,_a,a,aa,ab,b,ba,bb,c,ca,cb,d,da,db,e,ea,eb,f,fa,fb,g,ga,gb,h,ha,hb,i,ia,ib,j,ja,jb,k,ka,kb,l,la,lb,m,ma,mb,n,na,nb,o,oa,ob,oe as ic,p,pa,pb,pe as jc,q,qa,qb,qe as kc,r,ra,rb,re as lc,s,sa,sb,se as mc,t,ta,tb,u,ua,ub,ue as nc,v,va,vb,ve as oc,w,wa,wb,x,xa,xb,y,ya,yb,z,za,zb}from"./chunk-CX3O4KA4.js";import{a as Tb}from"./chunk-RA75ESSD.js";import"./chunk-G5BIPHMS.js";export{oc as ALL_ADDRESS,da as AccountConfig,mc as AccountEventTracker,y as AddressType,ca as AggregationConfig,s as AggregationType,ga as AptosOnIntervalConfig,Ha as BTCTransactionFilter,Ia as BTCTransactionFilter_Condition,Ja as BTCTransactionFilter_Filter,Ka as BTCTransactionFilter_Filter_ConditionsEntry,La as BTCTransactionFilter_Filters,Na as BTCTransactionFilter_VOutFilter,Ma as BTCTransactionFilter_VinFilter,Ga as BTCTransactionHandlerConfig,ic as BaseContext,Zb as BasicFieldType,Tb as BigDecimal,o as BigInteger,la as BlockHandlerConfig,k as CoinID,U as ContractConfig,ia as ContractInfo,nc as CorePlugin,ta as CosmosLogHandlerConfig,dc as Counter,ec as CounterBinding,Pb as CounterResult,bb as DBRequest,fb as DBRequest_DBDelete,gb as DBRequest_DBFilter,cb as DBRequest_DBGet,db as DBRequest_DBList,N as DBRequest_DBOperator,eb as DBRequest_DBUpsert,_a as DBResponse,hb as Data,V as DataBaseSchema,Cb as DataBinding,ob as Data_AptCall,nb as Data_AptEvent,pb as Data_AptResource,Bb as Data_BTCBlock,Ab as Data_BTCTransaction,yb as Data_CosmosCall,jb as Data_EthBlock,ib as Data_EthLog,lb as Data_EthTrace,kb as Data_EthTransaction,xb as Data_FuelBlock,wb as Data_FuelCall,ub as Data_FuelReceipt,vb as Data_FuelTransaction,mb as Data_SolInstruction,zb as Data_StarknetEvent,rb as Data_SuiCall,qb as Data_SuiEvent,sb as Data_SuiObject,tb as Data_SuiObjectChange,Wb as DatabaseSchema,a as Empty,$a as Entity,ab as EntityList,Gb as EthCallContext,Fb as EthCallParam,ma as EthFetchConfig,$ as EventLogConfig,K as EventLogConfig_BasicFieldType,ba as EventLogConfig_Field,aa as EventLogConfig_StructFieldType,$b as EventLogger,Yb as EventLoggerBinding,Xb as EventLoggerState,lc as EventTracker,kc as EventTrackerState,Y as EventTrackingConfig,Qb as EventTrackingResult,R as ExecutionConfig,Z as ExportConfig,Rb as ExportResult,jc as Exporter,qa as FuelAssetHandlerConfig,ra as FuelAssetHandlerConfig_AssetFilter,Pa as FuelCallFilter,Qa as FuelCallHandlerConfig,sa as FuelLogHandlerConfig,Ra as FuelTransactionHandlerConfig,fc as Gauge,gc as GaugeBinding,Ob as GaugeResult,ea as HandleInterval,B as HandlerType,va as InstructionHandlerConfig,h as ListValue,ua as LogFilter,pa as LogHandlerConfig,E as LogLevel,hc as Meter,_ as MetricConfig,cc as MetricOptions,p as MetricType,Mb as MetricValue,ya as MoveAccountFetchConfig,Da as MoveCallFilter,Ea as MoveCallFilter_FromAndToAddress,Ba as MoveCallHandlerConfig,Aa as MoveEventFilter,za as MoveEventHandlerConfig,xa as MoveFetchConfig,ha as MoveOnIntervalConfig,v as MoveOwnerType,Ca as MoveResourceChangeConfig,b as NullValue,fa as OnIntervalConfig,Ib as PreparedData,Jb as PreparedData_EthCallResultsEntry,Hb as PreprocessResult,Xa as PreprocessStreamRequest,Ya as PreprocessStreamRequest_DataBindings,Za as PreprocessStreamResponse,Ua as ProcessBindingResponse,Ta as ProcessBindingsRequest,S as ProcessConfigRequest,T as ProcessConfigResponse,Eb as ProcessResult,Va as ProcessStreamRequest,Wa as ProcessStreamResponse,Sb as ProcessorDefinition,Q as ProjectConfig,Kb as RecordMetaData,Lb as RecordMetaData_LabelsEntry,wa as ResourceConfig,X as RetentionConfig,m as RichStruct,n as RichStructList,l as RichValue,j as RichValue_NullValue,Nb as RuntimeInfo,Oa as StarknetEventFilter,Fa as StarknetEventHandlerConfig,ka as StartRequest,Db as StateResult,e as Struct,f as Struct_FieldsEntry,ja as TemplateInstance,i as Timestamp,Sa as Topic,W as TotalPerEntityAggregation,H as TotalPerEntityAggregation_Type,na as TraceHandlerConfig,oa as TransactionHandlerConfig,g as Value,z as addressTypeFromJSON,A as addressTypeToJSON,t as aggregationTypeFromJSON,u as aggregationTypeToJSON,O as dBRequest_DBOperatorFromJSON,P as dBRequest_DBOperatorToJSON,L as eventLogConfig_BasicFieldTypeFromJSON,M as eventLogConfig_BasicFieldTypeToJSON,_b as fieldsToProtos,C as handlerTypeFromJSON,D as handlerTypeToJSON,F as logLevelFromJSON,G as logLevelToJSON,q as metricTypeFromJSON,r as metricTypeToJSON,w as moveOwnerTypeFromJSON,x as moveOwnerTypeToJSON,Vb as normalizeLabels,c as nullValueFromJSON,d as nullValueToJSON,Ub as scaleDown,bc as toBigInteger,ac as toMetricValue,I as totalPerEntityAggregation_TypeFromJSON,J as totalPerEntityAggregation_TypeToJSON};
2
+ import"./chunk-SUCYR7EB.js";import{$,$a,A,Aa,Ab,B,Ba,Bb,C,Ca,Cb,Cd as Tb,D,Da,Db,Dd as Ub,E,Ea,Eb,F,Fa,Fb,Fd as Vb,G,Ga,Gb,Gd as Wb,H,Ha,Hb,Hd as Xb,I,Ia,Ib,Id as Yb,J,Ja,Jb,Jd as Zb,K,Ka,Kb,Kd as _b,L,La,Lb,Ld as $b,M,Ma,Mb,Md as ac,N,Na,Nb,Nd as bc,O,Oa,Ob,Od as cc,P,Pa,Pb,Pd as dc,Q,Qa,Qb,Qd as ec,R,Ra,Rb,Rd as fc,S,Sa,Sd as gc,T,Ta,U,Ua,V,Va,W,Wa,X,Xa,Y,Ya,Z,Za,_,_a,a,aa,ab,b,ba,bb,c,ca,cb,d,da,db,e,ea,eb,f,fa,fb,g,ga,gb,h,ha,hb,i,ia,ib,j,ja,jb,k,ka,kb,l,la,lb,m,ma,mb,n,na,nb,ne as hc,o,oa,ob,oe as ic,p,pa,pb,pe as jc,q,qa,qb,qe as kc,r,ra,rb,re as lc,s,sa,sb,t,ta,tb,te as mc,u,ua,ub,ue as nc,v,va,vb,w,wa,wb,x,xa,xb,y,ya,yb,z,za,zb}from"./chunk-VLD3QNSH.js";import{a as Sb}from"./chunk-RA75ESSD.js";import"./chunk-G5BIPHMS.js";export{nc as ALL_ADDRESS,da as AccountConfig,lc as AccountEventTracker,y as AddressType,ca as AggregationConfig,s as AggregationType,ga as AptosOnIntervalConfig,Ha as BTCTransactionFilter,Ia as BTCTransactionFilter_Condition,Ja as BTCTransactionFilter_Filter,Ka as BTCTransactionFilter_Filter_ConditionsEntry,La as BTCTransactionFilter_Filters,Na as BTCTransactionFilter_VOutFilter,Ma as BTCTransactionFilter_VinFilter,Ga as BTCTransactionHandlerConfig,hc as BaseContext,Yb as BasicFieldType,Sb as BigDecimal,o as BigInteger,la as BlockHandlerConfig,k as CoinID,U as ContractConfig,ia as ContractInfo,mc as CorePlugin,ta as CosmosLogHandlerConfig,cc as Counter,dc as CounterBinding,Ob as CounterResult,bb as DBRequest,fb as DBRequest_DBDelete,gb as DBRequest_DBFilter,cb as DBRequest_DBGet,db as DBRequest_DBList,N as DBRequest_DBOperator,eb as DBRequest_DBUpsert,_a as DBResponse,hb as Data,V as DataBaseSchema,Bb as DataBinding,ob as Data_AptCall,nb as Data_AptEvent,pb as Data_AptResource,Ab as Data_BTCBlock,zb as Data_BTCTransaction,xb as Data_CosmosCall,jb as Data_EthBlock,ib as Data_EthLog,lb as Data_EthTrace,kb as Data_EthTransaction,wb as Data_FuelBlock,ub as Data_FuelReceipt,vb as Data_FuelTransaction,mb as Data_SolInstruction,yb as Data_StarknetEvent,rb as Data_SuiCall,qb as Data_SuiEvent,sb as Data_SuiObject,tb as Data_SuiObjectChange,Vb as DatabaseSchema,a as Empty,$a as Entity,ab as EntityList,Fb as EthCallContext,Eb as EthCallParam,ma as EthFetchConfig,$ as EventLogConfig,K as EventLogConfig_BasicFieldType,ba as EventLogConfig_Field,aa as EventLogConfig_StructFieldType,_b as EventLogger,Xb as EventLoggerBinding,Wb as EventLoggerState,kc as EventTracker,jc as EventTrackerState,Y as EventTrackingConfig,Pb as EventTrackingResult,R as ExecutionConfig,Z as ExportConfig,Qb as ExportResult,ic as Exporter,qa as FuelAssetHandlerConfig,ra as FuelAssetHandlerConfig_AssetFilter,Pa as FuelCallFilter,Qa as FuelCallHandlerConfig,sa as FuelLogHandlerConfig,Ra as FuelTransactionHandlerConfig,ec as Gauge,fc as GaugeBinding,Nb as GaugeResult,ea as HandleInterval,B as HandlerType,va as InstructionHandlerConfig,h as ListValue,ua as LogFilter,pa as LogHandlerConfig,E as LogLevel,gc as Meter,_ as MetricConfig,bc as MetricOptions,p as MetricType,Lb as MetricValue,ya as MoveAccountFetchConfig,Da as MoveCallFilter,Ea as MoveCallFilter_FromAndToAddress,Ba as MoveCallHandlerConfig,Aa as MoveEventFilter,za as MoveEventHandlerConfig,xa as MoveFetchConfig,ha as MoveOnIntervalConfig,v as MoveOwnerType,Ca as MoveResourceChangeConfig,b as NullValue,fa as OnIntervalConfig,Hb as PreparedData,Ib as PreparedData_EthCallResultsEntry,Gb as PreprocessResult,Xa as PreprocessStreamRequest,Ya as PreprocessStreamRequest_DataBindings,Za as PreprocessStreamResponse,Ua as ProcessBindingResponse,Ta as ProcessBindingsRequest,S as ProcessConfigRequest,T as ProcessConfigResponse,Db as ProcessResult,Va as ProcessStreamRequest,Wa as ProcessStreamResponse,Rb as ProcessorDefinition,Q as ProjectConfig,Jb as RecordMetaData,Kb as RecordMetaData_LabelsEntry,wa as ResourceConfig,X as RetentionConfig,m as RichStruct,n as RichStructList,l as RichValue,j as RichValue_NullValue,Mb as RuntimeInfo,Oa as StarknetEventFilter,Fa as StarknetEventHandlerConfig,ka as StartRequest,Cb as StateResult,e as Struct,f as Struct_FieldsEntry,ja as TemplateInstance,i as Timestamp,Sa as Topic,W as TotalPerEntityAggregation,H as TotalPerEntityAggregation_Type,na as TraceHandlerConfig,oa as TransactionHandlerConfig,g as Value,z as addressTypeFromJSON,A as addressTypeToJSON,t as aggregationTypeFromJSON,u as aggregationTypeToJSON,O as dBRequest_DBOperatorFromJSON,P as dBRequest_DBOperatorToJSON,L as eventLogConfig_BasicFieldTypeFromJSON,M as eventLogConfig_BasicFieldTypeToJSON,Zb as fieldsToProtos,C as handlerTypeFromJSON,D as handlerTypeToJSON,F as logLevelFromJSON,G as logLevelToJSON,q as metricTypeFromJSON,r as metricTypeToJSON,w as moveOwnerTypeFromJSON,x as moveOwnerTypeToJSON,Ub as normalizeLabels,c as nullValueFromJSON,d as nullValueToJSON,Tb as scaleDown,ac as toBigInteger,$b as toMetricValue,I as totalPerEntityAggregation_TypeFromJSON,J as totalPerEntityAggregation_TypeToJSON};
3
3
  //# sourceMappingURL=index.js.map
package/lib/move/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{A as B,B as C,C as D,D as E,E as F,a as b,b as c,c as d,d as e,e as f,f as g,g as h,h as i,i as j,j as k,k as l,l as m,m as n,n as o,o as p,p as q,q as r,r as s,s as t,t as u,u as v,v as w,w as x,x as y,y as z,z as A}from"../chunk-4VKVPYSL.js";import{xa as a}from"../chunk-CX3O4KA4.js";import"../chunk-RA75ESSD.js";import"../chunk-G5BIPHMS.js";export{p as ANY_TYPE,w as AbstractMoveCoder,t as AccountModulesImportInfo,u as AccountRegister,r as BUILTIN_TYPES,z as CallHandler,v as ChainAdapter,y as EventHandler,x as InternalMoveFunctionVisibility,F as MoveAccountContext,E as MoveContext,a as MoveFetchConfig,A as ObjectChangeHandler,B as ResourceChangeHandler,C as ResourceIntervalHandler,b as SPLITTER,D as TransactionIntervalHandler,n as TypeDescriptor,c as VECTOR_STR,g as accountAddressString,e as accountTypeString,m as camel,d as isFrameworkAccount,f as isValidMoveAddress,s as matchType,j as moduleQname,i as moduleQnameForType,h as normalizeToJSName,o as parseMoveType,k as structQname,l as upperFirst,q as vectorType};
2
+ import{A as B,B as C,C as D,D as E,E as F,a as b,b as c,c as d,d as e,e as f,f as g,g as h,h as i,i as j,j as k,k as l,l as m,m as n,n as o,o as p,p as q,q as r,r as s,s as t,t as u,u as v,v as w,w as x,x as y,y as z,z as A}from"../chunk-A3BBP3JY.js";import{xa as a}from"../chunk-VLD3QNSH.js";import"../chunk-RA75ESSD.js";import"../chunk-G5BIPHMS.js";export{p as ANY_TYPE,w as AbstractMoveCoder,t as AccountModulesImportInfo,u as AccountRegister,r as BUILTIN_TYPES,z as CallHandler,v as ChainAdapter,y as EventHandler,x as InternalMoveFunctionVisibility,F as MoveAccountContext,E as MoveContext,a as MoveFetchConfig,A as ObjectChangeHandler,B as ResourceChangeHandler,C as ResourceIntervalHandler,b as SPLITTER,D as TransactionIntervalHandler,n as TypeDescriptor,c as VECTOR_STR,g as accountAddressString,e as accountTypeString,m as camel,d as isFrameworkAccount,f as isValidMoveAddress,s as matchType,j as moduleQname,i as moduleQnameForType,h as normalizeToJSName,o as parseMoveType,k as structQname,l as upperFirst,q as vectorType};
3
3
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{c as a}from"../../chunk-D2L7KWZ2.js";import"../../chunk-FMZDKD72.js";import"../../chunk-JL6D6MPI.js";import"../../chunk-SUCYR7EB.js";import"../../chunk-IVMOWPFA.js";import"../../chunk-CX3O4KA4.js";import"../../chunk-RA75ESSD.js";import{a as e}from"../../chunk-G5BIPHMS.js";var r=class i extends a{static{e(this,"SPLTokenProcessor")}static bind(n){return n&&!n.name&&(n.name="SPL Token Program"),new i(n)}fromParsedInstruction=e(n=>n.type?{name:n.type,data:{...n.info}}:null,"fromParsedInstruction");onInitializeMint(n){return this.onInstruction("initializeMint",(t,o)=>{t&&n(t.data,o)}),this}onInitializeAccount(n){return this.onInstruction("initializeAccount",(t,o)=>{t&&n(t.data,o)}),this}onInitializeAccount2(n){return this.onInstruction("initializeAccount2",(t,o)=>{t&&n(t.data,o)}),this}onInitializeAccount3(n){return this.onInstruction("initializeAccount3",(t,o)=>{t&&n(t.data,o)}),this}onInitializeMultisig(n){return this.onInstruction("initializeMultisig",(t,o)=>{t&&n(t.data,o)}),this}onTransfer(n){return this.onInstruction("transfer",(t,o)=>{t&&n(t.data,o)}),this}onApprovend(n){return this.onInstruction("approve",(t,o)=>{t&&n(t.data,o)}),this}onRevoke(n){return this.onInstruction("revoke",(t,o)=>{t&&n(t.data,o)}),this}onSetAuthority(n){return this.onInstruction("setAuthority",(t,o)=>{t&&n(t.data,o)}),this}onMintTo(n){return this.onInstruction("mintTo",(t,o)=>{t&&n(t.data,o)}),this}onBurn(n){return this.onInstruction("burn",(t,o)=>{t&&n(t.data,o)}),this}onCloseAccount(n){return this.onInstruction("closeAccount",(t,o)=>{t&&n(t.data,o)}),this}onFreezeAccount(n){return this.onInstruction("freezeAccount",(t,o)=>{t&&n(t.data,o)}),this}onThawAccount(n){return this.onInstruction("thawAccount",(t,o)=>{t&&n(t.data,o)}),this}onTransferChecked(n){return this.onInstruction("transferChecked",(t,o)=>{t&&n(t.data,o)}),this}onApproveChecked(n){return this.onInstruction("approveChecked",(t,o)=>{t&&n(t.data,o)}),this}onMintToChecked(n){return this.onInstruction("mintToChecked",(t,o)=>{t&&n(t.data,o)}),this}onBurnChecked(n){return this.onInstruction("burnChecked",(t,o)=>{t&&n(t.data,o)}),this}onSyncNative(n){return this.onInstruction("syncNative",(t,o)=>{t&&n(t.data,o)}),this}onGetAccountDataSize(n){return this.onInstruction("getAccountDataSize",(t,o)=>{t&&n(t.data,o)}),this}onInitializeImmutableOwner(n){return this.onInstruction("initializeImmutableOwner",(t,o)=>{t&&n(t.data,o)}),this}onAmountToUiAmount(n){return this.onInstruction("amountToUiAmount",(t,o)=>{t&&n(t.data,o)}),this}onUiAmountToAmount(n){return this.onInstruction("uiAmountToAmount",(t,o)=>{t&&n(t.data,o)}),this}onInitializeMintCloseAuthority(n){return this.onInstruction("initializeMintCloseAuthority",(t,o)=>{t&&n(t.data,o)}),this}onTransferFeeExtension(n){return this.onInstruction("transferFeeExtension",(t,o)=>{t&&n(t.data,o)}),this}onDefaultAccountStateExtension(n){return this.onInstruction("defaultAccountStateExtension",(t,o)=>{t&&n(t.data,o)}),this}onReallocate(n){return this.onInstruction("reallocate",(t,o)=>{t&&n(t.data,o)}),this}onMemoTransferExtension(n){return this.onInstruction("memoTransferExtension",(t,o)=>{t&&n(t.data,o)}),this}onCreateNativeMint(n){return this.onInstruction("createNativeMint",(t,o)=>{t&&n(t.data,o)}),this}};import("node:process").then(i=>i.stdout.write(""));import("node:process").then(i=>i.stdout.write(""));export{r as SPLTokenProcessor};
2
+ import{c as a}from"../../chunk-5NXOOGVA.js";import"../../chunk-FMZDKD72.js";import"../../chunk-CQUL5GH2.js";import"../../chunk-SUCYR7EB.js";import"../../chunk-IVMOWPFA.js";import"../../chunk-VLD3QNSH.js";import"../../chunk-RA75ESSD.js";import{a as e}from"../../chunk-G5BIPHMS.js";var r=class i extends a{static{e(this,"SPLTokenProcessor")}static bind(n){return n&&!n.name&&(n.name="SPL Token Program"),new i(n)}fromParsedInstruction=e(n=>n.type?{name:n.type,data:{...n.info}}:null,"fromParsedInstruction");onInitializeMint(n){return this.onInstruction("initializeMint",(t,o)=>{t&&n(t.data,o)}),this}onInitializeAccount(n){return this.onInstruction("initializeAccount",(t,o)=>{t&&n(t.data,o)}),this}onInitializeAccount2(n){return this.onInstruction("initializeAccount2",(t,o)=>{t&&n(t.data,o)}),this}onInitializeAccount3(n){return this.onInstruction("initializeAccount3",(t,o)=>{t&&n(t.data,o)}),this}onInitializeMultisig(n){return this.onInstruction("initializeMultisig",(t,o)=>{t&&n(t.data,o)}),this}onTransfer(n){return this.onInstruction("transfer",(t,o)=>{t&&n(t.data,o)}),this}onApprovend(n){return this.onInstruction("approve",(t,o)=>{t&&n(t.data,o)}),this}onRevoke(n){return this.onInstruction("revoke",(t,o)=>{t&&n(t.data,o)}),this}onSetAuthority(n){return this.onInstruction("setAuthority",(t,o)=>{t&&n(t.data,o)}),this}onMintTo(n){return this.onInstruction("mintTo",(t,o)=>{t&&n(t.data,o)}),this}onBurn(n){return this.onInstruction("burn",(t,o)=>{t&&n(t.data,o)}),this}onCloseAccount(n){return this.onInstruction("closeAccount",(t,o)=>{t&&n(t.data,o)}),this}onFreezeAccount(n){return this.onInstruction("freezeAccount",(t,o)=>{t&&n(t.data,o)}),this}onThawAccount(n){return this.onInstruction("thawAccount",(t,o)=>{t&&n(t.data,o)}),this}onTransferChecked(n){return this.onInstruction("transferChecked",(t,o)=>{t&&n(t.data,o)}),this}onApproveChecked(n){return this.onInstruction("approveChecked",(t,o)=>{t&&n(t.data,o)}),this}onMintToChecked(n){return this.onInstruction("mintToChecked",(t,o)=>{t&&n(t.data,o)}),this}onBurnChecked(n){return this.onInstruction("burnChecked",(t,o)=>{t&&n(t.data,o)}),this}onSyncNative(n){return this.onInstruction("syncNative",(t,o)=>{t&&n(t.data,o)}),this}onGetAccountDataSize(n){return this.onInstruction("getAccountDataSize",(t,o)=>{t&&n(t.data,o)}),this}onInitializeImmutableOwner(n){return this.onInstruction("initializeImmutableOwner",(t,o)=>{t&&n(t.data,o)}),this}onAmountToUiAmount(n){return this.onInstruction("amountToUiAmount",(t,o)=>{t&&n(t.data,o)}),this}onUiAmountToAmount(n){return this.onInstruction("uiAmountToAmount",(t,o)=>{t&&n(t.data,o)}),this}onInitializeMintCloseAuthority(n){return this.onInstruction("initializeMintCloseAuthority",(t,o)=>{t&&n(t.data,o)}),this}onTransferFeeExtension(n){return this.onInstruction("transferFeeExtension",(t,o)=>{t&&n(t.data,o)}),this}onDefaultAccountStateExtension(n){return this.onInstruction("defaultAccountStateExtension",(t,o)=>{t&&n(t.data,o)}),this}onReallocate(n){return this.onInstruction("reallocate",(t,o)=>{t&&n(t.data,o)}),this}onMemoTransferExtension(n){return this.onInstruction("memoTransferExtension",(t,o)=>{t&&n(t.data,o)}),this}onCreateNativeMint(n){return this.onInstruction("createNativeMint",(t,o)=>{t&&n(t.data,o)}),this}};import("node:process").then(i=>i.stdout.write(""));import("node:process").then(i=>i.stdout.write(""));export{r as SPLTokenProcessor};
3
3
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{a,b,c,d,e,f}from"../chunk-D2L7KWZ2.js";import"../chunk-FMZDKD72.js";import"../chunk-JL6D6MPI.js";import"../chunk-SUCYR7EB.js";import"../chunk-IVMOWPFA.js";import"../chunk-CX3O4KA4.js";import"../chunk-RA75ESSD.js";import"../chunk-G5BIPHMS.js";export{f as BorshInstructionCoder,c as SolanaBaseProcessor,e as SolanaBindOptions,a as SolanaContext,d as SolanaPlugin,b as SolanaProcessorState};
2
+ import{a,b,c,d,e,f}from"../chunk-5NXOOGVA.js";import"../chunk-FMZDKD72.js";import"../chunk-CQUL5GH2.js";import"../chunk-SUCYR7EB.js";import"../chunk-IVMOWPFA.js";import"../chunk-VLD3QNSH.js";import"../chunk-RA75ESSD.js";import"../chunk-G5BIPHMS.js";export{f as BorshInstructionCoder,c as SolanaBaseProcessor,e as SolanaBindOptions,a as SolanaContext,d as SolanaPlugin,b as SolanaProcessorState};
3
3
  //# sourceMappingURL=index.js.map