1import{r as d,L as l}from"./contracts-Dr-IyFfW.js";import{z as m}from"./address-DG9mKvKj.js";import"./execution-worker-jdv4iEIy.js";function p(r,s,i){return d({chainId:r.id,address:r.superchainConfig.sugar,abi:l,functionName:"tokens",args:[BigInt(s.length),0n,i||m,s]})}function b(r,s,[i,n,o]){return r.map((e,a)=>[e&&e.slice(0,n.length),s[a]]).flatMap(([e,a])=>e.map(t=>[t,a])).map(([e,a])=>{if(e&&n.includes(e.token_address.toLowerCase())&&e.symbol!=="-NA-")return{address:e.token_address.toLowerCase(),balance:i?e.account_balance:0n,decimals:e.decimals??18,symbol:o.all[`${a.id}:${e.token_address.toLowerCase()}`]?.symbol??e.symbol??"Unknown",listed:e.listed,price:0n,balanceValue:0n,chainId:a.id}}).filter(e=>!!e)}export{p as fetchCustomTokens,b as mergeCustomTokens};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.