@sentio/sdk-bundle 2.52.1 → 2.52.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) 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/index.js +1 -1
  4. package/lib/aptos/ext/index.js +1 -1
  5. package/lib/aptos/index.js +1 -1
  6. package/lib/{chunk-LS5ONP4K.js → chunk-3634LO26.js} +2 -2
  7. package/lib/{chunk-HU7476GK.js → chunk-44SNVBZO.js} +2 -2
  8. package/lib/chunk-44SNVBZO.js.map +1 -0
  9. package/lib/{chunk-CLSYYTRT.js → chunk-ATMZMMXQ.js} +1 -1
  10. package/lib/{chunk-CLSYYTRT.js.map → chunk-ATMZMMXQ.js.map} +1 -1
  11. package/lib/{chunk-BQ4EQVA4.js → chunk-B5LNOVX3.js} +2 -2
  12. package/lib/{chunk-D65UDVQD.js → chunk-DX3D2XZ3.js} +2 -2
  13. package/lib/{chunk-QLPYMSRX.js → chunk-ETUGBNCT.js} +2 -2
  14. package/lib/chunk-FK3BI3F2.js +3 -0
  15. package/lib/chunk-FK3BI3F2.js.map +1 -0
  16. package/lib/{chunk-YEV4EYDY.js → chunk-IK2PE6IH.js} +2 -2
  17. package/lib/{chunk-NTLEUEZI.js → chunk-JURNVTQE.js} +2 -2
  18. package/lib/{chunk-CCFVCRAB.js → chunk-KASA2EOQ.js} +2 -2
  19. package/lib/{chunk-CDLQI5ZO.js → chunk-KWR5UGTL.js} +2 -2
  20. package/lib/{chunk-K4KEQFTU.js → chunk-NIASZQ5Z.js} +2 -2
  21. package/lib/chunk-OCBJUHGM.js +3 -0
  22. package/lib/chunk-OCBJUHGM.js.map +1 -0
  23. package/lib/{chunk-4F62GJFK.js → chunk-PH74HXF3.js} +2 -2
  24. package/lib/{chunk-HV44MLJG.js → chunk-PRVQK7HO.js} +2 -2
  25. package/lib/{chunk-SR7XAINJ.js → chunk-VEG4HJOH.js} +2 -2
  26. package/lib/{chunk-SR7XAINJ.js.map → chunk-VEG4HJOH.js.map} +1 -1
  27. package/lib/{chunk-FKFODQAR.js → chunk-XJWATGGD.js} +2 -2
  28. package/lib/eth/builtin/eacaggregatorproxy.js +1 -1
  29. package/lib/eth/builtin/erc1155.js +1 -1
  30. package/lib/eth/builtin/erc20.js +1 -1
  31. package/lib/eth/builtin/erc721.js +1 -1
  32. package/lib/eth/builtin/index.js +1 -1
  33. package/lib/eth/builtin/weth9.js +1 -1
  34. package/lib/eth/index.js +1 -1
  35. package/lib/fuel/index.js +1 -1
  36. package/lib/move/index.js +1 -1
  37. package/lib/solana/builtin/index.js +1 -1
  38. package/lib/solana/index.js +1 -1
  39. package/lib/stark/index.js +1 -1
  40. package/lib/sui/builtin/0x1.js +1 -1
  41. package/lib/sui/builtin/0x2.js +1 -1
  42. package/lib/sui/builtin/0x3.js +1 -1
  43. package/lib/sui/builtin/index.js +1 -1
  44. package/lib/sui/ext/index.js +1 -1
  45. package/lib/sui/index.js +1 -1
  46. package/lib/testing/index.js +1 -1
  47. package/lib/utils/index.js +1 -1
  48. package/package.json +2 -2
  49. package/lib/chunk-2QI24JA5.js +0 -3
  50. package/lib/chunk-2QI24JA5.js.map +0 -1
  51. package/lib/chunk-HU7476GK.js.map +0 -1
  52. package/lib/chunk-XVOZ4ULD.js +0 -3
  53. package/lib/chunk-XVOZ4ULD.js.map +0 -1
  54. /package/lib/{chunk-LS5ONP4K.js.map → chunk-3634LO26.js.map} +0 -0
  55. /package/lib/{chunk-BQ4EQVA4.js.map → chunk-B5LNOVX3.js.map} +0 -0
  56. /package/lib/{chunk-D65UDVQD.js.map → chunk-DX3D2XZ3.js.map} +0 -0
  57. /package/lib/{chunk-QLPYMSRX.js.map → chunk-ETUGBNCT.js.map} +0 -0
  58. /package/lib/{chunk-YEV4EYDY.js.map → chunk-IK2PE6IH.js.map} +0 -0
  59. /package/lib/{chunk-NTLEUEZI.js.map → chunk-JURNVTQE.js.map} +0 -0
  60. /package/lib/{chunk-CCFVCRAB.js.map → chunk-KASA2EOQ.js.map} +0 -0
  61. /package/lib/{chunk-CDLQI5ZO.js.map → chunk-KWR5UGTL.js.map} +0 -0
  62. /package/lib/{chunk-K4KEQFTU.js.map → chunk-NIASZQ5Z.js.map} +0 -0
  63. /package/lib/{chunk-4F62GJFK.js.map → chunk-PH74HXF3.js.map} +0 -0
  64. /package/lib/{chunk-HV44MLJG.js.map → chunk-PRVQK7HO.js.map} +0 -0
  65. /package/lib/{chunk-FKFODQAR.js.map → chunk-XJWATGGD.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 at}from"./chunk-2QI24JA5.js";import{$c as et,B as v,Nd as st,Rb as C,Sb as M,Sd as S,U as Q,Ud as K,Yc as J,Zc as Z,_c as tt,ad as ot,cd as rt,rd as nt,sc as X,tc as B,uc as A,vc as Y,wc as N,xc as j}from"./chunk-KFSMJYAT.js";import{a as i,f as H}from"./chunk-G5BIPHMS.js";import{errorString as q,GLOBAL_CONFIG as lt,mergeProcessResults as ct,Plugin as Pt,PluginManager as Tt,USER_PROCESSOR as xt}from"@sentio/runtime";var m=H(nt(),1);import{MapStateStorage as pt}from"@sentio/runtime";var h=class o extends pt{static{i(this,"FuelProcessorState")}static INSTANCE=new o};import("node:process").then(o=>o.stdout.write(""));var W=H(at(),1);import{Endpoints as ht}from"@sentio/runtime";var Ct={MAIN_NET:W.FuelChainId.FUEL_MAINNET,TEST_NET:W.FuelChainId.FUEL_TESTNET};function Ft(o){switch(o){case Ct.TEST_NET:return"https://testnet.fuel.network/v1/graphql"}return"https://mainnet.fuel.network/v1/graphql"}i(Ft,"getRpcEndpoint");function T(o){let t=ht.INSTANCE.chainServer.get(o);return t||(t=Ft(o)),et.create(t)}i(T,"getProvider");import("node:process").then(o=>o.stdout.write(""));var L=class{constructor(t,e,r,s,a){this.args=s;this.logs=a}static{i(this,"FuelCall")}},F=class extends st{constructor(e,r,s,a,n,l){super({});this.chainId=e;this.contractAddress=r;this.contractName=s;this.timestamp=a;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:rt(r)}}},x=class extends F{constructor(e,r,s,a,n,l,u){super(e,s,a,n,l,u);this.chainId=e;this.contract=r;this.contractAddress=s;this.contractName=a;this.timestamp=n;this.transaction=l;this.block=u}static{i(this,"FuelContractContext")}get provider(){return this.contract.provider}};import("node:process").then(o=>o.stdout.write(""));var P={includeFailed:!1};function it(o,t){for(let e of o||[])if(e.type==A.Coin&&e.assetId==t)return e.owner}i(it,"findSenderFromInputs");function R(o,t){let e=M(o.rawPayload),r=o?.status.receipts?.map(J)||[],[s]=new j().decode(e,0),{gasCosts:a,feeParameters:n,txParameters:l,baseAssetId:u}=t.getChain().consensusParameters,g=o.status?.block?.header?.height,{gasPriceFactor:c,gasPerByte:f}=n,{maxInputs:p,maxGasPerTx:I}=l,d={type:o.status?.__typename,...o.status};return{...Z({id:o.id,receipts:r,transaction:s,transactionBytes:e,gqlTransactionStatus:d,gasPerByte:C(f),gasPriceFactor:C(c),maxInputs:p,gasCosts:a,gasPrice:C(o.gasPrice),maxGasPerTx:I,baseAssetId:u}),blockNumber:g,sender:it(s.inputs,u)}}i(R,"decodeFuelTransaction");async function E(o,t,e){let r=M(o.rawPayload),[s]=new j().decode(r,0),a=o?.status.receipts?.map(J)||[],n={type:o.status?.__typename,...o.status},l=n?.block?.header?.height,u=Object.values(t)[0],g=[];a.forEach((p,I)=>{if(p.type===N.LogData||p.type===N.Log)try{let d=new B(u),y=p.type===N.Log?new X("u64").encode(p.val0):p.data,w=p.val1.toString(),[U]=d.decodeLog(y,w);g.push({logId:w,data:U,receiptIndex:I})}catch(d){console.warn("Failed to decode log",d)}});let c=new tt(o.status.transactionId,e,{main:Object.values(t)[0],otherContractsAbis:{}});return c.gqlTransaction={...o,status:n},{...await c.getTransactionSummary(),blockNumber:l,logs:g,sender:it(s.inputs,e.getChain().consensusParameters.baseAssetId)}}i(E,"decodeFuelTransactionWithAbi");import("node:process").then(o=>o.stdout.write(""));var _=H(nt(),1);import{mergeProcessResults as It}from"@sentio/runtime";var k=class o{constructor(t){this.config=t}static{i(this,"FuelProcessor")}callHandlers=[];blockHandlers=[];provider;contract;static bind(t){let e=new o(t);return z(t,e),e}latestGasPrice;async configure(){this.provider=await T(this.config.chainId),this.provider.getLatestGasPrice=async()=>{if(this.latestGasPrice)return C(this.latestGasPrice);let{latestGasPrice:t}=await this.provider.operations.getLatestGasPrice();return this.latestGasPrice=t?.gasPrice,C(t.gasPrice)},this.contract=new ot(this.config.address,this.config.abi,this.provider)}onTransaction(t,e=P){let r={handler:i(async s=>{let a=this.config.abi?{[this.config.address]:this.config.abi}:{},n=await E(s.transaction,a,this.provider),l=new x(this.config.chainId,this.contract,this.config.address,this.config.name??this.config.address,s.timestamp||new Date(0),n,null);return await t(n,l),l.stopAndGetResult()},"handler"),fetchConfig:{filters:[],...e}};return this.callHandlers.push(r),this}onCall(t,e,r=P){let s=new Set(Array.isArray(t)?t:[t]);if(!this.config.abi)throw new Error("ABI must be provided to use onCall");let a=this.config.abi,n={},l=new B(a);for(let g of s)try{let c=l.functions[g],f=C(c.selector,"hex").toString();n[c.name]={function:f,includeFailed:!!r.includeFailed}}catch(c){console.error(c)}let u={handler:i(async g=>{try{let c=g.transaction,f=await E(c,{[this.config.address]:a},this.provider),p=new F(this.config.chainId,this.config.address,this.config.name??this.config.address,g.timestamp||new Date(0),f,null);for(let I of f.operations)for(let d of I.calls||[])if(s.has(d.functionName)){let y=this.contract.functions[d.functionName],w=Object.values(d.argumentsProvided||{}),U=y(...w),mt=new L(U,f,!1,d.argumentsProvided,f.logs);await e(mt,p)}return p.stopAndGetResult()}catch(c){return console.error(c),{gauges:[],counters:[],events:[],exports:[],states:{configUpdated:!1}}}},"handler"),fetchConfig:{filters:Object.values(n)}};return this.callHandlers.push(u),this}onLog(t,e){let r=new Set(Array.isArray(t)?t:[t]),s={handler:i(async a=>{try{let n=a.transaction,l=await E(n,{[this.config.address]:this.config.abi},this.provider),u=[],g=(l.logs||[]).filter(c=>r.has(c.logId));for(let c of g){let f=new x(this.config.chainId,this.contract,this.config.address,this.config.name??this.config.address,a.timestamp||new Date(0),l,null);f.setLogIndex(c.receiptIndex),await e(c,f),u.push(f.stopAndGetResult())}return It(u)}catch(n){return console.error(n),{gauges:[],counters:[],events:[],exports:[],states:{configUpdated:!1}}}},"handler"),logConfig:{logIds:Array.from(r)}};return this.callHandlers.push(s),this}onInterval(t,e,r){e&&e.backfillInterval<e.recentInterval&&(e.backfillInterval=e.recentInterval);let s=this;return this.blockHandlers.push({blockInterval:r,timeIntervalInMinutes:e,handler:i(async function(a){let n=a.block;if(!n)throw new _.ServerError(_.Status.INVALID_ARGUMENT,"Block is empty");let l={id:n.id,height:C(n.height),time:n.time,header:{applicationHash:n.applicationHash,daHeight:C(n.daHeight),eventInboxRoot:n.eventInboxRoot,messageOutboxRoot:n.messageOutboxRoot,prevRoot:n.prevRoot,stateTransitionBytecodeVersion:n.stateTransitionBytecodeVersion,transactionsCount:n.transactionsCount,transactionsRoot:n.transactionsRoot}},u=new x(s.config.chainId,s.contract,s.config.address,s.config.name??s.config.address,a.timestamp||new Date(0),null,l);return await t(l,u),u.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 b(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(b,"getOptionsSignature");function ne(o){let t=b(o);return h.INSTANCE.getValue(t)}i(ne,"getFuelProcessor");function z(o,t){let e=b(o);h.INSTANCE.getOrSetValue(e,t)}i(z,"addFuelProcessor");import("node:process").then(o=>o.stdout.write(""));var O=class o{constructor(t){this.config=t}static{i(this,"FuelAssetProcessor")}callHandlers=[];blockHandlers=[];provider;static bind(t){let e=new o(t),r="assets_"+b({...t,address:"*"});return h.INSTANCE.getOrSetValue(r,e),e}async configure(){this.provider=await T(this.config.chainId)}onTransfer(t,e){let r=[],s=$(t.assetId),a=$(t.from),n=$(t.to);for(let u of s)for(let g of a)for(let c of n)r.push({assetId:u,fromAddress:g,toAddress:c});let l={handler:i(async u=>{let g=u.transaction,c=R(g,this.provider),f={from:[],to:[]};for(let d of c.transaction.inputs||[])d.type==A.Coin&&f.from.push({address:d.owner,assetId:d.assetId,amount:BigInt(d.amount.toString(10))});for(let d of c.transaction.outputs||[])if(d.type==Y.Coin){let y=d.amount.toString(10);f.to.push({address:d.to,amount:BigInt(y),assetId:d.assetId})}let p=f.from[0].assetId||"",I=new F(this.config.chainId,p,this.config.name??"",u.timestamp||new Date(0),c,null);return await e(f,I),I.stopAndGetResult()},"handler"),assetConfig:{filters:r}};return this.callHandlers.push(l),this}};function $(o){return o?Array.isArray(o)?o.length>0?o:[void 0]:[o]:[void 0]}i($,"arrayify");import("node:process").then(o=>o.stdout.write(""));import{mergeProcessResults as bt}from"@sentio/runtime";var D=class o{constructor(t){this.config=t}static{i(this,"FuelGlobalProcessor")}callHandlers=[];blockHandlers=[];provider;static bind(t){let e=new o(t),r="global_"+b({...t,address:K});return h.INSTANCE.getOrSetValue(r,e),e}async configure(){this.provider=await T(this.config.chainId)}onTransaction(t,e=P){let r={handler:i(async s=>{let a;try{a=R(s.transaction,this.provider)}catch(l){return console.error("error decoding transaction",l),bt([])}let n=new F(this.config.chainId,K,this.config.name??"*",s.timestamp||new Date(0),a,null);return await t(a,n),n.stopAndGetResult()},"handler"),fetchConfig:{filters:[],...e}};return this.callHandlers.push(r),this}};import("node:process").then(o=>o.stdout.write(""));var V=class extends Pt{static{i(this,"FuelPlugin")}name="FuelPlugin";handlers={callHandlers:[],blockHandlers:[]};async configure(t){let e={callHandlers:[],blockHandlers:[]};for(let r of h.INSTANCE.getValues()){let s=Q.fromPartial({processorType:xt,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 a of r.callHandlers){let n=e.callHandlers.push(a.handler)-1;if(r instanceof k)if(a.logConfig?.logIds?.length)s.fuelLogConfigs.push({logIds:a.logConfig.logIds,handlerId:n});else{let l={handlerId:n,filters:a.fetchConfig?.filters||[]};s.fuelCallConfigs.push(l)}else if(r instanceof O){let l=a.assetConfig;s.assetConfigs.push({filters:l?.filters||[],handlerId:n})}else if(r instanceof D){let l={handlerId:n,filters:[]};s.fuelCallConfigs.push(l),s.contract.address="*"}}for(let a of r.blockHandlers){let n=e.blockHandlers.push(a.handler)-1;s.intervalConfigs.push({slot:0,slotInterval:a.blockInterval,minutes:0,minutesInterval:a.timeIntervalInMinutes,handlerId:n,fetchConfig:void 0})}t.contractConfigs.push(s)}this.handlers=e}supportedHandlers=[v.FUEL_CALL,v.FUEL_BLOCK];processBinding(t){switch(t.handlerType){case v.FUEL_CALL:return this.processTransaction(t);case v.FUEL_BLOCK:return this.processBlock(t);default:throw new m.ServerError(m.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 m.ServerError(m.Status.INTERNAL,"error starting FuelPlugin: "+q(e))}}stateDiff(t){return S.INSTANCE.getValues().length!==t.templateInstances.length}async processTransaction(t){if(!t.data?.fuelCall?.transaction)throw new m.ServerError(m.Status.INVALID_ARGUMENT,"transaction can't be null");let e=t.data.fuelCall,r=[];for(let s of t.handlerIds){let a=this.handlers.callHandlers[s](e).catch(n=>{throw new m.ServerError(m.Status.INTERNAL,"error processing transaction: "+JSON.stringify(e.transaction)+`
2
+ import{a as at}from"./chunk-FK3BI3F2.js";import{$c as et,B as v,Nd as st,Rb as C,Sb as M,Sd as S,U as Q,Ud as K,Yc as J,Zc as Z,_c as tt,ad as ot,cd as rt,rd as nt,sc as X,tc as B,uc as A,vc as Y,wc as N,xc as j}from"./chunk-KFSMJYAT.js";import{a as i,f as H}from"./chunk-G5BIPHMS.js";import{errorString as q,GLOBAL_CONFIG as lt,mergeProcessResults as ct,Plugin as Pt,PluginManager as Tt,USER_PROCESSOR as xt}from"@sentio/runtime";var m=H(nt(),1);import{MapStateStorage as pt}from"@sentio/runtime";var h=class o extends pt{static{i(this,"FuelProcessorState")}static INSTANCE=new o};import("node:process").then(o=>o.stdout.write(""));var W=H(at(),1);import{Endpoints as ht}from"@sentio/runtime";var Ct={MAIN_NET:W.FuelChainId.FUEL_MAINNET,TEST_NET:W.FuelChainId.FUEL_TESTNET};function Ft(o){switch(o){case Ct.TEST_NET:return"https://testnet.fuel.network/v1/graphql"}return"https://mainnet.fuel.network/v1/graphql"}i(Ft,"getRpcEndpoint");function T(o){let t=ht.INSTANCE.chainServer.get(o);return t||(t=Ft(o)),et.create(t)}i(T,"getProvider");import("node:process").then(o=>o.stdout.write(""));var L=class{constructor(t,e,r,s,a){this.args=s;this.logs=a}static{i(this,"FuelCall")}},F=class extends st{constructor(e,r,s,a,n,l){super({});this.chainId=e;this.contractAddress=r;this.contractName=s;this.timestamp=a;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:rt(r)}}},x=class extends F{constructor(e,r,s,a,n,l,u){super(e,s,a,n,l,u);this.chainId=e;this.contract=r;this.contractAddress=s;this.contractName=a;this.timestamp=n;this.transaction=l;this.block=u}static{i(this,"FuelContractContext")}get provider(){return this.contract.provider}};import("node:process").then(o=>o.stdout.write(""));var P={includeFailed:!1};function it(o,t){for(let e of o||[])if(e.type==A.Coin&&e.assetId==t)return e.owner}i(it,"findSenderFromInputs");function R(o,t){let e=M(o.rawPayload),r=o?.status.receipts?.map(J)||[],[s]=new j().decode(e,0),{gasCosts:a,feeParameters:n,txParameters:l,baseAssetId:u}=t.getChain().consensusParameters,g=o.status?.block?.header?.height,{gasPriceFactor:c,gasPerByte:f}=n,{maxInputs:p,maxGasPerTx:I}=l,d={type:o.status?.__typename,...o.status};return{...Z({id:o.id,receipts:r,transaction:s,transactionBytes:e,gqlTransactionStatus:d,gasPerByte:C(f),gasPriceFactor:C(c),maxInputs:p,gasCosts:a,gasPrice:C(o.gasPrice),maxGasPerTx:I,baseAssetId:u}),blockNumber:g,sender:it(s.inputs,u)}}i(R,"decodeFuelTransaction");async function E(o,t,e){let r=M(o.rawPayload),[s]=new j().decode(r,0),a=o?.status.receipts?.map(J)||[],n={type:o.status?.__typename,...o.status},l=n?.block?.header?.height,u=Object.values(t)[0],g=[];a.forEach((p,I)=>{if(p.type===N.LogData||p.type===N.Log)try{let d=new B(u),y=p.type===N.Log?new X("u64").encode(p.val0):p.data,w=p.val1.toString(),[U]=d.decodeLog(y,w);g.push({logId:w,data:U,receiptIndex:I})}catch(d){console.warn("Failed to decode log",d)}});let c=new tt(o.status.transactionId,e,{main:Object.values(t)[0],otherContractsAbis:{}});return c.gqlTransaction={...o,status:n},{...await c.getTransactionSummary(),blockNumber:l,logs:g,sender:it(s.inputs,e.getChain().consensusParameters.baseAssetId)}}i(E,"decodeFuelTransactionWithAbi");import("node:process").then(o=>o.stdout.write(""));var _=H(nt(),1);import{mergeProcessResults as It}from"@sentio/runtime";var k=class o{constructor(t){this.config=t}static{i(this,"FuelProcessor")}callHandlers=[];blockHandlers=[];provider;contract;static bind(t){let e=new o(t);return z(t,e),e}latestGasPrice;async configure(){this.provider=await T(this.config.chainId),this.provider.getLatestGasPrice=async()=>{if(this.latestGasPrice)return C(this.latestGasPrice);let{latestGasPrice:t}=await this.provider.operations.getLatestGasPrice();return this.latestGasPrice=t?.gasPrice,C(t.gasPrice)},this.contract=new ot(this.config.address,this.config.abi,this.provider)}onTransaction(t,e=P){let r={handler:i(async s=>{let a=this.config.abi?{[this.config.address]:this.config.abi}:{},n=await E(s.transaction,a,this.provider),l=new x(this.config.chainId,this.contract,this.config.address,this.config.name??this.config.address,s.timestamp||new Date(0),n,null);return await t(n,l),l.stopAndGetResult()},"handler"),fetchConfig:{filters:[],...e}};return this.callHandlers.push(r),this}onCall(t,e,r=P){let s=new Set(Array.isArray(t)?t:[t]);if(!this.config.abi)throw new Error("ABI must be provided to use onCall");let a=this.config.abi,n={},l=new B(a);for(let g of s)try{let c=l.functions[g],f=C(c.selector,"hex").toString();n[c.name]={function:f,includeFailed:!!r.includeFailed}}catch(c){console.error(c)}let u={handler:i(async g=>{try{let c=g.transaction,f=await E(c,{[this.config.address]:a},this.provider),p=new F(this.config.chainId,this.config.address,this.config.name??this.config.address,g.timestamp||new Date(0),f,null);for(let I of f.operations)for(let d of I.calls||[])if(s.has(d.functionName)){let y=this.contract.functions[d.functionName],w=Object.values(d.argumentsProvided||{}),U=y(...w),mt=new L(U,f,!1,d.argumentsProvided,f.logs);await e(mt,p)}return p.stopAndGetResult()}catch(c){return console.error(c),{gauges:[],counters:[],events:[],exports:[],states:{configUpdated:!1}}}},"handler"),fetchConfig:{filters:Object.values(n)}};return this.callHandlers.push(u),this}onLog(t,e){let r=new Set(Array.isArray(t)?t:[t]),s={handler:i(async a=>{try{let n=a.transaction,l=await E(n,{[this.config.address]:this.config.abi},this.provider),u=[],g=(l.logs||[]).filter(c=>r.has(c.logId));for(let c of g){let f=new x(this.config.chainId,this.contract,this.config.address,this.config.name??this.config.address,a.timestamp||new Date(0),l,null);f.setLogIndex(c.receiptIndex),await e(c,f),u.push(f.stopAndGetResult())}return It(u)}catch(n){return console.error(n),{gauges:[],counters:[],events:[],exports:[],states:{configUpdated:!1}}}},"handler"),logConfig:{logIds:Array.from(r)}};return this.callHandlers.push(s),this}onInterval(t,e,r){e&&e.backfillInterval<e.recentInterval&&(e.backfillInterval=e.recentInterval);let s=this;return this.blockHandlers.push({blockInterval:r,timeIntervalInMinutes:e,handler:i(async function(a){let n=a.block;if(!n)throw new _.ServerError(_.Status.INVALID_ARGUMENT,"Block is empty");let l={id:n.id,height:C(n.height),time:n.time,header:{applicationHash:n.applicationHash,daHeight:C(n.daHeight),eventInboxRoot:n.eventInboxRoot,messageOutboxRoot:n.messageOutboxRoot,prevRoot:n.prevRoot,stateTransitionBytecodeVersion:n.stateTransitionBytecodeVersion,transactionsCount:n.transactionsCount,transactionsRoot:n.transactionsRoot}},u=new x(s.config.chainId,s.contract,s.config.address,s.config.name??s.config.address,a.timestamp||new Date(0),null,l);return await t(l,u),u.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 b(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(b,"getOptionsSignature");function ne(o){let t=b(o);return h.INSTANCE.getValue(t)}i(ne,"getFuelProcessor");function z(o,t){let e=b(o);h.INSTANCE.getOrSetValue(e,t)}i(z,"addFuelProcessor");import("node:process").then(o=>o.stdout.write(""));var O=class o{constructor(t){this.config=t}static{i(this,"FuelAssetProcessor")}callHandlers=[];blockHandlers=[];provider;static bind(t){let e=new o(t),r="assets_"+b({...t,address:"*"});return h.INSTANCE.getOrSetValue(r,e),e}async configure(){this.provider=await T(this.config.chainId)}onTransfer(t,e){let r=[],s=$(t.assetId),a=$(t.from),n=$(t.to);for(let u of s)for(let g of a)for(let c of n)r.push({assetId:u,fromAddress:g,toAddress:c});let l={handler:i(async u=>{let g=u.transaction,c=R(g,this.provider),f={from:[],to:[]};for(let d of c.transaction.inputs||[])d.type==A.Coin&&f.from.push({address:d.owner,assetId:d.assetId,amount:BigInt(d.amount.toString(10))});for(let d of c.transaction.outputs||[])if(d.type==Y.Coin){let y=d.amount.toString(10);f.to.push({address:d.to,amount:BigInt(y),assetId:d.assetId})}let p=f.from[0].assetId||"",I=new F(this.config.chainId,p,this.config.name??"",u.timestamp||new Date(0),c,null);return await e(f,I),I.stopAndGetResult()},"handler"),assetConfig:{filters:r}};return this.callHandlers.push(l),this}};function $(o){return o?Array.isArray(o)?o.length>0?o:[void 0]:[o]:[void 0]}i($,"arrayify");import("node:process").then(o=>o.stdout.write(""));import{mergeProcessResults as bt}from"@sentio/runtime";var D=class o{constructor(t){this.config=t}static{i(this,"FuelGlobalProcessor")}callHandlers=[];blockHandlers=[];provider;static bind(t){let e=new o(t),r="global_"+b({...t,address:K});return h.INSTANCE.getOrSetValue(r,e),e}async configure(){this.provider=await T(this.config.chainId)}onTransaction(t,e=P){let r={handler:i(async s=>{let a;try{a=R(s.transaction,this.provider)}catch(l){return console.error("error decoding transaction",l),bt([])}let n=new F(this.config.chainId,K,this.config.name??"*",s.timestamp||new Date(0),a,null);return await t(a,n),n.stopAndGetResult()},"handler"),fetchConfig:{filters:[],...e}};return this.callHandlers.push(r),this}};import("node:process").then(o=>o.stdout.write(""));var V=class extends Pt{static{i(this,"FuelPlugin")}name="FuelPlugin";handlers={callHandlers:[],blockHandlers:[]};async configure(t){let e={callHandlers:[],blockHandlers:[]};for(let r of h.INSTANCE.getValues()){let s=Q.fromPartial({processorType:xt,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 a of r.callHandlers){let n=e.callHandlers.push(a.handler)-1;if(r instanceof k)if(a.logConfig?.logIds?.length)s.fuelLogConfigs.push({logIds:a.logConfig.logIds,handlerId:n});else{let l={handlerId:n,filters:a.fetchConfig?.filters||[]};s.fuelCallConfigs.push(l)}else if(r instanceof O){let l=a.assetConfig;s.assetConfigs.push({filters:l?.filters||[],handlerId:n})}else if(r instanceof D){let l={handlerId:n,filters:[]};s.fuelCallConfigs.push(l),s.contract.address="*"}}for(let a of r.blockHandlers){let n=e.blockHandlers.push(a.handler)-1;s.intervalConfigs.push({slot:0,slotInterval:a.blockInterval,minutes:0,minutesInterval:a.timeIntervalInMinutes,handlerId:n,fetchConfig:void 0})}t.contractConfigs.push(s)}this.handlers=e}supportedHandlers=[v.FUEL_CALL,v.FUEL_BLOCK];processBinding(t){switch(t.handlerType){case v.FUEL_CALL:return this.processTransaction(t);case v.FUEL_BLOCK:return this.processBlock(t);default:throw new m.ServerError(m.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 m.ServerError(m.Status.INTERNAL,"error starting FuelPlugin: "+q(e))}}stateDiff(t){return S.INSTANCE.getValues().length!==t.templateInstances.length}async processTransaction(t){if(!t.data?.fuelCall?.transaction)throw new m.ServerError(m.Status.INVALID_ARGUMENT,"transaction can't be null");let e=t.data.fuelCall,r=[];for(let s of t.handlerIds){let a=this.handlers.callHandlers[s](e).catch(n=>{throw new m.ServerError(m.Status.INTERNAL,"error processing transaction: "+JSON.stringify(e.transaction)+`
3
3
  `+q(n))});lt.execution.sequential&&await a,r.push(a)}return ct(await Promise.all(r))}async processBlock(t){if(!t.data?.fuelBlock?.block)throw new m.ServerError(m.Status.INVALID_ARGUMENT,"Block can't be empty");let e=t.data.fuelBlock,r=[];for(let s of t.handlerIds){let a=this.handlers.blockHandlers[s](e).catch(n=>{throw console.error("error processing block: ",n),new m.ServerError(m.Status.INTERNAL,"error processing block: "+e.block?.height+`
4
4
  `+q(n))});lt.execution.sequential&&await a,r.push(a)}return ct(await Promise.all(r))}};Tt.INSTANCE.register(new V);import("node:process").then(o=>o.stdout.write(""));import{ListStateStorage as kt}from"@sentio/runtime";var G=class o extends kt{static{i(this,"FuelProcessorTemplateProcessorState")}static INSTANCE=new o},dt=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=b({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 s=this.bindInternal({...t,chainId:e.chainId});for(let n of this.logHandlers)s.onLog(n.logIdFilter,n.handler);for(let n of this.blockHandlers)s.onInterval(n.handler,n.timeIntervalInMinutes,n.blockInterval);for(let n of this.transactionHandlers)s.onTransaction(n.handler);let a={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:{}};S.INSTANCE.addValue(a),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=P){return this.transactionHandlers.push({handler:t,fetchConfig:e}),this}};import("node:process").then(o=>o.stdout.write(""));var gt=H(at(),1);var ut=class extends k{static{i(this,"FuelAbstractProcessor")}constructor(t,e){e||(e={chainId:gt.FuelChainId.FUEL_MAINNET,address:"*"}),super({...e,abi:t}),z(e,this)}},ft=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,Ct as b,Ft as c,T as d,L as e,F as f,x as g,P as h,R as i,E as j,k,b as l,ne as m,z as n,O as o,D as p,V as q,G as r,dt as s,ut as t,ft as u};
5
- //# sourceMappingURL=chunk-4F62GJFK.js.map
5
+ //# sourceMappingURL=chunk-PH74HXF3.js.map
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{B as f,C as p,U as O,V as R,W as h,e as m,f as b,i as s,o as i,t as T,w,x as P,y as v,z as y}from"./chunk-QLPYMSRX.js";import{a as l,e as k}from"./chunk-G5BIPHMS.js";var j={};k(j,{EACAggregatorProxyBoundContractView:()=>C,EACAggregatorProxyContractView:()=>x,EACAggregatorProxyProcessor:()=>u,EACAggregatorProxyProcessorTemplate:()=>A,EACAggregatorProxy__factory:()=>p,getEACAggregatorProxyContract:()=>d,getEACAggregatorProxyContractOnContext:()=>D,mockAnswerUpdatedLog:()=>I,mockNewRoundLog:()=>F,mockOwnershipTransferRequestedLog:()=>N,mockOwnershipTransferredLog:()=>B});var g=p.connect("0x0",R),x=class extends m{static{l(this,"EACAggregatorProxyContractView")}constructor(t){super(t),this.callStatic.contract=t}async accessController(t,e,r){try{return await this.contract.getFunction("accessController()")(t||{})}catch(a){let n=new Error().stack;throw s(a,void 0,n)}}async aggregator(t,e,r){try{return await this.contract.getFunction("aggregator()")(t||{})}catch(a){let n=new Error().stack;throw s(a,void 0,n)}}async decimals(t,e,r){try{return await this.contract.getFunction("decimals()")(t||{})}catch(a){let n=new Error().stack;throw s(a,void 0,n)}}async description(t,e,r){try{return await this.contract.getFunction("description()")(t||{})}catch(a){let n=new Error().stack;throw s(a,void 0,n)}}async getAnswer(t,e,r,a){try{return await this.contract.getFunction("getAnswer(uint256)")(t,e||{})}catch(n){let c=new Error().stack;throw s(n,void 0,c)}}async getRoundData(t,e,r,a){try{return await this.contract.getFunction("getRoundData(uint80)")(t,e||{})}catch(n){let c=new Error().stack;throw s(n,void 0,c)}}async getTimestamp(t,e,r,a){try{return await this.contract.getFunction("getTimestamp(uint256)")(t,e||{})}catch(n){let c=new Error().stack;throw s(n,void 0,c)}}async latestAnswer(t,e,r){try{return await this.contract.getFunction("latestAnswer()")(t||{})}catch(a){let n=new Error().stack;throw s(a,void 0,n)}}async latestRound(t,e,r){try{return await this.contract.getFunction("latestRound()")(t||{})}catch(a){let n=new Error().stack;throw s(a,void 0,n)}}async latestRoundData(t,e,r){try{return await this.contract.getFunction("latestRoundData()")(t||{})}catch(a){let n=new Error().stack;throw s(a,void 0,n)}}async latestTimestamp(t,e,r){try{return await this.contract.getFunction("latestTimestamp()")(t||{})}catch(a){let n=new Error().stack;throw s(a,void 0,n)}}async owner(t,e,r){try{return await this.contract.getFunction("owner()")(t||{})}catch(a){let n=new Error().stack;throw s(a,void 0,n)}}async phaseAggregators(t,e,r,a){try{return await this.contract.getFunction("phaseAggregators(uint16)")(t,e||{})}catch(n){let c=new Error().stack;throw s(n,void 0,c)}}async phaseId(t,e,r){try{return await this.contract.getFunction("phaseId()")(t||{})}catch(a){let n=new Error().stack;throw s(a,void 0,n)}}async proposedAggregator(t,e,r){try{return await this.contract.getFunction("proposedAggregator()")(t||{})}catch(a){let n=new Error().stack;throw s(a,void 0,n)}}async proposedGetRoundData(t,e,r,a){try{return await this.contract.getFunction("proposedGetRoundData(uint80)")(t,e||{})}catch(n){let c=new Error().stack;throw s(n,void 0,c)}}async proposedLatestRoundData(t,e,r){try{return await this.contract.getFunction("proposedLatestRoundData()")(t||{})}catch(a){let n=new Error().stack;throw s(a,void 0,n)}}async version(t,e,r){try{return await this.contract.getFunction("version()")(t||{})}catch(a){let n=new Error().stack;throw s(a,void 0,n)}}callStatic={contract:this.contract,async acceptOwnership(t,e,r){try{return await this.contract.getFunction("acceptOwnership()").staticCall(t||{})}catch(a){let n=new Error().stack;throw s(a,void 0,n)}},async confirmAggregator(t,e,r,a){try{return await this.contract.getFunction("confirmAggregator(address)").staticCall(t,e||{})}catch(n){let c=new Error().stack;throw s(n,void 0,c)}},async proposeAggregator(t,e,r,a){try{return await this.contract.getFunction("proposeAggregator(address)").staticCall(t,e||{})}catch(n){let c=new Error().stack;throw s(n,void 0,c)}},async setController(t,e,r,a){try{return await this.contract.getFunction("setController(address)").staticCall(t,e||{})}catch(n){let c=new Error().stack;throw s(n,void 0,c)}},async transferOwnership(t,e,r,a){try{return await this.contract.getFunction("transferOwnership(address)").staticCall(t,e||{})}catch(n){let c=new Error().stack;throw s(n,void 0,c)}}};encodeCall={acceptOwnership(t){return i(t,"acceptOwnership","function acceptOwnership()",[])},accessController(t){return i(t,"accessController","function accessController()",[])},aggregator(t){return i(t,"aggregator","function aggregator()",[])},confirmAggregator(t,e){return i(e,"confirmAggregator","function confirmAggregator(address)",[t])},decimals(t){return i(t,"decimals","function decimals()",[])},description(t){return i(t,"description","function description()",[])},getAnswer(t,e){return i(e,"getAnswer","function getAnswer(uint256)",[t])},getRoundData(t,e){return i(e,"getRoundData","function getRoundData(uint80)",[t])},getTimestamp(t,e){return i(e,"getTimestamp","function getTimestamp(uint256)",[t])},latestAnswer(t){return i(t,"latestAnswer","function latestAnswer()",[])},latestRound(t){return i(t,"latestRound","function latestRound()",[])},latestRoundData(t){return i(t,"latestRoundData","function latestRoundData()",[])},latestTimestamp(t){return i(t,"latestTimestamp","function latestTimestamp()",[])},owner(t){return i(t,"owner","function owner()",[])},phaseAggregators(t,e){return i(e,"phaseAggregators","function phaseAggregators(uint16)",[t])},phaseId(t){return i(t,"phaseId","function phaseId()",[])},proposeAggregator(t,e){return i(e,"proposeAggregator","function proposeAggregator(address)",[t])},proposedAggregator(t){return i(t,"proposedAggregator","function proposedAggregator()",[])},proposedGetRoundData(t,e){return i(e,"proposedGetRoundData","function proposedGetRoundData(uint80)",[t])},proposedLatestRoundData(t){return i(t,"proposedLatestRoundData","function proposedLatestRoundData()",[])},setController(t,e){return i(e,"setController","function setController(address)",[t])},transferOwnership(t,e){return i(e,"transferOwnership","function transferOwnership(address)",[t])},version(t){return i(t,"version","function version()",[])}}},C=class extends b{static{l(this,"EACAggregatorProxyBoundContractView")}async accessController(t){return await this.view.accessController({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async aggregator(t){return await this.view.aggregator({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async decimals(t){return await this.view.decimals({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async description(t){return await this.view.description({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async getAnswer(t,e){return await this.view.getAnswer(t,{blockTag:this.context.blockNumber,...e},this.context.preparedData,this.context.getEthCallContext())}async getRoundData(t,e){return await this.view.getRoundData(t,{blockTag:this.context.blockNumber,...e},this.context.preparedData,this.context.getEthCallContext())}async getTimestamp(t,e){return await this.view.getTimestamp(t,{blockTag:this.context.blockNumber,...e},this.context.preparedData,this.context.getEthCallContext())}async latestAnswer(t){return await this.view.latestAnswer({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async latestRound(t){return await this.view.latestRound({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async latestRoundData(t){return await this.view.latestRoundData({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async latestTimestamp(t){return await this.view.latestTimestamp({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async owner(t){return await this.view.owner({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async phaseAggregators(t,e){return await this.view.phaseAggregators(t,{blockTag:this.context.blockNumber,...e},this.context.preparedData,this.context.getEthCallContext())}async phaseId(t){return await this.view.phaseId({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async proposedAggregator(t){return await this.view.proposedAggregator({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async proposedGetRoundData(t,e){return await this.view.proposedGetRoundData(t,{blockTag:this.context.blockNumber,...e},this.context.preparedData,this.context.getEthCallContext())}async proposedLatestRoundData(t){return await this.view.proposedLatestRoundData({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async version(t){return await this.view.version({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}callStatic={view:this.view,context:this.context,async acceptOwnership(t){return await this.view.callStatic.acceptOwnership({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())},async confirmAggregator(t,e){return await this.view.callStatic.confirmAggregator(t,{blockTag:this.context.blockNumber,...e},this.context.preparedData,this.context.getEthCallContext())},async proposeAggregator(t,e){return await this.view.callStatic.proposeAggregator(t,{blockTag:this.context.blockNumber,...e},this.context.preparedData,this.context.getEthCallContext())},async setController(t,e){return await this.view.callStatic.setController(t,{blockTag:this.context.blockNumber,...e},this.context.preparedData,this.context.getEthCallContext())},async transferOwnership(t,e){return await this.view.callStatic.transferOwnership(t,{blockTag:this.context.blockNumber,...e},this.context.preparedData,this.context.getEthCallContext())}};encodeCall={view:this.view,context:this.context,acceptOwnership(t){return this.view.encodeCall.acceptOwnership({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},accessController(t){return this.view.encodeCall.accessController({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},aggregator(t){return this.view.encodeCall.aggregator({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},confirmAggregator(t,e){return this.view.encodeCall.confirmAggregator(t,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(e)})},decimals(t){return this.view.encodeCall.decimals({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},description(t){return this.view.encodeCall.description({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},getAnswer(t,e){return this.view.encodeCall.getAnswer(t,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(e)})},getRoundData(t,e){return this.view.encodeCall.getRoundData(t,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(e)})},getTimestamp(t,e){return this.view.encodeCall.getTimestamp(t,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(e)})},latestAnswer(t){return this.view.encodeCall.latestAnswer({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},latestRound(t){return this.view.encodeCall.latestRound({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},latestRoundData(t){return this.view.encodeCall.latestRoundData({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},latestTimestamp(t){return this.view.encodeCall.latestTimestamp({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},owner(t){return this.view.encodeCall.owner({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},phaseAggregators(t,e){return this.view.encodeCall.phaseAggregators(t,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(e)})},phaseId(t){return this.view.encodeCall.phaseId({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},proposeAggregator(t,e){return this.view.encodeCall.proposeAggregator(t,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(e)})},proposedAggregator(t){return this.view.encodeCall.proposedAggregator({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},proposedGetRoundData(t,e){return this.view.encodeCall.proposedGetRoundData(t,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(e)})},proposedLatestRoundData(t){return this.view.encodeCall.proposedLatestRoundData({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},setController(t,e){return this.view.encodeCall.setController(t,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(e)})},transferOwnership(t,e){return this.view.encodeCall.transferOwnership(t,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(e)})},version(t){return this.view.encodeCall.version({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})}}},u=class o extends T{static{l(this,"EACAggregatorProxyProcessor")}onEventAnswerUpdated(t,e,r,a){return e||(e=g.filters["AnswerUpdated(int256,uint256,uint256)"](null,null,null)),super.onEthEvent(t,e,r,a)}onEventNewRound(t,e,r,a){return e||(e=g.filters["NewRound(uint256,address,uint256)"](null,null,null)),super.onEthEvent(t,e,r,a)}onEventOwnershipTransferRequested(t,e,r,a){return e||(e=g.filters["OwnershipTransferRequested(address,address)"](null,null)),super.onEthEvent(t,e,r,a)}onEventOwnershipTransferred(t,e,r,a){return e||(e=g.filters["OwnershipTransferred(address,address)"](null,null)),super.onEthEvent(t,e,r,a)}onCallAcceptOwnership(t,e,r){return super.onEthTrace("0x79ba5097",t,e,r)}onCallAccessController(t,e,r){return super.onEthTrace("0xbc43cbaf",t,e,r)}onCallAggregator(t,e,r){return super.onEthTrace("0x245a7bfc",t,e,r)}onCallConfirmAggregator(t,e,r){return super.onEthTrace("0xa928c096",t,e,r)}onCallDecimals(t,e,r){return super.onEthTrace("0x313ce567",t,e,r)}onCallDescription(t,e,r){return super.onEthTrace("0x7284e416",t,e,r)}onCallGetAnswer(t,e,r){return super.onEthTrace("0xb5ab58dc",t,e,r)}onCallGetRoundData(t,e,r){return super.onEthTrace("0x9a6fc8f5",t,e,r)}onCallGetTimestamp(t,e,r){return super.onEthTrace("0xb633620c",t,e,r)}onCallLatestAnswer(t,e,r){return super.onEthTrace("0x50d25bcd",t,e,r)}onCallLatestRound(t,e,r){return super.onEthTrace("0x668a0f02",t,e,r)}onCallLatestRoundData(t,e,r){return super.onEthTrace("0xfeaf968c",t,e,r)}onCallLatestTimestamp(t,e,r){return super.onEthTrace("0x8205bf6a",t,e,r)}onCallOwner(t,e,r){return super.onEthTrace("0x8da5cb5b",t,e,r)}onCallPhaseAggregators(t,e,r){return super.onEthTrace("0xc1597304",t,e,r)}onCallPhaseId(t,e,r){return super.onEthTrace("0x58303b10",t,e,r)}onCallProposeAggregator(t,e,r){return super.onEthTrace("0xf8a2abd3",t,e,r)}onCallProposedAggregator(t,e,r){return super.onEthTrace("0xe8c4be30",t,e,r)}onCallProposedGetRoundData(t,e,r){return super.onEthTrace("0x6001ac53",t,e,r)}onCallProposedLatestRoundData(t,e,r){return super.onEthTrace("0x8f6b4d91",t,e,r)}onCallSetController(t,e,r){return super.onEthTrace("0x92eefe9b",t,e,r)}onCallTransferOwnership(t,e,r){return super.onEthTrace("0xf2fde38b",t,e,r)}onCallVersion(t,e,r){return super.onEthTrace("0x54fd4d50",t,e,r)}static filters={AnswerUpdated(t,e,r){return g.filters["AnswerUpdated(int256,uint256,uint256)"](t,e,r)},NewRound(t,e,r){return g.filters["NewRound(uint256,address,uint256)"](t,e,r)},OwnershipTransferRequested(t,e){return g.filters["OwnershipTransferRequested(address,address)"](t,e)},OwnershipTransferred(t,e){return g.filters["OwnershipTransferred(address,address)"](t,e)}};CreateBoundContractView(){let t=d(this.config.network,this.config.address);return new C(this.config.address,t)}static bind(t){t.name||(t.name="EACAggregatorProxy");let e=w(t);return e||(e=new o(t),P(t,e)),e}},A=class extends f{static{l(this,"EACAggregatorProxyProcessorTemplate")}bindInternal(t){t.name||(t.name="EACAggregatorProxy");let e=w(t);return e||(e=new u(t),P(t,e)),e}onEventAnswerUpdated(t,e,r,a){return e||(e=g.filters["AnswerUpdated(int256,uint256,uint256)"](null,null,null)),super.onEthEvent(t,e,r,a)}onEventNewRound(t,e,r,a){return e||(e=g.filters["NewRound(uint256,address,uint256)"](null,null,null)),super.onEthEvent(t,e,r,a)}onEventOwnershipTransferRequested(t,e,r,a){return e||(e=g.filters["OwnershipTransferRequested(address,address)"](null,null)),super.onEthEvent(t,e,r,a)}onEventOwnershipTransferred(t,e,r,a){return e||(e=g.filters["OwnershipTransferred(address,address)"](null,null)),super.onEthEvent(t,e,r,a)}};function d(o,t){let e=v("EACAggregatorProxy",t,o);if(!e){let r=p.connect(t,O(o));e=new x(r),y("EACAggregatorProxy",t,o,e)}return e}l(d,"getEACAggregatorProxyContract");function D(o,t){let e=d(o.getChainId(),t),r=new C(t,e);return r.context=o,r.callStatic&&(r.callStatic.context=o),r}l(D,"getEACAggregatorProxyContractOnContext");import("node:process").then(o=>o.stdout.write(""));var E={blockHash:"0x0000000000000000000000000000000000000000000000000000000000000000",blockNumber:0,logIndex:0,removed:!1,transactionHash:"0x0000000000000000000000000000000000000000000000000000000000000000",transactionIndex:0};function I(o,t){let r=d(h.EthChainId.ETHEREUM,o).rawContract.interface.encodeEventLog("AnswerUpdated(int256,uint256,uint256)",[t.current,t.roundId,t.updatedAt]);return{...E,index:0,address:o,data:r.data,topics:r.topics}}l(I,"mockAnswerUpdatedLog");function F(o,t){let r=d(h.EthChainId.ETHEREUM,o).rawContract.interface.encodeEventLog("NewRound(uint256,address,uint256)",[t.roundId,t.startedBy,t.startedAt]);return{...E,index:0,address:o,data:r.data,topics:r.topics}}l(F,"mockNewRoundLog");function N(o,t){let r=d(h.EthChainId.ETHEREUM,o).rawContract.interface.encodeEventLog("OwnershipTransferRequested(address,address)",[t.from,t.to]);return{...E,index:0,address:o,data:r.data,topics:r.topics}}l(N,"mockOwnershipTransferRequestedLog");function B(o,t){let r=d(h.EthChainId.ETHEREUM,o).rawContract.interface.encodeEventLog("OwnershipTransferred(address,address)",[t.from,t.to]);return{...E,index:0,address:o,data:r.data,topics:r.topics}}l(B,"mockOwnershipTransferredLog");import("node:process").then(o=>o.stdout.write(""));import("node:process").then(o=>o.stdout.write(""));import("node:process").then(o=>o.stdout.write(""));export{x as a,C as b,u as c,A as d,d as e,D as f,I as g,F as h,N as i,B as j,j as k};
3
- //# sourceMappingURL=chunk-HV44MLJG.js.map
2
+ import{B as f,C as p,U as O,V as R,W as h,e as m,f as b,i as s,o as i,t as T,w,x as P,y as v,z as y}from"./chunk-ETUGBNCT.js";import{a as l,e as k}from"./chunk-G5BIPHMS.js";var j={};k(j,{EACAggregatorProxyBoundContractView:()=>C,EACAggregatorProxyContractView:()=>x,EACAggregatorProxyProcessor:()=>u,EACAggregatorProxyProcessorTemplate:()=>A,EACAggregatorProxy__factory:()=>p,getEACAggregatorProxyContract:()=>d,getEACAggregatorProxyContractOnContext:()=>D,mockAnswerUpdatedLog:()=>I,mockNewRoundLog:()=>F,mockOwnershipTransferRequestedLog:()=>N,mockOwnershipTransferredLog:()=>B});var g=p.connect("0x0",R),x=class extends m{static{l(this,"EACAggregatorProxyContractView")}constructor(t){super(t),this.callStatic.contract=t}async accessController(t,e,r){try{return await this.contract.getFunction("accessController()")(t||{})}catch(a){let n=new Error().stack;throw s(a,void 0,n)}}async aggregator(t,e,r){try{return await this.contract.getFunction("aggregator()")(t||{})}catch(a){let n=new Error().stack;throw s(a,void 0,n)}}async decimals(t,e,r){try{return await this.contract.getFunction("decimals()")(t||{})}catch(a){let n=new Error().stack;throw s(a,void 0,n)}}async description(t,e,r){try{return await this.contract.getFunction("description()")(t||{})}catch(a){let n=new Error().stack;throw s(a,void 0,n)}}async getAnswer(t,e,r,a){try{return await this.contract.getFunction("getAnswer(uint256)")(t,e||{})}catch(n){let c=new Error().stack;throw s(n,void 0,c)}}async getRoundData(t,e,r,a){try{return await this.contract.getFunction("getRoundData(uint80)")(t,e||{})}catch(n){let c=new Error().stack;throw s(n,void 0,c)}}async getTimestamp(t,e,r,a){try{return await this.contract.getFunction("getTimestamp(uint256)")(t,e||{})}catch(n){let c=new Error().stack;throw s(n,void 0,c)}}async latestAnswer(t,e,r){try{return await this.contract.getFunction("latestAnswer()")(t||{})}catch(a){let n=new Error().stack;throw s(a,void 0,n)}}async latestRound(t,e,r){try{return await this.contract.getFunction("latestRound()")(t||{})}catch(a){let n=new Error().stack;throw s(a,void 0,n)}}async latestRoundData(t,e,r){try{return await this.contract.getFunction("latestRoundData()")(t||{})}catch(a){let n=new Error().stack;throw s(a,void 0,n)}}async latestTimestamp(t,e,r){try{return await this.contract.getFunction("latestTimestamp()")(t||{})}catch(a){let n=new Error().stack;throw s(a,void 0,n)}}async owner(t,e,r){try{return await this.contract.getFunction("owner()")(t||{})}catch(a){let n=new Error().stack;throw s(a,void 0,n)}}async phaseAggregators(t,e,r,a){try{return await this.contract.getFunction("phaseAggregators(uint16)")(t,e||{})}catch(n){let c=new Error().stack;throw s(n,void 0,c)}}async phaseId(t,e,r){try{return await this.contract.getFunction("phaseId()")(t||{})}catch(a){let n=new Error().stack;throw s(a,void 0,n)}}async proposedAggregator(t,e,r){try{return await this.contract.getFunction("proposedAggregator()")(t||{})}catch(a){let n=new Error().stack;throw s(a,void 0,n)}}async proposedGetRoundData(t,e,r,a){try{return await this.contract.getFunction("proposedGetRoundData(uint80)")(t,e||{})}catch(n){let c=new Error().stack;throw s(n,void 0,c)}}async proposedLatestRoundData(t,e,r){try{return await this.contract.getFunction("proposedLatestRoundData()")(t||{})}catch(a){let n=new Error().stack;throw s(a,void 0,n)}}async version(t,e,r){try{return await this.contract.getFunction("version()")(t||{})}catch(a){let n=new Error().stack;throw s(a,void 0,n)}}callStatic={contract:this.contract,async acceptOwnership(t,e,r){try{return await this.contract.getFunction("acceptOwnership()").staticCall(t||{})}catch(a){let n=new Error().stack;throw s(a,void 0,n)}},async confirmAggregator(t,e,r,a){try{return await this.contract.getFunction("confirmAggregator(address)").staticCall(t,e||{})}catch(n){let c=new Error().stack;throw s(n,void 0,c)}},async proposeAggregator(t,e,r,a){try{return await this.contract.getFunction("proposeAggregator(address)").staticCall(t,e||{})}catch(n){let c=new Error().stack;throw s(n,void 0,c)}},async setController(t,e,r,a){try{return await this.contract.getFunction("setController(address)").staticCall(t,e||{})}catch(n){let c=new Error().stack;throw s(n,void 0,c)}},async transferOwnership(t,e,r,a){try{return await this.contract.getFunction("transferOwnership(address)").staticCall(t,e||{})}catch(n){let c=new Error().stack;throw s(n,void 0,c)}}};encodeCall={acceptOwnership(t){return i(t,"acceptOwnership","function acceptOwnership()",[])},accessController(t){return i(t,"accessController","function accessController()",[])},aggregator(t){return i(t,"aggregator","function aggregator()",[])},confirmAggregator(t,e){return i(e,"confirmAggregator","function confirmAggregator(address)",[t])},decimals(t){return i(t,"decimals","function decimals()",[])},description(t){return i(t,"description","function description()",[])},getAnswer(t,e){return i(e,"getAnswer","function getAnswer(uint256)",[t])},getRoundData(t,e){return i(e,"getRoundData","function getRoundData(uint80)",[t])},getTimestamp(t,e){return i(e,"getTimestamp","function getTimestamp(uint256)",[t])},latestAnswer(t){return i(t,"latestAnswer","function latestAnswer()",[])},latestRound(t){return i(t,"latestRound","function latestRound()",[])},latestRoundData(t){return i(t,"latestRoundData","function latestRoundData()",[])},latestTimestamp(t){return i(t,"latestTimestamp","function latestTimestamp()",[])},owner(t){return i(t,"owner","function owner()",[])},phaseAggregators(t,e){return i(e,"phaseAggregators","function phaseAggregators(uint16)",[t])},phaseId(t){return i(t,"phaseId","function phaseId()",[])},proposeAggregator(t,e){return i(e,"proposeAggregator","function proposeAggregator(address)",[t])},proposedAggregator(t){return i(t,"proposedAggregator","function proposedAggregator()",[])},proposedGetRoundData(t,e){return i(e,"proposedGetRoundData","function proposedGetRoundData(uint80)",[t])},proposedLatestRoundData(t){return i(t,"proposedLatestRoundData","function proposedLatestRoundData()",[])},setController(t,e){return i(e,"setController","function setController(address)",[t])},transferOwnership(t,e){return i(e,"transferOwnership","function transferOwnership(address)",[t])},version(t){return i(t,"version","function version()",[])}}},C=class extends b{static{l(this,"EACAggregatorProxyBoundContractView")}async accessController(t){return await this.view.accessController({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async aggregator(t){return await this.view.aggregator({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async decimals(t){return await this.view.decimals({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async description(t){return await this.view.description({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async getAnswer(t,e){return await this.view.getAnswer(t,{blockTag:this.context.blockNumber,...e},this.context.preparedData,this.context.getEthCallContext())}async getRoundData(t,e){return await this.view.getRoundData(t,{blockTag:this.context.blockNumber,...e},this.context.preparedData,this.context.getEthCallContext())}async getTimestamp(t,e){return await this.view.getTimestamp(t,{blockTag:this.context.blockNumber,...e},this.context.preparedData,this.context.getEthCallContext())}async latestAnswer(t){return await this.view.latestAnswer({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async latestRound(t){return await this.view.latestRound({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async latestRoundData(t){return await this.view.latestRoundData({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async latestTimestamp(t){return await this.view.latestTimestamp({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async owner(t){return await this.view.owner({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async phaseAggregators(t,e){return await this.view.phaseAggregators(t,{blockTag:this.context.blockNumber,...e},this.context.preparedData,this.context.getEthCallContext())}async phaseId(t){return await this.view.phaseId({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async proposedAggregator(t){return await this.view.proposedAggregator({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async proposedGetRoundData(t,e){return await this.view.proposedGetRoundData(t,{blockTag:this.context.blockNumber,...e},this.context.preparedData,this.context.getEthCallContext())}async proposedLatestRoundData(t){return await this.view.proposedLatestRoundData({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async version(t){return await this.view.version({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}callStatic={view:this.view,context:this.context,async acceptOwnership(t){return await this.view.callStatic.acceptOwnership({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())},async confirmAggregator(t,e){return await this.view.callStatic.confirmAggregator(t,{blockTag:this.context.blockNumber,...e},this.context.preparedData,this.context.getEthCallContext())},async proposeAggregator(t,e){return await this.view.callStatic.proposeAggregator(t,{blockTag:this.context.blockNumber,...e},this.context.preparedData,this.context.getEthCallContext())},async setController(t,e){return await this.view.callStatic.setController(t,{blockTag:this.context.blockNumber,...e},this.context.preparedData,this.context.getEthCallContext())},async transferOwnership(t,e){return await this.view.callStatic.transferOwnership(t,{blockTag:this.context.blockNumber,...e},this.context.preparedData,this.context.getEthCallContext())}};encodeCall={view:this.view,context:this.context,acceptOwnership(t){return this.view.encodeCall.acceptOwnership({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},accessController(t){return this.view.encodeCall.accessController({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},aggregator(t){return this.view.encodeCall.aggregator({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},confirmAggregator(t,e){return this.view.encodeCall.confirmAggregator(t,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(e)})},decimals(t){return this.view.encodeCall.decimals({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},description(t){return this.view.encodeCall.description({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},getAnswer(t,e){return this.view.encodeCall.getAnswer(t,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(e)})},getRoundData(t,e){return this.view.encodeCall.getRoundData(t,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(e)})},getTimestamp(t,e){return this.view.encodeCall.getTimestamp(t,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(e)})},latestAnswer(t){return this.view.encodeCall.latestAnswer({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},latestRound(t){return this.view.encodeCall.latestRound({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},latestRoundData(t){return this.view.encodeCall.latestRoundData({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},latestTimestamp(t){return this.view.encodeCall.latestTimestamp({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},owner(t){return this.view.encodeCall.owner({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},phaseAggregators(t,e){return this.view.encodeCall.phaseAggregators(t,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(e)})},phaseId(t){return this.view.encodeCall.phaseId({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},proposeAggregator(t,e){return this.view.encodeCall.proposeAggregator(t,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(e)})},proposedAggregator(t){return this.view.encodeCall.proposedAggregator({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},proposedGetRoundData(t,e){return this.view.encodeCall.proposedGetRoundData(t,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(e)})},proposedLatestRoundData(t){return this.view.encodeCall.proposedLatestRoundData({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},setController(t,e){return this.view.encodeCall.setController(t,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(e)})},transferOwnership(t,e){return this.view.encodeCall.transferOwnership(t,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(e)})},version(t){return this.view.encodeCall.version({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})}}},u=class o extends T{static{l(this,"EACAggregatorProxyProcessor")}onEventAnswerUpdated(t,e,r,a){return e||(e=g.filters["AnswerUpdated(int256,uint256,uint256)"](null,null,null)),super.onEthEvent(t,e,r,a)}onEventNewRound(t,e,r,a){return e||(e=g.filters["NewRound(uint256,address,uint256)"](null,null,null)),super.onEthEvent(t,e,r,a)}onEventOwnershipTransferRequested(t,e,r,a){return e||(e=g.filters["OwnershipTransferRequested(address,address)"](null,null)),super.onEthEvent(t,e,r,a)}onEventOwnershipTransferred(t,e,r,a){return e||(e=g.filters["OwnershipTransferred(address,address)"](null,null)),super.onEthEvent(t,e,r,a)}onCallAcceptOwnership(t,e,r){return super.onEthTrace("0x79ba5097",t,e,r)}onCallAccessController(t,e,r){return super.onEthTrace("0xbc43cbaf",t,e,r)}onCallAggregator(t,e,r){return super.onEthTrace("0x245a7bfc",t,e,r)}onCallConfirmAggregator(t,e,r){return super.onEthTrace("0xa928c096",t,e,r)}onCallDecimals(t,e,r){return super.onEthTrace("0x313ce567",t,e,r)}onCallDescription(t,e,r){return super.onEthTrace("0x7284e416",t,e,r)}onCallGetAnswer(t,e,r){return super.onEthTrace("0xb5ab58dc",t,e,r)}onCallGetRoundData(t,e,r){return super.onEthTrace("0x9a6fc8f5",t,e,r)}onCallGetTimestamp(t,e,r){return super.onEthTrace("0xb633620c",t,e,r)}onCallLatestAnswer(t,e,r){return super.onEthTrace("0x50d25bcd",t,e,r)}onCallLatestRound(t,e,r){return super.onEthTrace("0x668a0f02",t,e,r)}onCallLatestRoundData(t,e,r){return super.onEthTrace("0xfeaf968c",t,e,r)}onCallLatestTimestamp(t,e,r){return super.onEthTrace("0x8205bf6a",t,e,r)}onCallOwner(t,e,r){return super.onEthTrace("0x8da5cb5b",t,e,r)}onCallPhaseAggregators(t,e,r){return super.onEthTrace("0xc1597304",t,e,r)}onCallPhaseId(t,e,r){return super.onEthTrace("0x58303b10",t,e,r)}onCallProposeAggregator(t,e,r){return super.onEthTrace("0xf8a2abd3",t,e,r)}onCallProposedAggregator(t,e,r){return super.onEthTrace("0xe8c4be30",t,e,r)}onCallProposedGetRoundData(t,e,r){return super.onEthTrace("0x6001ac53",t,e,r)}onCallProposedLatestRoundData(t,e,r){return super.onEthTrace("0x8f6b4d91",t,e,r)}onCallSetController(t,e,r){return super.onEthTrace("0x92eefe9b",t,e,r)}onCallTransferOwnership(t,e,r){return super.onEthTrace("0xf2fde38b",t,e,r)}onCallVersion(t,e,r){return super.onEthTrace("0x54fd4d50",t,e,r)}static filters={AnswerUpdated(t,e,r){return g.filters["AnswerUpdated(int256,uint256,uint256)"](t,e,r)},NewRound(t,e,r){return g.filters["NewRound(uint256,address,uint256)"](t,e,r)},OwnershipTransferRequested(t,e){return g.filters["OwnershipTransferRequested(address,address)"](t,e)},OwnershipTransferred(t,e){return g.filters["OwnershipTransferred(address,address)"](t,e)}};CreateBoundContractView(){let t=d(this.config.network,this.config.address);return new C(this.config.address,t)}static bind(t){t.name||(t.name="EACAggregatorProxy");let e=w(t);return e||(e=new o(t),P(t,e)),e}},A=class extends f{static{l(this,"EACAggregatorProxyProcessorTemplate")}bindInternal(t){t.name||(t.name="EACAggregatorProxy");let e=w(t);return e||(e=new u(t),P(t,e)),e}onEventAnswerUpdated(t,e,r,a){return e||(e=g.filters["AnswerUpdated(int256,uint256,uint256)"](null,null,null)),super.onEthEvent(t,e,r,a)}onEventNewRound(t,e,r,a){return e||(e=g.filters["NewRound(uint256,address,uint256)"](null,null,null)),super.onEthEvent(t,e,r,a)}onEventOwnershipTransferRequested(t,e,r,a){return e||(e=g.filters["OwnershipTransferRequested(address,address)"](null,null)),super.onEthEvent(t,e,r,a)}onEventOwnershipTransferred(t,e,r,a){return e||(e=g.filters["OwnershipTransferred(address,address)"](null,null)),super.onEthEvent(t,e,r,a)}};function d(o,t){let e=v("EACAggregatorProxy",t,o);if(!e){let r=p.connect(t,O(o));e=new x(r),y("EACAggregatorProxy",t,o,e)}return e}l(d,"getEACAggregatorProxyContract");function D(o,t){let e=d(o.getChainId(),t),r=new C(t,e);return r.context=o,r.callStatic&&(r.callStatic.context=o),r}l(D,"getEACAggregatorProxyContractOnContext");import("node:process").then(o=>o.stdout.write(""));var E={blockHash:"0x0000000000000000000000000000000000000000000000000000000000000000",blockNumber:0,logIndex:0,removed:!1,transactionHash:"0x0000000000000000000000000000000000000000000000000000000000000000",transactionIndex:0};function I(o,t){let r=d(h.EthChainId.ETHEREUM,o).rawContract.interface.encodeEventLog("AnswerUpdated(int256,uint256,uint256)",[t.current,t.roundId,t.updatedAt]);return{...E,index:0,address:o,data:r.data,topics:r.topics}}l(I,"mockAnswerUpdatedLog");function F(o,t){let r=d(h.EthChainId.ETHEREUM,o).rawContract.interface.encodeEventLog("NewRound(uint256,address,uint256)",[t.roundId,t.startedBy,t.startedAt]);return{...E,index:0,address:o,data:r.data,topics:r.topics}}l(F,"mockNewRoundLog");function N(o,t){let r=d(h.EthChainId.ETHEREUM,o).rawContract.interface.encodeEventLog("OwnershipTransferRequested(address,address)",[t.from,t.to]);return{...E,index:0,address:o,data:r.data,topics:r.topics}}l(N,"mockOwnershipTransferRequestedLog");function B(o,t){let r=d(h.EthChainId.ETHEREUM,o).rawContract.interface.encodeEventLog("OwnershipTransferred(address,address)",[t.from,t.to]);return{...E,index:0,address:o,data:r.data,topics:r.topics}}l(B,"mockOwnershipTransferredLog");import("node:process").then(o=>o.stdout.write(""));import("node:process").then(o=>o.stdout.write(""));import("node:process").then(o=>o.stdout.write(""));export{x as a,C as b,u as c,A as d,d as e,D as f,I as g,F as h,N as i,B as j,j as k};
3
+ //# sourceMappingURL=chunk-PRVQK7HO.js.map