@antseed/ants 0.1.7 → 0.1.9

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 (108) hide show
  1. package/dist/ants-web/assets/{add-1qQ_SVL6.js → add-C0SQUzNa.js} +1 -1
  2. package/dist/ants-web/assets/{all-wallets-D0QF065k.js → all-wallets-DqetQdx3.js} +1 -1
  3. package/dist/ants-web/assets/{app-store-j-2thKGl.js → app-store-x7pEx9ze.js} +1 -1
  4. package/dist/ants-web/assets/{apple-CCcInWVX.js → apple-BBbsSsZv.js} +1 -1
  5. package/dist/ants-web/assets/{arrow-bottom-DVZa97G2.js → arrow-bottom-CoGMaFfN.js} +1 -1
  6. package/dist/ants-web/assets/{arrow-bottom-circle-tt2k5BWG.js → arrow-bottom-circle-Bwbdmxqm.js} +1 -1
  7. package/dist/ants-web/assets/{arrow-left-DnjqXMe0.js → arrow-left-BYtZc1ff.js} +1 -1
  8. package/dist/ants-web/assets/{arrow-right-De8QMymS.js → arrow-right-CBKqNSW8.js} +1 -1
  9. package/dist/ants-web/assets/{arrow-top-BS2oLt_x.js → arrow-top-BevpBakH.js} +1 -1
  10. package/dist/ants-web/assets/{bank-DIxCskFM.js → bank-DMLdiSk6.js} +1 -1
  11. package/dist/ants-web/assets/{basic-D0Dg7j2v.js → basic-DpWeBog0.js} +1 -1
  12. package/dist/ants-web/assets/{browser-n9VVPree.js → browser-Cs4r7s8N.js} +1 -1
  13. package/dist/ants-web/assets/{card-Bl7AHEuE.js → card-dPynQNtx.js} +1 -1
  14. package/dist/ants-web/assets/{ccip-C_ifxkiT.js → ccip-1w9hjCCN.js} +1 -1
  15. package/dist/ants-web/assets/{checkmark-bold-CIMnw7st.js → checkmark-bold-B-PDLw6j.js} +1 -1
  16. package/dist/ants-web/assets/{checkmark-DXB1SsFx.js → checkmark-szaIIgK6.js} +1 -1
  17. package/dist/ants-web/assets/{chevron-bottom-DGkVb8CY.js → chevron-bottom-BEprjDZo.js} +1 -1
  18. package/dist/ants-web/assets/{chevron-left-D8vC6sW_.js → chevron-left-D0_hAKYx.js} +1 -1
  19. package/dist/ants-web/assets/{chevron-right-CP8tyhU4.js → chevron-right-DWNZUrGb.js} +1 -1
  20. package/dist/ants-web/assets/{chevron-top-DUqp6O8b.js → chevron-top-B1t5D9tT.js} +1 -1
  21. package/dist/ants-web/assets/{chrome-store-CDk6Jfiv.js → chrome-store-Bn3qe8uo.js} +1 -1
  22. package/dist/ants-web/assets/{clock-t0Dwo5ck.js → clock-CqgfNL5m.js} +1 -1
  23. package/dist/ants-web/assets/{close-BiTlv6FX.js → close-BI70Co9K.js} +1 -1
  24. package/dist/ants-web/assets/{coinPlaceholder-PJZCh_De.js → coinPlaceholder-DhAklpLF.js} +1 -1
  25. package/dist/ants-web/assets/{compass-CctP2ZVM.js → compass-D89Cvx_7.js} +1 -1
  26. package/dist/ants-web/assets/{copy-b1i5dSZT.js → copy-CPjTJF0Y.js} +1 -1
  27. package/dist/ants-web/assets/{core-4w9H32as.js → core-mQ5yosIn.js} +3 -3
  28. package/dist/ants-web/assets/{cursor-kLCZuRWK.js → cursor-gw6fkFZT.js} +1 -1
  29. package/dist/ants-web/assets/{cursor-transparent-C1IxvCBs.js → cursor-transparent-DgRoqCcT.js} +1 -1
  30. package/dist/ants-web/assets/{desktop-Qa_41eha.js → desktop-Bk5ZYKX5.js} +1 -1
  31. package/dist/ants-web/assets/{disconnect-7QBZVVG8.js → disconnect-C-K_6JYq.js} +1 -1
  32. package/dist/ants-web/assets/{discord-DuRr0OMy.js → discord-DylGCum3.js} +1 -1
  33. package/dist/ants-web/assets/{etherscan-BOImzSgC.js → etherscan-BG4jHEvE.js} +1 -1
  34. package/dist/ants-web/assets/{exclamation-triangle-evZ54TSt.js → exclamation-triangle-D7dHJjIw.js} +1 -1
  35. package/dist/ants-web/assets/{extension-YSvzNEgu.js → extension-BZVLEsBa.js} +1 -1
  36. package/dist/ants-web/assets/{external-link-BukU3aK3.js → external-link-Y9Uw4kBa.js} +1 -1
  37. package/dist/ants-web/assets/{facebook-WJZQGI9M.js → facebook-C2YjrVST.js} +1 -1
  38. package/dist/ants-web/assets/{farcaster-Dt0XRvlP.js → farcaster-CnoXVHwo.js} +1 -1
  39. package/dist/ants-web/assets/{filters-CFC5g--u.js → filters-4g7JeK1j.js} +1 -1
  40. package/dist/ants-web/assets/{github-Bhz0AnGj.js → github-D4sWfl5d.js} +1 -1
  41. package/dist/ants-web/assets/{google-CGzSUXjP.js → google-CSVagnyF.js} +1 -1
  42. package/dist/ants-web/assets/{help-circle-BoGPtVJY.js → help-circle-szZZ5d90.js} +1 -1
  43. package/dist/ants-web/assets/{id-ir8rS0J_.js → id-OS9amNjd.js} +1 -1
  44. package/dist/ants-web/assets/{image-DXBUHwz_.js → image-32W6kUkg.js} +1 -1
  45. package/dist/ants-web/assets/{index-BqWNkBzB.js → index-1Z8FoKxd.js} +3 -3
  46. package/dist/ants-web/assets/index-BZxnAccF.js +1729 -0
  47. package/dist/ants-web/assets/{index-C-I4ROfT.js → index-CQOftpl7.js} +1 -1
  48. package/dist/ants-web/assets/{index-Chq8yV_g.js → index-Cl1sAsw2.js} +1 -1
  49. package/dist/ants-web/assets/{index-B7p3jPAJ.js → index-DV-723do.js} +1 -1
  50. package/dist/ants-web/assets/{index.es-D1GdDJUC.js → index.es-CWJ0CIzw.js} +4 -4
  51. package/dist/ants-web/assets/{info-DzGq_QPQ.js → info-BYXqL_RY.js} +1 -1
  52. package/dist/ants-web/assets/{info-circle-z91TqQxH.js → info-circle-DagK2gTL.js} +1 -1
  53. package/dist/ants-web/assets/{lightbulb-CgYwiQYs.js → lightbulb-BPz4R4S_.js} +1 -1
  54. package/dist/ants-web/assets/{mail-FLPFIbqi.js → mail-BAAv26u0.js} +1 -1
  55. package/dist/ants-web/assets/{metamask-sdk-QG4PtQco.js → metamask-sdk-CussD8CC.js} +1 -1
  56. package/dist/ants-web/assets/{mobile--kHpa5NK.js → mobile-pVyHr7v7.js} +1 -1
  57. package/dist/ants-web/assets/{more-CJbReLy0.js → more-C9mmHU7g.js} +1 -1
  58. package/dist/ants-web/assets/{network-placeholder-BfSizFBN.js → network-placeholder-DzKjXODE.js} +1 -1
  59. package/dist/ants-web/assets/{nftPlaceholder-BTfly2G8.js → nftPlaceholder-CuAcZYxJ.js} +1 -1
  60. package/dist/ants-web/assets/{off-DCMXa6Y2.js → off-Cs-d2hrn.js} +1 -1
  61. package/dist/ants-web/assets/{play-store-CbbevixE.js → play-store-CkPvr_ed.js} +1 -1
  62. package/dist/ants-web/assets/{plus-BxINT2r_.js → plus-BQ6hV4iw.js} +1 -1
  63. package/dist/ants-web/assets/{qr-code-CMEsvGrE.js → qr-code-CFUOH-Uz.js} +1 -1
  64. package/dist/ants-web/assets/{recycle-horizontal-BldRTXPT.js → recycle-horizontal-DMudVVrq.js} +1 -1
  65. package/dist/ants-web/assets/{refresh-82vLCcdB.js → refresh-DPB97bKJ.js} +1 -1
  66. package/dist/ants-web/assets/{reown-logo-BPGalyzg.js → reown-logo-DWe5C2bY.js} +1 -1
  67. package/dist/ants-web/assets/{search-CADsyV1c.js → search-DLbvzArG.js} +1 -1
  68. package/dist/ants-web/assets/{secp256k1-B5byVYSZ.js → secp256k1-CcLfn16i.js} +1 -1
  69. package/dist/ants-web/assets/{send-DyAisqGO.js → send-CrOFkXHG.js} +1 -1
  70. package/dist/ants-web/assets/{swapHorizontal-BfHwXZPT.js → swapHorizontal-mtr5iPPb.js} +1 -1
  71. package/dist/ants-web/assets/{swapHorizontalBold-FIoCjqnp.js → swapHorizontalBold-ktwpBzcg.js} +1 -1
  72. package/dist/ants-web/assets/{swapHorizontalMedium-CzDDCY_G.js → swapHorizontalMedium-DsyJ2Uda.js} +1 -1
  73. package/dist/ants-web/assets/{swapHorizontalRoundedBold-CvMRJeWj.js → swapHorizontalRoundedBold-BbEavI-R.js} +1 -1
  74. package/dist/ants-web/assets/{swapVertical-BgSezaow.js → swapVertical-D0fIRPr1.js} +1 -1
  75. package/dist/ants-web/assets/{telegram-CsMNhXCs.js → telegram-B5BBG-Pj.js} +1 -1
  76. package/dist/ants-web/assets/{three-dots-DYf4gmVW.js → three-dots-kH8u-Sts.js} +1 -1
  77. package/dist/ants-web/assets/{twitch-BtBr-NTg.js → twitch-azaP1LkN.js} +1 -1
  78. package/dist/ants-web/assets/{twitterIcon-BmRf6M77.js → twitterIcon-C2R7pHDJ.js} +1 -1
  79. package/dist/ants-web/assets/{verify-cxA8gdP6.js → verify-C7lAMhI5.js} +1 -1
  80. package/dist/ants-web/assets/{verify-filled-DHnnW8EE.js → verify-filled-jh5UGZon.js} +1 -1
  81. package/dist/ants-web/assets/{w3m-modal-D1ucMOAa.js → w3m-modal-CbLL7-L9.js} +1 -1
  82. package/dist/ants-web/assets/{wallet-BT4Fue1R.js → wallet-DiX9Matl.js} +1 -1
  83. package/dist/ants-web/assets/{wallet-placeholder-C2J5s6Yp.js → wallet-placeholder-BNqekUTD.js} +1 -1
  84. package/dist/ants-web/assets/{walletconnect-B5k8iJl-.js → walletconnect-C9K9qTrf.js} +1 -1
  85. package/dist/ants-web/assets/{warning-circle-9rNSUSsX.js → warning-circle-d-fntisy.js} +1 -1
  86. package/dist/ants-web/assets/{x-CpRc85jR.js → x-tCW2RDQZ.js} +1 -1
  87. package/dist/ants-web/index.html +1 -1
  88. package/dist/api-types.d.ts +2 -0
  89. package/dist/read-state.d.ts +3 -0
  90. package/dist/read-state.js +7 -0
  91. package/dist/read-state.js.map +1 -0
  92. package/dist/routes.js +7 -2
  93. package/dist/routes.js.map +1 -1
  94. package/dist/service/indexed-wallet.js +3 -2
  95. package/dist/service/indexed-wallet.js.map +1 -1
  96. package/dist/service/indexer.d.ts +2 -0
  97. package/dist/service/indexer.js +48 -14
  98. package/dist/service/indexer.js.map +1 -1
  99. package/dist/service/pools.d.ts +1 -0
  100. package/dist/service/pools.js +18 -6
  101. package/dist/service/pools.js.map +1 -1
  102. package/dist/service/rewards.js +3 -0
  103. package/dist/service/rewards.js.map +1 -1
  104. package/dist/view-cache.d.ts +1 -1
  105. package/dist/view-cache.js +10 -3
  106. package/dist/view-cache.js.map +1 -1
  107. package/package.json +2 -2
  108. package/dist/ants-web/assets/index-Ci5bF__2.js +0 -1729
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-4w9H32as.js";import"./index-Ci5bF__2.js";import"./index.es-D1GdDJUC.js";import"./events-DQ172AOg.js";const e=o`<svg
1
+ import{w as o}from"./core-mQ5yosIn.js";import"./index-BZxnAccF.js";import"./index.es-CWJ0CIzw.js";import"./events-DQ172AOg.js";const e=o`<svg
2
2
  width="14"
3
3
  height="14"
4
4
  viewBox="0 0 14 14"
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-4w9H32as.js";import"./index-Ci5bF__2.js";import"./index.es-D1GdDJUC.js";import"./events-DQ172AOg.js";const r=o`<svg fill="none" viewBox="0 0 24 24">
1
+ import{w as o}from"./core-mQ5yosIn.js";import"./index-BZxnAccF.js";import"./index.es-CWJ0CIzw.js";import"./events-DQ172AOg.js";const r=o`<svg fill="none" viewBox="0 0 24 24">
2
2
  <path
3
3
  style="fill: var(--wui-color-accent-100);"
4
4
  d="M10.2 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM10.2 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0Z"
@@ -1,4 +1,4 @@
1
- import{w as t}from"./core-4w9H32as.js";import"./index-Ci5bF__2.js";import"./index.es-D1GdDJUC.js";import"./events-DQ172AOg.js";const e=t`
1
+ import{w as t}from"./core-mQ5yosIn.js";import"./index-BZxnAccF.js";import"./index.es-CWJ0CIzw.js";import"./events-DQ172AOg.js";const e=t`
2
2
  <svg width="36" height="36">
3
3
  <path
4
4
  d="M28.724 0H7.271A7.269 7.269 0 0 0 0 7.272v21.46A7.268 7.268 0 0 0 7.271 36H28.73A7.272 7.272 0 0 0 36 28.728V7.272A7.275 7.275 0 0 0 28.724 0Z"
@@ -1,4 +1,4 @@
1
- import{w as i}from"./core-4w9H32as.js";import"./index-Ci5bF__2.js";import"./index.es-D1GdDJUC.js";import"./events-DQ172AOg.js";const c=i`<svg fill="none" viewBox="0 0 40 40">
1
+ import{w as i}from"./core-mQ5yosIn.js";import"./index-BZxnAccF.js";import"./index.es-CWJ0CIzw.js";import"./events-DQ172AOg.js";const c=i`<svg fill="none" viewBox="0 0 40 40">
2
2
  <g clip-path="url(#a)">
3
3
  <g clip-path="url(#b)">
4
4
  <circle cx="20" cy="19.89" r="20" fill="#000" />
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-4w9H32as.js";import"./index-Ci5bF__2.js";import"./index.es-D1GdDJUC.js";import"./events-DQ172AOg.js";const i=o`<svg fill="none" viewBox="0 0 14 15">
1
+ import{w as o}from"./core-mQ5yosIn.js";import"./index-BZxnAccF.js";import"./index.es-CWJ0CIzw.js";import"./events-DQ172AOg.js";const i=o`<svg fill="none" viewBox="0 0 14 15">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -1,4 +1,4 @@
1
- import{w as C}from"./core-4w9H32as.js";import"./index-Ci5bF__2.js";import"./index.es-D1GdDJUC.js";import"./events-DQ172AOg.js";const i=C`<svg
1
+ import{w as C}from"./core-mQ5yosIn.js";import"./index-BZxnAccF.js";import"./index.es-CWJ0CIzw.js";import"./events-DQ172AOg.js";const i=C`<svg
2
2
  fill="none"
3
3
  viewBox="0 0 21 20"
4
4
  >
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-4w9H32as.js";import"./index-Ci5bF__2.js";import"./index.es-D1GdDJUC.js";import"./events-DQ172AOg.js";const t=o`<svg fill="none" viewBox="0 0 14 15">
1
+ import{w as o}from"./core-mQ5yosIn.js";import"./index-BZxnAccF.js";import"./index.es-CWJ0CIzw.js";import"./events-DQ172AOg.js";const t=o`<svg fill="none" viewBox="0 0 14 15">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-4w9H32as.js";import"./index-Ci5bF__2.js";import"./index.es-D1GdDJUC.js";import"./events-DQ172AOg.js";const t=o`<svg fill="none" viewBox="0 0 14 15">
1
+ import{w as o}from"./core-mQ5yosIn.js";import"./index-BZxnAccF.js";import"./index.es-CWJ0CIzw.js";import"./events-DQ172AOg.js";const t=o`<svg fill="none" viewBox="0 0 14 15">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-4w9H32as.js";import"./index-Ci5bF__2.js";import"./index.es-D1GdDJUC.js";import"./events-DQ172AOg.js";const p=o`<svg fill="none" viewBox="0 0 14 15">
1
+ import{w as o}from"./core-mQ5yosIn.js";import"./index-BZxnAccF.js";import"./index.es-CWJ0CIzw.js";import"./events-DQ172AOg.js";const p=o`<svg fill="none" viewBox="0 0 14 15">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-4w9H32as.js";import"./index-Ci5bF__2.js";import"./index.es-D1GdDJUC.js";import"./events-DQ172AOg.js";const l=o`<svg
1
+ import{w as o}from"./core-mQ5yosIn.js";import"./index-BZxnAccF.js";import"./index.es-CWJ0CIzw.js";import"./events-DQ172AOg.js";const l=o`<svg
2
2
  xmlns="http://www.w3.org/2000/svg"
3
3
  width="12"
4
4
  height="13"
@@ -1,4 +1,4 @@
1
- import{i as N,e as G,r as q,c as O,d as c,k as M,n as z,O as ee,q as k,E as te,R as U,z as Me,g as K,B as j,D as ft,t as Cn,W as pt,C as Zt,h as vi,T as ei,m as Xe,M as on,F as rn,w as Ne,x as yi,f as Rn}from"./core-4w9H32as.js";import{n as u,c as B,o as E,r as _,U as he,e as $n,f as _n,a as In}from"./index-BqWNkBzB.js";import{n as En}from"./index-Ci5bF__2.js";import"./index.es-D1GdDJUC.js";import"./events-DQ172AOg.js";const Wn=N`
1
+ import{i as N,e as G,r as q,c as O,d as c,k as M,n as z,O as ee,q as k,E as te,R as U,z as Me,g as K,B as j,D as ft,t as Cn,W as pt,C as Zt,h as vi,T as ei,m as Xe,M as on,F as rn,w as Ne,x as yi,f as Rn}from"./core-mQ5yosIn.js";import{n as u,c as B,o as E,r as _,U as he,e as $n,f as _n,a as In}from"./index-1Z8FoKxd.js";import{n as En}from"./index-BZxnAccF.js";import"./index.es-CWJ0CIzw.js";import"./events-DQ172AOg.js";const Wn=N`
2
2
  :host {
3
3
  position: relative;
4
4
  background-color: var(--wui-color-gray-glass-002);
@@ -1,4 +1,4 @@
1
- import{w as l}from"./core-4w9H32as.js";import"./index-Ci5bF__2.js";import"./index.es-D1GdDJUC.js";import"./events-DQ172AOg.js";const c=l`<svg fill="none" viewBox="0 0 20 20">
1
+ import{w as l}from"./core-mQ5yosIn.js";import"./index-BZxnAccF.js";import"./index.es-CWJ0CIzw.js";import"./events-DQ172AOg.js";const c=l`<svg fill="none" viewBox="0 0 20 20">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -1,4 +1,4 @@
1
- import{w as C}from"./core-4w9H32as.js";import"./index-Ci5bF__2.js";import"./index.es-D1GdDJUC.js";import"./events-DQ172AOg.js";const i=C`<svg
1
+ import{w as C}from"./core-mQ5yosIn.js";import"./index-BZxnAccF.js";import"./index.es-CWJ0CIzw.js";import"./events-DQ172AOg.js";const i=C`<svg
2
2
  xmlns="http://www.w3.org/2000/svg"
3
3
  width="12"
4
4
  height="13"
@@ -1 +1 @@
1
- import{B as p,g as m,s as w,d as k,i as b,l as L,a as O,c as E,b as x,e as R,H as y,f as M}from"./index-Ci5bF__2.js";class S extends p{constructor({callbackSelector:r,cause:a,data:n,extraData:i,sender:f,urls:t}){var o;super(a.shortMessage||"An error occurred while fetching for an offchain result.",{cause:a,metaMessages:[...a.metaMessages||[],(o=a.metaMessages)!=null&&o.length?"":[],"Offchain Gateway Call:",t&&[" Gateway URL(s):",...t.map(d=>` ${m(d)}`)],` Sender: ${f}`,` Data: ${n}`,` Callback selector: ${r}`,` Extra data: ${i}`].flat(),name:"OffchainLookupError"})}}class $ extends p{constructor({result:r,url:a}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${m(a)}`,`Response: ${w(r)}`],name:"OffchainLookupResponseMalformedError"})}}class q extends p{constructor({sender:r,to:a}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${a}`,`OffchainLookup sender address: ${r}`],name:"OffchainLookupSenderMismatchError"})}}const A="0x556f1830",T={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function D(c,{blockNumber:r,blockTag:a,data:n,to:i}){const{args:f}=k({data:n,abi:[T]}),[t,o,d,l,s]=f,{ccipRead:e}=c,h=e&&typeof(e==null?void 0:e.request)=="function"?e.request:C;try{if(!b(i,t))throw new q({sender:t,to:i});const u=o.includes(L)?await O({data:d,ccipRequest:h}):await h({data:d,sender:t,urls:o}),{data:g}=await E(c,{blockNumber:r,blockTag:a,data:x([l,R([{type:"bytes"},{type:"bytes"}],[u,s])]),to:i});return g}catch(u){throw new S({callbackSelector:l,cause:u,data:n,extraData:s,sender:t,urls:o})}}async function C({data:c,sender:r,urls:a}){var i;let n=new Error("An unknown error occurred.");for(let f=0;f<a.length;f++){const t=a[f],o=t.includes("{data}")?"GET":"POST",d=o==="POST"?{data:c,sender:r}:void 0,l=o==="POST"?{"Content-Type":"application/json"}:{};try{const s=await fetch(t.replace("{sender}",r.toLowerCase()).replace("{data}",c),{body:JSON.stringify(d),headers:l,method:o});let e;if((i=s.headers.get("Content-Type"))!=null&&i.startsWith("application/json")?e=(await s.json()).data:e=await s.text(),!s.ok){n=new y({body:d,details:e!=null&&e.error?w(e.error):s.statusText,headers:s.headers,status:s.status,url:t});continue}if(!M(e)){n=new $({result:e,url:t});continue}return e}catch(s){n=new y({body:d,details:s.message,url:t})}}throw n}export{C as ccipRequest,D as offchainLookup,T as offchainLookupAbiItem,A as offchainLookupSignature};
1
+ import{B as p,g as m,s as w,d as k,i as b,l as L,a as O,c as E,b as x,e as R,H as y,f as M}from"./index-BZxnAccF.js";class S extends p{constructor({callbackSelector:r,cause:a,data:n,extraData:i,sender:f,urls:t}){var o;super(a.shortMessage||"An error occurred while fetching for an offchain result.",{cause:a,metaMessages:[...a.metaMessages||[],(o=a.metaMessages)!=null&&o.length?"":[],"Offchain Gateway Call:",t&&[" Gateway URL(s):",...t.map(d=>` ${m(d)}`)],` Sender: ${f}`,` Data: ${n}`,` Callback selector: ${r}`,` Extra data: ${i}`].flat(),name:"OffchainLookupError"})}}class $ extends p{constructor({result:r,url:a}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${m(a)}`,`Response: ${w(r)}`],name:"OffchainLookupResponseMalformedError"})}}class q extends p{constructor({sender:r,to:a}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${a}`,`OffchainLookup sender address: ${r}`],name:"OffchainLookupSenderMismatchError"})}}const A="0x556f1830",T={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function D(c,{blockNumber:r,blockTag:a,data:n,to:i}){const{args:f}=k({data:n,abi:[T]}),[t,o,d,l,s]=f,{ccipRead:e}=c,h=e&&typeof(e==null?void 0:e.request)=="function"?e.request:C;try{if(!b(i,t))throw new q({sender:t,to:i});const u=o.includes(L)?await O({data:d,ccipRequest:h}):await h({data:d,sender:t,urls:o}),{data:g}=await E(c,{blockNumber:r,blockTag:a,data:x([l,R([{type:"bytes"},{type:"bytes"}],[u,s])]),to:i});return g}catch(u){throw new S({callbackSelector:l,cause:u,data:n,extraData:s,sender:t,urls:o})}}async function C({data:c,sender:r,urls:a}){var i;let n=new Error("An unknown error occurred.");for(let f=0;f<a.length;f++){const t=a[f],o=t.includes("{data}")?"GET":"POST",d=o==="POST"?{data:c,sender:r}:void 0,l=o==="POST"?{"Content-Type":"application/json"}:{};try{const s=await fetch(t.replace("{sender}",r.toLowerCase()).replace("{data}",c),{body:JSON.stringify(d),headers:l,method:o});let e;if((i=s.headers.get("Content-Type"))!=null&&i.startsWith("application/json")?e=(await s.json()).data:e=await s.text(),!s.ok){n=new y({body:d,details:e!=null&&e.error?w(e.error):s.statusText,headers:s.headers,status:s.status,url:t});continue}if(!M(e)){n=new $({result:e,url:t});continue}return e}catch(s){n=new y({body:d,details:s.message,url:t})}}throw n}export{C as ccipRequest,D as offchainLookup,T as offchainLookupAbiItem,A as offchainLookupSignature};
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-4w9H32as.js";import"./index-Ci5bF__2.js";import"./index.es-D1GdDJUC.js";import"./events-DQ172AOg.js";const t=o`<svg fill="none" viewBox="0 0 14 14">
1
+ import{w as o}from"./core-mQ5yosIn.js";import"./index-BZxnAccF.js";import"./index.es-CWJ0CIzw.js";import"./events-DQ172AOg.js";const t=o`<svg fill="none" viewBox="0 0 14 14">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-4w9H32as.js";import"./index-Ci5bF__2.js";import"./index.es-D1GdDJUC.js";import"./events-DQ172AOg.js";const l=o`<svg
1
+ import{w as o}from"./core-mQ5yosIn.js";import"./index-BZxnAccF.js";import"./index.es-CWJ0CIzw.js";import"./events-DQ172AOg.js";const l=o`<svg
2
2
  width="28"
3
3
  height="28"
4
4
  viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-4w9H32as.js";import"./index-Ci5bF__2.js";import"./index.es-D1GdDJUC.js";import"./events-DQ172AOg.js";const i=o`<svg fill="none" viewBox="0 0 16 16">
1
+ import{w as o}from"./core-mQ5yosIn.js";import"./index-BZxnAccF.js";import"./index.es-CWJ0CIzw.js";import"./events-DQ172AOg.js";const i=o`<svg fill="none" viewBox="0 0 16 16">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-4w9H32as.js";import"./index-Ci5bF__2.js";import"./index.es-D1GdDJUC.js";import"./events-DQ172AOg.js";const t=o`<svg fill="none" viewBox="0 0 16 16">
1
+ import{w as o}from"./core-mQ5yosIn.js";import"./index-BZxnAccF.js";import"./index.es-CWJ0CIzw.js";import"./events-DQ172AOg.js";const t=o`<svg fill="none" viewBox="0 0 16 16">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-4w9H32as.js";import"./index-Ci5bF__2.js";import"./index.es-D1GdDJUC.js";import"./events-DQ172AOg.js";const t=o`<svg fill="none" viewBox="0 0 16 16">
1
+ import{w as o}from"./core-mQ5yosIn.js";import"./index-BZxnAccF.js";import"./index.es-CWJ0CIzw.js";import"./events-DQ172AOg.js";const t=o`<svg fill="none" viewBox="0 0 16 16">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-4w9H32as.js";import"./index-Ci5bF__2.js";import"./index.es-D1GdDJUC.js";import"./events-DQ172AOg.js";const p=o`<svg fill="none" viewBox="0 0 16 16">
1
+ import{w as o}from"./core-mQ5yosIn.js";import"./index-BZxnAccF.js";import"./index.es-CWJ0CIzw.js";import"./events-DQ172AOg.js";const p=o`<svg fill="none" viewBox="0 0 16 16">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -1,4 +1,4 @@
1
- import{w as t}from"./core-4w9H32as.js";import"./index-Ci5bF__2.js";import"./index.es-D1GdDJUC.js";import"./events-DQ172AOg.js";const e=t`<svg width="36" height="36" fill="none">
1
+ import{w as t}from"./core-mQ5yosIn.js";import"./index-BZxnAccF.js";import"./index.es-CWJ0CIzw.js";import"./events-DQ172AOg.js";const e=t`<svg width="36" height="36" fill="none">
2
2
  <path
3
3
  fill="#fff"
4
4
  fill-opacity=".05"
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-4w9H32as.js";import"./index-Ci5bF__2.js";import"./index.es-D1GdDJUC.js";import"./events-DQ172AOg.js";const r=o`<svg width="14" height="14" viewBox="0 0 14 14" fill="none">
1
+ import{w as o}from"./core-mQ5yosIn.js";import"./index-BZxnAccF.js";import"./index.es-CWJ0CIzw.js";import"./events-DQ172AOg.js";const r=o`<svg width="14" height="14" viewBox="0 0 14 14" fill="none">
2
2
  <path
3
3
  fill-rule="evenodd"
4
4
  clip-rule="evenodd"
@@ -1,4 +1,4 @@
1
- import{w as l}from"./core-4w9H32as.js";import"./index-Ci5bF__2.js";import"./index.es-D1GdDJUC.js";import"./events-DQ172AOg.js";const t=l`<svg fill="none" viewBox="0 0 16 16">
1
+ import{w as l}from"./core-mQ5yosIn.js";import"./index-BZxnAccF.js";import"./index.es-CWJ0CIzw.js";import"./events-DQ172AOg.js";const t=l`<svg fill="none" viewBox="0 0 16 16">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-4w9H32as.js";import"./index-Ci5bF__2.js";import"./index.es-D1GdDJUC.js";import"./events-DQ172AOg.js";const t=o`<svg fill="none" viewBox="0 0 20 20">
1
+ import{w as o}from"./core-mQ5yosIn.js";import"./index-BZxnAccF.js";import"./index.es-CWJ0CIzw.js";import"./events-DQ172AOg.js";const t=o`<svg fill="none" viewBox="0 0 20 20">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-4w9H32as.js";import"./index-Ci5bF__2.js";import"./index.es-D1GdDJUC.js";import"./events-DQ172AOg.js";const a=o`<svg fill="none" viewBox="0 0 16 16">
1
+ import{w as o}from"./core-mQ5yosIn.js";import"./index-BZxnAccF.js";import"./index.es-CWJ0CIzw.js";import"./events-DQ172AOg.js";const a=o`<svg fill="none" viewBox="0 0 16 16">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -1,4 +1,4 @@
1
- import{w as C}from"./core-4w9H32as.js";import"./index-Ci5bF__2.js";import"./index.es-D1GdDJUC.js";import"./events-DQ172AOg.js";const t=C`<svg
1
+ import{w as C}from"./core-mQ5yosIn.js";import"./index-BZxnAccF.js";import"./index.es-CWJ0CIzw.js";import"./events-DQ172AOg.js";const t=C`<svg
2
2
  xmlns="http://www.w3.org/2000/svg"
3
3
  width="16"
4
4
  height="16"