@antseed/ants 0.1.36 → 0.1.38

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 (99) hide show
  1. package/dist/ants-web/assets/{add-D4zQoEIK.js → add-DCIPXD6_.js} +1 -1
  2. package/dist/ants-web/assets/{all-wallets-CSXQnxSz.js → all-wallets-C7FqOvzt.js} +1 -1
  3. package/dist/ants-web/assets/{app-store-C7MfAk8S.js → app-store-BZLJRlO_.js} +1 -1
  4. package/dist/ants-web/assets/{apple-4Yf6Gk8i.js → apple-BDfhmJhL.js} +1 -1
  5. package/dist/ants-web/assets/{arrow-bottom-ChiE880W.js → arrow-bottom-DCE0ZlCD.js} +1 -1
  6. package/dist/ants-web/assets/{arrow-bottom-circle-C9qoLWeh.js → arrow-bottom-circle-U20i_fAI.js} +1 -1
  7. package/dist/ants-web/assets/{arrow-left-D0oqJTeZ.js → arrow-left-DD6qIQf7.js} +1 -1
  8. package/dist/ants-web/assets/{arrow-right-CVfE56Yg.js → arrow-right-Bz6m3qOG.js} +1 -1
  9. package/dist/ants-web/assets/{arrow-top-NrpyjFQp.js → arrow-top-CM-vnzSU.js} +1 -1
  10. package/dist/ants-web/assets/{bank-D8ctKFFZ.js → bank-D0DA3gzu.js} +1 -1
  11. package/dist/ants-web/assets/{basic-BexMAQoe.js → basic-Jh8KrFRu.js} +1 -1
  12. package/dist/ants-web/assets/{browser-bKXfiS_2.js → browser-BKZKHwi-.js} +1 -1
  13. package/dist/ants-web/assets/{card-CRWJ1CWL.js → card-DAG0h2Ts.js} +1 -1
  14. package/dist/ants-web/assets/{ccip-Dul-v0dr.js → ccip-BQks8yTM.js} +1 -1
  15. package/dist/ants-web/assets/{checkmark-CyO---D6.js → checkmark-BcJQb-6_.js} +1 -1
  16. package/dist/ants-web/assets/{checkmark-bold-zaYJJgag.js → checkmark-bold-D4nXzyNX.js} +1 -1
  17. package/dist/ants-web/assets/{chevron-bottom-BpS8IJB4.js → chevron-bottom-ClOm7Fz0.js} +1 -1
  18. package/dist/ants-web/assets/{chevron-left-BHzMrOkP.js → chevron-left-Cor6k0uP.js} +1 -1
  19. package/dist/ants-web/assets/{chevron-right-CAEaDmF1.js → chevron-right-eVqnZYuU.js} +1 -1
  20. package/dist/ants-web/assets/{chevron-top-CwMOuusa.js → chevron-top-BFt1ZFwA.js} +1 -1
  21. package/dist/ants-web/assets/{chrome-store-DyVTKcJ5.js → chrome-store-DMhDLXYB.js} +1 -1
  22. package/dist/ants-web/assets/{clock-CHnyFLN6.js → clock-dTfUkadV.js} +1 -1
  23. package/dist/ants-web/assets/{close-BlUhU60k.js → close-BG-6LzOm.js} +1 -1
  24. package/dist/ants-web/assets/{coinPlaceholder-Bi4hRH6y.js → coinPlaceholder-sS7cgBjn.js} +1 -1
  25. package/dist/ants-web/assets/{compass-DMPX9tIS.js → compass-C80LXXvh.js} +1 -1
  26. package/dist/ants-web/assets/{copy-hhvB5n14.js → copy-D6-xB9-c.js} +1 -1
  27. package/dist/ants-web/assets/{core-BfoAFkY8.js → core-D1ulkHye.js} +3 -3
  28. package/dist/ants-web/assets/{cursor-BZHdYR7x.js → cursor-BOcmVbSv.js} +1 -1
  29. package/dist/ants-web/assets/{cursor-transparent-DU5VzNlI.js → cursor-transparent-CK_m92Pg.js} +1 -1
  30. package/dist/ants-web/assets/{desktop-CJvmoWSh.js → desktop-WLFskiDq.js} +1 -1
  31. package/dist/ants-web/assets/{disconnect-y3SXlAJD.js → disconnect-BX9WS4J3.js} +1 -1
  32. package/dist/ants-web/assets/{discord-CIryPE3Q.js → discord-DtFAm2Wc.js} +1 -1
  33. package/dist/ants-web/assets/{etherscan-CorqRFTw.js → etherscan-BW2pQX8l.js} +1 -1
  34. package/dist/ants-web/assets/{exclamation-triangle-BkEoTHZ5.js → exclamation-triangle-iU6GBdkP.js} +1 -1
  35. package/dist/ants-web/assets/{extension-DyrRcjbU.js → extension-B5smBdrO.js} +1 -1
  36. package/dist/ants-web/assets/{external-link-DdO_iUGI.js → external-link-DSWpBg2t.js} +1 -1
  37. package/dist/ants-web/assets/{facebook-yYGvRtWV.js → facebook-Cb8OgsJi.js} +1 -1
  38. package/dist/ants-web/assets/{farcaster-nluXMXtO.js → farcaster-CTwTn8tS.js} +1 -1
  39. package/dist/ants-web/assets/{filters-DsHlEnve.js → filters-Cl-zaZ1E.js} +1 -1
  40. package/dist/ants-web/assets/{github-CTYsMkh0.js → github-DCdqmvzS.js} +1 -1
  41. package/dist/ants-web/assets/{google-kM4Wvu7Z.js → google-xSL_chbe.js} +1 -1
  42. package/dist/ants-web/assets/{help-circle-DKOLqw_b.js → help-circle-CKjIziTG.js} +1 -1
  43. package/dist/ants-web/assets/{id-CusREk5-.js → id-Dse4Ml5Z.js} +1 -1
  44. package/dist/ants-web/assets/{image-DMNQNh0Y.js → image-DrvQwT2X.js} +1 -1
  45. package/dist/ants-web/assets/{index-CPLzfsPE.js → index-C5mru996.js} +3 -3
  46. package/dist/ants-web/assets/{index-DANxT8qS.js → index-CAE3agzU.js} +1 -1
  47. package/dist/ants-web/assets/{index-COY2px3j.js → index-CKE19_KF.js} +1 -1
  48. package/dist/ants-web/assets/{index-DUuPTQ3k.js → index-CgvU9LqA.js} +1 -1
  49. package/dist/ants-web/assets/{index-BEpanGpi.css → index-Llx7nUjq.css} +1 -1
  50. package/dist/ants-web/assets/{index-VZ32oQFb.js → index-qLjIoZgU.js} +66 -66
  51. package/dist/ants-web/assets/{index.es-DPlCdt54.js → index.es-23x2t11R.js} +4 -4
  52. package/dist/ants-web/assets/{info-CnM2svWJ.js → info-DnloPsPS.js} +1 -1
  53. package/dist/ants-web/assets/{info-circle-DJzqb4SI.js → info-circle-POJvRI1a.js} +1 -1
  54. package/dist/ants-web/assets/{lightbulb-CST9dVcZ.js → lightbulb-DYv2eS8r.js} +1 -1
  55. package/dist/ants-web/assets/{mail-BJ1hKVqS.js → mail-heNwW7Sl.js} +1 -1
  56. package/dist/ants-web/assets/{metamask-sdk-BH6ZlElr.js → metamask-sdk-820m2-VJ.js} +1 -1
  57. package/dist/ants-web/assets/{mobile-wmYRpcgE.js → mobile-YNq3Di5b.js} +1 -1
  58. package/dist/ants-web/assets/{more-IGP1bF3R.js → more-DsHjMCMY.js} +1 -1
  59. package/dist/ants-web/assets/{network-placeholder-BngyJw8O.js → network-placeholder-Cci6IuWG.js} +1 -1
  60. package/dist/ants-web/assets/{nftPlaceholder-BrzrjnCr.js → nftPlaceholder-D4xscQS4.js} +1 -1
  61. package/dist/ants-web/assets/{off-C1QfuJWG.js → off-KJ4kduwr.js} +1 -1
  62. package/dist/ants-web/assets/{play-store-CADZOU9s.js → play-store-DxS3Bi93.js} +1 -1
  63. package/dist/ants-web/assets/{plus-BTdAeL37.js → plus-CE_nj4yz.js} +1 -1
  64. package/dist/ants-web/assets/{qr-code-mzZyj0IW.js → qr-code-D3zZ28wm.js} +1 -1
  65. package/dist/ants-web/assets/{recycle-horizontal-8XGvHUej.js → recycle-horizontal-DspHa2Ld.js} +1 -1
  66. package/dist/ants-web/assets/{refresh-B4TDccir.js → refresh-ByykrpGD.js} +1 -1
  67. package/dist/ants-web/assets/{reown-logo-B7g0SQf8.js → reown-logo-JiCUBFu-.js} +1 -1
  68. package/dist/ants-web/assets/{search-DING6LvV.js → search-C36amFTq.js} +1 -1
  69. package/dist/ants-web/assets/{secp256k1-a7iMSBSR.js → secp256k1-CFNdPxMx.js} +1 -1
  70. package/dist/ants-web/assets/{send-CnCS4TcQ.js → send-D-Fhj9Fs.js} +1 -1
  71. package/dist/ants-web/assets/{swapHorizontal-DgdBiOXF.js → swapHorizontal-BAHj6PVs.js} +1 -1
  72. package/dist/ants-web/assets/{swapHorizontalBold-BggYc17K.js → swapHorizontalBold-BmDAG8Ek.js} +1 -1
  73. package/dist/ants-web/assets/{swapHorizontalMedium-BmbMM6av.js → swapHorizontalMedium-452JrIAc.js} +1 -1
  74. package/dist/ants-web/assets/{swapHorizontalRoundedBold-9GHD52KZ.js → swapHorizontalRoundedBold-holEkxdk.js} +1 -1
  75. package/dist/ants-web/assets/{swapVertical-CEdy1srN.js → swapVertical-C1ES_pSk.js} +1 -1
  76. package/dist/ants-web/assets/{telegram-CzVWpOYY.js → telegram-B5MUEHhm.js} +1 -1
  77. package/dist/ants-web/assets/{three-dots-BG2Qdpc1.js → three-dots-DyZNhFQ_.js} +1 -1
  78. package/dist/ants-web/assets/{twitch-BJsVNWdF.js → twitch-TDR_rZzA.js} +1 -1
  79. package/dist/ants-web/assets/{twitterIcon-BOPFGd5P.js → twitterIcon-BN0zln3t.js} +1 -1
  80. package/dist/ants-web/assets/{verify-CjXYfWEC.js → verify-BEARGEPQ.js} +1 -1
  81. package/dist/ants-web/assets/{verify-filled-CKhuGj0x.js → verify-filled-DH5jq2yG.js} +1 -1
  82. package/dist/ants-web/assets/{w3m-modal-DcLR3Mp3.js → w3m-modal-BDtQGTSQ.js} +1 -1
  83. package/dist/ants-web/assets/{wallet-BE8yFWV-.js → wallet-DdBOVST8.js} +1 -1
  84. package/dist/ants-web/assets/{wallet-placeholder-V9pJvNWq.js → wallet-placeholder-BoS1Mpuj.js} +1 -1
  85. package/dist/ants-web/assets/{walletconnect-D2pRbx3L.js → walletconnect-CYNuCMGH.js} +1 -1
  86. package/dist/ants-web/assets/{warning-circle-ClqEAZx7.js → warning-circle-DqQsWKHg.js} +1 -1
  87. package/dist/ants-web/assets/{x-rj_yq1Mp.js → x-xMnxwWNK.js} +1 -1
  88. package/dist/ants-web/index.html +2 -2
  89. package/dist/api-types.d.ts +4 -0
  90. package/dist/service/context.d.ts +8 -3
  91. package/dist/service/context.js +6 -0
  92. package/dist/service/context.js.map +1 -1
  93. package/dist/service/pools.js +53 -8
  94. package/dist/service/pools.js.map +1 -1
  95. package/dist/service/position-feed.js +29 -2
  96. package/dist/service/position-feed.js.map +1 -1
  97. package/dist/service/rewards.js +3 -5
  98. package/dist/service/rewards.js.map +1 -1
  99. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import{w as o}from"./core-BfoAFkY8.js";import"./index-VZ32oQFb.js";import"./index.es-DPlCdt54.js";import"./events-DQ172AOg.js";const e=o`<svg
1
+ import{w as o}from"./core-D1ulkHye.js";import"./index-qLjIoZgU.js";import"./index.es-23x2t11R.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-BfoAFkY8.js";import"./index-VZ32oQFb.js";import"./index.es-DPlCdt54.js";import"./events-DQ172AOg.js";const r=o`<svg fill="none" viewBox="0 0 24 24">
1
+ import{w as o}from"./core-D1ulkHye.js";import"./index-qLjIoZgU.js";import"./index.es-23x2t11R.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-BfoAFkY8.js";import"./index-VZ32oQFb.js";import"./index.es-DPlCdt54.js";import"./events-DQ172AOg.js";const e=t`
1
+ import{w as t}from"./core-D1ulkHye.js";import"./index-qLjIoZgU.js";import"./index.es-23x2t11R.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-BfoAFkY8.js";import"./index-VZ32oQFb.js";import"./index.es-DPlCdt54.js";import"./events-DQ172AOg.js";const c=i`<svg fill="none" viewBox="0 0 40 40">
1
+ import{w as i}from"./core-D1ulkHye.js";import"./index-qLjIoZgU.js";import"./index.es-23x2t11R.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-BfoAFkY8.js";import"./index-VZ32oQFb.js";import"./index.es-DPlCdt54.js";import"./events-DQ172AOg.js";const i=o`<svg fill="none" viewBox="0 0 14 15">
1
+ import{w as o}from"./core-D1ulkHye.js";import"./index-qLjIoZgU.js";import"./index.es-23x2t11R.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-BfoAFkY8.js";import"./index-VZ32oQFb.js";import"./index.es-DPlCdt54.js";import"./events-DQ172AOg.js";const i=C`<svg
1
+ import{w as C}from"./core-D1ulkHye.js";import"./index-qLjIoZgU.js";import"./index.es-23x2t11R.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-BfoAFkY8.js";import"./index-VZ32oQFb.js";import"./index.es-DPlCdt54.js";import"./events-DQ172AOg.js";const t=o`<svg fill="none" viewBox="0 0 14 15">
1
+ import{w as o}from"./core-D1ulkHye.js";import"./index-qLjIoZgU.js";import"./index.es-23x2t11R.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-BfoAFkY8.js";import"./index-VZ32oQFb.js";import"./index.es-DPlCdt54.js";import"./events-DQ172AOg.js";const t=o`<svg fill="none" viewBox="0 0 14 15">
1
+ import{w as o}from"./core-D1ulkHye.js";import"./index-qLjIoZgU.js";import"./index.es-23x2t11R.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-BfoAFkY8.js";import"./index-VZ32oQFb.js";import"./index.es-DPlCdt54.js";import"./events-DQ172AOg.js";const p=o`<svg fill="none" viewBox="0 0 14 15">
1
+ import{w as o}from"./core-D1ulkHye.js";import"./index-qLjIoZgU.js";import"./index.es-23x2t11R.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-BfoAFkY8.js";import"./index-VZ32oQFb.js";import"./index.es-DPlCdt54.js";import"./events-DQ172AOg.js";const l=o`<svg
1
+ import{w as o}from"./core-D1ulkHye.js";import"./index-qLjIoZgU.js";import"./index.es-23x2t11R.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-BfoAFkY8.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-CPLzfsPE.js";import{n as En}from"./index-VZ32oQFb.js";import"./index.es-DPlCdt54.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-D1ulkHye.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-C5mru996.js";import{n as En}from"./index-qLjIoZgU.js";import"./index.es-23x2t11R.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-BfoAFkY8.js";import"./index-VZ32oQFb.js";import"./index.es-DPlCdt54.js";import"./events-DQ172AOg.js";const c=l`<svg fill="none" viewBox="0 0 20 20">
1
+ import{w as l}from"./core-D1ulkHye.js";import"./index-qLjIoZgU.js";import"./index.es-23x2t11R.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-BfoAFkY8.js";import"./index-VZ32oQFb.js";import"./index.es-DPlCdt54.js";import"./events-DQ172AOg.js";const i=C`<svg
1
+ import{w as C}from"./core-D1ulkHye.js";import"./index-qLjIoZgU.js";import"./index.es-23x2t11R.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-VZ32oQFb.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-qLjIoZgU.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-BfoAFkY8.js";import"./index-VZ32oQFb.js";import"./index.es-DPlCdt54.js";import"./events-DQ172AOg.js";const l=o`<svg
1
+ import{w as o}from"./core-D1ulkHye.js";import"./index-qLjIoZgU.js";import"./index.es-23x2t11R.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-BfoAFkY8.js";import"./index-VZ32oQFb.js";import"./index.es-DPlCdt54.js";import"./events-DQ172AOg.js";const t=o`<svg fill="none" viewBox="0 0 14 14">
1
+ import{w as o}from"./core-D1ulkHye.js";import"./index-qLjIoZgU.js";import"./index.es-23x2t11R.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-BfoAFkY8.js";import"./index-VZ32oQFb.js";import"./index.es-DPlCdt54.js";import"./events-DQ172AOg.js";const i=o`<svg fill="none" viewBox="0 0 16 16">
1
+ import{w as o}from"./core-D1ulkHye.js";import"./index-qLjIoZgU.js";import"./index.es-23x2t11R.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-BfoAFkY8.js";import"./index-VZ32oQFb.js";import"./index.es-DPlCdt54.js";import"./events-DQ172AOg.js";const t=o`<svg fill="none" viewBox="0 0 16 16">
1
+ import{w as o}from"./core-D1ulkHye.js";import"./index-qLjIoZgU.js";import"./index.es-23x2t11R.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-BfoAFkY8.js";import"./index-VZ32oQFb.js";import"./index.es-DPlCdt54.js";import"./events-DQ172AOg.js";const t=o`<svg fill="none" viewBox="0 0 16 16">
1
+ import{w as o}from"./core-D1ulkHye.js";import"./index-qLjIoZgU.js";import"./index.es-23x2t11R.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-BfoAFkY8.js";import"./index-VZ32oQFb.js";import"./index.es-DPlCdt54.js";import"./events-DQ172AOg.js";const p=o`<svg fill="none" viewBox="0 0 16 16">
1
+ import{w as o}from"./core-D1ulkHye.js";import"./index-qLjIoZgU.js";import"./index.es-23x2t11R.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-BfoAFkY8.js";import"./index-VZ32oQFb.js";import"./index.es-DPlCdt54.js";import"./events-DQ172AOg.js";const e=t`<svg width="36" height="36" fill="none">
1
+ import{w as t}from"./core-D1ulkHye.js";import"./index-qLjIoZgU.js";import"./index.es-23x2t11R.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-BfoAFkY8.js";import"./index-VZ32oQFb.js";import"./index.es-DPlCdt54.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-D1ulkHye.js";import"./index-qLjIoZgU.js";import"./index.es-23x2t11R.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-BfoAFkY8.js";import"./index-VZ32oQFb.js";import"./index.es-DPlCdt54.js";import"./events-DQ172AOg.js";const t=l`<svg fill="none" viewBox="0 0 16 16">
1
+ import{w as l}from"./core-D1ulkHye.js";import"./index-qLjIoZgU.js";import"./index.es-23x2t11R.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-BfoAFkY8.js";import"./index-VZ32oQFb.js";import"./index.es-DPlCdt54.js";import"./events-DQ172AOg.js";const t=o`<svg fill="none" viewBox="0 0 20 20">
1
+ import{w as o}from"./core-D1ulkHye.js";import"./index-qLjIoZgU.js";import"./index.es-23x2t11R.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-BfoAFkY8.js";import"./index-VZ32oQFb.js";import"./index.es-DPlCdt54.js";import"./events-DQ172AOg.js";const a=o`<svg fill="none" viewBox="0 0 16 16">
1
+ import{w as o}from"./core-D1ulkHye.js";import"./index-qLjIoZgU.js";import"./index.es-23x2t11R.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-BfoAFkY8.js";import"./index-VZ32oQFb.js";import"./index.es-DPlCdt54.js";import"./events-DQ172AOg.js";const t=C`<svg
1
+ import{w as C}from"./core-D1ulkHye.js";import"./index-qLjIoZgU.js";import"./index.es-23x2t11R.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"