@sentio/sdk-bundle 2.54.0-rc.8 → 2.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/lib/aptos/builtin/0x1.js +1 -1
  2. package/lib/aptos/builtin/0x3.js +1 -1
  3. package/lib/aptos/builtin/0x4.js +1 -1
  4. package/lib/aptos/builtin/index.js +1 -1
  5. package/lib/aptos/ext/index.js +1 -1
  6. package/lib/aptos/index.js +1 -1
  7. package/lib/btc/index.js +1 -1
  8. package/lib/{chunk-542NJB43.js → chunk-2AZ3DDYW.js} +2 -2
  9. package/lib/{chunk-CXGSRLW3.js → chunk-2SDXZNMS.js} +2 -2
  10. package/lib/{chunk-OW7PNQXI.js → chunk-4EPXEM2C.js} +2 -2
  11. package/lib/{chunk-WL2T4PIX.js → chunk-4R3P3DNX.js} +2 -2
  12. package/lib/{chunk-3KEEWCG3.js → chunk-C2Q4CM5A.js} +2 -2
  13. package/lib/{chunk-M6HSLAJ4.js → chunk-D4BGG4V2.js} +2 -2
  14. package/lib/{chunk-RFZC5JYC.js → chunk-DSXBXRSC.js} +2 -2
  15. package/lib/{chunk-4GQKFZWS.js → chunk-HYNPEPEK.js} +2 -2
  16. package/lib/{chunk-OVKYD5BL.js → chunk-ISDMCYZJ.js} +2 -2
  17. package/lib/{chunk-2JVSMCLK.js → chunk-JIW4UTB3.js} +2 -2
  18. package/lib/{chunk-GU4TPSPR.js → chunk-KBR5XLLQ.js} +2 -2
  19. package/lib/{chunk-65MPQCTW.js → chunk-M4IWP4I2.js} +184 -184
  20. package/lib/{chunk-65MPQCTW.js.map → chunk-M4IWP4I2.js.map} +1 -1
  21. package/lib/{chunk-XA5HI7QM.js → chunk-MWNHHNKW.js} +2 -2
  22. package/lib/{chunk-L4QQFA2V.js → chunk-NM2HNEFL.js} +2 -2
  23. package/lib/{chunk-5UWWL2KX.js → chunk-Q6B5XHC2.js} +2 -2
  24. package/lib/{chunk-5UWWL2KX.js.map → chunk-Q6B5XHC2.js.map} +1 -1
  25. package/lib/{chunk-6X3RJ7PD.js → chunk-TWWTSJR3.js} +2 -2
  26. package/lib/{chunk-VZY2WFNQ.js → chunk-V55TBLKA.js} +2 -2
  27. package/lib/{chunk-KMM5CTDH.js → chunk-VYQNLOTQ.js} +2 -2
  28. package/lib/{chunk-3A663CBX.js → chunk-WG3B6X5H.js} +2 -2
  29. package/lib/{chunk-FWJ7PQT3.js → chunk-YSEOUYZV.js} +2 -2
  30. package/lib/core/index.js +1 -1
  31. package/lib/eth/builtin/eacaggregatorproxy.js +1 -1
  32. package/lib/eth/builtin/erc1155.js +1 -1
  33. package/lib/eth/builtin/erc20.js +1 -1
  34. package/lib/eth/builtin/erc721.js +1 -1
  35. package/lib/eth/builtin/index.js +1 -1
  36. package/lib/eth/builtin/weth9.js +1 -1
  37. package/lib/eth/index.js +1 -1
  38. package/lib/fuel/index.js +1 -1
  39. package/lib/index.js +1 -1
  40. package/lib/move/index.js +1 -1
  41. package/lib/solana/builtin/index.js +1 -1
  42. package/lib/solana/index.js +1 -1
  43. package/lib/stark/index.js +1 -1
  44. package/lib/store/index.js +1 -1
  45. package/lib/store/index.js.map +1 -1
  46. package/lib/sui/builtin/0x1.js +1 -1
  47. package/lib/sui/builtin/0x2.js +1 -1
  48. package/lib/sui/builtin/0x3.js +1 -1
  49. package/lib/sui/builtin/index.js +1 -1
  50. package/lib/sui/ext/index.js +1 -1
  51. package/lib/sui/index.js +1 -1
  52. package/lib/testing/index.js +144 -1
  53. package/lib/testing/index.js.map +1 -1
  54. package/lib/utils/index.js +1 -1
  55. package/package.json +2 -2
  56. /package/lib/{chunk-542NJB43.js.map → chunk-2AZ3DDYW.js.map} +0 -0
  57. /package/lib/{chunk-CXGSRLW3.js.map → chunk-2SDXZNMS.js.map} +0 -0
  58. /package/lib/{chunk-OW7PNQXI.js.map → chunk-4EPXEM2C.js.map} +0 -0
  59. /package/lib/{chunk-WL2T4PIX.js.map → chunk-4R3P3DNX.js.map} +0 -0
  60. /package/lib/{chunk-3KEEWCG3.js.map → chunk-C2Q4CM5A.js.map} +0 -0
  61. /package/lib/{chunk-M6HSLAJ4.js.map → chunk-D4BGG4V2.js.map} +0 -0
  62. /package/lib/{chunk-RFZC5JYC.js.map → chunk-DSXBXRSC.js.map} +0 -0
  63. /package/lib/{chunk-4GQKFZWS.js.map → chunk-HYNPEPEK.js.map} +0 -0
  64. /package/lib/{chunk-OVKYD5BL.js.map → chunk-ISDMCYZJ.js.map} +0 -0
  65. /package/lib/{chunk-2JVSMCLK.js.map → chunk-JIW4UTB3.js.map} +0 -0
  66. /package/lib/{chunk-GU4TPSPR.js.map → chunk-KBR5XLLQ.js.map} +0 -0
  67. /package/lib/{chunk-XA5HI7QM.js.map → chunk-MWNHHNKW.js.map} +0 -0
  68. /package/lib/{chunk-L4QQFA2V.js.map → chunk-NM2HNEFL.js.map} +0 -0
  69. /package/lib/{chunk-6X3RJ7PD.js.map → chunk-TWWTSJR3.js.map} +0 -0
  70. /package/lib/{chunk-VZY2WFNQ.js.map → chunk-V55TBLKA.js.map} +0 -0
  71. /package/lib/{chunk-KMM5CTDH.js.map → chunk-VYQNLOTQ.js.map} +0 -0
  72. /package/lib/{chunk-3A663CBX.js.map → chunk-WG3B6X5H.js.map} +0 -0
  73. /package/lib/{chunk-FWJ7PQT3.js.map → chunk-YSEOUYZV.js.map} +0 -0
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{Pd as x}from"./chunk-65MPQCTW.js";import{a as i}from"./chunk-G5BIPHMS.js";var C=class{static{i(this,"EventHandler")}filters;handlerName;handler;fetchConfig},E=class{static{i(this,"CallHandler")}filters;handlerName;handler;fetchConfig},S=class{static{i(this,"ObjectChangeHandler")}handlerName;handler;type},_=class{static{i(this,"ResourceChangeHandler")}handlerName;handler;type},P=class{static{i(this,"ResourceIntervalHandler")}type;versionInterval;timeIntervalInMinutes;handler;handlerName;fetchConfig},I=class{static{i(this,"TransactionIntervalHandler")}versionInterval;timeIntervalInMinutes;handler;handlerName;fetchConfig};import("node:process").then(t=>t.stdout.write(""));var v=class extends x{static{i(this,"MoveContext")}address;coder;network},F=class extends x{static{i(this,"MoveAccountContext")}address;coder;network};import("node:process").then(t=>t.stdout.write(""));var N=i(t=>{if(!t||t.length===0)return"";let e=t.toLowerCase();return e.substring(0,1).toUpperCase()+e.substring(1,e.length)},"capitalize"),T=i(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 ce(t){let e=parseInt(t,16);return Number.isNaN(e)?!1:e>=0&&e<16}i(ce,"isFrameworkAccount");function g(t){return"0x"+t.toLowerCase().replace(/^(0x)/,"").replace(/^0*/,"")}i(g,"accountTypeString");var U=32;function D(t){return/^(0x|0X)?[a-fA-F0-9]+$/.test(t)}i(D,"isHex");function Y(t){return/^(0x|0X)/.test(t)?(t.length-2)/2:t.length/2}i(Y,"getHexByteLength");function $(t){return D(t)&&Y(t)<=U}i($,"isValidMoveAddress");function d(t){if(!$(t))throw Error("Not valid move address");return`0x${t.toLowerCase().replace(/^(0x)/,"").padStart(U*2,"0")}`}i(d,"accountAddressString");var z=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 pe(t){return z.has(t)?t+"$":t}i(pe,"normalizeToJSName");function A(t){let e=t.split(p).slice(0,2);return[e[0],e[1]]}i(A,"moduleQnameForType");function m(t){return g(t.address)+p+t.name}i(m,"moduleQname");function ue(t,e){return[g(t.address),t.name,e.name].join(p)}i(ue,"structQname");function le(t){return t.charAt(0).toUpperCase()+t.slice(1)}i(le,"upperFirst");function fe(t){let e=T(t);return t.endsWith("_")?e+"_":e}i(fe,"camel");var u=class t{static{i(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 a=e.get(s.qname);a?n.push(a):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 a=t[s];if(a!==" "){if(a==="<"){let o=r.join("");r=[],e[e.length-1].qname=o,q(e[e.length-1]),e.push(new u(""));continue}if(a===">"||a===","){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),a===","&&e.push(new u(""));continue}r.push(a)}}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}i(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)}}i(q,"adjustType");var V=new u("any");function B(t=V){return L.VECTOR_TYPE_ANY.apply(t)}i(B,"vectorType");var L={ADDRESS_TYPE:new u("address"),VECTOR_TYPE_ANY:new u("vector"),VECTOR_TYPE:B,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(L).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}i(w,"matchType");var M=class{static{i(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)}},R=class{static{i(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 M(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 a of s.dependedTypes()){let[o,c]=A(a);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 a of s.type.dependedTypes()){let[o,c]=A(a);r.addImport(o,c),this.accountImports.has(o)||this.pendingAccounts.add(o)}}};var j=class{static{i(this,"ChainAdapter")}};var k=class{static{i(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),a=d(r);e=[a,n,s].join(p);let o=this.typeMapping.get(e);if(o)return o;let c=this.requestMap.get(a);if(c||(c=this.adapter.fetchModules(a).then(l=>{for(let f of l)this.load(f,a)}),this.requestMap.set(a,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),a=d(r);e=[a,n,s].join(p);let o=this.funcMapping.get(e);if(o)return o;let c=this.requestMap.get(a);if(c||(c=this.adapter.fetchModules(a).then(l=>{for(let f of l)this.load(f,a)}).catch(l=>{this.requestMap.delete(a)}),this.requestMap.set(a,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 a={};for(let o of n.fields){let c=o.type;c=c.applyTypeArgs(s);let l=this.adapter.getData(e)[o.name],f=await this.decode(l,c);a[o.name]=f}return a}async decodeArray(e,r,n=!0){let s=[];for(let[a,o]of e.entries()){let c=r[a];try{!n&&o===void 0?s.push(o):s.push(await this.decode(o,c))}catch(l){throw Error("Decoding error for "+JSON.stringify(o)+"using type"+c+l.toString())}}return s}encode(e){if(e!=null){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 a=this.adapter.getType(s),o=y(a);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(a=>a.getSignature()),s;try{s=await this.decode(e,r)}catch(a){throw Error("Decoding error for struct"+JSON.stringify(e)+a.toString())}return{...e,data_decoded:s,type_arguments:n}}async decodeType(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 O;(function(t){t.PRIVATE="private",t.PUBLIC="public",t.FRIEND="friend"})(O||(O={}));import("node:process").then(t=>t.stdout.write(""));export{p as a,h as b,ce as c,g as d,$ as e,d as f,pe as g,A as h,m as i,ue as j,le as k,fe as l,u as m,y as n,V as o,B as p,L as q,w as r,M as s,R as t,j as u,k as v,O as w,C as x,E as y,S as z,_ as A,P as B,I as C,v as D,F as E};
3
- //# sourceMappingURL=chunk-FWJ7PQT3.js.map
2
+ import{ne as x}from"./chunk-M4IWP4I2.js";import{a as i}from"./chunk-G5BIPHMS.js";var C=class{static{i(this,"EventHandler")}filters;handlerName;handler;fetchConfig},E=class{static{i(this,"CallHandler")}filters;handlerName;handler;fetchConfig},S=class{static{i(this,"ObjectChangeHandler")}handlerName;handler;type},_=class{static{i(this,"ResourceChangeHandler")}handlerName;handler;type},P=class{static{i(this,"ResourceIntervalHandler")}type;versionInterval;timeIntervalInMinutes;handler;handlerName;fetchConfig},I=class{static{i(this,"TransactionIntervalHandler")}versionInterval;timeIntervalInMinutes;handler;handlerName;fetchConfig};import("node:process").then(t=>t.stdout.write(""));var v=class extends x{static{i(this,"MoveContext")}address;coder;network},F=class extends x{static{i(this,"MoveAccountContext")}address;coder;network};import("node:process").then(t=>t.stdout.write(""));var N=i(t=>{if(!t||t.length===0)return"";let e=t.toLowerCase();return e.substring(0,1).toUpperCase()+e.substring(1,e.length)},"capitalize"),T=i(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 ce(t){let e=parseInt(t,16);return Number.isNaN(e)?!1:e>=0&&e<16}i(ce,"isFrameworkAccount");function g(t){return"0x"+t.toLowerCase().replace(/^(0x)/,"").replace(/^0*/,"")}i(g,"accountTypeString");var U=32;function D(t){return/^(0x|0X)?[a-fA-F0-9]+$/.test(t)}i(D,"isHex");function Y(t){return/^(0x|0X)/.test(t)?(t.length-2)/2:t.length/2}i(Y,"getHexByteLength");function $(t){return D(t)&&Y(t)<=U}i($,"isValidMoveAddress");function d(t){if(!$(t))throw Error("Not valid move address");return`0x${t.toLowerCase().replace(/^(0x)/,"").padStart(U*2,"0")}`}i(d,"accountAddressString");var z=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 pe(t){return z.has(t)?t+"$":t}i(pe,"normalizeToJSName");function A(t){let e=t.split(p).slice(0,2);return[e[0],e[1]]}i(A,"moduleQnameForType");function m(t){return g(t.address)+p+t.name}i(m,"moduleQname");function ue(t,e){return[g(t.address),t.name,e.name].join(p)}i(ue,"structQname");function le(t){return t.charAt(0).toUpperCase()+t.slice(1)}i(le,"upperFirst");function fe(t){let e=T(t);return t.endsWith("_")?e+"_":e}i(fe,"camel");var u=class t{static{i(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 a=e.get(s.qname);a?n.push(a):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 a=t[s];if(a!==" "){if(a==="<"){let o=r.join("");r=[],e[e.length-1].qname=o,q(e[e.length-1]),e.push(new u(""));continue}if(a===">"||a===","){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),a===","&&e.push(new u(""));continue}r.push(a)}}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}i(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)}}i(q,"adjustType");var V=new u("any");function B(t=V){return L.VECTOR_TYPE_ANY.apply(t)}i(B,"vectorType");var L={ADDRESS_TYPE:new u("address"),VECTOR_TYPE_ANY:new u("vector"),VECTOR_TYPE:B,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(L).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}i(w,"matchType");var M=class{static{i(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)}},R=class{static{i(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 M(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 a of s.dependedTypes()){let[o,c]=A(a);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 a of s.type.dependedTypes()){let[o,c]=A(a);r.addImport(o,c),this.accountImports.has(o)||this.pendingAccounts.add(o)}}};var j=class{static{i(this,"ChainAdapter")}};var k=class{static{i(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),a=d(r);e=[a,n,s].join(p);let o=this.typeMapping.get(e);if(o)return o;let c=this.requestMap.get(a);if(c||(c=this.adapter.fetchModules(a).then(l=>{for(let f of l)this.load(f,a)}),this.requestMap.set(a,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),a=d(r);e=[a,n,s].join(p);let o=this.funcMapping.get(e);if(o)return o;let c=this.requestMap.get(a);if(c||(c=this.adapter.fetchModules(a).then(l=>{for(let f of l)this.load(f,a)}).catch(l=>{this.requestMap.delete(a)}),this.requestMap.set(a,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 a={};for(let o of n.fields){let c=o.type;c=c.applyTypeArgs(s);let l=this.adapter.getData(e)[o.name],f=await this.decode(l,c);a[o.name]=f}return a}async decodeArray(e,r,n=!0){let s=[];for(let[a,o]of e.entries()){let c=r[a];try{!n&&o===void 0?s.push(o):s.push(await this.decode(o,c))}catch(l){throw Error("Decoding error for "+JSON.stringify(o)+"using type"+c+l.toString())}}return s}encode(e){if(e!=null){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 a=this.adapter.getType(s),o=y(a);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(a=>a.getSignature()),s;try{s=await this.decode(e,r)}catch(a){throw Error("Decoding error for struct"+JSON.stringify(e)+a.toString())}return{...e,data_decoded:s,type_arguments:n}}async decodeType(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 O;(function(t){t.PRIVATE="private",t.PUBLIC="public",t.FRIEND="friend"})(O||(O={}));import("node:process").then(t=>t.stdout.write(""));export{p as a,h as b,ce as c,g as d,$ as e,d as f,pe as g,A as h,m as i,ue as j,le as k,fe as l,u as m,y as n,V as o,B as p,L as q,w as r,M as s,R as t,j as u,k as v,O as w,C as x,E as y,S as z,_ as A,P as B,I as C,v as D,F as E};
3
+ //# sourceMappingURL=chunk-YSEOUYZV.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{Pd as r,Qd as s,Rd as t,Sd as u,Td as v,Vd as w,Wd as x,dd as b,ed as c,fd as d,gd as e,hd as f,id as g,jd as h,kd as i,ld as j,md as k,nd as l,od as m,pd as n,qd as o,rd as p,sd as q}from"../chunk-65MPQCTW.js";import{a}from"../chunk-RA75ESSD.js";import"../chunk-G5BIPHMS.js";export{x as ALL_ADDRESS,v as AccountEventTracker,r as BaseContext,g as BasicFieldType,a as BigDecimal,w as CorePlugin,m as Counter,n as CounterBinding,d as DatabaseSchema,i as EventLogger,f as EventLoggerBinding,e as EventLoggerState,u as EventTracker,t as EventTrackerState,s as Exporter,o as Gauge,p as GaugeBinding,q as Meter,l as MetricOptions,h as fieldsToProtos,c as normalizeLabels,b as scaleDown,k as toBigInteger,j as toMetricValue};
2
+ import{Cd as b,Dd as c,Fd as d,Gd as e,Hd as f,Id as g,Jd as h,Kd as i,Ld as j,Md as k,Nd as l,Od as m,Pd as n,Qd as o,Rd as p,Sd as q,ne as r,oe as s,pe as t,qe as u,re as v,te as w,ue as x}from"../chunk-M4IWP4I2.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-KMM5CTDH.js";import{C as a}from"../../chunk-5UWWL2KX.js";import"../../chunk-4WNGQ3EZ.js";import"../../chunk-IVMOWPFA.js";import"../../chunk-65MPQCTW.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-VYQNLOTQ.js";import{C as a}from"../../chunk-Q6B5XHC2.js";import"../../chunk-4WNGQ3EZ.js";import"../../chunk-IVMOWPFA.js";import"../../chunk-M4IWP4I2.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-L4QQFA2V.js";import{D as a}from"../../chunk-5UWWL2KX.js";import"../../chunk-4WNGQ3EZ.js";import"../../chunk-IVMOWPFA.js";import"../../chunk-65MPQCTW.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-NM2HNEFL.js";import{D as a}from"../../chunk-Q6B5XHC2.js";import"../../chunk-4WNGQ3EZ.js";import"../../chunk-IVMOWPFA.js";import"../../chunk-M4IWP4I2.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-5UWWL2KX.js";import"../../chunk-4WNGQ3EZ.js";import"../../chunk-IVMOWPFA.js";import"../../chunk-65MPQCTW.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-Q6B5XHC2.js";import"../../chunk-4WNGQ3EZ.js";import"../../chunk-IVMOWPFA.js";import"../../chunk-M4IWP4I2.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-5UWWL2KX.js";import"../../chunk-4WNGQ3EZ.js";import"../../chunk-IVMOWPFA.js";import"../../chunk-65MPQCTW.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-Q6B5XHC2.js";import"../../chunk-4WNGQ3EZ.js";import"../../chunk-IVMOWPFA.js";import"../../chunk-M4IWP4I2.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-L4QQFA2V.js";import{c as T,d as l,k as y}from"../../chunk-XA5HI7QM.js";import{a,b as c,d as x}from"../../chunk-OW7PNQXI.js";import{c as P,d as f,k as E}from"../../chunk-KMM5CTDH.js";import{$ as p,K as o,L as e,R as s,_ as t,fa as m}from"../../chunk-5UWWL2KX.js";import"../../chunk-4WNGQ3EZ.js";import"../../chunk-IVMOWPFA.js";import"../../chunk-65MPQCTW.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-NM2HNEFL.js";import{c as T,d as l,k as y}from"../../chunk-MWNHHNKW.js";import{a,b as c,d as x}from"../../chunk-4EPXEM2C.js";import{c as P,d as f,k as E}from"../../chunk-VYQNLOTQ.js";import{$ as p,K as o,L as e,R as s,_ as t,fa as m}from"../../chunk-Q6B5XHC2.js";import"../../chunk-4WNGQ3EZ.js";import"../../chunk-IVMOWPFA.js";import"../../chunk-M4IWP4I2.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-XA5HI7QM.js";import{H as a}from"../../chunk-5UWWL2KX.js";import"../../chunk-4WNGQ3EZ.js";import"../../chunk-IVMOWPFA.js";import"../../chunk-65MPQCTW.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-MWNHHNKW.js";import{H as a}from"../../chunk-Q6B5XHC2.js";import"../../chunk-4WNGQ3EZ.js";import"../../chunk-IVMOWPFA.js";import"../../chunk-M4IWP4I2.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-5UWWL2KX.js";import"../chunk-4WNGQ3EZ.js";import"../chunk-IVMOWPFA.js";import{Gb as b,ma as a}from"../chunk-65MPQCTW.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-Q6B5XHC2.js";import"../chunk-4WNGQ3EZ.js";import"../chunk-IVMOWPFA.js";import{Gb as b,ma as a}from"../chunk-M4IWP4I2.js";import"../chunk-RA75ESSD.js";import"../chunk-G5BIPHMS.js";var export_EthChainId=H.EthChainId;export{w as AccountBindOptions,d as AccountContext,D as AccountProcessor,u as BaseProcessor,C as BaseProcessorTemplate,v as BindOptions,h as BoundContractView,f as ContractContext,g as ContractView,G as DummyProvider,export_EthChainId as EthChainId,c as EthContext,a as EthFetchConfig,E as EthPlugin,B as GenericProcessor,e as GlobalContext,t as GlobalProcessor,b as PreprocessResult,i as SimpleEthersError,A as addContractByABI,y as addProcessor,s as defaultPreprocessHandler,p as encodeCallData,k as fixEmptyKey,l as formatEthData,m as formatRichBlock,z as getContractByABI,x as getProcessor,F as getProvider,n as isNullAddress,I as makeEthCallKey,q as newContract,r as newInterface,j as transformEtherError,o as validateAndNormalizeAddress};
3
3
  //# sourceMappingURL=index.js.map
package/lib/fuel/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v}from"../chunk-M6HSLAJ4.js";import"../chunk-4WNGQ3EZ.js";import"../chunk-IVMOWPFA.js";import"../chunk-65MPQCTW.js";import"../chunk-RA75ESSD.js";import"../chunk-G5BIPHMS.js";export{h as DEFAULT_FUEL_FETCH_CONFIG,u as FuelAbstractProcessor,p as FuelAssetProcessor,t as FuelBaseProcessorTemplate,e as FuelCall,f as FuelContext,g as FuelContractContext,q as FuelGlobalProcessor,b as FuelNetwork,r as FuelPlugin,l as FuelProcessor,a as FuelProcessorState,s as FuelProcessorTemplateProcessorState,v as TypedCall,o as addFuelProcessor,i as decodeFuelTransaction,k as decodeFuelTransactionWithAbi,j as decodeLog,n as getFuelProcessor,m as getOptionsSignature,d as getProvider,c as getRpcEndpoint};
2
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v}from"../chunk-D4BGG4V2.js";import"../chunk-4WNGQ3EZ.js";import"../chunk-IVMOWPFA.js";import"../chunk-M4IWP4I2.js";import"../chunk-RA75ESSD.js";import"../chunk-G5BIPHMS.js";export{h as DEFAULT_FUEL_FETCH_CONFIG,u as FuelAbstractProcessor,p as FuelAssetProcessor,t as FuelBaseProcessorTemplate,e as FuelCall,f as FuelContext,g as FuelContractContext,q as FuelGlobalProcessor,b as FuelNetwork,r as FuelPlugin,l as FuelProcessor,a as FuelProcessorState,s as FuelProcessorTemplateProcessorState,v as TypedCall,o as addFuelProcessor,i as decodeFuelTransaction,k as decodeFuelTransactionWithAbi,j as decodeLog,n as getFuelProcessor,m as getOptionsSignature,d as getProvider,c as getRpcEndpoint};
3
3
  //# sourceMappingURL=index.js.map
package/lib/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import"./chunk-SUCYR7EB.js";import{$,$a,A,Aa,Ab,B,Ba,Bb,C,Ca,Cb,D,Da,Db,E,Ea,Eb,F,Fa,Fb,G,Ga,Gb,H,Ha,Hb,I,Ia,Ib,J,Ja,Jb,K,Ka,Kb,L,La,Lb,M,Ma,Mb,N,Na,Nb,O,Oa,Ob,P,Pa,Pb,Pd as hc,Q,Qa,Qb,Qd as ic,R,Ra,Rb,Rd as jc,S,Sa,Sd as kc,T,Ta,Td as lc,U,Ua,V,Va,Vd as mc,W,Wa,Wd as nc,X,Xa,Y,Ya,Z,Za,_,_a,a,aa,ab,b,ba,bb,c,ca,cb,d,da,db,dd as Tb,e,ea,eb,ed as Ub,f,fa,fb,fd as Vb,g,ga,gb,gd as Wb,h,ha,hb,hd as Xb,i,ia,ib,id as Yb,j,ja,jb,jd as Zb,k,ka,kb,kd as _b,l,la,lb,ld as $b,m,ma,mb,md as ac,n,na,nb,nd as bc,o,oa,ob,od as cc,p,pa,pb,pd as dc,q,qa,qb,qd as ec,r,ra,rb,rd as fc,s,sa,sb,sd as gc,t,ta,tb,u,ua,ub,v,va,vb,w,wa,wb,x,xa,xb,y,ya,yb,z,za,zb}from"./chunk-65MPQCTW.js";import{a as Sb}from"./chunk-RA75ESSD.js";import"./chunk-G5BIPHMS.js";export{nc as ALL_ADDRESS,da as AccountConfig,lc as AccountEventTracker,y as AddressType,ca as AggregationConfig,s as AggregationType,ga as AptosOnIntervalConfig,Ha as BTCTransactionFilter,Ia as BTCTransactionFilter_Condition,Ja as BTCTransactionFilter_Filter,Ka as BTCTransactionFilter_Filter_ConditionsEntry,La as BTCTransactionFilter_Filters,Na as BTCTransactionFilter_VOutFilter,Ma as BTCTransactionFilter_VinFilter,Ga as BTCTransactionHandlerConfig,hc as BaseContext,Yb as BasicFieldType,Sb as BigDecimal,o as BigInteger,la as BlockHandlerConfig,k as CoinID,U as ContractConfig,ia as ContractInfo,mc as CorePlugin,ta as CosmosLogHandlerConfig,cc as Counter,dc as CounterBinding,Ob as CounterResult,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,Bb as DataBinding,nb as Data_AptCall,mb as Data_AptEvent,ob as Data_AptResource,Ab as Data_BTCBlock,zb as Data_BTCTransaction,xb as Data_CosmosCall,ib as Data_EthBlock,hb as Data_EthLog,kb as Data_EthTrace,jb as Data_EthTransaction,wb as Data_FuelBlock,vb as Data_FuelCall,tb as Data_FuelReceipt,ub as Data_FuelTransaction,lb as Data_SolInstruction,yb as Data_StarknetEvent,qb as Data_SuiCall,pb as Data_SuiEvent,rb as Data_SuiObject,sb as Data_SuiObjectChange,Vb as DatabaseSchema,a as Empty,_a as Entity,$a as EntityList,Fb as EthCallContext,Eb as EthCallParam,ma as EthFetchConfig,$ as EventLogConfig,K as EventLogConfig_BasicFieldType,ba as EventLogConfig_Field,aa as EventLogConfig_StructFieldType,_b as EventLogger,Xb as EventLoggerBinding,Wb as EventLoggerState,kc as EventTracker,jc as EventTrackerState,Y as EventTrackingConfig,Pb as EventTrackingResult,R as ExecutionConfig,Z as ExportConfig,Qb as ExportResult,ic as Exporter,qa as FuelAssetHandlerConfig,ra as FuelAssetHandlerConfig_AssetFilter,Pa as FuelCallFilter,Qa as FuelCallHandlerConfig,sa as FuelLogHandlerConfig,ec as Gauge,fc as GaugeBinding,Nb as GaugeResult,ea as HandleInterval,B as HandlerType,va as InstructionHandlerConfig,h as ListValue,ua as LogFilter,pa as LogHandlerConfig,E as LogLevel,gc as Meter,_ as MetricConfig,bc as MetricOptions,p as MetricType,Lb as MetricValue,ya as MoveAccountFetchConfig,Da as MoveCallFilter,Ea as MoveCallFilter_FromAndToAddress,Ba as MoveCallHandlerConfig,Aa as MoveEventFilter,za as MoveEventHandlerConfig,xa as MoveFetchConfig,ha as MoveOnIntervalConfig,v as MoveOwnerType,Ca as MoveResourceChangeConfig,b as NullValue,fa as OnIntervalConfig,Hb as PreparedData,Ib as PreparedData_EthCallResultsEntry,Gb as PreprocessResult,Wa as PreprocessStreamRequest,Xa as PreprocessStreamRequest_DataBindings,Ya as PreprocessStreamResponse,Ta as ProcessBindingResponse,Sa as ProcessBindingsRequest,S as ProcessConfigRequest,T as ProcessConfigResponse,Db as ProcessResult,Ua as ProcessStreamRequest,Va as ProcessStreamResponse,Rb as ProcessorDefinition,Q as ProjectConfig,Jb as RecordMetaData,Kb as RecordMetaData_LabelsEntry,wa as ResourceConfig,X as RetentionConfig,m as RichStruct,n as RichStructList,l as RichValue,j as RichValue_NullValue,Mb as RuntimeInfo,Oa as StarknetEventFilter,Fa as StarknetEventHandlerConfig,ka as StartRequest,Cb as StateResult,e as Struct,f as Struct_FieldsEntry,ja as TemplateInstance,i as Timestamp,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,Zb as fieldsToProtos,C as handlerTypeFromJSON,D as handlerTypeToJSON,F as logLevelFromJSON,G as logLevelToJSON,q as metricTypeFromJSON,r as metricTypeToJSON,w as moveOwnerTypeFromJSON,x as moveOwnerTypeToJSON,Ub as normalizeLabels,c as nullValueFromJSON,d as nullValueToJSON,Tb as scaleDown,ac as toBigInteger,$b as toMetricValue,I as totalPerEntityAggregation_TypeFromJSON,J as totalPerEntityAggregation_TypeToJSON};
2
+ import"./chunk-SUCYR7EB.js";import{$,$a,A,Aa,Ab,B,Ba,Bb,C,Ca,Cb,Cd as Tb,D,Da,Db,Dd as Ub,E,Ea,Eb,F,Fa,Fb,Fd as Vb,G,Ga,Gb,Gd as Wb,H,Ha,Hb,Hd as Xb,I,Ia,Ib,Id as Yb,J,Ja,Jb,Jd as Zb,K,Ka,Kb,Kd as _b,L,La,Lb,Ld as $b,M,Ma,Mb,Md as ac,N,Na,Nb,Nd as bc,O,Oa,Ob,Od as cc,P,Pa,Pb,Pd as dc,Q,Qa,Qb,Qd as ec,R,Ra,Rb,Rd as fc,S,Sa,Sd as gc,T,Ta,U,Ua,V,Va,W,Wa,X,Xa,Y,Ya,Z,Za,_,_a,a,aa,ab,b,ba,bb,c,ca,cb,d,da,db,e,ea,eb,f,fa,fb,g,ga,gb,h,ha,hb,i,ia,ib,j,ja,jb,k,ka,kb,l,la,lb,m,ma,mb,n,na,nb,ne as hc,o,oa,ob,oe as ic,p,pa,pb,pe as jc,q,qa,qb,qe as kc,r,ra,rb,re as lc,s,sa,sb,t,ta,tb,te as mc,u,ua,ub,ue as nc,v,va,vb,w,wa,wb,x,xa,xb,y,ya,yb,z,za,zb}from"./chunk-M4IWP4I2.js";import{a as Sb}from"./chunk-RA75ESSD.js";import"./chunk-G5BIPHMS.js";export{nc as ALL_ADDRESS,da as AccountConfig,lc as AccountEventTracker,y as AddressType,ca as AggregationConfig,s as AggregationType,ga as AptosOnIntervalConfig,Ha as BTCTransactionFilter,Ia as BTCTransactionFilter_Condition,Ja as BTCTransactionFilter_Filter,Ka as BTCTransactionFilter_Filter_ConditionsEntry,La as BTCTransactionFilter_Filters,Na as BTCTransactionFilter_VOutFilter,Ma as BTCTransactionFilter_VinFilter,Ga as BTCTransactionHandlerConfig,hc as BaseContext,Yb as BasicFieldType,Sb as BigDecimal,o as BigInteger,la as BlockHandlerConfig,k as CoinID,U as ContractConfig,ia as ContractInfo,mc as CorePlugin,ta as CosmosLogHandlerConfig,cc as Counter,dc as CounterBinding,Ob as CounterResult,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,Bb as DataBinding,nb as Data_AptCall,mb as Data_AptEvent,ob as Data_AptResource,Ab as Data_BTCBlock,zb as Data_BTCTransaction,xb as Data_CosmosCall,ib as Data_EthBlock,hb as Data_EthLog,kb as Data_EthTrace,jb as Data_EthTransaction,wb as Data_FuelBlock,vb as Data_FuelCall,tb as Data_FuelReceipt,ub as Data_FuelTransaction,lb as Data_SolInstruction,yb as Data_StarknetEvent,qb as Data_SuiCall,pb as Data_SuiEvent,rb as Data_SuiObject,sb as Data_SuiObjectChange,Vb as DatabaseSchema,a as Empty,_a as Entity,$a as EntityList,Fb as EthCallContext,Eb as EthCallParam,ma as EthFetchConfig,$ as EventLogConfig,K as EventLogConfig_BasicFieldType,ba as EventLogConfig_Field,aa as EventLogConfig_StructFieldType,_b as EventLogger,Xb as EventLoggerBinding,Wb as EventLoggerState,kc as EventTracker,jc as EventTrackerState,Y as EventTrackingConfig,Pb as EventTrackingResult,R as ExecutionConfig,Z as ExportConfig,Qb as ExportResult,ic as Exporter,qa as FuelAssetHandlerConfig,ra as FuelAssetHandlerConfig_AssetFilter,Pa as FuelCallFilter,Qa as FuelCallHandlerConfig,sa as FuelLogHandlerConfig,ec as Gauge,fc as GaugeBinding,Nb as GaugeResult,ea as HandleInterval,B as HandlerType,va as InstructionHandlerConfig,h as ListValue,ua as LogFilter,pa as LogHandlerConfig,E as LogLevel,gc as Meter,_ as MetricConfig,bc as MetricOptions,p as MetricType,Lb as MetricValue,ya as MoveAccountFetchConfig,Da as MoveCallFilter,Ea as MoveCallFilter_FromAndToAddress,Ba as MoveCallHandlerConfig,Aa as MoveEventFilter,za as MoveEventHandlerConfig,xa as MoveFetchConfig,ha as MoveOnIntervalConfig,v as MoveOwnerType,Ca as MoveResourceChangeConfig,b as NullValue,fa as OnIntervalConfig,Hb as PreparedData,Ib as PreparedData_EthCallResultsEntry,Gb as PreprocessResult,Wa as PreprocessStreamRequest,Xa as PreprocessStreamRequest_DataBindings,Ya as PreprocessStreamResponse,Ta as ProcessBindingResponse,Sa as ProcessBindingsRequest,S as ProcessConfigRequest,T as ProcessConfigResponse,Db as ProcessResult,Ua as ProcessStreamRequest,Va as ProcessStreamResponse,Rb as ProcessorDefinition,Q as ProjectConfig,Jb as RecordMetaData,Kb as RecordMetaData_LabelsEntry,wa as ResourceConfig,X as RetentionConfig,m as RichStruct,n as RichStructList,l as RichValue,j as RichValue_NullValue,Mb as RuntimeInfo,Oa as StarknetEventFilter,Fa as StarknetEventHandlerConfig,ka as StartRequest,Cb as StateResult,e as Struct,f as Struct_FieldsEntry,ja as TemplateInstance,i as Timestamp,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,Zb as fieldsToProtos,C as handlerTypeFromJSON,D as handlerTypeToJSON,F as logLevelFromJSON,G as logLevelToJSON,q as metricTypeFromJSON,r as metricTypeToJSON,w as moveOwnerTypeFromJSON,x as moveOwnerTypeToJSON,Ub as normalizeLabels,c as nullValueFromJSON,d as nullValueToJSON,Tb as scaleDown,ac as toBigInteger,$b as toMetricValue,I as totalPerEntityAggregation_TypeFromJSON,J as totalPerEntityAggregation_TypeToJSON};
3
3
  //# sourceMappingURL=index.js.map
package/lib/move/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{A as B,B as C,C as D,D as E,E as F,a as b,b as c,c as d,d as e,e as f,f as g,g as h,h as i,i as j,j as k,k as l,l as m,m as n,n as o,o as p,p as q,q as r,r as s,s as t,t as u,u as v,v as w,w as x,x as y,y as z,z as A}from"../chunk-FWJ7PQT3.js";import{xa as a}from"../chunk-65MPQCTW.js";import"../chunk-RA75ESSD.js";import"../chunk-G5BIPHMS.js";export{p as ANY_TYPE,w as AbstractMoveCoder,t as AccountModulesImportInfo,u as AccountRegister,r as BUILTIN_TYPES,z as CallHandler,v as ChainAdapter,y as EventHandler,x as InternalMoveFunctionVisibility,F as MoveAccountContext,E as MoveContext,a as MoveFetchConfig,A as ObjectChangeHandler,B as ResourceChangeHandler,C as ResourceIntervalHandler,b as SPLITTER,D as TransactionIntervalHandler,n as TypeDescriptor,c as VECTOR_STR,g as accountAddressString,e as accountTypeString,m as camel,d as isFrameworkAccount,f as isValidMoveAddress,s as matchType,j as moduleQname,i as moduleQnameForType,h as normalizeToJSName,o as parseMoveType,k as structQname,l as upperFirst,q as vectorType};
2
+ import{A as B,B as C,C as D,D as E,E as F,a as b,b as c,c as d,d as e,e as f,f as g,g as h,h as i,i as j,j as k,k as l,l as m,m as n,n as o,o as p,p as q,q as r,r as s,s as t,t as u,u as v,v as w,w as x,x as y,y as z,z as A}from"../chunk-YSEOUYZV.js";import{xa as a}from"../chunk-M4IWP4I2.js";import"../chunk-RA75ESSD.js";import"../chunk-G5BIPHMS.js";export{p as ANY_TYPE,w as AbstractMoveCoder,t as AccountModulesImportInfo,u as AccountRegister,r as BUILTIN_TYPES,z as CallHandler,v as ChainAdapter,y as EventHandler,x as InternalMoveFunctionVisibility,F as MoveAccountContext,E as MoveContext,a as MoveFetchConfig,A as ObjectChangeHandler,B as ResourceChangeHandler,C as ResourceIntervalHandler,b as SPLITTER,D as TransactionIntervalHandler,n as TypeDescriptor,c as VECTOR_STR,g as accountAddressString,e as accountTypeString,m as camel,d as isFrameworkAccount,f as isValidMoveAddress,s as matchType,j as moduleQname,i as moduleQnameForType,h as normalizeToJSName,o as parseMoveType,k as structQname,l as upperFirst,q as vectorType};
3
3
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{c as a}from"../../chunk-WL2T4PIX.js";import"../../chunk-FMZDKD72.js";import"../../chunk-2JVSMCLK.js";import"../../chunk-SUCYR7EB.js";import"../../chunk-IVMOWPFA.js";import"../../chunk-65MPQCTW.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-4R3P3DNX.js";import"../../chunk-FMZDKD72.js";import"../../chunk-JIW4UTB3.js";import"../../chunk-SUCYR7EB.js";import"../../chunk-IVMOWPFA.js";import"../../chunk-M4IWP4I2.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-WL2T4PIX.js";import"../chunk-FMZDKD72.js";import"../chunk-2JVSMCLK.js";import"../chunk-SUCYR7EB.js";import"../chunk-IVMOWPFA.js";import"../chunk-65MPQCTW.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-4R3P3DNX.js";import"../chunk-FMZDKD72.js";import"../chunk-JIW4UTB3.js";import"../chunk-SUCYR7EB.js";import"../chunk-IVMOWPFA.js";import"../chunk-M4IWP4I2.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