@sentio/sdk-bundle 2.50.1 → 2.50.2-rc.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 (68) 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/btc/index.js +1 -1
  7. package/lib/{chunk-DDBMJIG4.js → chunk-2ZLOG6M7.js} +2 -2
  8. package/lib/{chunk-JS3OLQ4N.js → chunk-4M475LJH.js} +2 -2
  9. package/lib/{chunk-F4DYPLSS.js → chunk-5UED3IMZ.js} +2 -2
  10. package/lib/{chunk-RQRC6JFO.js → chunk-6JQFPDV5.js} +2 -2
  11. package/lib/{chunk-L5L6Z77V.js → chunk-AN265AQX.js} +2 -2
  12. package/lib/{chunk-HLNH3NYZ.js → chunk-GT6HNPDP.js} +2 -2
  13. package/lib/chunk-GUTGNATB.js +32 -0
  14. package/lib/chunk-GUTGNATB.js.map +1 -0
  15. package/lib/{chunk-HWDKW5FG.js → chunk-JK4IK6UV.js} +2 -2
  16. package/lib/{chunk-LI5W4TO6.js → chunk-L2RYMS7L.js} +2 -2
  17. package/lib/{chunk-QCBIDGO3.js → chunk-NSAUV6AB.js} +2 -2
  18. package/lib/{chunk-OMPBG6IS.js → chunk-OYU3JOOI.js} +2 -2
  19. package/lib/{chunk-3AZNSC2K.js → chunk-PNVVX7IL.js} +2 -2
  20. package/lib/{chunk-TUAGKH5K.js → chunk-RASCZBLN.js} +178 -178
  21. package/lib/{chunk-TUAGKH5K.js.map → chunk-RASCZBLN.js.map} +1 -1
  22. package/lib/{chunk-X5L63BMR.js → chunk-SWRIEEO2.js} +2 -2
  23. package/lib/{chunk-LQ2JMF5Z.js → chunk-TB5YQH36.js} +2 -2
  24. package/lib/{chunk-37JW6BLR.js → chunk-V6OJKYVZ.js} +2 -2
  25. package/lib/{chunk-7YR44CBG.js → chunk-VI7J5F7D.js} +2 -2
  26. package/lib/{chunk-MPJRHMKL.js → chunk-WSLRWDNP.js} +2 -2
  27. package/lib/core/index.js +1 -1
  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/index.js +1 -1
  37. package/lib/move/index.js +1 -1
  38. package/lib/solana/builtin/index.js +1 -1
  39. package/lib/solana/index.js +1 -1
  40. package/lib/stark/index.js +1 -1
  41. package/lib/store/index.js +1 -1
  42. package/lib/sui/builtin/0x1.js +1 -1
  43. package/lib/sui/builtin/0x2.js +1 -1
  44. package/lib/sui/builtin/0x3.js +1 -1
  45. package/lib/sui/builtin/index.js +1 -1
  46. package/lib/sui/ext/index.js +1 -1
  47. package/lib/sui/index.js +1 -1
  48. package/lib/testing/index.js +1 -1
  49. package/lib/utils/index.js +1 -1
  50. package/package.json +2 -2
  51. package/lib/chunk-2E4NSWHZ.js +0 -32
  52. package/lib/chunk-2E4NSWHZ.js.map +0 -1
  53. /package/lib/{chunk-DDBMJIG4.js.map → chunk-2ZLOG6M7.js.map} +0 -0
  54. /package/lib/{chunk-JS3OLQ4N.js.map → chunk-4M475LJH.js.map} +0 -0
  55. /package/lib/{chunk-F4DYPLSS.js.map → chunk-5UED3IMZ.js.map} +0 -0
  56. /package/lib/{chunk-RQRC6JFO.js.map → chunk-6JQFPDV5.js.map} +0 -0
  57. /package/lib/{chunk-L5L6Z77V.js.map → chunk-AN265AQX.js.map} +0 -0
  58. /package/lib/{chunk-HLNH3NYZ.js.map → chunk-GT6HNPDP.js.map} +0 -0
  59. /package/lib/{chunk-HWDKW5FG.js.map → chunk-JK4IK6UV.js.map} +0 -0
  60. /package/lib/{chunk-LI5W4TO6.js.map → chunk-L2RYMS7L.js.map} +0 -0
  61. /package/lib/{chunk-QCBIDGO3.js.map → chunk-NSAUV6AB.js.map} +0 -0
  62. /package/lib/{chunk-OMPBG6IS.js.map → chunk-OYU3JOOI.js.map} +0 -0
  63. /package/lib/{chunk-3AZNSC2K.js.map → chunk-PNVVX7IL.js.map} +0 -0
  64. /package/lib/{chunk-X5L63BMR.js.map → chunk-SWRIEEO2.js.map} +0 -0
  65. /package/lib/{chunk-LQ2JMF5Z.js.map → chunk-TB5YQH36.js.map} +0 -0
  66. /package/lib/{chunk-37JW6BLR.js.map → chunk-V6OJKYVZ.js.map} +0 -0
  67. /package/lib/{chunk-7YR44CBG.js.map → chunk-VI7J5F7D.js.map} +0 -0
  68. /package/lib/{chunk-MPJRHMKL.js.map → chunk-WSLRWDNP.js.map} +0 -0
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{B as O,H as u,U as k,V as F,W as C,e as w,f as b,i as s,o as l,t as y,w as T,x as m,y as P,z as W}from"./chunk-2E4NSWHZ.js";import{a as i,e as H}from"./chunk-G5BIPHMS.js";var I={};H(I,{WETH9BoundContractView:()=>E,WETH9ContractView:()=>x,WETH9Processor:()=>g,WETH9ProcessorTemplate:()=>f,WETH9__factory:()=>u,getWETH9Contract:()=>p,getWETH9ContractOnContext:()=>B,mockApprovalLog:()=>S,mockDepositLog:()=>A,mockTransferLog:()=>j,mockWithdrawalLog:()=>N});var c=u.connect("0x0",F),x=class extends w{static{i(this,"WETH9ContractView")}constructor(t){super(t),this.callStatic.contract=t}async name(t,e,r){try{return await this.contract.getFunction("name()")(t||{})}catch(a){let o=new Error().stack;throw s(a,void 0,o)}}async totalSupply(t,e,r){try{return await this.contract.getFunction("totalSupply()")(t||{})}catch(a){let o=new Error().stack;throw s(a,void 0,o)}}async decimals(t,e,r){try{return await this.contract.getFunction("decimals()")(t||{})}catch(a){let o=new Error().stack;throw s(a,void 0,o)}}async balanceOf(t,e,r,a){try{return await this.contract.getFunction("balanceOf(address)")(t,e||{})}catch(o){let d=new Error().stack;throw s(o,void 0,d)}}async symbol(t,e,r){try{return await this.contract.getFunction("symbol()")(t||{})}catch(a){let o=new Error().stack;throw s(a,void 0,o)}}async allowance(t,e,r,a,o){try{return await this.contract.getFunction("allowance(address,address)")(t,e,r||{})}catch(d){let h=new Error().stack;throw s(d,void 0,h)}}callStatic={contract:this.contract,async approve(t,e,r,a,o){try{return await this.contract.getFunction("approve(address,uint256)").staticCall(t,e,r||{})}catch(d){let h=new Error().stack;throw s(d,void 0,h)}},async transferFrom(t,e,r,a,o,d){try{return await this.contract.getFunction("transferFrom(address,address,uint256)").staticCall(t,e,r,a||{})}catch(h){let D=new Error().stack;throw s(h,void 0,D)}},async withdraw(t,e,r,a){try{return await this.contract.getFunction("withdraw(uint256)").staticCall(t,e||{})}catch(o){let d=new Error().stack;throw s(o,void 0,d)}},async transfer(t,e,r,a,o){try{return await this.contract.getFunction("transfer(address,uint256)").staticCall(t,e,r||{})}catch(d){let h=new Error().stack;throw s(d,void 0,h)}},async deposit(t,e,r){try{return await this.contract.getFunction("deposit()").staticCall(t||{})}catch(a){let o=new Error().stack;throw s(a,void 0,o)}}};encodeCall={name(t){return l(t,"name","function name()",[])},approve(t,e,r){return l(r,"approve","function approve(address,uint256)",[t,e])},totalSupply(t){return l(t,"totalSupply","function totalSupply()",[])},transferFrom(t,e,r,a){return l(a,"transferFrom","function transferFrom(address,address,uint256)",[t,e,r])},withdraw(t,e){return l(e,"withdraw","function withdraw(uint256)",[t])},decimals(t){return l(t,"decimals","function decimals()",[])},balanceOf(t,e){return l(e,"balanceOf","function balanceOf(address)",[t])},symbol(t){return l(t,"symbol","function symbol()",[])},transfer(t,e,r){return l(r,"transfer","function transfer(address,uint256)",[t,e])},deposit(t){return l(t,"deposit","function deposit()",[])},allowance(t,e,r){return l(r,"allowance","function allowance(address,address)",[t,e])}}},E=class extends b{static{i(this,"WETH9BoundContractView")}async name(t){return await this.view.name({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async totalSupply(t){return await this.view.totalSupply({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 balanceOf(t,e){return await this.view.balanceOf(t,{blockTag:this.context.blockNumber,...e},this.context.preparedData,this.context.getEthCallContext())}async symbol(t){return await this.view.symbol({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async allowance(t,e,r){return await this.view.allowance(t,e,{blockTag:this.context.blockNumber,...r},this.context.preparedData,this.context.getEthCallContext())}callStatic={view:this.view,context:this.context,async approve(t,e,r){return await this.view.callStatic.approve(t,e,{blockTag:this.context.blockNumber,...r},this.context.preparedData,this.context.getEthCallContext())},async transferFrom(t,e,r,a){return await this.view.callStatic.transferFrom(t,e,r,{blockTag:this.context.blockNumber,...a},this.context.preparedData,this.context.getEthCallContext())},async withdraw(t,e){return await this.view.callStatic.withdraw(t,{blockTag:this.context.blockNumber,...e},this.context.preparedData,this.context.getEthCallContext())},async transfer(t,e,r){return await this.view.callStatic.transfer(t,e,{blockTag:this.context.blockNumber,...r},this.context.preparedData,this.context.getEthCallContext())},async deposit(t){return await this.view.callStatic.deposit({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}};encodeCall={view:this.view,context:this.context,name(t){return this.view.encodeCall.name({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},approve(t,e,r){return this.view.encodeCall.approve(t,e,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(r)})},totalSupply(t){return this.view.encodeCall.totalSupply({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},transferFrom(t,e,r,a){return this.view.encodeCall.transferFrom(t,e,r,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(a)})},withdraw(t,e){return this.view.encodeCall.withdraw(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)})},balanceOf(t,e){return this.view.encodeCall.balanceOf(t,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(e)})},symbol(t){return this.view.encodeCall.symbol({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},transfer(t,e,r){return this.view.encodeCall.transfer(t,e,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(r)})},deposit(t){return this.view.encodeCall.deposit({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},allowance(t,e,r){return this.view.encodeCall.allowance(t,e,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(r)})}}},g=class n extends y{static{i(this,"WETH9Processor")}onEventApproval(t,e,r,a){return e||(e=c.filters["Approval(address,address,uint256)"](null,null,null)),super.onEthEvent(t,e,r,a)}onEventTransfer(t,e,r,a){return e||(e=c.filters["Transfer(address,address,uint256)"](null,null,null)),super.onEthEvent(t,e,r,a)}onEventDeposit(t,e,r,a){return e||(e=c.filters["Deposit(address,uint256)"](null,null)),super.onEthEvent(t,e,r,a)}onEventWithdrawal(t,e,r,a){return e||(e=c.filters["Withdrawal(address,uint256)"](null,null)),super.onEthEvent(t,e,r,a)}onCallName(t,e,r){return super.onEthTrace("0x06fdde03",t,e,r)}onCallApprove(t,e,r){return super.onEthTrace("0x095ea7b3",t,e,r)}onCallTotalSupply(t,e,r){return super.onEthTrace("0x18160ddd",t,e,r)}onCallTransferFrom(t,e,r){return super.onEthTrace("0x23b872dd",t,e,r)}onCallWithdraw(t,e,r){return super.onEthTrace("0x2e1a7d4d",t,e,r)}onCallDecimals(t,e,r){return super.onEthTrace("0x313ce567",t,e,r)}onCallBalanceOf(t,e,r){return super.onEthTrace("0x70a08231",t,e,r)}onCallSymbol(t,e,r){return super.onEthTrace("0x95d89b41",t,e,r)}onCallTransfer(t,e,r){return super.onEthTrace("0xa9059cbb",t,e,r)}onCallDeposit(t,e,r){return super.onEthTrace("0xd0e30db0",t,e,r)}onCallAllowance(t,e,r){return super.onEthTrace("0xdd62ed3e",t,e,r)}static filters={Approval(t,e,r){return c.filters["Approval(address,address,uint256)"](t,e,r)},Transfer(t,e,r){return c.filters["Transfer(address,address,uint256)"](t,e,r)},Deposit(t,e){return c.filters["Deposit(address,uint256)"](t,e)},Withdrawal(t,e){return c.filters["Withdrawal(address,uint256)"](t,e)}};CreateBoundContractView(){let t=p(this.config.network,this.config.address);return new E(this.config.address,t)}static bind(t){t.name||(t.name="WETH9");let e=T(t);return e||(e=new n(t),m(t,e)),e}},f=class extends O{static{i(this,"WETH9ProcessorTemplate")}bindInternal(t){t.name||(t.name="WETH9");let e=T(t);return e||(e=new g(t),m(t,e)),e}onEventApproval(t,e,r,a){return e||(e=c.filters["Approval(address,address,uint256)"](null,null,null)),super.onEthEvent(t,e,r,a)}onEventTransfer(t,e,r,a){return e||(e=c.filters["Transfer(address,address,uint256)"](null,null,null)),super.onEthEvent(t,e,r,a)}onEventDeposit(t,e,r,a){return e||(e=c.filters["Deposit(address,uint256)"](null,null)),super.onEthEvent(t,e,r,a)}onEventWithdrawal(t,e,r,a){return e||(e=c.filters["Withdrawal(address,uint256)"](null,null)),super.onEthEvent(t,e,r,a)}};function p(n,t){let e=P("WETH9",t,n);if(!e){let r=u.connect(t,k(n));e=new x(r),W("WETH9",t,n,e)}return e}i(p,"getWETH9Contract");function B(n,t){let e=p(n.getChainId(),t),r=new E(t,e);return r.context=n,r.callStatic&&(r.callStatic.context=n),r}i(B,"getWETH9ContractOnContext");import("node:process").then(n=>n.stdout.write(""));var v={blockHash:"0x0000000000000000000000000000000000000000000000000000000000000000",blockNumber:0,logIndex:0,removed:!1,transactionHash:"0x0000000000000000000000000000000000000000000000000000000000000000",transactionIndex:0};function S(n,t){let r=p(C.EthChainId.ETHEREUM,n).rawContract.interface.encodeEventLog("Approval(address,address,uint256)",[t.src,t.guy,t.wad]);return{...v,index:0,address:n,data:r.data,topics:r.topics}}i(S,"mockApprovalLog");function j(n,t){let r=p(C.EthChainId.ETHEREUM,n).rawContract.interface.encodeEventLog("Transfer(address,address,uint256)",[t.src,t.dst,t.wad]);return{...v,index:0,address:n,data:r.data,topics:r.topics}}i(j,"mockTransferLog");function A(n,t){let r=p(C.EthChainId.ETHEREUM,n).rawContract.interface.encodeEventLog("Deposit(address,uint256)",[t.dst,t.wad]);return{...v,index:0,address:n,data:r.data,topics:r.topics}}i(A,"mockDepositLog");function N(n,t){let r=p(C.EthChainId.ETHEREUM,n).rawContract.interface.encodeEventLog("Withdrawal(address,uint256)",[t.src,t.wad]);return{...v,index:0,address:n,data:r.data,topics:r.topics}}i(N,"mockWithdrawalLog");import("node:process").then(n=>n.stdout.write(""));import("node:process").then(n=>n.stdout.write(""));import("node:process").then(n=>n.stdout.write(""));export{x as a,E as b,g as c,f as d,p as e,B as f,S as g,j as h,A as i,N as j,I as k};
3
- //# sourceMappingURL=chunk-X5L63BMR.js.map
2
+ import{B as O,H as u,U as k,V as F,W as C,e as w,f as b,i as s,o as l,t as y,w as T,x as m,y as P,z as W}from"./chunk-GUTGNATB.js";import{a as i,e as H}from"./chunk-G5BIPHMS.js";var I={};H(I,{WETH9BoundContractView:()=>E,WETH9ContractView:()=>x,WETH9Processor:()=>g,WETH9ProcessorTemplate:()=>f,WETH9__factory:()=>u,getWETH9Contract:()=>p,getWETH9ContractOnContext:()=>B,mockApprovalLog:()=>S,mockDepositLog:()=>A,mockTransferLog:()=>j,mockWithdrawalLog:()=>N});var c=u.connect("0x0",F),x=class extends w{static{i(this,"WETH9ContractView")}constructor(t){super(t),this.callStatic.contract=t}async name(t,e,r){try{return await this.contract.getFunction("name()")(t||{})}catch(a){let o=new Error().stack;throw s(a,void 0,o)}}async totalSupply(t,e,r){try{return await this.contract.getFunction("totalSupply()")(t||{})}catch(a){let o=new Error().stack;throw s(a,void 0,o)}}async decimals(t,e,r){try{return await this.contract.getFunction("decimals()")(t||{})}catch(a){let o=new Error().stack;throw s(a,void 0,o)}}async balanceOf(t,e,r,a){try{return await this.contract.getFunction("balanceOf(address)")(t,e||{})}catch(o){let d=new Error().stack;throw s(o,void 0,d)}}async symbol(t,e,r){try{return await this.contract.getFunction("symbol()")(t||{})}catch(a){let o=new Error().stack;throw s(a,void 0,o)}}async allowance(t,e,r,a,o){try{return await this.contract.getFunction("allowance(address,address)")(t,e,r||{})}catch(d){let h=new Error().stack;throw s(d,void 0,h)}}callStatic={contract:this.contract,async approve(t,e,r,a,o){try{return await this.contract.getFunction("approve(address,uint256)").staticCall(t,e,r||{})}catch(d){let h=new Error().stack;throw s(d,void 0,h)}},async transferFrom(t,e,r,a,o,d){try{return await this.contract.getFunction("transferFrom(address,address,uint256)").staticCall(t,e,r,a||{})}catch(h){let D=new Error().stack;throw s(h,void 0,D)}},async withdraw(t,e,r,a){try{return await this.contract.getFunction("withdraw(uint256)").staticCall(t,e||{})}catch(o){let d=new Error().stack;throw s(o,void 0,d)}},async transfer(t,e,r,a,o){try{return await this.contract.getFunction("transfer(address,uint256)").staticCall(t,e,r||{})}catch(d){let h=new Error().stack;throw s(d,void 0,h)}},async deposit(t,e,r){try{return await this.contract.getFunction("deposit()").staticCall(t||{})}catch(a){let o=new Error().stack;throw s(a,void 0,o)}}};encodeCall={name(t){return l(t,"name","function name()",[])},approve(t,e,r){return l(r,"approve","function approve(address,uint256)",[t,e])},totalSupply(t){return l(t,"totalSupply","function totalSupply()",[])},transferFrom(t,e,r,a){return l(a,"transferFrom","function transferFrom(address,address,uint256)",[t,e,r])},withdraw(t,e){return l(e,"withdraw","function withdraw(uint256)",[t])},decimals(t){return l(t,"decimals","function decimals()",[])},balanceOf(t,e){return l(e,"balanceOf","function balanceOf(address)",[t])},symbol(t){return l(t,"symbol","function symbol()",[])},transfer(t,e,r){return l(r,"transfer","function transfer(address,uint256)",[t,e])},deposit(t){return l(t,"deposit","function deposit()",[])},allowance(t,e,r){return l(r,"allowance","function allowance(address,address)",[t,e])}}},E=class extends b{static{i(this,"WETH9BoundContractView")}async name(t){return await this.view.name({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async totalSupply(t){return await this.view.totalSupply({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 balanceOf(t,e){return await this.view.balanceOf(t,{blockTag:this.context.blockNumber,...e},this.context.preparedData,this.context.getEthCallContext())}async symbol(t){return await this.view.symbol({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async allowance(t,e,r){return await this.view.allowance(t,e,{blockTag:this.context.blockNumber,...r},this.context.preparedData,this.context.getEthCallContext())}callStatic={view:this.view,context:this.context,async approve(t,e,r){return await this.view.callStatic.approve(t,e,{blockTag:this.context.blockNumber,...r},this.context.preparedData,this.context.getEthCallContext())},async transferFrom(t,e,r,a){return await this.view.callStatic.transferFrom(t,e,r,{blockTag:this.context.blockNumber,...a},this.context.preparedData,this.context.getEthCallContext())},async withdraw(t,e){return await this.view.callStatic.withdraw(t,{blockTag:this.context.blockNumber,...e},this.context.preparedData,this.context.getEthCallContext())},async transfer(t,e,r){return await this.view.callStatic.transfer(t,e,{blockTag:this.context.blockNumber,...r},this.context.preparedData,this.context.getEthCallContext())},async deposit(t){return await this.view.callStatic.deposit({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}};encodeCall={view:this.view,context:this.context,name(t){return this.view.encodeCall.name({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},approve(t,e,r){return this.view.encodeCall.approve(t,e,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(r)})},totalSupply(t){return this.view.encodeCall.totalSupply({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},transferFrom(t,e,r,a){return this.view.encodeCall.transferFrom(t,e,r,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(a)})},withdraw(t,e){return this.view.encodeCall.withdraw(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)})},balanceOf(t,e){return this.view.encodeCall.balanceOf(t,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(e)})},symbol(t){return this.view.encodeCall.symbol({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},transfer(t,e,r){return this.view.encodeCall.transfer(t,e,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(r)})},deposit(t){return this.view.encodeCall.deposit({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},allowance(t,e,r){return this.view.encodeCall.allowance(t,e,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(r)})}}},g=class n extends y{static{i(this,"WETH9Processor")}onEventApproval(t,e,r,a){return e||(e=c.filters["Approval(address,address,uint256)"](null,null,null)),super.onEthEvent(t,e,r,a)}onEventTransfer(t,e,r,a){return e||(e=c.filters["Transfer(address,address,uint256)"](null,null,null)),super.onEthEvent(t,e,r,a)}onEventDeposit(t,e,r,a){return e||(e=c.filters["Deposit(address,uint256)"](null,null)),super.onEthEvent(t,e,r,a)}onEventWithdrawal(t,e,r,a){return e||(e=c.filters["Withdrawal(address,uint256)"](null,null)),super.onEthEvent(t,e,r,a)}onCallName(t,e,r){return super.onEthTrace("0x06fdde03",t,e,r)}onCallApprove(t,e,r){return super.onEthTrace("0x095ea7b3",t,e,r)}onCallTotalSupply(t,e,r){return super.onEthTrace("0x18160ddd",t,e,r)}onCallTransferFrom(t,e,r){return super.onEthTrace("0x23b872dd",t,e,r)}onCallWithdraw(t,e,r){return super.onEthTrace("0x2e1a7d4d",t,e,r)}onCallDecimals(t,e,r){return super.onEthTrace("0x313ce567",t,e,r)}onCallBalanceOf(t,e,r){return super.onEthTrace("0x70a08231",t,e,r)}onCallSymbol(t,e,r){return super.onEthTrace("0x95d89b41",t,e,r)}onCallTransfer(t,e,r){return super.onEthTrace("0xa9059cbb",t,e,r)}onCallDeposit(t,e,r){return super.onEthTrace("0xd0e30db0",t,e,r)}onCallAllowance(t,e,r){return super.onEthTrace("0xdd62ed3e",t,e,r)}static filters={Approval(t,e,r){return c.filters["Approval(address,address,uint256)"](t,e,r)},Transfer(t,e,r){return c.filters["Transfer(address,address,uint256)"](t,e,r)},Deposit(t,e){return c.filters["Deposit(address,uint256)"](t,e)},Withdrawal(t,e){return c.filters["Withdrawal(address,uint256)"](t,e)}};CreateBoundContractView(){let t=p(this.config.network,this.config.address);return new E(this.config.address,t)}static bind(t){t.name||(t.name="WETH9");let e=T(t);return e||(e=new n(t),m(t,e)),e}},f=class extends O{static{i(this,"WETH9ProcessorTemplate")}bindInternal(t){t.name||(t.name="WETH9");let e=T(t);return e||(e=new g(t),m(t,e)),e}onEventApproval(t,e,r,a){return e||(e=c.filters["Approval(address,address,uint256)"](null,null,null)),super.onEthEvent(t,e,r,a)}onEventTransfer(t,e,r,a){return e||(e=c.filters["Transfer(address,address,uint256)"](null,null,null)),super.onEthEvent(t,e,r,a)}onEventDeposit(t,e,r,a){return e||(e=c.filters["Deposit(address,uint256)"](null,null)),super.onEthEvent(t,e,r,a)}onEventWithdrawal(t,e,r,a){return e||(e=c.filters["Withdrawal(address,uint256)"](null,null)),super.onEthEvent(t,e,r,a)}};function p(n,t){let e=P("WETH9",t,n);if(!e){let r=u.connect(t,k(n));e=new x(r),W("WETH9",t,n,e)}return e}i(p,"getWETH9Contract");function B(n,t){let e=p(n.getChainId(),t),r=new E(t,e);return r.context=n,r.callStatic&&(r.callStatic.context=n),r}i(B,"getWETH9ContractOnContext");import("node:process").then(n=>n.stdout.write(""));var v={blockHash:"0x0000000000000000000000000000000000000000000000000000000000000000",blockNumber:0,logIndex:0,removed:!1,transactionHash:"0x0000000000000000000000000000000000000000000000000000000000000000",transactionIndex:0};function S(n,t){let r=p(C.EthChainId.ETHEREUM,n).rawContract.interface.encodeEventLog("Approval(address,address,uint256)",[t.src,t.guy,t.wad]);return{...v,index:0,address:n,data:r.data,topics:r.topics}}i(S,"mockApprovalLog");function j(n,t){let r=p(C.EthChainId.ETHEREUM,n).rawContract.interface.encodeEventLog("Transfer(address,address,uint256)",[t.src,t.dst,t.wad]);return{...v,index:0,address:n,data:r.data,topics:r.topics}}i(j,"mockTransferLog");function A(n,t){let r=p(C.EthChainId.ETHEREUM,n).rawContract.interface.encodeEventLog("Deposit(address,uint256)",[t.dst,t.wad]);return{...v,index:0,address:n,data:r.data,topics:r.topics}}i(A,"mockDepositLog");function N(n,t){let r=p(C.EthChainId.ETHEREUM,n).rawContract.interface.encodeEventLog("Withdrawal(address,uint256)",[t.src,t.wad]);return{...v,index:0,address:n,data:r.data,topics:r.topics}}i(N,"mockWithdrawalLog");import("node:process").then(n=>n.stdout.write(""));import("node:process").then(n=>n.stdout.write(""));import("node:process").then(n=>n.stdout.write(""));export{x as a,E as b,g as c,f as d,p as e,B as f,S as g,j as h,A as i,N as j,I as k};
3
+ //# sourceMappingURL=chunk-SWRIEEO2.js.map
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{Fd as T}from"./chunk-TUAGKH5K.js";import{a}from"./chunk-G5BIPHMS.js";var M=class{static{a(this,"EventHandler")}filters;handler;fetchConfig},S=class{static{a(this,"CallHandler")}filters;handler;fetchConfig},C=class{static{a(this,"ObjectChangeHandler")}handler;type},_=class{static{a(this,"ResourceChangeHandler")}handler;type};import("node:process").then(t=>t.stdout.write(""));var P=class extends T{static{a(this,"MoveContext")}address;coder;network},F=class extends T{static{a(this,"MoveAccountContext")}address;coder;network};import("node:process").then(t=>t.stdout.write(""));var N=a(t=>{if(!t||t.length===0)return"";let e=t.toLowerCase();return e.substring(0,1).toUpperCase()+e.substring(1,e.length)},"capitalize"),x=a(t=>{let e=t?.replace(/([A-Z])+/g,N)?.split(/(?=[A-Z])|[\.\-\s_]/).map(r=>r.toLowerCase())??[];return e.length===0?"":e.length===1?e[0]:e.reduce((r,n)=>`${r}${n.charAt(0).toUpperCase()}${n.slice(1)}`)},"camel");var p="::",h="vector";function ie(t){let e=parseInt(t,16);return Number.isNaN(e)?!1:e>=0&&e<16}a(ie,"isFrameworkAccount");function g(t){return"0x"+t.toLowerCase().replace(/^(0x)/,"").replace(/^0*/,"")}a(g,"accountTypeString");var I=32;function k(t){return/^(0x|0X)?[a-fA-F0-9]+$/.test(t)}a(k,"isHex");function O(t){return/^(0x|0X)/.test(t)?(t.length-2)/2:t.length/2}a(O,"getHexByteLength");function Y(t){return k(t)&&O(t)<=I}a(Y,"isValidMoveAddress");function d(t){if(!Y(t))throw Error("Not valid move address");return`0x${t.toLowerCase().replace(/^(0x)/,"").padStart(I*2,"0")}`}a(d,"accountAddressString");var $=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with","as","implements","interface","let","package","private","protected","public","static","yield","any","boolean","constructor","declare","module","number","string","symbol","type","from","async","await","bigint","object","volatile","namespace"]);function ae(t){return $.has(t)?t+"$":t}a(ae,"normalizeToJSName");function A(t){let e=t.split(p).slice(0,2);return[e[0],e[1]]}a(A,"moduleQnameForType");function m(t){return g(t.address)+p+t.name}a(m,"moduleQname");function ce(t,e){return[g(t.address),t.name,e.name].join(p)}a(ce,"structQname");function pe(t){return t.charAt(0).toUpperCase()+t.slice(1)}a(pe,"upperFirst");function ue(t){let e=x(t);return t.endsWith("_")?e+"_":e}a(ue,"camel");var u=class t{static{a(this,"TypeDescriptor")}qname;reference;mutable;typeArgs;constructor(e,r){this.qname=e,this.reference=!1,this.mutable=!1,this.typeArgs=r||[]}apply(...e){let r=this.clone();return r.typeArgs=e,r}clone(){let e=new t(this.qname,this.typeArgs);return e.reference=this.reference,e.mutable=this.mutable,e}compareQname(e){let r=this.qname;b.has(this.qname.toLowerCase())&&(r=this.qname.toLowerCase());let n=e.qname;return b.has(e.qname.toLowerCase())&&(n=e.qname),r===n}getSignature(){return this.typeArgs.length>0?this.qname+"<"+this.typeArgs.map(e=>e.getSignature()).join(", ")+">":this.qname}getNormalizedSignature(){let e=this.qname;switch(e){case"U8":case"U16":case"U32":case"U64":case"U128":case"U256":case"Vector":case"Bool":case"Address":e=e.toLowerCase()}return this.typeArgs.length>0?e+"<"+this.typeArgs.map(r=>r.getNormalizedSignature()).join(", ")+">":e}applyTypeArgs(e){let r=e.get(this.qname);if(r)return r;if(e.size===0||this.typeArgs.length===0)return this;let n=[];for(let s of this.typeArgs){let i=e.get(s.qname);i?n.push(i):n.push(s.applyTypeArgs(e))}return new t(this.qname,n)}dependedTypes(){if(this.qname.startsWith("&"))return console.error("Not expected &"),[];if(this.isVector())return this.typeArgs[0].dependedTypes();if(b.has(this.qname.toLowerCase()))return[];switch(this.qname){case"signer":case"0x1::string::String":return[]}if(this.qname.indexOf(p)==-1&&this.qname.startsWith("T"))return[];let e=new Set;for(let r of this.typeArgs)r.dependedTypes().forEach(n=>e.add(n));return e.add(this.qname),Array.from(e)}isVector(){return this.qname.toLowerCase()===h}existAnyType(){if(this.qname==="any")return!0;for(let e of this.typeArgs)if(e.existAnyType())return!0;return!1}name(){let e=this.qname.split(p);return e[e.length-1]}module(){let e=this.qname.split(p);return e[e.length-2]}};function y(t){let e=[new u("")],r=[];t===void 0&&console.log("");for(let s=0;s<t.length;s++){let i=t[s];if(i!==" "){if(i==="<"){let o=r.join("");r=[],e[e.length-1].qname=o,q(e[e.length-1]),e.push(new u(""));continue}if(i===">"||i===","){let o=e.pop();if(!o)throw Error("Unexpected stack size");r.length>0&&(o.qname=r.join(""),r=[]),q(o),e[e.length-1].typeArgs.push(o),i===","&&e.push(new u(""));continue}r.push(i)}}r.length>0&&(e[e.length-1].qname=r.join("")),q(e[e.length-1]);let n=e.pop();if(!n||e.length>0)throw Error("Unexpected stack size");return n}a(y,"parseMoveType");function q(t){t.qname.startsWith("&")&&(t.reference=!0,t.qname=t.qname.slice(1)),t.qname.startsWith("mut")&&(t.mutable=!0,t.qname=t.qname.slice(3));let e=t.qname.split(p);if(e.length>1){let[r,n,s]=e;t.qname=[g(r),n,s].join(p)}}a(q,"adjustType");var D=new u("any");function z(t=D){return U.VECTOR_TYPE_ANY.apply(t)}a(z,"vectorType");var U={ADDRESS_TYPE:new u("address"),VECTOR_TYPE_ANY:new u("vector"),VECTOR_TYPE:z,BOOL_TYPE:new u("bool"),U8_TYPE:new u("u8"),U16_TYPE:new u("u16"),U32_TYPE:new u("u32"),U64_TYPE:new u("u64"),U128_TYPE:new u("u128"),U256_TYPE:new u("u256")},b=new Set(Object.values(U).flatMap(t=>typeof t=="object"?[t.qname.toLowerCase()]:[]));function w(t,e){if(t.qname==="any")return!0;if(!t.compareQname(e))return!1;for(let[r,n]of t.typeArgs.entries()){let s=e.typeArgs[r];if(!w(n,s))return!1}return!0}a(w,"matchType");var E=class{static{a(this,"AccountModulesImportInfo")}imports;account;moduleName;constructor(e,r){this.account=e,this.moduleName=r,this.imports=new Map}addImport(e,r){if(e===this.account)return;let n=this.imports.get(e);n||(n=new Set,this.imports.set(e,n)),n.add(r)}},L=class{static{a(this,"AccountRegister")}accountImports=new Map;pendingAccounts=new Set;register(e,r){let n=m(e),s=this.accountImports.get(e.address);return s||(s=new E(e.address,r),this.accountImports.set(e.address,s),this.pendingAccounts.delete(e.address)),this.registerStruct(e,s),this.registerFunctions(e,s),this.accountImports.set(n,s),s}registerFunctions(e,r){for(let n of e.exposedFunctions)for(let s of n.params.concat(n.return))for(let i of s.dependedTypes()){let[o,c]=A(i);r.addImport(o,c),this.accountImports.has(o)||this.pendingAccounts.add(o)}}registerStruct(e,r){for(let n of e.structs)for(let s of n.fields)for(let i of s.type.dependedTypes()){let[o,c]=A(i);r.addImport(o,c),this.accountImports.has(o)||this.pendingAccounts.add(o)}}};var v=class{static{a(this,"ChainAdapter")}};var R=class{static{a(this,"AbstractMoveCoder")}moduleMapping=new Map;typeMapping=new Map;funcMapping=new Map;adapter;constructor(e){this.adapter=e}contains(e,r){return this.moduleMapping.has(m({address:e,name:r}))}loadInternal(e,r){let n=d(e.address),s=d(r);this._loadInternal(e,n),n!==s&&this._loadInternal(e,s)}_loadInternal(e,r){if(!this.contains(r,e.name)){this.moduleMapping.set(m({address:r,name:e.name}),e);for(let n of e.structs){let s=[r,e.name,n.name].join(p);this.typeMapping.set(s,n)}for(let n of e.exposedFunctions){let s=[r,e.name,n.name].join(p);this.funcMapping.set(s,n)}}}decodeBigInt(e){if(Array.isArray(e))throw new Error("data is in byte array");return BigInt(e)}requestMap=new Map;async getMoveStruct(e){let[r,n,s]=e.split(p),i=d(r);e=[i,n,s].join(p);let o=this.typeMapping.get(e);if(o)return o;let c=this.requestMap.get(i);if(c||(c=this.adapter.fetchModules(i).then(f=>{for(let l of f)this.load(l,i)}),this.requestMap.set(i,c)),await c,o=this.typeMapping.get(e),o)return o;throw new Error("Failed to load function "+e+" type are not imported anywhere")}async getMoveFunction(e){let[r,n,s]=e.split(p),i=d(r);e=[i,n,s].join(p);let o=this.funcMapping.get(e);if(o)return o;let c=this.requestMap.get(i);if(c||(c=this.adapter.fetchModules(i).then(f=>{for(let l of f)this.load(l,i)}).catch(f=>{this.requestMap.delete(i)}),this.requestMap.set(i,c)),await c,o=this.funcMapping.get(e),o)return o;throw new Error("Failed to load function "+e+" type are not imported anywhere")}async decode(e,r){if(r.reference)return e;switch(r.qname){case"signer":case"address":case"Address":case"0x1::string::String":case"bool":case"Bool":case"u8":case"U8":case"u16":case"U16":case"u32":case"U32":return e;case"u64":case"U64":case"u128":case"U128":case"u256":case"U256":return this.decodeBigInt(e)}if(r.qname.toLowerCase()===h){if(r.typeArgs[0].qname==="u8"||r.typeArgs[0].qname==="U8")return e;let o=[];for(let c of e)o.push(await this.decode(c,r.typeArgs[0]));return o}let n=await this.getMoveStruct(r.qname),s=new Map;for(let[o,c]of r.typeArgs.entries())s.set("T"+o,c);let i={};for(let o of n.fields){let c=o.type;c=c.applyTypeArgs(s);let f=this.adapter.getData(e)[o.name],l=await this.decode(f,c);i[o.name]=l}return i}async decodeArray(e,r,n=!0){let s=[];for(let[i,o]of e.entries()){let c=r[i];try{!n&&o===void 0?s.push(o):s.push(await this.decode(o,c))}catch(f){throw Error("Decoding error for "+JSON.stringify(o)+"using type"+c+f.toString())}}return s}encode(e){if(e){if(typeof e=="bigint")return e.toString();if(Array.isArray(e))return this.encodeArray(e);for(let[r,n]of Object.entries(e))n&&typeof n=="bigint"&&(e[r]=n.toString());return e}}encodeArray(e){let r=[];for(let[n,s]of e.entries())r.push(this.encode(s));return r}async decodeCallResult(e,r){let n=await this.getMoveFunction(r);return this.decodeArray(e,n.return)}async filterAndDecodeStruct(e,r){if(!r)return[];let n=[];for(let s of r){let i=this.adapter.getType(s),o=y(i);if(!w(e,o))continue;let c=await this.decodedStruct(s);c?n.push(c):console.error("decoding error")}return n}async decodedStruct(e){let r=y(this.adapter.getType(e)),n=r.typeArgs.map(i=>i.getSignature()),s;try{s=await this.decode(e,r)}catch(i){throw Error("Decoding error for struct"+JSON.stringify(e)+i.toString())}return{...e,data_decoded:s,type_arguments:n}}async decodedType(e,r){if(e===null||e==null)return e;if(typeof e=="object"&&"type"in e){let n=y(e.type.toString()||"");if(!w(r,n))return}return await this.decode(e,r)}};var j;(function(t){t.PRIVATE="private",t.PUBLIC="public",t.FRIEND="friend"})(j||(j={}));import("node:process").then(t=>t.stdout.write(""));export{p as a,h as b,ie as c,g as d,Y as e,d as f,ae as g,A as h,m as i,ce as j,pe as k,ue as l,u as m,y as n,D as o,z as p,U as q,w as r,E as s,L as t,v as u,R as v,j as w,M as x,S as y,C as z,_ as A,P as B,F as C};
3
- //# sourceMappingURL=chunk-LQ2JMF5Z.js.map
2
+ import{Fd as T}from"./chunk-RASCZBLN.js";import{a}from"./chunk-G5BIPHMS.js";var M=class{static{a(this,"EventHandler")}filters;handler;fetchConfig},S=class{static{a(this,"CallHandler")}filters;handler;fetchConfig},C=class{static{a(this,"ObjectChangeHandler")}handler;type},_=class{static{a(this,"ResourceChangeHandler")}handler;type};import("node:process").then(t=>t.stdout.write(""));var P=class extends T{static{a(this,"MoveContext")}address;coder;network},F=class extends T{static{a(this,"MoveAccountContext")}address;coder;network};import("node:process").then(t=>t.stdout.write(""));var N=a(t=>{if(!t||t.length===0)return"";let e=t.toLowerCase();return e.substring(0,1).toUpperCase()+e.substring(1,e.length)},"capitalize"),x=a(t=>{let e=t?.replace(/([A-Z])+/g,N)?.split(/(?=[A-Z])|[\.\-\s_]/).map(r=>r.toLowerCase())??[];return e.length===0?"":e.length===1?e[0]:e.reduce((r,n)=>`${r}${n.charAt(0).toUpperCase()}${n.slice(1)}`)},"camel");var p="::",h="vector";function ie(t){let e=parseInt(t,16);return Number.isNaN(e)?!1:e>=0&&e<16}a(ie,"isFrameworkAccount");function g(t){return"0x"+t.toLowerCase().replace(/^(0x)/,"").replace(/^0*/,"")}a(g,"accountTypeString");var I=32;function k(t){return/^(0x|0X)?[a-fA-F0-9]+$/.test(t)}a(k,"isHex");function O(t){return/^(0x|0X)/.test(t)?(t.length-2)/2:t.length/2}a(O,"getHexByteLength");function Y(t){return k(t)&&O(t)<=I}a(Y,"isValidMoveAddress");function d(t){if(!Y(t))throw Error("Not valid move address");return`0x${t.toLowerCase().replace(/^(0x)/,"").padStart(I*2,"0")}`}a(d,"accountAddressString");var $=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with","as","implements","interface","let","package","private","protected","public","static","yield","any","boolean","constructor","declare","module","number","string","symbol","type","from","async","await","bigint","object","volatile","namespace"]);function ae(t){return $.has(t)?t+"$":t}a(ae,"normalizeToJSName");function A(t){let e=t.split(p).slice(0,2);return[e[0],e[1]]}a(A,"moduleQnameForType");function m(t){return g(t.address)+p+t.name}a(m,"moduleQname");function ce(t,e){return[g(t.address),t.name,e.name].join(p)}a(ce,"structQname");function pe(t){return t.charAt(0).toUpperCase()+t.slice(1)}a(pe,"upperFirst");function ue(t){let e=x(t);return t.endsWith("_")?e+"_":e}a(ue,"camel");var u=class t{static{a(this,"TypeDescriptor")}qname;reference;mutable;typeArgs;constructor(e,r){this.qname=e,this.reference=!1,this.mutable=!1,this.typeArgs=r||[]}apply(...e){let r=this.clone();return r.typeArgs=e,r}clone(){let e=new t(this.qname,this.typeArgs);return e.reference=this.reference,e.mutable=this.mutable,e}compareQname(e){let r=this.qname;b.has(this.qname.toLowerCase())&&(r=this.qname.toLowerCase());let n=e.qname;return b.has(e.qname.toLowerCase())&&(n=e.qname),r===n}getSignature(){return this.typeArgs.length>0?this.qname+"<"+this.typeArgs.map(e=>e.getSignature()).join(", ")+">":this.qname}getNormalizedSignature(){let e=this.qname;switch(e){case"U8":case"U16":case"U32":case"U64":case"U128":case"U256":case"Vector":case"Bool":case"Address":e=e.toLowerCase()}return this.typeArgs.length>0?e+"<"+this.typeArgs.map(r=>r.getNormalizedSignature()).join(", ")+">":e}applyTypeArgs(e){let r=e.get(this.qname);if(r)return r;if(e.size===0||this.typeArgs.length===0)return this;let n=[];for(let s of this.typeArgs){let i=e.get(s.qname);i?n.push(i):n.push(s.applyTypeArgs(e))}return new t(this.qname,n)}dependedTypes(){if(this.qname.startsWith("&"))return console.error("Not expected &"),[];if(this.isVector())return this.typeArgs[0].dependedTypes();if(b.has(this.qname.toLowerCase()))return[];switch(this.qname){case"signer":case"0x1::string::String":return[]}if(this.qname.indexOf(p)==-1&&this.qname.startsWith("T"))return[];let e=new Set;for(let r of this.typeArgs)r.dependedTypes().forEach(n=>e.add(n));return e.add(this.qname),Array.from(e)}isVector(){return this.qname.toLowerCase()===h}existAnyType(){if(this.qname==="any")return!0;for(let e of this.typeArgs)if(e.existAnyType())return!0;return!1}name(){let e=this.qname.split(p);return e[e.length-1]}module(){let e=this.qname.split(p);return e[e.length-2]}};function y(t){let e=[new u("")],r=[];t===void 0&&console.log("");for(let s=0;s<t.length;s++){let i=t[s];if(i!==" "){if(i==="<"){let o=r.join("");r=[],e[e.length-1].qname=o,q(e[e.length-1]),e.push(new u(""));continue}if(i===">"||i===","){let o=e.pop();if(!o)throw Error("Unexpected stack size");r.length>0&&(o.qname=r.join(""),r=[]),q(o),e[e.length-1].typeArgs.push(o),i===","&&e.push(new u(""));continue}r.push(i)}}r.length>0&&(e[e.length-1].qname=r.join("")),q(e[e.length-1]);let n=e.pop();if(!n||e.length>0)throw Error("Unexpected stack size");return n}a(y,"parseMoveType");function q(t){t.qname.startsWith("&")&&(t.reference=!0,t.qname=t.qname.slice(1)),t.qname.startsWith("mut")&&(t.mutable=!0,t.qname=t.qname.slice(3));let e=t.qname.split(p);if(e.length>1){let[r,n,s]=e;t.qname=[g(r),n,s].join(p)}}a(q,"adjustType");var D=new u("any");function z(t=D){return U.VECTOR_TYPE_ANY.apply(t)}a(z,"vectorType");var U={ADDRESS_TYPE:new u("address"),VECTOR_TYPE_ANY:new u("vector"),VECTOR_TYPE:z,BOOL_TYPE:new u("bool"),U8_TYPE:new u("u8"),U16_TYPE:new u("u16"),U32_TYPE:new u("u32"),U64_TYPE:new u("u64"),U128_TYPE:new u("u128"),U256_TYPE:new u("u256")},b=new Set(Object.values(U).flatMap(t=>typeof t=="object"?[t.qname.toLowerCase()]:[]));function w(t,e){if(t.qname==="any")return!0;if(!t.compareQname(e))return!1;for(let[r,n]of t.typeArgs.entries()){let s=e.typeArgs[r];if(!w(n,s))return!1}return!0}a(w,"matchType");var E=class{static{a(this,"AccountModulesImportInfo")}imports;account;moduleName;constructor(e,r){this.account=e,this.moduleName=r,this.imports=new Map}addImport(e,r){if(e===this.account)return;let n=this.imports.get(e);n||(n=new Set,this.imports.set(e,n)),n.add(r)}},L=class{static{a(this,"AccountRegister")}accountImports=new Map;pendingAccounts=new Set;register(e,r){let n=m(e),s=this.accountImports.get(e.address);return s||(s=new E(e.address,r),this.accountImports.set(e.address,s),this.pendingAccounts.delete(e.address)),this.registerStruct(e,s),this.registerFunctions(e,s),this.accountImports.set(n,s),s}registerFunctions(e,r){for(let n of e.exposedFunctions)for(let s of n.params.concat(n.return))for(let i of s.dependedTypes()){let[o,c]=A(i);r.addImport(o,c),this.accountImports.has(o)||this.pendingAccounts.add(o)}}registerStruct(e,r){for(let n of e.structs)for(let s of n.fields)for(let i of s.type.dependedTypes()){let[o,c]=A(i);r.addImport(o,c),this.accountImports.has(o)||this.pendingAccounts.add(o)}}};var v=class{static{a(this,"ChainAdapter")}};var R=class{static{a(this,"AbstractMoveCoder")}moduleMapping=new Map;typeMapping=new Map;funcMapping=new Map;adapter;constructor(e){this.adapter=e}contains(e,r){return this.moduleMapping.has(m({address:e,name:r}))}loadInternal(e,r){let n=d(e.address),s=d(r);this._loadInternal(e,n),n!==s&&this._loadInternal(e,s)}_loadInternal(e,r){if(!this.contains(r,e.name)){this.moduleMapping.set(m({address:r,name:e.name}),e);for(let n of e.structs){let s=[r,e.name,n.name].join(p);this.typeMapping.set(s,n)}for(let n of e.exposedFunctions){let s=[r,e.name,n.name].join(p);this.funcMapping.set(s,n)}}}decodeBigInt(e){if(Array.isArray(e))throw new Error("data is in byte array");return BigInt(e)}requestMap=new Map;async getMoveStruct(e){let[r,n,s]=e.split(p),i=d(r);e=[i,n,s].join(p);let o=this.typeMapping.get(e);if(o)return o;let c=this.requestMap.get(i);if(c||(c=this.adapter.fetchModules(i).then(f=>{for(let l of f)this.load(l,i)}),this.requestMap.set(i,c)),await c,o=this.typeMapping.get(e),o)return o;throw new Error("Failed to load function "+e+" type are not imported anywhere")}async getMoveFunction(e){let[r,n,s]=e.split(p),i=d(r);e=[i,n,s].join(p);let o=this.funcMapping.get(e);if(o)return o;let c=this.requestMap.get(i);if(c||(c=this.adapter.fetchModules(i).then(f=>{for(let l of f)this.load(l,i)}).catch(f=>{this.requestMap.delete(i)}),this.requestMap.set(i,c)),await c,o=this.funcMapping.get(e),o)return o;throw new Error("Failed to load function "+e+" type are not imported anywhere")}async decode(e,r){if(r.reference)return e;switch(r.qname){case"signer":case"address":case"Address":case"0x1::string::String":case"bool":case"Bool":case"u8":case"U8":case"u16":case"U16":case"u32":case"U32":return e;case"u64":case"U64":case"u128":case"U128":case"u256":case"U256":return this.decodeBigInt(e)}if(r.qname.toLowerCase()===h){if(r.typeArgs[0].qname==="u8"||r.typeArgs[0].qname==="U8")return e;let o=[];for(let c of e)o.push(await this.decode(c,r.typeArgs[0]));return o}let n=await this.getMoveStruct(r.qname),s=new Map;for(let[o,c]of r.typeArgs.entries())s.set("T"+o,c);let i={};for(let o of n.fields){let c=o.type;c=c.applyTypeArgs(s);let f=this.adapter.getData(e)[o.name],l=await this.decode(f,c);i[o.name]=l}return i}async decodeArray(e,r,n=!0){let s=[];for(let[i,o]of e.entries()){let c=r[i];try{!n&&o===void 0?s.push(o):s.push(await this.decode(o,c))}catch(f){throw Error("Decoding error for "+JSON.stringify(o)+"using type"+c+f.toString())}}return s}encode(e){if(e){if(typeof e=="bigint")return e.toString();if(Array.isArray(e))return this.encodeArray(e);for(let[r,n]of Object.entries(e))n&&typeof n=="bigint"&&(e[r]=n.toString());return e}}encodeArray(e){let r=[];for(let[n,s]of e.entries())r.push(this.encode(s));return r}async decodeCallResult(e,r){let n=await this.getMoveFunction(r);return this.decodeArray(e,n.return)}async filterAndDecodeStruct(e,r){if(!r)return[];let n=[];for(let s of r){let i=this.adapter.getType(s),o=y(i);if(!w(e,o))continue;let c=await this.decodedStruct(s);c?n.push(c):console.error("decoding error")}return n}async decodedStruct(e){let r=y(this.adapter.getType(e)),n=r.typeArgs.map(i=>i.getSignature()),s;try{s=await this.decode(e,r)}catch(i){throw Error("Decoding error for struct"+JSON.stringify(e)+i.toString())}return{...e,data_decoded:s,type_arguments:n}}async decodedType(e,r){if(e===null||e==null)return e;if(typeof e=="object"&&"type"in e){let n=y(e.type.toString()||"");if(!w(r,n))return}return await this.decode(e,r)}};var j;(function(t){t.PRIVATE="private",t.PUBLIC="public",t.FRIEND="friend"})(j||(j={}));import("node:process").then(t=>t.stdout.write(""));export{p as a,h as b,ie as c,g as d,Y as e,d as f,ae as g,A as h,m as i,ce as j,pe as k,ue as l,u as m,y as n,D as o,z as p,U as q,w as r,E as s,L as t,v as u,R as v,j as w,M as x,S as y,C as z,_ as A,P as B,F as C};
3
+ //# sourceMappingURL=chunk-TB5YQH36.js.map
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{B as O,D as g,U as w,V as k,W as u,e as B,f as A,i as d,o as p,t as R,w as b,x as T,y as P,z as y}from"./chunk-2E4NSWHZ.js";import{a as i,e as S}from"./chunk-G5BIPHMS.js";var V={};S(V,{ERC1155BoundContractView:()=>C,ERC1155ContractView:()=>f,ERC1155Processor:()=>E,ERC1155ProcessorTemplate:()=>F,ERC1155__factory:()=>g,getERC1155Contract:()=>h,getERC1155ContractOnContext:()=>N,mockApprovalForAllLog:()=>U,mockTransferBatchLog:()=>j,mockTransferSingleLog:()=>L,mockURILog:()=>D});var l=g.connect("0x0",k),f=class extends B{static{i(this,"ERC1155ContractView")}constructor(t){super(t),this.callStatic.contract=t}async balanceOf(t,e,r,n,s){try{return await this.contract.getFunction("balanceOf(address,uint256)")(t,e,r||{})}catch(o){let c=new Error().stack;throw d(o,void 0,c)}}async balanceOfBatch(t,e,r,n,s){try{return await this.contract.getFunction("balanceOfBatch(address[],uint256[])")(t,e,r||{})}catch(o){let c=new Error().stack;throw d(o,void 0,c)}}async isApprovedForAll(t,e,r,n,s){try{return await this.contract.getFunction("isApprovedForAll(address,address)")(t,e,r||{})}catch(o){let c=new Error().stack;throw d(o,void 0,c)}}async supportsInterface(t,e,r,n){try{return await this.contract.getFunction("supportsInterface(bytes4)")(t,e||{})}catch(s){let o=new Error().stack;throw d(s,void 0,o)}}async uri(t,e,r,n){try{return await this.contract.getFunction("uri(uint256)")(t,e||{})}catch(s){let o=new Error().stack;throw d(s,void 0,o)}}callStatic={contract:this.contract,async safeBatchTransferFrom(t,e,r,n,s,o,c,I){try{return await this.contract.getFunction("safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)").staticCall(t,e,r,n,s,o||{})}catch(x){let m=new Error().stack;throw d(x,void 0,m)}},async safeTransferFrom(t,e,r,n,s,o,c,I){try{return await this.contract.getFunction("safeTransferFrom(address,address,uint256,uint256,bytes)").staticCall(t,e,r,n,s,o||{})}catch(x){let m=new Error().stack;throw d(x,void 0,m)}},async setApprovalForAll(t,e,r,n,s){try{return await this.contract.getFunction("setApprovalForAll(address,bool)").staticCall(t,e,r||{})}catch(o){let c=new Error().stack;throw d(o,void 0,c)}}};encodeCall={balanceOf(t,e,r){return p(r,"balanceOf","function balanceOf(address,uint256)",[t,e])},balanceOfBatch(t,e,r){return p(r,"balanceOfBatch","function balanceOfBatch(address[],uint256[])",[t,e])},isApprovedForAll(t,e,r){return p(r,"isApprovedForAll","function isApprovedForAll(address,address)",[t,e])},safeBatchTransferFrom(t,e,r,n,s,o){return p(o,"safeBatchTransferFrom","function safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)",[t,e,r,n,s])},safeTransferFrom(t,e,r,n,s,o){return p(o,"safeTransferFrom","function safeTransferFrom(address,address,uint256,uint256,bytes)",[t,e,r,n,s])},setApprovalForAll(t,e,r){return p(r,"setApprovalForAll","function setApprovalForAll(address,bool)",[t,e])},supportsInterface(t,e){return p(e,"supportsInterface","function supportsInterface(bytes4)",[t])},uri(t,e){return p(e,"uri","function uri(uint256)",[t])}}},C=class extends A{static{i(this,"ERC1155BoundContractView")}async balanceOf(t,e,r){return await this.view.balanceOf(t,e,{blockTag:this.context.blockNumber,...r},this.context.preparedData,this.context.getEthCallContext())}async balanceOfBatch(t,e,r){return await this.view.balanceOfBatch(t,e,{blockTag:this.context.blockNumber,...r},this.context.preparedData,this.context.getEthCallContext())}async isApprovedForAll(t,e,r){return await this.view.isApprovedForAll(t,e,{blockTag:this.context.blockNumber,...r},this.context.preparedData,this.context.getEthCallContext())}async supportsInterface(t,e){return await this.view.supportsInterface(t,{blockTag:this.context.blockNumber,...e},this.context.preparedData,this.context.getEthCallContext())}async uri(t,e){return await this.view.uri(t,{blockTag:this.context.blockNumber,...e},this.context.preparedData,this.context.getEthCallContext())}callStatic={view:this.view,context:this.context,async safeBatchTransferFrom(t,e,r,n,s,o){return await this.view.callStatic.safeBatchTransferFrom(t,e,r,n,s,{blockTag:this.context.blockNumber,...o},this.context.preparedData,this.context.getEthCallContext())},async safeTransferFrom(t,e,r,n,s,o){return await this.view.callStatic.safeTransferFrom(t,e,r,n,s,{blockTag:this.context.blockNumber,...o},this.context.preparedData,this.context.getEthCallContext())},async setApprovalForAll(t,e,r){return await this.view.callStatic.setApprovalForAll(t,e,{blockTag:this.context.blockNumber,...r},this.context.preparedData,this.context.getEthCallContext())}};encodeCall={view:this.view,context:this.context,balanceOf(t,e,r){return this.view.encodeCall.balanceOf(t,e,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(r)})},balanceOfBatch(t,e,r){return this.view.encodeCall.balanceOfBatch(t,e,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(r)})},isApprovedForAll(t,e,r){return this.view.encodeCall.isApprovedForAll(t,e,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(r)})},safeBatchTransferFrom(t,e,r,n,s,o){return this.view.encodeCall.safeBatchTransferFrom(t,e,r,n,s,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(o)})},safeTransferFrom(t,e,r,n,s,o){return this.view.encodeCall.safeTransferFrom(t,e,r,n,s,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(o)})},setApprovalForAll(t,e,r){return this.view.encodeCall.setApprovalForAll(t,e,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(r)})},supportsInterface(t,e){return this.view.encodeCall.supportsInterface(t,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(e)})},uri(t,e){return this.view.encodeCall.uri(t,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(e)})}}},E=class a extends R{static{i(this,"ERC1155Processor")}onEventApprovalForAll(t,e,r,n){return e||(e=l.filters["ApprovalForAll(address,address,bool)"](null,null,null)),super.onEthEvent(t,e,r,n)}onEventTransferBatch(t,e,r,n){return e||(e=l.filters["TransferBatch(address,address,address,uint256[],uint256[])"](null,null,null,null,null)),super.onEthEvent(t,e,r,n)}onEventTransferSingle(t,e,r,n){return e||(e=l.filters["TransferSingle(address,address,address,uint256,uint256)"](null,null,null,null,null)),super.onEthEvent(t,e,r,n)}onEventURI(t,e,r,n){return e||(e=l.filters["URI(string,uint256)"](null,null)),super.onEthEvent(t,e,r,n)}onCallBalanceOf(t,e,r){return super.onEthTrace("0x00fdd58e",t,e,r)}onCallBalanceOfBatch(t,e,r){return super.onEthTrace("0x4e1273f4",t,e,r)}onCallIsApprovedForAll(t,e,r){return super.onEthTrace("0xe985e9c5",t,e,r)}onCallSafeBatchTransferFrom(t,e,r){return super.onEthTrace("0x2eb2c2d6",t,e,r)}onCallSafeTransferFrom(t,e,r){return super.onEthTrace("0xf242432a",t,e,r)}onCallSetApprovalForAll(t,e,r){return super.onEthTrace("0xa22cb465",t,e,r)}onCallSupportsInterface(t,e,r){return super.onEthTrace("0x01ffc9a7",t,e,r)}onCallUri(t,e,r){return super.onEthTrace("0x0e89341c",t,e,r)}static filters={ApprovalForAll(t,e,r){return l.filters["ApprovalForAll(address,address,bool)"](t,e,r)},TransferBatch(t,e,r,n,s){return l.filters["TransferBatch(address,address,address,uint256[],uint256[])"](t,e,r,n,s)},TransferSingle(t,e,r,n,s){return l.filters["TransferSingle(address,address,address,uint256,uint256)"](t,e,r,n,s)},URI(t,e){return l.filters["URI(string,uint256)"](t,e)}};CreateBoundContractView(){let t=h(this.config.network,this.config.address);return new C(this.config.address,t)}static bind(t){t.name||(t.name="ERC1155");let e=b(t);return e||(e=new a(t),T(t,e)),e}},F=class extends O{static{i(this,"ERC1155ProcessorTemplate")}bindInternal(t){t.name||(t.name="ERC1155");let e=b(t);return e||(e=new E(t),T(t,e)),e}onEventApprovalForAll(t,e,r,n){return e||(e=l.filters["ApprovalForAll(address,address,bool)"](null,null,null)),super.onEthEvent(t,e,r,n)}onEventTransferBatch(t,e,r,n){return e||(e=l.filters["TransferBatch(address,address,address,uint256[],uint256[])"](null,null,null,null,null)),super.onEthEvent(t,e,r,n)}onEventTransferSingle(t,e,r,n){return e||(e=l.filters["TransferSingle(address,address,address,uint256,uint256)"](null,null,null,null,null)),super.onEthEvent(t,e,r,n)}onEventURI(t,e,r,n){return e||(e=l.filters["URI(string,uint256)"](null,null)),super.onEthEvent(t,e,r,n)}};function h(a,t){let e=P("ERC1155",t,a);if(!e){let r=g.connect(t,w(a));e=new f(r),y("ERC1155",t,a,e)}return e}i(h,"getERC1155Contract");function N(a,t){let e=h(a.getChainId(),t),r=new C(t,e);return r.context=a,r.callStatic&&(r.callStatic.context=a),r}i(N,"getERC1155ContractOnContext");import("node:process").then(a=>a.stdout.write(""));var v={blockHash:"0x0000000000000000000000000000000000000000000000000000000000000000",blockNumber:0,logIndex:0,removed:!1,transactionHash:"0x0000000000000000000000000000000000000000000000000000000000000000",transactionIndex:0};function U(a,t){let r=h(u.EthChainId.ETHEREUM,a).rawContract.interface.encodeEventLog("ApprovalForAll(address,address,bool)",[t.account,t.operator,t.approved]);return{...v,index:0,address:a,data:r.data,topics:r.topics}}i(U,"mockApprovalForAllLog");function j(a,t){let r=h(u.EthChainId.ETHEREUM,a).rawContract.interface.encodeEventLog("TransferBatch(address,address,address,uint256[],uint256[])",[t.operator,t.from,t.to,t.ids,t.values]);return{...v,index:0,address:a,data:r.data,topics:r.topics}}i(j,"mockTransferBatchLog");function L(a,t){let r=h(u.EthChainId.ETHEREUM,a).rawContract.interface.encodeEventLog("TransferSingle(address,address,address,uint256,uint256)",[t.operator,t.from,t.to,t.id,t.value]);return{...v,index:0,address:a,data:r.data,topics:r.topics}}i(L,"mockTransferSingleLog");function D(a,t){let r=h(u.EthChainId.ETHEREUM,a).rawContract.interface.encodeEventLog("URI(string,uint256)",[t.value,t.id]);return{...v,index:0,address:a,data:r.data,topics:r.topics}}i(D,"mockURILog");import("node:process").then(a=>a.stdout.write(""));import("node:process").then(a=>a.stdout.write(""));import("node:process").then(a=>a.stdout.write(""));export{f as a,C as b,E as c,F as d,h as e,N as f,U as g,j as h,L as i,D as j,V as k};
3
- //# sourceMappingURL=chunk-37JW6BLR.js.map
2
+ import{B as O,D as g,U as w,V as k,W as u,e as B,f as A,i as d,o as p,t as R,w as b,x as T,y as P,z as y}from"./chunk-GUTGNATB.js";import{a as i,e as S}from"./chunk-G5BIPHMS.js";var V={};S(V,{ERC1155BoundContractView:()=>C,ERC1155ContractView:()=>f,ERC1155Processor:()=>E,ERC1155ProcessorTemplate:()=>F,ERC1155__factory:()=>g,getERC1155Contract:()=>h,getERC1155ContractOnContext:()=>N,mockApprovalForAllLog:()=>U,mockTransferBatchLog:()=>j,mockTransferSingleLog:()=>L,mockURILog:()=>D});var l=g.connect("0x0",k),f=class extends B{static{i(this,"ERC1155ContractView")}constructor(t){super(t),this.callStatic.contract=t}async balanceOf(t,e,r,n,s){try{return await this.contract.getFunction("balanceOf(address,uint256)")(t,e,r||{})}catch(o){let c=new Error().stack;throw d(o,void 0,c)}}async balanceOfBatch(t,e,r,n,s){try{return await this.contract.getFunction("balanceOfBatch(address[],uint256[])")(t,e,r||{})}catch(o){let c=new Error().stack;throw d(o,void 0,c)}}async isApprovedForAll(t,e,r,n,s){try{return await this.contract.getFunction("isApprovedForAll(address,address)")(t,e,r||{})}catch(o){let c=new Error().stack;throw d(o,void 0,c)}}async supportsInterface(t,e,r,n){try{return await this.contract.getFunction("supportsInterface(bytes4)")(t,e||{})}catch(s){let o=new Error().stack;throw d(s,void 0,o)}}async uri(t,e,r,n){try{return await this.contract.getFunction("uri(uint256)")(t,e||{})}catch(s){let o=new Error().stack;throw d(s,void 0,o)}}callStatic={contract:this.contract,async safeBatchTransferFrom(t,e,r,n,s,o,c,I){try{return await this.contract.getFunction("safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)").staticCall(t,e,r,n,s,o||{})}catch(x){let m=new Error().stack;throw d(x,void 0,m)}},async safeTransferFrom(t,e,r,n,s,o,c,I){try{return await this.contract.getFunction("safeTransferFrom(address,address,uint256,uint256,bytes)").staticCall(t,e,r,n,s,o||{})}catch(x){let m=new Error().stack;throw d(x,void 0,m)}},async setApprovalForAll(t,e,r,n,s){try{return await this.contract.getFunction("setApprovalForAll(address,bool)").staticCall(t,e,r||{})}catch(o){let c=new Error().stack;throw d(o,void 0,c)}}};encodeCall={balanceOf(t,e,r){return p(r,"balanceOf","function balanceOf(address,uint256)",[t,e])},balanceOfBatch(t,e,r){return p(r,"balanceOfBatch","function balanceOfBatch(address[],uint256[])",[t,e])},isApprovedForAll(t,e,r){return p(r,"isApprovedForAll","function isApprovedForAll(address,address)",[t,e])},safeBatchTransferFrom(t,e,r,n,s,o){return p(o,"safeBatchTransferFrom","function safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)",[t,e,r,n,s])},safeTransferFrom(t,e,r,n,s,o){return p(o,"safeTransferFrom","function safeTransferFrom(address,address,uint256,uint256,bytes)",[t,e,r,n,s])},setApprovalForAll(t,e,r){return p(r,"setApprovalForAll","function setApprovalForAll(address,bool)",[t,e])},supportsInterface(t,e){return p(e,"supportsInterface","function supportsInterface(bytes4)",[t])},uri(t,e){return p(e,"uri","function uri(uint256)",[t])}}},C=class extends A{static{i(this,"ERC1155BoundContractView")}async balanceOf(t,e,r){return await this.view.balanceOf(t,e,{blockTag:this.context.blockNumber,...r},this.context.preparedData,this.context.getEthCallContext())}async balanceOfBatch(t,e,r){return await this.view.balanceOfBatch(t,e,{blockTag:this.context.blockNumber,...r},this.context.preparedData,this.context.getEthCallContext())}async isApprovedForAll(t,e,r){return await this.view.isApprovedForAll(t,e,{blockTag:this.context.blockNumber,...r},this.context.preparedData,this.context.getEthCallContext())}async supportsInterface(t,e){return await this.view.supportsInterface(t,{blockTag:this.context.blockNumber,...e},this.context.preparedData,this.context.getEthCallContext())}async uri(t,e){return await this.view.uri(t,{blockTag:this.context.blockNumber,...e},this.context.preparedData,this.context.getEthCallContext())}callStatic={view:this.view,context:this.context,async safeBatchTransferFrom(t,e,r,n,s,o){return await this.view.callStatic.safeBatchTransferFrom(t,e,r,n,s,{blockTag:this.context.blockNumber,...o},this.context.preparedData,this.context.getEthCallContext())},async safeTransferFrom(t,e,r,n,s,o){return await this.view.callStatic.safeTransferFrom(t,e,r,n,s,{blockTag:this.context.blockNumber,...o},this.context.preparedData,this.context.getEthCallContext())},async setApprovalForAll(t,e,r){return await this.view.callStatic.setApprovalForAll(t,e,{blockTag:this.context.blockNumber,...r},this.context.preparedData,this.context.getEthCallContext())}};encodeCall={view:this.view,context:this.context,balanceOf(t,e,r){return this.view.encodeCall.balanceOf(t,e,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(r)})},balanceOfBatch(t,e,r){return this.view.encodeCall.balanceOfBatch(t,e,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(r)})},isApprovedForAll(t,e,r){return this.view.encodeCall.isApprovedForAll(t,e,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(r)})},safeBatchTransferFrom(t,e,r,n,s,o){return this.view.encodeCall.safeBatchTransferFrom(t,e,r,n,s,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(o)})},safeTransferFrom(t,e,r,n,s,o){return this.view.encodeCall.safeTransferFrom(t,e,r,n,s,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(o)})},setApprovalForAll(t,e,r){return this.view.encodeCall.setApprovalForAll(t,e,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(r)})},supportsInterface(t,e){return this.view.encodeCall.supportsInterface(t,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(e)})},uri(t,e){return this.view.encodeCall.uri(t,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(e)})}}},E=class a extends R{static{i(this,"ERC1155Processor")}onEventApprovalForAll(t,e,r,n){return e||(e=l.filters["ApprovalForAll(address,address,bool)"](null,null,null)),super.onEthEvent(t,e,r,n)}onEventTransferBatch(t,e,r,n){return e||(e=l.filters["TransferBatch(address,address,address,uint256[],uint256[])"](null,null,null,null,null)),super.onEthEvent(t,e,r,n)}onEventTransferSingle(t,e,r,n){return e||(e=l.filters["TransferSingle(address,address,address,uint256,uint256)"](null,null,null,null,null)),super.onEthEvent(t,e,r,n)}onEventURI(t,e,r,n){return e||(e=l.filters["URI(string,uint256)"](null,null)),super.onEthEvent(t,e,r,n)}onCallBalanceOf(t,e,r){return super.onEthTrace("0x00fdd58e",t,e,r)}onCallBalanceOfBatch(t,e,r){return super.onEthTrace("0x4e1273f4",t,e,r)}onCallIsApprovedForAll(t,e,r){return super.onEthTrace("0xe985e9c5",t,e,r)}onCallSafeBatchTransferFrom(t,e,r){return super.onEthTrace("0x2eb2c2d6",t,e,r)}onCallSafeTransferFrom(t,e,r){return super.onEthTrace("0xf242432a",t,e,r)}onCallSetApprovalForAll(t,e,r){return super.onEthTrace("0xa22cb465",t,e,r)}onCallSupportsInterface(t,e,r){return super.onEthTrace("0x01ffc9a7",t,e,r)}onCallUri(t,e,r){return super.onEthTrace("0x0e89341c",t,e,r)}static filters={ApprovalForAll(t,e,r){return l.filters["ApprovalForAll(address,address,bool)"](t,e,r)},TransferBatch(t,e,r,n,s){return l.filters["TransferBatch(address,address,address,uint256[],uint256[])"](t,e,r,n,s)},TransferSingle(t,e,r,n,s){return l.filters["TransferSingle(address,address,address,uint256,uint256)"](t,e,r,n,s)},URI(t,e){return l.filters["URI(string,uint256)"](t,e)}};CreateBoundContractView(){let t=h(this.config.network,this.config.address);return new C(this.config.address,t)}static bind(t){t.name||(t.name="ERC1155");let e=b(t);return e||(e=new a(t),T(t,e)),e}},F=class extends O{static{i(this,"ERC1155ProcessorTemplate")}bindInternal(t){t.name||(t.name="ERC1155");let e=b(t);return e||(e=new E(t),T(t,e)),e}onEventApprovalForAll(t,e,r,n){return e||(e=l.filters["ApprovalForAll(address,address,bool)"](null,null,null)),super.onEthEvent(t,e,r,n)}onEventTransferBatch(t,e,r,n){return e||(e=l.filters["TransferBatch(address,address,address,uint256[],uint256[])"](null,null,null,null,null)),super.onEthEvent(t,e,r,n)}onEventTransferSingle(t,e,r,n){return e||(e=l.filters["TransferSingle(address,address,address,uint256,uint256)"](null,null,null,null,null)),super.onEthEvent(t,e,r,n)}onEventURI(t,e,r,n){return e||(e=l.filters["URI(string,uint256)"](null,null)),super.onEthEvent(t,e,r,n)}};function h(a,t){let e=P("ERC1155",t,a);if(!e){let r=g.connect(t,w(a));e=new f(r),y("ERC1155",t,a,e)}return e}i(h,"getERC1155Contract");function N(a,t){let e=h(a.getChainId(),t),r=new C(t,e);return r.context=a,r.callStatic&&(r.callStatic.context=a),r}i(N,"getERC1155ContractOnContext");import("node:process").then(a=>a.stdout.write(""));var v={blockHash:"0x0000000000000000000000000000000000000000000000000000000000000000",blockNumber:0,logIndex:0,removed:!1,transactionHash:"0x0000000000000000000000000000000000000000000000000000000000000000",transactionIndex:0};function U(a,t){let r=h(u.EthChainId.ETHEREUM,a).rawContract.interface.encodeEventLog("ApprovalForAll(address,address,bool)",[t.account,t.operator,t.approved]);return{...v,index:0,address:a,data:r.data,topics:r.topics}}i(U,"mockApprovalForAllLog");function j(a,t){let r=h(u.EthChainId.ETHEREUM,a).rawContract.interface.encodeEventLog("TransferBatch(address,address,address,uint256[],uint256[])",[t.operator,t.from,t.to,t.ids,t.values]);return{...v,index:0,address:a,data:r.data,topics:r.topics}}i(j,"mockTransferBatchLog");function L(a,t){let r=h(u.EthChainId.ETHEREUM,a).rawContract.interface.encodeEventLog("TransferSingle(address,address,address,uint256,uint256)",[t.operator,t.from,t.to,t.id,t.value]);return{...v,index:0,address:a,data:r.data,topics:r.topics}}i(L,"mockTransferSingleLog");function D(a,t){let r=h(u.EthChainId.ETHEREUM,a).rawContract.interface.encodeEventLog("URI(string,uint256)",[t.value,t.id]);return{...v,index:0,address:a,data:r.data,topics:r.topics}}i(D,"mockURILog");import("node:process").then(a=>a.stdout.write(""));import("node:process").then(a=>a.stdout.write(""));import("node:process").then(a=>a.stdout.write(""));export{f as a,C as b,E as c,F as d,h as e,N as f,U as g,j as h,L as i,D as j,V as k};
3
+ //# sourceMappingURL=chunk-V6OJKYVZ.js.map
@@ -1,5 +1,5 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{Bd as l,D as f,Fd as F,Ka as V,Kd as H,La as P,Na as b,Oa as _,Pa as O,Tc as B,W as x,jd as A}from"./chunk-TUAGKH5K.js";import{a as v}from"./chunk-RA75ESSD.js";import{a as o,f as y}from"./chunk-G5BIPHMS.js";var h=class extends F{constructor(e,n,i,s){super({});this.chainId=e;this.name=n;this.tx=i;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,i,s){super({});this.chainId=e;this.name=n;this.block=i;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 E}from"@sentio/runtime";var T=y(A(),1);var u=class r extends E{static{o(this,"BTCProcessorState")}static INSTANCE=new r},R=class r{constructor(t){this.config=t}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={handler:o(async i=>{let s=i.transaction,a=new h(this.config.chainId,this.config.name??this.config.address??"",s,this.config.address??s.vout?.[0]?.scriptPubKey?.address);return await t(s,a),a.stopAndGetResult()},"handler"),filter:e};return this.callHandlers.push(n),this}onInterval(t,e,n,i){e&&e.backfillInterval<e.recentInterval&&(e.backfillInterval=e.recentInterval);let s=this;return this.blockHandlers.push({blockInterval:n,timeIntervalInMinutes:e,handler:o(async function(a){let d=a.block;if(!d)throw new T.ServerError(T.Status.INVALID_ARGUMENT,"Block is empty");let p={...d};i?.getTransactions&&(p.tx=d.rawtx?.map(S=>S));let k=new m(s.config.chainId,s.config.name??s.config.address??"",p,s.config.address);return await t(p,k),k.stopAndGetResult()},"handler"),fetchConfig:i}),this}onBlockInterval(t,e=250,n=1e3,i){return this.onInterval(t,void 0,{recentInterval:e,backfillInterval:n},i)}onTimeInterval(t,e=60,n=240,i){return this.onInterval(t,{recentInterval:e,backfillInterval:n},void 0,i)}};import("node:process").then(r=>r.stdout.write(""));function L(r){if(r){let t=_.create(),e=[],n=[],i=[];for(let s of Array.isArray(r)?r:[r]){let{preVOut:a,preTransaction:d,...p}=s;e.push(p),a&&n.push(a),d&&i.push(d)}if(t.filters=b.create({filters:g(e)}),n.length>0){let s=g(n);s&&s.length>0&&(t.preVOut=s[0])}return i.length>0&&(t.preTransaction=C(i)?.[0]),t}}o(L,"toVinFilter");function M(r){if(r){let t=O.create(),e=Array.isArray(r)?r:[r];return t.filters=b.create({filters:g(e)}),t}}o(M,"toVOutFilter");function C(r){return(Array.isArray(r)?r:[r]).map(e=>({filter:g(e.filter),inputFilter:L(e.inputFilter),outputFilter:M(e.outputFilter)}))}o(C,"filters2Proto");function q(r){let t=V.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(i=>l(i))};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(q,"toCondition");function g(r){if(r&&r.length>0){let t=[];for(let e of r){let n=P.create();for(let[i,s]of Object.entries(e))n.conditions[i]=q(s);t.push(n)}return t}return[]}o(g,"convertFilters");import("node:process").then(r=>r.stdout.write(""));import{errorString as w,GLOBAL_CONFIG as N,mergeProcessResults as D,Plugin as G,PluginManager as z,USER_PROCESSOR as K}from"@sentio/runtime";var c=y(A(),1);var I=class extends G{static{o(this,"BTCPlugin")}name="BTCPlugin";handlers={txHandlers:[],blockHandlers:[]};async configure(t){let e={txHandlers:[],blockHandlers:[]};for(let n of u.INSTANCE.getValues()){let i=x.fromPartial({processorType:K,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 a=e.txHandlers.push(s.handler)-1;s.filter?i.btcTransactionConfigs.push({filters:C(s.filter),handlerId:a}):i.contract?.address!="*"&&i.btcTransactionConfigs.push({filters:C({outputFilter:{script_address:n.config.address}}),handlerId:a})}for(let s of n.blockHandlers){let a=e.blockHandlers.push(s.handler)-1;i.intervalConfigs.push({slot:0,slotInterval:s.blockInterval,minutes:0,minutesInterval:s.timeIntervalInMinutes,handlerId:a,fetchConfig:{transaction:s.fetchConfig?.getTransactions??!1,trace:!1,block:!0,transactionReceipt:!1,transactionReceiptLogs:!1}})}t.contractConfigs.push(i)}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 i of t.handlerIds){let s=this.handlers.txHandlers[i](t.data?.btcTransaction).catch(a=>{throw new c.ServerError(c.Status.INTERNAL,"error processing transaction: "+JSON.stringify(n)+`
2
+ import{Bd as l,D as f,Fd as F,Ka as V,Kd as H,La as P,Na as b,Oa as _,Pa as O,Tc as B,W as x,jd as A}from"./chunk-RASCZBLN.js";import{a as v}from"./chunk-RA75ESSD.js";import{a as o,f as y}from"./chunk-G5BIPHMS.js";var h=class extends F{constructor(e,n,i,s){super({});this.chainId=e;this.name=n;this.tx=i;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,i,s){super({});this.chainId=e;this.name=n;this.block=i;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 E}from"@sentio/runtime";var T=y(A(),1);var u=class r extends E{static{o(this,"BTCProcessorState")}static INSTANCE=new r},R=class r{constructor(t){this.config=t}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={handler:o(async i=>{let s=i.transaction,a=new h(this.config.chainId,this.config.name??this.config.address??"",s,this.config.address??s.vout?.[0]?.scriptPubKey?.address);return await t(s,a),a.stopAndGetResult()},"handler"),filter:e};return this.callHandlers.push(n),this}onInterval(t,e,n,i){e&&e.backfillInterval<e.recentInterval&&(e.backfillInterval=e.recentInterval);let s=this;return this.blockHandlers.push({blockInterval:n,timeIntervalInMinutes:e,handler:o(async function(a){let d=a.block;if(!d)throw new T.ServerError(T.Status.INVALID_ARGUMENT,"Block is empty");let p={...d};i?.getTransactions&&(p.tx=d.rawtx?.map(S=>S));let k=new m(s.config.chainId,s.config.name??s.config.address??"",p,s.config.address);return await t(p,k),k.stopAndGetResult()},"handler"),fetchConfig:i}),this}onBlockInterval(t,e=250,n=1e3,i){return this.onInterval(t,void 0,{recentInterval:e,backfillInterval:n},i)}onTimeInterval(t,e=60,n=240,i){return this.onInterval(t,{recentInterval:e,backfillInterval:n},void 0,i)}};import("node:process").then(r=>r.stdout.write(""));function L(r){if(r){let t=_.create(),e=[],n=[],i=[];for(let s of Array.isArray(r)?r:[r]){let{preVOut:a,preTransaction:d,...p}=s;e.push(p),a&&n.push(a),d&&i.push(d)}if(t.filters=b.create({filters:g(e)}),n.length>0){let s=g(n);s&&s.length>0&&(t.preVOut=s[0])}return i.length>0&&(t.preTransaction=C(i)?.[0]),t}}o(L,"toVinFilter");function M(r){if(r){let t=O.create(),e=Array.isArray(r)?r:[r];return t.filters=b.create({filters:g(e)}),t}}o(M,"toVOutFilter");function C(r){return(Array.isArray(r)?r:[r]).map(e=>({filter:g(e.filter),inputFilter:L(e.inputFilter),outputFilter:M(e.outputFilter)}))}o(C,"filters2Proto");function q(r){let t=V.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(i=>l(i))};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(q,"toCondition");function g(r){if(r&&r.length>0){let t=[];for(let e of r){let n=P.create();for(let[i,s]of Object.entries(e))n.conditions[i]=q(s);t.push(n)}return t}return[]}o(g,"convertFilters");import("node:process").then(r=>r.stdout.write(""));import{errorString as w,GLOBAL_CONFIG as N,mergeProcessResults as D,Plugin as G,PluginManager as z,USER_PROCESSOR as K}from"@sentio/runtime";var c=y(A(),1);var I=class extends G{static{o(this,"BTCPlugin")}name="BTCPlugin";handlers={txHandlers:[],blockHandlers:[]};async configure(t){let e={txHandlers:[],blockHandlers:[]};for(let n of u.INSTANCE.getValues()){let i=x.fromPartial({processorType:K,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 a=e.txHandlers.push(s.handler)-1;s.filter?i.btcTransactionConfigs.push({filters:C(s.filter),handlerId:a}):i.contract?.address!="*"&&i.btcTransactionConfigs.push({filters:C({outputFilter:{script_address:n.config.address}}),handlerId:a})}for(let s of n.blockHandlers){let a=e.blockHandlers.push(s.handler)-1;i.intervalConfigs.push({slot:0,slotInterval:s.blockInterval,minutes:0,minutesInterval:s.timeIntervalInMinutes,handlerId:a,fetchConfig:{transaction:s.fetchConfig?.getTransactions??!1,trace:!1,block:!0,transactionReceipt:!1,transactionReceiptLogs:!1}})}t.contractConfigs.push(i)}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 i of t.handlerIds){let s=this.handlers.txHandlers[i](t.data?.btcTransaction).catch(a=>{throw new c.ServerError(c.Status.INTERNAL,"error processing transaction: "+JSON.stringify(n)+`
3
3
  `+w(a))});N.execution.sequential&&await s,e.push(s)}return D(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 i of t.handlerIds){let s=this.handlers.blockHandlers[i](e).catch(a=>{throw new c.ServerError(c.Status.INTERNAL,"error processing block: "+JSON.stringify(e)+`
4
4
  `+w(a))});N.execution.sequential&&await s,n.push(s)}return D(await Promise.all(n))}};z.INSTANCE.register(new I);import("node:process").then(r=>r.stdout.write(""));export{h as a,m as b,u as c,R as d,C as e,I as f};
5
- //# sourceMappingURL=chunk-7YR44CBG.js.map
5
+ //# sourceMappingURL=chunk-VI7J5F7D.js.map
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{B,F as u,U as O,V as R,W as v,e as y,f as b,i as l,o as i,t as T,w as g,x as m,y as w,z as P}from"./chunk-2E4NSWHZ.js";import{a as o,e as S}from"./chunk-G5BIPHMS.js";var C=u.connect("0x0",R),x=class extends y{static{o(this,"ERC20BytesContractView")}constructor(t){super(t),this.callStatic.contract=t}async name(t,e,r){try{return await this.contract.getFunction("name()")(t||{})}catch(a){let s=new Error().stack;throw l(a,void 0,s)}}async totalSupply(t,e,r){try{return await this.contract.getFunction("totalSupply()")(t||{})}catch(a){let s=new Error().stack;throw l(a,void 0,s)}}async decimals(t,e,r){try{return await this.contract.getFunction("decimals()")(t||{})}catch(a){let s=new Error().stack;throw l(a,void 0,s)}}async balanceOf(t,e,r,a){try{return await this.contract.getFunction("balanceOf(address)")(t,e||{})}catch(s){let c=new Error().stack;throw l(s,void 0,c)}}async symbol(t,e,r){try{return await this.contract.getFunction("symbol()")(t||{})}catch(a){let s=new Error().stack;throw l(a,void 0,s)}}async allowance(t,e,r,a,s){try{return await this.contract.getFunction("allowance(address,address)")(t,e,r||{})}catch(c){let d=new Error().stack;throw l(c,void 0,d)}}callStatic={contract:this.contract,async approve(t,e,r,a,s){try{return await this.contract.getFunction("approve(address,uint256)").staticCall(t,e,r||{})}catch(c){let d=new Error().stack;throw l(c,void 0,d)}},async transferFrom(t,e,r,a,s,c){try{return await this.contract.getFunction("transferFrom(address,address,uint256)").staticCall(t,e,r,a||{})}catch(d){let F=new Error().stack;throw l(d,void 0,F)}},async transfer(t,e,r,a,s){try{return await this.contract.getFunction("transfer(address,uint256)").staticCall(t,e,r||{})}catch(c){let d=new Error().stack;throw l(c,void 0,d)}}};encodeCall={name(t){return i(t,"name","function name()",[])},approve(t,e,r){return i(r,"approve","function approve(address,uint256)",[t,e])},totalSupply(t){return i(t,"totalSupply","function totalSupply()",[])},transferFrom(t,e,r,a){return i(a,"transferFrom","function transferFrom(address,address,uint256)",[t,e,r])},decimals(t){return i(t,"decimals","function decimals()",[])},balanceOf(t,e){return i(e,"balanceOf","function balanceOf(address)",[t])},symbol(t){return i(t,"symbol","function symbol()",[])},transfer(t,e,r){return i(r,"transfer","function transfer(address,uint256)",[t,e])},allowance(t,e,r){return i(r,"allowance","function allowance(address,address)",[t,e])}}},h=class extends b{static{o(this,"ERC20BytesBoundContractView")}async name(t){return await this.view.name({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async totalSupply(t){return await this.view.totalSupply({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 balanceOf(t,e){return await this.view.balanceOf(t,{blockTag:this.context.blockNumber,...e},this.context.preparedData,this.context.getEthCallContext())}async symbol(t){return await this.view.symbol({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async allowance(t,e,r){return await this.view.allowance(t,e,{blockTag:this.context.blockNumber,...r},this.context.preparedData,this.context.getEthCallContext())}callStatic={view:this.view,context:this.context,async approve(t,e,r){return await this.view.callStatic.approve(t,e,{blockTag:this.context.blockNumber,...r},this.context.preparedData,this.context.getEthCallContext())},async transferFrom(t,e,r,a){return await this.view.callStatic.transferFrom(t,e,r,{blockTag:this.context.blockNumber,...a},this.context.preparedData,this.context.getEthCallContext())},async transfer(t,e,r){return await this.view.callStatic.transfer(t,e,{blockTag:this.context.blockNumber,...r},this.context.preparedData,this.context.getEthCallContext())}};encodeCall={view:this.view,context:this.context,name(t){return this.view.encodeCall.name({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},approve(t,e,r){return this.view.encodeCall.approve(t,e,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(r)})},totalSupply(t){return this.view.encodeCall.totalSupply({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},transferFrom(t,e,r,a){return this.view.encodeCall.transferFrom(t,e,r,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(a)})},decimals(t){return this.view.encodeCall.decimals({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},balanceOf(t,e){return this.view.encodeCall.balanceOf(t,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(e)})},symbol(t){return this.view.encodeCall.symbol({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},transfer(t,e,r){return this.view.encodeCall.transfer(t,e,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(r)})},allowance(t,e,r){return this.view.encodeCall.allowance(t,e,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(r)})}}},E=class n extends T{static{o(this,"ERC20BytesProcessor")}onEventApproval(t,e,r,a){return e||(e=C.filters["Approval(address,address,uint256)"](null,null,null)),super.onEthEvent(t,e,r,a)}onEventTransfer(t,e,r,a){return e||(e=C.filters["Transfer(address,address,uint256)"](null,null,null)),super.onEthEvent(t,e,r,a)}onCallName(t,e,r){return super.onEthTrace("0x06fdde03",t,e,r)}onCallApprove(t,e,r){return super.onEthTrace("0x095ea7b3",t,e,r)}onCallTotalSupply(t,e,r){return super.onEthTrace("0x18160ddd",t,e,r)}onCallTransferFrom(t,e,r){return super.onEthTrace("0x23b872dd",t,e,r)}onCallDecimals(t,e,r){return super.onEthTrace("0x313ce567",t,e,r)}onCallBalanceOf(t,e,r){return super.onEthTrace("0x70a08231",t,e,r)}onCallSymbol(t,e,r){return super.onEthTrace("0x95d89b41",t,e,r)}onCallTransfer(t,e,r){return super.onEthTrace("0xa9059cbb",t,e,r)}onCallAllowance(t,e,r){return super.onEthTrace("0xdd62ed3e",t,e,r)}static filters={Approval(t,e,r){return C.filters["Approval(address,address,uint256)"](t,e,r)},Transfer(t,e,r){return C.filters["Transfer(address,address,uint256)"](t,e,r)}};CreateBoundContractView(){let t=p(this.config.network,this.config.address);return new h(this.config.address,t)}static bind(t){t.name||(t.name="ERC20Bytes");let e=g(t);return e||(e=new n(t),m(t,e)),e}},f=class extends B{static{o(this,"ERC20BytesProcessorTemplate")}bindInternal(t){t.name||(t.name="ERC20Bytes");let e=g(t);return e||(e=new E(t),m(t,e)),e}onEventApproval(t,e,r,a){return e||(e=C.filters["Approval(address,address,uint256)"](null,null,null)),super.onEthEvent(t,e,r,a)}onEventTransfer(t,e,r,a){return e||(e=C.filters["Transfer(address,address,uint256)"](null,null,null)),super.onEthEvent(t,e,r,a)}};function p(n,t){let e=w("ERC20Bytes",t,n);if(!e){let r=u.connect(t,O(n));e=new x(r),P("ERC20Bytes",t,n,e)}return e}o(p,"getERC20BytesContract");function A(n,t){let e=p(n.getChainId(),t),r=new h(t,e);return r.context=n,r.callStatic&&(r.callStatic.context=n),r}o(A,"getERC20BytesContractOnContext");import("node:process").then(n=>n.stdout.write(""));var N={};S(N,{ERC20BytesBoundContractView:()=>h,ERC20BytesContractView:()=>x,ERC20BytesProcessor:()=>E,ERC20BytesProcessorTemplate:()=>f,ERC20Bytes__factory:()=>u,getERC20BytesContract:()=>p,getERC20BytesContractOnContext:()=>A,mockApprovalLog:()=>D,mockTransferLog:()=>I});var k={blockHash:"0x0000000000000000000000000000000000000000000000000000000000000000",blockNumber:0,logIndex:0,removed:!1,transactionHash:"0x0000000000000000000000000000000000000000000000000000000000000000",transactionIndex:0};function D(n,t){let r=p(v.EthChainId.ETHEREUM,n).rawContract.interface.encodeEventLog("Approval(address,address,uint256)",[t.owner,t.spender,t.value]);return{...k,index:0,address:n,data:r.data,topics:r.topics}}o(D,"mockApprovalLog");function I(n,t){let r=p(v.EthChainId.ETHEREUM,n).rawContract.interface.encodeEventLog("Transfer(address,address,uint256)",[t.from,t.to,t.value]);return{...k,index:0,address:n,data:r.data,topics:r.topics}}o(I,"mockTransferLog");import("node:process").then(n=>n.stdout.write(""));import("node:process").then(n=>n.stdout.write(""));import("node:process").then(n=>n.stdout.write(""));export{E as a,f as b,p as c,N as d};
3
- //# sourceMappingURL=chunk-MPJRHMKL.js.map
2
+ import{B,F as u,U as O,V as R,W as v,e as y,f as b,i as l,o as i,t as T,w as g,x as m,y as w,z as P}from"./chunk-GUTGNATB.js";import{a as o,e as S}from"./chunk-G5BIPHMS.js";var C=u.connect("0x0",R),x=class extends y{static{o(this,"ERC20BytesContractView")}constructor(t){super(t),this.callStatic.contract=t}async name(t,e,r){try{return await this.contract.getFunction("name()")(t||{})}catch(a){let s=new Error().stack;throw l(a,void 0,s)}}async totalSupply(t,e,r){try{return await this.contract.getFunction("totalSupply()")(t||{})}catch(a){let s=new Error().stack;throw l(a,void 0,s)}}async decimals(t,e,r){try{return await this.contract.getFunction("decimals()")(t||{})}catch(a){let s=new Error().stack;throw l(a,void 0,s)}}async balanceOf(t,e,r,a){try{return await this.contract.getFunction("balanceOf(address)")(t,e||{})}catch(s){let c=new Error().stack;throw l(s,void 0,c)}}async symbol(t,e,r){try{return await this.contract.getFunction("symbol()")(t||{})}catch(a){let s=new Error().stack;throw l(a,void 0,s)}}async allowance(t,e,r,a,s){try{return await this.contract.getFunction("allowance(address,address)")(t,e,r||{})}catch(c){let d=new Error().stack;throw l(c,void 0,d)}}callStatic={contract:this.contract,async approve(t,e,r,a,s){try{return await this.contract.getFunction("approve(address,uint256)").staticCall(t,e,r||{})}catch(c){let d=new Error().stack;throw l(c,void 0,d)}},async transferFrom(t,e,r,a,s,c){try{return await this.contract.getFunction("transferFrom(address,address,uint256)").staticCall(t,e,r,a||{})}catch(d){let F=new Error().stack;throw l(d,void 0,F)}},async transfer(t,e,r,a,s){try{return await this.contract.getFunction("transfer(address,uint256)").staticCall(t,e,r||{})}catch(c){let d=new Error().stack;throw l(c,void 0,d)}}};encodeCall={name(t){return i(t,"name","function name()",[])},approve(t,e,r){return i(r,"approve","function approve(address,uint256)",[t,e])},totalSupply(t){return i(t,"totalSupply","function totalSupply()",[])},transferFrom(t,e,r,a){return i(a,"transferFrom","function transferFrom(address,address,uint256)",[t,e,r])},decimals(t){return i(t,"decimals","function decimals()",[])},balanceOf(t,e){return i(e,"balanceOf","function balanceOf(address)",[t])},symbol(t){return i(t,"symbol","function symbol()",[])},transfer(t,e,r){return i(r,"transfer","function transfer(address,uint256)",[t,e])},allowance(t,e,r){return i(r,"allowance","function allowance(address,address)",[t,e])}}},h=class extends b{static{o(this,"ERC20BytesBoundContractView")}async name(t){return await this.view.name({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async totalSupply(t){return await this.view.totalSupply({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 balanceOf(t,e){return await this.view.balanceOf(t,{blockTag:this.context.blockNumber,...e},this.context.preparedData,this.context.getEthCallContext())}async symbol(t){return await this.view.symbol({blockTag:this.context.blockNumber,...t},this.context.preparedData,this.context.getEthCallContext())}async allowance(t,e,r){return await this.view.allowance(t,e,{blockTag:this.context.blockNumber,...r},this.context.preparedData,this.context.getEthCallContext())}callStatic={view:this.view,context:this.context,async approve(t,e,r){return await this.view.callStatic.approve(t,e,{blockTag:this.context.blockNumber,...r},this.context.preparedData,this.context.getEthCallContext())},async transferFrom(t,e,r,a){return await this.view.callStatic.transferFrom(t,e,r,{blockTag:this.context.blockNumber,...a},this.context.preparedData,this.context.getEthCallContext())},async transfer(t,e,r){return await this.view.callStatic.transfer(t,e,{blockTag:this.context.blockNumber,...r},this.context.preparedData,this.context.getEthCallContext())}};encodeCall={view:this.view,context:this.context,name(t){return this.view.encodeCall.name({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},approve(t,e,r){return this.view.encodeCall.approve(t,e,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(r)})},totalSupply(t){return this.view.encodeCall.totalSupply({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},transferFrom(t,e,r,a){return this.view.encodeCall.transferFrom(t,e,r,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(a)})},decimals(t){return this.view.encodeCall.decimals({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},balanceOf(t,e){return this.view.encodeCall.balanceOf(t,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(e)})},symbol(t){return this.view.encodeCall.symbol({chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(t)})},transfer(t,e,r){return this.view.encodeCall.transfer(t,e,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(r)})},allowance(t,e,r){return this.view.encodeCall.allowance(t,e,{chainId:this.context.chainId.toString(),address:this.context.address,blockTag:this.context.getBlockTag(r)})}}},E=class n extends T{static{o(this,"ERC20BytesProcessor")}onEventApproval(t,e,r,a){return e||(e=C.filters["Approval(address,address,uint256)"](null,null,null)),super.onEthEvent(t,e,r,a)}onEventTransfer(t,e,r,a){return e||(e=C.filters["Transfer(address,address,uint256)"](null,null,null)),super.onEthEvent(t,e,r,a)}onCallName(t,e,r){return super.onEthTrace("0x06fdde03",t,e,r)}onCallApprove(t,e,r){return super.onEthTrace("0x095ea7b3",t,e,r)}onCallTotalSupply(t,e,r){return super.onEthTrace("0x18160ddd",t,e,r)}onCallTransferFrom(t,e,r){return super.onEthTrace("0x23b872dd",t,e,r)}onCallDecimals(t,e,r){return super.onEthTrace("0x313ce567",t,e,r)}onCallBalanceOf(t,e,r){return super.onEthTrace("0x70a08231",t,e,r)}onCallSymbol(t,e,r){return super.onEthTrace("0x95d89b41",t,e,r)}onCallTransfer(t,e,r){return super.onEthTrace("0xa9059cbb",t,e,r)}onCallAllowance(t,e,r){return super.onEthTrace("0xdd62ed3e",t,e,r)}static filters={Approval(t,e,r){return C.filters["Approval(address,address,uint256)"](t,e,r)},Transfer(t,e,r){return C.filters["Transfer(address,address,uint256)"](t,e,r)}};CreateBoundContractView(){let t=p(this.config.network,this.config.address);return new h(this.config.address,t)}static bind(t){t.name||(t.name="ERC20Bytes");let e=g(t);return e||(e=new n(t),m(t,e)),e}},f=class extends B{static{o(this,"ERC20BytesProcessorTemplate")}bindInternal(t){t.name||(t.name="ERC20Bytes");let e=g(t);return e||(e=new E(t),m(t,e)),e}onEventApproval(t,e,r,a){return e||(e=C.filters["Approval(address,address,uint256)"](null,null,null)),super.onEthEvent(t,e,r,a)}onEventTransfer(t,e,r,a){return e||(e=C.filters["Transfer(address,address,uint256)"](null,null,null)),super.onEthEvent(t,e,r,a)}};function p(n,t){let e=w("ERC20Bytes",t,n);if(!e){let r=u.connect(t,O(n));e=new x(r),P("ERC20Bytes",t,n,e)}return e}o(p,"getERC20BytesContract");function A(n,t){let e=p(n.getChainId(),t),r=new h(t,e);return r.context=n,r.callStatic&&(r.callStatic.context=n),r}o(A,"getERC20BytesContractOnContext");import("node:process").then(n=>n.stdout.write(""));var N={};S(N,{ERC20BytesBoundContractView:()=>h,ERC20BytesContractView:()=>x,ERC20BytesProcessor:()=>E,ERC20BytesProcessorTemplate:()=>f,ERC20Bytes__factory:()=>u,getERC20BytesContract:()=>p,getERC20BytesContractOnContext:()=>A,mockApprovalLog:()=>D,mockTransferLog:()=>I});var k={blockHash:"0x0000000000000000000000000000000000000000000000000000000000000000",blockNumber:0,logIndex:0,removed:!1,transactionHash:"0x0000000000000000000000000000000000000000000000000000000000000000",transactionIndex:0};function D(n,t){let r=p(v.EthChainId.ETHEREUM,n).rawContract.interface.encodeEventLog("Approval(address,address,uint256)",[t.owner,t.spender,t.value]);return{...k,index:0,address:n,data:r.data,topics:r.topics}}o(D,"mockApprovalLog");function I(n,t){let r=p(v.EthChainId.ETHEREUM,n).rawContract.interface.encodeEventLog("Transfer(address,address,uint256)",[t.from,t.to,t.value]);return{...k,index:0,address:n,data:r.data,topics:r.topics}}o(I,"mockTransferLog");import("node:process").then(n=>n.stdout.write(""));import("node:process").then(n=>n.stdout.write(""));import("node:process").then(n=>n.stdout.write(""));export{E as a,f as b,p as c,N as d};
3
+ //# sourceMappingURL=chunk-WSLRWDNP.js.map
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{$c as k,Fd as r,Gd as s,Hd as t,Id as u,Jd as v,Ld as w,Md as x,Sc as b,Tc as c,Uc as d,Vc as e,Wc as f,Xc as g,Yc as h,Zc as i,_c as j,ad as l,bd as m,cd as n,dd as o,ed as p,fd as q}from"../chunk-TUAGKH5K.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{$c as k,Fd as r,Gd as s,Hd as t,Id as u,Jd as v,Ld as w,Md as x,Sc as b,Tc as c,Uc as d,Vc as e,Wc as f,Xc as g,Yc as h,Zc as i,_c as j,ad as l,bd as m,cd as n,dd as o,ed as p,fd as q}from"../chunk-RASCZBLN.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-JS3OLQ4N.js";import{C as a}from"../../chunk-2E4NSWHZ.js";import"../../chunk-KMBS637G.js";import"../../chunk-TUAGKH5K.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-4M475LJH.js";import{C as a}from"../../chunk-GUTGNATB.js";import"../../chunk-KMBS637G.js";import"../../chunk-RASCZBLN.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-37JW6BLR.js";import{D as a}from"../../chunk-2E4NSWHZ.js";import"../../chunk-KMBS637G.js";import"../../chunk-TUAGKH5K.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-V6OJKYVZ.js";import{D as a}from"../../chunk-GUTGNATB.js";import"../../chunk-KMBS637G.js";import"../../chunk-RASCZBLN.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-2E4NSWHZ.js";import"../../chunk-KMBS637G.js";import"../../chunk-TUAGKH5K.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-GUTGNATB.js";import"../../chunk-KMBS637G.js";import"../../chunk-RASCZBLN.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-2E4NSWHZ.js";import"../../chunk-KMBS637G.js";import"../../chunk-TUAGKH5K.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-GUTGNATB.js";import"../../chunk-KMBS637G.js";import"../../chunk-RASCZBLN.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-37JW6BLR.js";import{c as T,d as l,k as y}from"../../chunk-X5L63BMR.js";import{a,b as c,d as x}from"../../chunk-MPJRHMKL.js";import{c as P,d as f,k as E}from"../../chunk-JS3OLQ4N.js";import{$ as p,K as o,L as e,R as s,_ as t,fa as m}from"../../chunk-2E4NSWHZ.js";import"../../chunk-KMBS637G.js";import"../../chunk-TUAGKH5K.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-V6OJKYVZ.js";import{c as T,d as l,k as y}from"../../chunk-SWRIEEO2.js";import{a,b as c,d as x}from"../../chunk-WSLRWDNP.js";import{c as P,d as f,k as E}from"../../chunk-4M475LJH.js";import{$ as p,K as o,L as e,R as s,_ as t,fa as m}from"../../chunk-GUTGNATB.js";import"../../chunk-KMBS637G.js";import"../../chunk-RASCZBLN.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-X5L63BMR.js";import{H as a}from"../../chunk-2E4NSWHZ.js";import"../../chunk-KMBS637G.js";import"../../chunk-TUAGKH5K.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-SWRIEEO2.js";import{H as a}from"../../chunk-GUTGNATB.js";import"../../chunk-KMBS637G.js";import"../../chunk-RASCZBLN.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-2E4NSWHZ.js";import"../chunk-KMBS637G.js";import{Gb as b,oa as a}from"../chunk-TUAGKH5K.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-GUTGNATB.js";import"../chunk-KMBS637G.js";import{Gb as b,oa as a}from"../chunk-RASCZBLN.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}from"../chunk-HLNH3NYZ.js";import"../chunk-KMBS637G.js";import"../chunk-TUAGKH5K.js";import"../chunk-RA75ESSD.js";import"../chunk-G5BIPHMS.js";export{h as DEFAULT_FUEL_FETCH_CONFIG,t as FuelAbstractProcessor,o as FuelAssetProcessor,s as FuelBaseProcessorTemplate,e as FuelCall,f as FuelContext,g as FuelContractContext,p as FuelGlobalProcessor,b as FuelNetwork,q as FuelPlugin,k as FuelProcessor,a as FuelProcessorState,r as FuelProcessorTemplateProcessorState,u as TypedCall,n as addFuelProcessor,i as decodeFuelTransaction,j as decodeFuelTransactionWithAbi,m as getFuelProcessor,l 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}from"../chunk-GT6HNPDP.js";import"../chunk-KMBS637G.js";import"../chunk-RASCZBLN.js";import"../chunk-RA75ESSD.js";import"../chunk-G5BIPHMS.js";export{h as DEFAULT_FUEL_FETCH_CONFIG,t as FuelAbstractProcessor,o as FuelAssetProcessor,s as FuelBaseProcessorTemplate,e as FuelCall,f as FuelContext,g as FuelContractContext,p as FuelGlobalProcessor,b as FuelNetwork,q as FuelPlugin,k as FuelProcessor,a as FuelProcessorState,r as FuelProcessorTemplateProcessorState,u as TypedCall,n as addFuelProcessor,i as decodeFuelTransaction,j as decodeFuelTransactionWithAbi,m as getFuelProcessor,l 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{$ as Z,$a as Za,$c as _b,A as y,Aa as ya,Ab as yb,B as z,Ba as za,Bb as zb,C as A,Ca as Aa,Cb as Ab,D as B,Da as Ba,Db as Bb,E as C,Ea as Ca,Eb as Cb,F as D,Fa as Da,Fb as Db,Fd as fc,G as E,Ga as Ea,Gb as Eb,Gd as gc,H as F,Ha as Fa,Hb as Fb,Hd as hc,I as G,Ia as Ga,Ib as Gb,Id as ic,J as H,Ja as Ha,Jb as Hb,Jd as jc,K as I,Ka as Ia,Kb as Ib,L as J,La as Ja,Lb as Jb,Ld as kc,M as K,Ma as Ka,Mb as Kb,Md as lc,N as L,Na as La,Nb as Lb,O as M,Oa as Ma,Ob as Mb,P as N,Pa as Na,Pb as Nb,Q as O,Qa as Oa,Qb as Ob,R as P,Ra as Pa,Rb as Pb,S as Q,Sa as Qa,Sc as Rb,T as R,Ta as Ra,Tc as Sb,U as S,Ua as Sa,Uc as Tb,V as T,Va as Ta,Vc as Ub,W as U,Wa as Ua,Wc as Vb,X as V,Xa as Va,Xc as Wb,Y as W,Ya as Wa,Yc as Xb,Z as X,Za as Xa,Zc as Yb,_ as Y,_a as Ya,_c as Zb,aa as _,ab as _a,ad as $b,ba as $,bb as $a,bd as ac,c as a,ca as aa,cb as ab,cd as bc,d as b,da as ba,db as bb,dd as cc,e as c,ea as ca,eb as cb,ed as dc,f as d,fa as da,fb as db,fd as ec,g as e,ga as ea,gb as eb,h as f,ha as fa,hb as fb,i as g,ia as ga,ib as gb,j as h,ja as ha,jb as hb,k as i,ka as ia,kb as ib,l as j,la as ja,lb as jb,m as k,ma as ka,mb as kb,n as l,na as la,nb as lb,o as m,oa as ma,ob as mb,p as n,pa as na,pb as nb,q as o,qa as oa,qb as ob,r as p,ra as pa,rb as pb,s as q,sa as qa,sb as qb,t as r,ta as ra,tb as rb,u as s,ua as sa,ub as sb,v as t,va as ta,vb as tb,w as u,wa as ua,wb as ub,x as v,xa as va,xb as vb,y as w,ya as wa,yb as wb,z as x,za as xa,zb as xb}from"./chunk-TUAGKH5K.js";import{a as Qb}from"./chunk-RA75ESSD.js";import"./chunk-G5BIPHMS.js";export{lc as ALL_ADDRESS,da as AccountConfig,jc 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,fc as BaseContext,Wb as BasicFieldType,Qb as BigDecimal,o as BigInteger,la as BlockHandlerConfig,k as CoinID,U as ContractConfig,ia as ContractInfo,kc as CorePlugin,ta as CosmosLogHandlerConfig,ac as Counter,bc as CounterBinding,Mb as CounterResult,ab as DBRequest,eb as DBRequest_DBDelete,fb as DBRequest_DBFilter,bb as DBRequest_DBGet,cb as DBRequest_DBList,N as DBRequest_DBOperator,db as DBRequest_DBUpsert,Za as DBResponse,gb as Data,V as DataBaseSchema,zb as DataBinding,nb as Data_AptCall,mb as Data_AptEvent,ob as Data_AptResource,yb as Data_BTCBlock,xb as Data_BTCTransaction,vb as Data_CosmosCall,ib as Data_EthBlock,hb as Data_EthLog,kb as Data_EthTrace,jb as Data_EthTransaction,ub as Data_FuelBlock,tb as Data_FuelCall,lb as Data_SolInstruction,wb as Data_StarknetEvent,qb as Data_SuiCall,pb as Data_SuiEvent,rb as Data_SuiObject,sb as Data_SuiObjectChange,Tb as DatabaseSchema,a as Empty,_a as Entity,$a as EntityList,Db as EthCallContext,Cb as EthCallParam,ma as EthFetchConfig,$ as EventLogConfig,K as EventLogConfig_BasicFieldType,ba as EventLogConfig_Field,aa as EventLogConfig_StructFieldType,Yb as EventLogger,Vb as EventLoggerBinding,Ub as EventLoggerState,ic as EventTracker,hc as EventTrackerState,Y as EventTrackingConfig,Nb as EventTrackingResult,R as ExecutionConfig,Z as ExportConfig,Ob as ExportResult,gc as Exporter,qa as FuelAssetHandlerConfig,ra as FuelAssetHandlerConfig_AssetFilter,Pa as FuelCallFilter,Qa as FuelCallHandlerConfig,sa as FuelLogHandlerConfig,cc as Gauge,dc as GaugeBinding,Lb as GaugeResult,ea as HandleInterval,B as HandlerType,va as InstructionHandlerConfig,h as ListValue,ua as LogFilter,pa as LogHandlerConfig,E as LogLevel,ec as Meter,_ as MetricConfig,$b as MetricOptions,p as MetricType,Jb 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,Fb as PreparedData,Gb as PreparedData_EthCallResultsEntry,Eb as PreprocessResult,Wa as PreprocessStreamRequest,Xa as PreprocessStreamRequest_DataBindings,Ya as PreprocessStreamResponse,Ta as ProcessBindingResponse,Sa as ProcessBindingsRequest,S as ProcessConfigRequest,T as ProcessConfigResponse,Bb as ProcessResult,Ua as ProcessStreamRequest,Va as ProcessStreamResponse,Pb as ProcessorDefinition,Q as ProjectConfig,Hb as RecordMetaData,Ib as RecordMetaData_LabelsEntry,wa as ResourceConfig,X as RetentionConfig,m as RichStruct,n as RichStructList,l as RichValue,j as RichValue_NullValue,Kb as RuntimeInfo,Oa as StarknetEventFilter,Fa as StarknetEventHandlerConfig,ka as StartRequest,Ab as StateResult,e as Struct,f as Struct_FieldsEntry,ja as TemplateInstance,i as Timestamp,Ra 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,Xb 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,Sb as normalizeLabels,c as nullValueFromJSON,d as nullValueToJSON,Rb as scaleDown,_b as toBigInteger,Zb as toMetricValue,I as totalPerEntityAggregation_TypeFromJSON,J as totalPerEntityAggregation_TypeToJSON};
2
+ import"./chunk-SUCYR7EB.js";import{$ as Z,$a as Za,$c as _b,A as y,Aa as ya,Ab as yb,B as z,Ba as za,Bb as zb,C as A,Ca as Aa,Cb as Ab,D as B,Da as Ba,Db as Bb,E as C,Ea as Ca,Eb as Cb,F as D,Fa as Da,Fb as Db,Fd as fc,G as E,Ga as Ea,Gb as Eb,Gd as gc,H as F,Ha as Fa,Hb as Fb,Hd as hc,I as G,Ia as Ga,Ib as Gb,Id as ic,J as H,Ja as Ha,Jb as Hb,Jd as jc,K as I,Ka as Ia,Kb as Ib,L as J,La as Ja,Lb as Jb,Ld as kc,M as K,Ma as Ka,Mb as Kb,Md as lc,N as L,Na as La,Nb as Lb,O as M,Oa as Ma,Ob as Mb,P as N,Pa as Na,Pb as Nb,Q as O,Qa as Oa,Qb as Ob,R as P,Ra as Pa,Rb as Pb,S as Q,Sa as Qa,Sc as Rb,T as R,Ta as Ra,Tc as Sb,U as S,Ua as Sa,Uc as Tb,V as T,Va as Ta,Vc as Ub,W as U,Wa as Ua,Wc as Vb,X as V,Xa as Va,Xc as Wb,Y as W,Ya as Wa,Yc as Xb,Z as X,Za as Xa,Zc as Yb,_ as Y,_a as Ya,_c as Zb,aa as _,ab as _a,ad as $b,ba as $,bb as $a,bd as ac,c as a,ca as aa,cb as ab,cd as bc,d as b,da as ba,db as bb,dd as cc,e as c,ea as ca,eb as cb,ed as dc,f as d,fa as da,fb as db,fd as ec,g as e,ga as ea,gb as eb,h as f,ha as fa,hb as fb,i as g,ia as ga,ib as gb,j as h,ja as ha,jb as hb,k as i,ka as ia,kb as ib,l as j,la as ja,lb as jb,m as k,ma as ka,mb as kb,n as l,na as la,nb as lb,o as m,oa as ma,ob as mb,p as n,pa as na,pb as nb,q as o,qa as oa,qb as ob,r as p,ra as pa,rb as pb,s as q,sa as qa,sb as qb,t as r,ta as ra,tb as rb,u as s,ua as sa,ub as sb,v as t,va as ta,vb as tb,w as u,wa as ua,wb as ub,x as v,xa as va,xb as vb,y as w,ya as wa,yb as wb,z as x,za as xa,zb as xb}from"./chunk-RASCZBLN.js";import{a as Qb}from"./chunk-RA75ESSD.js";import"./chunk-G5BIPHMS.js";export{lc as ALL_ADDRESS,da as AccountConfig,jc 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,fc as BaseContext,Wb as BasicFieldType,Qb as BigDecimal,o as BigInteger,la as BlockHandlerConfig,k as CoinID,U as ContractConfig,ia as ContractInfo,kc as CorePlugin,ta as CosmosLogHandlerConfig,ac as Counter,bc as CounterBinding,Mb as CounterResult,ab as DBRequest,eb as DBRequest_DBDelete,fb as DBRequest_DBFilter,bb as DBRequest_DBGet,cb as DBRequest_DBList,N as DBRequest_DBOperator,db as DBRequest_DBUpsert,Za as DBResponse,gb as Data,V as DataBaseSchema,zb as DataBinding,nb as Data_AptCall,mb as Data_AptEvent,ob as Data_AptResource,yb as Data_BTCBlock,xb as Data_BTCTransaction,vb as Data_CosmosCall,ib as Data_EthBlock,hb as Data_EthLog,kb as Data_EthTrace,jb as Data_EthTransaction,ub as Data_FuelBlock,tb as Data_FuelCall,lb as Data_SolInstruction,wb as Data_StarknetEvent,qb as Data_SuiCall,pb as Data_SuiEvent,rb as Data_SuiObject,sb as Data_SuiObjectChange,Tb as DatabaseSchema,a as Empty,_a as Entity,$a as EntityList,Db as EthCallContext,Cb as EthCallParam,ma as EthFetchConfig,$ as EventLogConfig,K as EventLogConfig_BasicFieldType,ba as EventLogConfig_Field,aa as EventLogConfig_StructFieldType,Yb as EventLogger,Vb as EventLoggerBinding,Ub as EventLoggerState,ic as EventTracker,hc as EventTrackerState,Y as EventTrackingConfig,Nb as EventTrackingResult,R as ExecutionConfig,Z as ExportConfig,Ob as ExportResult,gc as Exporter,qa as FuelAssetHandlerConfig,ra as FuelAssetHandlerConfig_AssetFilter,Pa as FuelCallFilter,Qa as FuelCallHandlerConfig,sa as FuelLogHandlerConfig,cc as Gauge,dc as GaugeBinding,Lb as GaugeResult,ea as HandleInterval,B as HandlerType,va as InstructionHandlerConfig,h as ListValue,ua as LogFilter,pa as LogHandlerConfig,E as LogLevel,ec as Meter,_ as MetricConfig,$b as MetricOptions,p as MetricType,Jb 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,Fb as PreparedData,Gb as PreparedData_EthCallResultsEntry,Eb as PreprocessResult,Wa as PreprocessStreamRequest,Xa as PreprocessStreamRequest_DataBindings,Ya as PreprocessStreamResponse,Ta as ProcessBindingResponse,Sa as ProcessBindingsRequest,S as ProcessConfigRequest,T as ProcessConfigResponse,Bb as ProcessResult,Ua as ProcessStreamRequest,Va as ProcessStreamResponse,Pb as ProcessorDefinition,Q as ProjectConfig,Hb as RecordMetaData,Ib as RecordMetaData_LabelsEntry,wa as ResourceConfig,X as RetentionConfig,m as RichStruct,n as RichStructList,l as RichValue,j as RichValue_NullValue,Kb as RuntimeInfo,Oa as StarknetEventFilter,Fa as StarknetEventHandlerConfig,ka as StartRequest,Ab as StateResult,e as Struct,f as Struct_FieldsEntry,ja as TemplateInstance,i as Timestamp,Ra 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,Xb 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,Sb as normalizeLabels,c as nullValueFromJSON,d as nullValueToJSON,Rb as scaleDown,_b as toBigInteger,Zb 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,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-LQ2JMF5Z.js";import{za as a}from"../chunk-TUAGKH5K.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,D as MoveAccountContext,C as MoveContext,a as MoveFetchConfig,A as ObjectChangeHandler,B as ResourceChangeHandler,b as SPLITTER,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,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-TB5YQH36.js";import{za as a}from"../chunk-RASCZBLN.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,D as MoveAccountContext,C as MoveContext,a as MoveFetchConfig,A as ObjectChangeHandler,B as ResourceChangeHandler,b as SPLITTER,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-L5L6Z77V.js";import"../../chunk-DEPDZR5Z.js";import"../../chunk-BKL3I6N3.js";import"../../chunk-RQ5L7SUN.js";import"../../chunk-SUCYR7EB.js";import"../../chunk-KMBS637G.js";import"../../chunk-TUAGKH5K.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-AN265AQX.js";import"../../chunk-DEPDZR5Z.js";import"../../chunk-BKL3I6N3.js";import"../../chunk-RQ5L7SUN.js";import"../../chunk-SUCYR7EB.js";import"../../chunk-KMBS637G.js";import"../../chunk-RASCZBLN.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-L5L6Z77V.js";import"../chunk-DEPDZR5Z.js";import"../chunk-BKL3I6N3.js";import"../chunk-RQ5L7SUN.js";import"../chunk-SUCYR7EB.js";import"../chunk-KMBS637G.js";import"../chunk-TUAGKH5K.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-AN265AQX.js";import"../chunk-DEPDZR5Z.js";import"../chunk-BKL3I6N3.js";import"../chunk-RQ5L7SUN.js";import"../chunk-SUCYR7EB.js";import"../chunk-KMBS637G.js";import"../chunk-RASCZBLN.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