@dcl/shop 0.5.1-30944558724.commit-19fdddf → 0.6.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 (173) hide show
  1. package/_assets/{Activity-tm1GZBBE.js → Activity-Bge7lOuf.js} +3 -3
  2. package/_assets/{AnimatedBackground-PdNi-WfR.js → AnimatedBackground-D0qNZ1uk.js} +2 -2
  3. package/_assets/{Assets-DzU3XKtW.js → Assets-CxGe_ZM9.js} +11 -11
  4. package/_assets/{Assets.styles-ZM8Q2cFA.js → Assets.styles-BiOSgFHZ.js} +1 -1
  5. package/_assets/{Authorizations-BxBoJzQm.js → Authorizations-CsTEC_Hm.js} +1 -1
  6. package/_assets/{Cart-CoA_J4Zn.js → Cart-CHYrwY74.js} +6 -6
  7. package/_assets/{CircularProgress-iDUU-7Dd.js → CircularProgress-DDBADFDe.js} +1 -1
  8. package/_assets/{Collection-DUnvQ9xs.js → Collection-nSwc5Ptd.js} +1 -1
  9. package/_assets/{CollectionCarousel-nQamkKEm.js → CollectionCarousel-D5MnwNN7.js} +4 -4
  10. package/_assets/{Creator-Dgszo59r.js → Creator-BVoAg8vx.js} +1 -1
  11. package/_assets/{ErrorNotice-CfA5EQ3B.js → ErrorNotice-CHXOd3mv.js} +1 -1
  12. package/_assets/{ExchangeController-CdHvmoRP.js → ExchangeController-Bi0S9a9G.js} +1 -1
  13. package/_assets/{GetCredits-Dv4OnlPr.js → GetCredits-DBdIhuBL.js} +6 -6
  14. package/_assets/{HelpersUtil-DL3ySOBk.js → HelpersUtil-BWrob0lV.js} +1 -1
  15. package/_assets/ItemDetail-BLZNqNQh.js +3375 -0
  16. package/_assets/{LoadMore-TnqPM5W_.js → LoadMore-BRkbiHQL.js} +1 -1
  17. package/_assets/{ManaPricingBanner.styles-C7faS-HZ.js → ManaPricingBanner.styles-DdfpyUuV.js} +1 -1
  18. package/_assets/{MenuList-DLBo9vKa.js → MenuList-UXGLAgD2.js} +1 -1
  19. package/_assets/{MyAssets-D-1HxNtf.js → MyAssets-DdKYWk0O.js} +1 -1
  20. package/_assets/{MyFavorites-27Kg0fu-.js → MyFavorites-DdKVRDaf.js} +1 -1
  21. package/_assets/{NotFound-CF-eOmVc.js → NotFound-BkW0P3dR.js} +1 -1
  22. package/_assets/{NotificationsBell-BADWC1wN.js → NotificationsBell-7ShIRJH3.js} +1 -1
  23. package/_assets/{OutfitDetail-CdadHpaC.js → OutfitDetail-CNOkA_8O.js} +1 -1
  24. package/_assets/{OutfitPreview-JIaMYiWg.js → OutfitPreview-DyGfIKQi.js} +1 -1
  25. package/_assets/{OutfitStudio-D-Tn3MZ0.js → OutfitStudio-DPE8kpg1.js} +1 -1
  26. package/_assets/{StoreSettings-5uZXoOvP.js → StoreSettings-DfBHIW4j.js} +1 -1
  27. package/_assets/{Success-C4laQ6DO.js → Success-crgO4feC.js} +1 -1
  28. package/_assets/{SwapController-h8IVGbcS.js → SwapController-Ht-IFVno.js} +1 -1
  29. package/_assets/{Tooltip-ySlzdfvH.js → Tooltip-CLv-UZmX.js} +1 -1
  30. package/_assets/{TradeService-C_mQXbkZ.js → TradeService-B-NE5VaA.js} +1 -1
  31. package/_assets/{W3MFrameProviderSingleton-Be2imJ8Z.js → W3MFrameProviderSingleton-Dew4UHCH.js} +3 -3
  32. package/_assets/{WebCryptoP256-I4V1QbUv.js → WebCryptoP256-C5HbbLGD.js} +1 -1
  33. package/_assets/{authorizations-D7XuRQgn.js → authorizations-BZyk6WdU.js} +1 -1
  34. package/_assets/{basic-Cue7GVXe.js → basic-B6EVXOl2.js} +1 -1
  35. package/_assets/{biconomy-C-omatJP.js → biconomy-Ug4_y9HZ.js} +1 -1
  36. package/_assets/{builder-MQPY8ChB.js → builder-BtJop_Py.js} +1 -1
  37. package/_assets/{buy-DGpUz8hz.js → buy-DdQ4SGHv.js} +1 -1
  38. package/_assets/{buy-gasless-Bl-OulBV.js → buy-gasless-DduUmbTM.js} +1 -1
  39. package/_assets/{categories-BQKh49D5.js → categories-BaRCBxVv.js} +1 -1
  40. package/_assets/{ccip-BC-JPxWw.js → ccip-BMULKFZu.js} +1 -1
  41. package/_assets/{ccip-Yik4EQGY.js → ccip-Db74k1Pr.js} +1 -1
  42. package/_assets/{clsx-Df3CFyaE.js → clsx-CEPd4QO3.js} +1 -1
  43. package/_assets/{collectionPage.styles-vmTcFGbQ.js → collectionPage.styles-D9bc4PtY.js} +5 -5
  44. package/_assets/{controller-Bq2L0AX1.js → controller-CWp6YNJV.js} +2 -2
  45. package/_assets/{core-lz2OIs0H.js → core-CwiW5Nem.js} +4 -4
  46. package/_assets/{createSvgIcon-bfaHZSjd.js → createSvgIcon-Bs2ci5m0.js} +1 -1
  47. package/_assets/{custom-DYDi3MJe.js → custom-uHB6JExE.js} +1 -1
  48. package/_assets/{data-capture-Y8xGExqA.js → data-capture-D3NMxO3v.js} +1 -1
  49. package/_assets/{email-UTvBfzjL.js → email-DVnSEa3r.js} +1 -1
  50. package/_assets/{embedded-wallet-hF59IEhH.js → embedded-wallet-DbVoNaLe.js} +1 -1
  51. package/_assets/{emotion-styled.browser.esm-D23S089l.js → emotion-styled.browser.esm-B3uXeLtp.js} +1 -1
  52. package/_assets/{engine-CgRM_THA.js → engine-BmkWePcn.js} +1 -1
  53. package/_assets/{errors-Wm6SH4-v.js → errors-DT8BUFd8.js} +1 -1
  54. package/_assets/{estimate-l1-fee-DZHVdg7h.js → estimate-l1-fee-LcCTQkbO.js} +1 -1
  55. package/_assets/{execute-BPgoblAE.js → execute-CBj5JHAd.js} +2 -2
  56. package/_assets/{features-DYTS35jX.js → features-BXQRcYZ3.js} +1 -1
  57. package/_assets/{fetchTokenMetadata-BxGNbM_2.js → fetchTokenMetadata-DJbq1Gx7.js} +2 -2
  58. package/_assets/{field.styles-Bys6wE0V.js → field.styles-CIQ-1Gyi.js} +1 -1
  59. package/_assets/{get-ecosystem-wallet-info-xvSXu74j.js → get-ecosystem-wallet-info-L-cqSPfk.js} +1 -1
  60. package/_assets/{getBalance-DLxh2RuD.js → getBalance-DX1WnXFT.js} +1 -1
  61. package/_assets/{getNFT-BOSh5H84.js → getNFT-Cgfi4Vmu.js} +1 -1
  62. package/_assets/{getNFT-K4qjxWNY.js → getNFT-fH2QMDXF.js} +1 -1
  63. package/_assets/{getThemeProps-mxNIag6l.js → getThemeProps-D85rRXiV.js} +1 -1
  64. package/_assets/{grid.styles-BaFKxOV8.js → grid.styles-BbfBfqCV.js} +1 -1
  65. package/_assets/{hashTypedData-CCvvyerQ.js → hashTypedData-BbQ-AHc3.js} +1 -1
  66. package/_assets/{hashTypedData-Bje_1GNe.js → hashTypedData-DP-1NjnI.js} +1 -1
  67. package/_assets/{in-app-DBzemWmV.js → in-app-CtBGXFNg.js} +1 -1
  68. package/_assets/{in-app-wallet-calls-CeM3dz7A.js → in-app-wallet-calls-yAvikrwR.js} +1 -1
  69. package/_assets/{index-D_9mpAb0.js → index-3T1Up4ST.js} +2 -2
  70. package/_assets/{index-DZrXtOiH.js → index-5sbt15fG.js} +1 -1
  71. package/_assets/{index-C_KycN_b.js → index-7aVl6hlf.js} +1 -1
  72. package/_assets/{index-BCyVn8MQ.js → index-7ncft_vv.js} +1 -1
  73. package/_assets/{index-C6jx_7vf.js → index-B1CRrsWx.js} +1 -1
  74. package/_assets/{index-Ypo9phAp.js → index-B1Gnpvim.js} +2 -2
  75. package/_assets/{index-BhRssk62.js → index-B3GREAKI.js} +1 -1
  76. package/_assets/{index-Cj0IFSYI.js → index-B7gpJ7FK.js} +1 -1
  77. package/_assets/{index-9pYsulOA.js → index-BEe4QBLJ.js} +1 -1
  78. package/_assets/{index-DRJlDsJB.js → index-BRbIAs-h.js} +1 -1
  79. package/_assets/{index-fzBQEY_W.js → index-BSAtCb0u.js} +1 -1
  80. package/_assets/{index-BgL4tnd6.js → index-BSu1IoGB.js} +1 -1
  81. package/_assets/{index-C8VruoUX.js → index-BTt9L5Av.js} +1 -1
  82. package/_assets/{index-CW0DN1u5.js → index-BUe1EUX7.js} +1 -1
  83. package/_assets/{index-C1hTWDfF.js → index-B_a8jknM.js} +1 -1
  84. package/_assets/{index-DMSY746R.js → index-BbUGeidq.js} +1 -1
  85. package/_assets/{index-DCdXL8QX.js → index-BcPJYMIm.js} +1 -1
  86. package/_assets/{index-BIXkfL0f.js → index-Bf7FRpyE.js} +1 -1
  87. package/_assets/{index-MZdslMn6.js → index-Bl0Kh3_k.js} +1 -1
  88. package/_assets/{index-VpH-lUJq.js → index-BpzRndQt.js} +1 -1
  89. package/_assets/index-BqH8KAmH.js +3343 -0
  90. package/_assets/{index-DKr33OKQ.js → index-BrXEqk1O.js} +1 -1
  91. package/_assets/{index-WvEbTnHu.js → index-C-j8K69Q.js} +1 -1
  92. package/_assets/{index-Cdnlri5M.js → index-C0Hpoz_1.js} +1 -1
  93. package/_assets/{index-Cx-FPP2C.js → index-C64LKUby.js} +1 -1
  94. package/_assets/{index-BW-7rl1w.js → index-C7JkPo6K.js} +1 -1
  95. package/_assets/{index-COC826L7.js → index-C9ALJu8v.js} +1 -1
  96. package/_assets/{index-CTSAk3HZ.js → index-CF2mk15z.js} +1 -1
  97. package/_assets/{index-BT9bqwmo.js → index-CFyRWGpS.js} +1 -1
  98. package/_assets/{index-D1ncAmsg.js → index-CK0YA4GV.js} +1 -1
  99. package/_assets/{index-D5drugU6.js → index-C_D2J-BR.js} +1 -1
  100. package/_assets/{index-BY-2ttcm.js → index-CdUpjD0Z.js} +1 -1
  101. package/_assets/{index-sofR0AzT.js → index-CfJ4lbnY.js} +1 -1
  102. package/_assets/{index-CNwyt0TH.js → index-Cou1KO6b.js} +1 -1
  103. package/_assets/{index-CFUHl0Ma.js → index-DIVlNKTA.js} +1 -1
  104. package/_assets/{index-D7A-L9p9.js → index-DMHLNLqi.js} +1 -1
  105. package/_assets/{index-cFnHRMx4.js → index-DTMwjYEd.js} +2 -2
  106. package/_assets/{index-vt25O9Am.js → index-DW8xuXKL.js} +3 -3
  107. package/_assets/{index-B-PyHfEF.js → index-DWEx5TbM.js} +1 -1
  108. package/_assets/{index-TvUj9AoT.js → index-DdXDqIhp.js} +1 -1
  109. package/_assets/{index-DGDemPnB.js → index-DgiMo6hh.js} +1 -1
  110. package/_assets/{index-DvkKq-3d.js → index-Dmf3D7KE.js} +1 -1
  111. package/_assets/{index-BwBZg-Cg.js → index-DqtsvtM3.js} +1 -1
  112. package/_assets/{index-B4iL_Vxm.js → index-DrMKJdtC.js} +1 -1
  113. package/_assets/{index-D3a3O8EH.js → index-DzETqrsC.js} +1 -1
  114. package/_assets/{index-CJWQK5Lk.js → index-H8YACMnu.js} +1 -1
  115. package/_assets/{index--BUBq145.js → index-X3LYABjY.js} +1 -1
  116. package/_assets/{index-Iqpx-phg.js → index-ZEf4-UtL.js} +1 -1
  117. package/_assets/{index-DFaB3PXW.js → index-e4M6K87M.js} +1 -1
  118. package/_assets/{index-BKSx9kmy.js → index-nf5H3h6Q.js} +1 -1
  119. package/_assets/{index-B1WnOG_n.js → index-rurXcTSu.js} +3 -3
  120. package/_assets/{index-BNbfWSl_.js → index-ul5wIAT0.js} +3 -3
  121. package/_assets/{index.es-B9ErMvUj.js → index.es-B4CfzT8f.js} +4 -4
  122. package/_assets/{index.es-DuthVFnh.js → index.es-Bn8h3cHG.js} +1 -1
  123. package/_assets/{index.es-rx-DH5wv.js → index.es-CqtFRAJI.js} +1 -1
  124. package/_assets/{localBatchGatewayRequest-D_WhElUc.js → localBatchGatewayRequest-CZC8IBaQ.js} +1 -1
  125. package/_assets/{networks-CjrnWm_p.js → networks-0i8YZqHL.js} +1 -1
  126. package/_assets/{onramp-DTvBwKCe.js → onramp-jLRLYivy.js} +1 -1
  127. package/_assets/{openzeppelin-C06zmVod.js → openzeppelin-Cg2_q1PI.js} +1 -1
  128. package/_assets/{parseNft-CWL0AW1h.js → parseNft-TDEqNX1Z.js} +2 -2
  129. package/_assets/{parseSignature-C5YgXtpR.js → parseSignature-BalN-8VI.js} +3 -3
  130. package/_assets/{parseSignature-5VH_Alnl.js → parseSignature-U7pY0kT6.js} +1 -1
  131. package/_assets/{passkeys-DiZlNP-q.js → passkeys-1owiFaBv.js} +1 -1
  132. package/_assets/{pay-with-exchange-CNm1xvZ5.js → pay-with-exchange-CxpzU3qT.js} +1 -1
  133. package/_assets/{qr-overlay-CpgjTugW.js → qr-overlay-CPsiG3BP.js} +1 -1
  134. package/_assets/{receive-CV4TgE-L.js → receive-Bj4S4vrF.js} +1 -1
  135. package/_assets/{resolveImplementation-XYPJYD3T.js → resolveImplementation-BgFFYcu4.js} +1 -1
  136. package/_assets/{rpc-tLuHrGBn.js → rpc-C5i5d_Hd.js} +1 -1
  137. package/_assets/{secp256k1-CpiwnyMt.js → secp256k1-CHxQAK4O.js} +1 -1
  138. package/_assets/{secp256k1-CYEZP9R3.js → secp256k1-CVOBgeVv.js} +1 -1
  139. package/_assets/{secp256k1-CDI-iBc2.js → secp256k1-PzBXITZB.js} +1 -1
  140. package/_assets/{send-D5VuBzPD.js → send-B1VWG_GM.js} +1 -1
  141. package/_assets/{send-batch-transaction-BfHXn227.js → send-batch-transaction-BhVc50dx.js} +1 -1
  142. package/_assets/{send-eip712-transaction-t0wYgXj7.js → send-eip712-transaction-G6HchcdI.js} +2 -2
  143. package/_assets/{send-gasless-transaction-CgmsaSdY.js → send-gasless-transaction-XGwNLlF0.js} +2 -2
  144. package/_assets/{send-transaction-CrLGC-De.js → send-transaction-C1XI8fYZ.js} +2 -2
  145. package/_assets/{sendMetaTransaction-ef-RXWfu.js → sendMetaTransaction-6e7RT25o.js} +1 -1
  146. package/_assets/{sendRawTransaction-pS6CHcTu.js → sendRawTransaction-lz2apptP.js} +3 -3
  147. package/_assets/{serializeTransaction-KCGr6qFd.js → serializeTransaction-CtWH-IFd.js} +1 -1
  148. package/_assets/{session-proposal-sRmaUsXb.js → session-proposal-DceQ_mD9.js} +1 -1
  149. package/_assets/{session-request-CfwKiBxF.js → session-request-CPsFtvuK.js} +2 -2
  150. package/_assets/{signing-DBbUwPle.js → signing-CeXE5YMl.js} +3 -3
  151. package/_assets/{socials-MOf37RiI.js → socials-Dn0c1c-x.js} +1 -1
  152. package/_assets/{swaps-bmMgRWV4.js → swaps-fYZLHQYX.js} +1 -1
  153. package/_assets/{thirdweb--zGmSCRq.js → thirdweb-9nUi4NTx.js} +3 -3
  154. package/_assets/{to-serializable-transaction-DjbT77eY.js → to-serializable-transaction-D4biQiPj.js} +2 -2
  155. package/_assets/{trade-encoding-wpCgB2Av.js → trade-encoding-DED17fJl.js} +1 -1
  156. package/_assets/{transactionReceipt-CweRPSQa.js → transactionReceipt-D6xTzzAw.js} +1 -1
  157. package/_assets/{transactions-dtEdgAGt.js → transactions-D3QkVO0W.js} +1 -1
  158. package/_assets/{useCreditPacks-CzOCruPU.js → useCreditPacks-BcNkRZz6.js} +1 -1
  159. package/_assets/{useImportable-rrKOGrr4.js → useImportable-B6vGX6b2.js} +1 -1
  160. package/_assets/{useInfiniteGrid-XDOQyPRq.js → useInfiniteGrid-DaAZHneB.js} +1 -1
  161. package/_assets/{useTheme-DGv_oEh8.js → useTheme-BJh8uAMV.js} +1 -1
  162. package/_assets/{verifyHash-CvfcirkG.js → verifyHash-DDW5fWXv.js} +1 -1
  163. package/_assets/{w3m-modal-PufzUctO.js → w3m-modal-BrowLxPF.js} +1 -1
  164. package/_assets/{w3m-modal-BGA4lQKq.js → w3m-modal-CbSLOTQ6.js} +1 -1
  165. package/_assets/{wait-for-tx-receipt-0VbbjxzA.js → wait-for-tx-receipt-Chc522wr.js} +1 -1
  166. package/_assets/{wallets-BopYfWq7.js → wallets-1JYF6nkF.js} +5 -5
  167. package/_assets/{web-connector-BSV6ourQ.js → web-connector-C19h992M.js} +3 -3
  168. package/_assets/{writeContract-CCNcKbN2.js → writeContract-DvQTemxv.js} +1 -1
  169. package/_assets/{zoraTestnet-DJdUGbFi.js → zoraTestnet-DwCWuKz_.js} +1 -1
  170. package/index.html +11 -11
  171. package/package.json +2 -2
  172. package/_assets/ItemDetail-B2_NA3qK.js +0 -3324
  173. package/_assets/index-DaQaTpvn.js +0 -3315
@@ -1 +1 @@
1
- import{r as k}from"./index-BV8s6ez1.js";import{az as w}from"./sendRawTransaction-pS6CHcTu.js";import{c as I,e as q}from"./hashTypedData-CCvvyerQ.js";import"./NetworkUtil-EoWQDMpU.js";import"./sentry-973sfbO9.js";import"./react-DehiWSvs.js";import"./index-DaQaTpvn.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";const v=()=>"9.1.0",C=t=>t.toString(16).padStart(2,"0"),R=t=>{const e=new Uint8Array(t/2);return window.crypto.getRandomValues(e),Array.from(e,C).join("")},E=()=>typeof window<"u"?R(10):new Date().getTime().toString(36);class g{}g.makeRequest=(t,e)=>({id:E(),method:t,params:e,env:{sdkVersion:v()}});g.makeResponse=(t,e,s)=>({id:t,success:!0,version:s,data:e});g.makeErrorResponse=(t,e,s)=>({id:t,success:!1,error:e,version:s});var r;(function(t){t.sendTransactions="sendTransactions",t.rpcCall="rpcCall",t.getChainInfo="getChainInfo",t.getSafeInfo="getSafeInfo",t.getTxBySafeTxHash="getTxBySafeTxHash",t.getSafeBalances="getSafeBalances",t.signMessage="signMessage",t.signTypedMessage="signTypedMessage",t.getEnvironmentInfo="getEnvironmentInfo",t.getOffChainSignature="getOffChainSignature",t.requestAddressBook="requestAddressBook",t.wallet_getPermissions="wallet_getPermissions",t.wallet_requestPermissions="wallet_requestPermissions"})(r||(r={}));var f;(function(t){t.requestAddressBook="requestAddressBook"})(f||(f={}));class H{constructor(e=null,s=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:a,data:n,source:i})=>{const o=!n,l=!this.isServer&&i===window.parent,u=typeof n.version<"u"&&parseInt(n.version.split(".")[0]),B=typeof u=="number"&&u>=1;let y=!0;return Array.isArray(this.allowedOrigins)&&(y=this.allowedOrigins.find(P=>P.test(a))!==void 0),!o&&l&&B&&y},this.logIncomingMessage=a=>{console.info(`Safe Apps SDK v1: A message was received from origin ${a.origin}. `,a.data)},this.onParentMessage=a=>{this.isValidMessage(a)&&(this.debugMode&&this.logIncomingMessage(a),this.handleIncomingMessage(a.data))},this.handleIncomingMessage=a=>{const{id:n}=a,i=this.callbacks.get(n);i&&(i(a),this.callbacks.delete(n))},this.send=(a,n)=>{const i=g.makeRequest(a,n);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(i,"*"),new Promise((o,l)=>{this.callbacks.set(i.id,u=>{if(!u.success){l(new Error(u.error));return}o(u)})})},this.allowedOrigins=e,this.debugMode=s,this.isServer||window.addEventListener("message",this.onParentMessage)}}const S=t=>typeof t=="object"&&t!=null&&"domain"in t&&"types"in t&&"message"in t;var m=k();class A{constructor(e){this.communicator=e}async getBySafeTxHash(e){if(!e)throw new Error("Invalid safeTxHash");return(await this.communicator.send(r.getTxBySafeTxHash,{safeTxHash:e})).data}async signMessage(e){const s={message:e};return(await this.communicator.send(r.signMessage,s)).data}async signTypedMessage(e){if(!S(e))throw new Error("Invalid typed data");return(await this.communicator.send(r.signTypedMessage,{typedData:e})).data}async send({txs:e,params:s}){if(!e||!e.length)throw new Error("No transactions were passed");const a={txs:e,params:s};return(await this.communicator.send(r.sendTransactions,a)).data}}const c={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"},h={defaultBlockParam:(t="latest")=>t,returnFullTxObjectParam:(t=!1)=>t,blockNumberToHex:t=>Number.isInteger(t)?`0x${t.toString(16)}`:t};class O{constructor(e){this.communicator=e,this.call=this.buildRequest({call:c.eth_call,formatters:[null,h.defaultBlockParam]}),this.getBalance=this.buildRequest({call:c.eth_getBalance,formatters:[null,h.defaultBlockParam]}),this.getCode=this.buildRequest({call:c.eth_getCode,formatters:[null,h.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:c.eth_getStorageAt,formatters:[null,h.blockNumberToHex,h.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:c.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:c.eth_getBlockByHash,formatters:[null,h.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:c.eth_getBlockByNumber,formatters:[h.blockNumberToHex,h.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:c.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:c.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:c.eth_getTransactionCount,formatters:[null,h.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:c.eth_gasPrice}),this.getEstimateGas=s=>this.buildRequest({call:c.eth_estimateGas})([s]),this.setSafeSettings=this.buildRequest({call:c.safe_setSettings})}buildRequest(e){const{call:s,formatters:a}=e;return async n=>{a&&Array.isArray(n)&&a.forEach((l,u)=>{l&&(n[u]=l(n[u]))});const i={call:s,params:n||[]};return(await this.communicator.send(r.rpcCall,i)).data}}}const x="0x1626ba7e",V="0x20c13b0b",p=4001;class d extends Error{constructor(e,s,a){super(e),this.code=s,this.data=a,Object.setPrototypeOf(this,d.prototype)}}class _{constructor(e){this.communicator=e}async getPermissions(){return(await this.communicator.send(r.wallet_getPermissions,void 0)).data}async requestPermissions(e){if(!this.isPermissionRequestValid(e))throw new d("Permissions request is invalid",p);try{return(await this.communicator.send(r.wallet_requestPermissions,e)).data}catch{throw new d("Permissions rejected",p)}}isPermissionRequestValid(e){return e.every(s=>typeof s=="object"?Object.keys(s).every(a=>!!Object.values(f).includes(a)):!1)}}const b=(t,e)=>e.some(s=>s.parentCapability===t),M=()=>(t,e,s)=>{const a=s.value;return s.value=async function(){const n=new _(this.communicator);let i=await n.getPermissions();if(b(e,i)||(i=await n.requestPermissions([{[e]:{}}])),!b(e,i))throw new d("Permissions rejected",p);return a.apply(this)},s};var j=function(t,e,s,a){var n=arguments.length,i=n<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,s):a,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,s,a);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(i=(n<3?o(i):n>3?o(e,s,i):o(e,s))||i);return n>3&&i&&Object.defineProperty(e,s,i),i};class T{constructor(e){this.communicator=e}async getChainInfo(){return(await this.communicator.send(r.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(r.getSafeInfo,void 0)).data}async experimental_getBalances({currency:e="usd"}={}){return(await this.communicator.send(r.getSafeBalances,{currency:e})).data}async check1271Signature(e,s="0x"){const a=await this.getInfo(),n=w({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===x}catch{return!1}}async check1271SignatureBytes(e,s="0x"){const a=await this.getInfo(),n=w({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===V}catch{return!1}}calculateMessageHash(e){return I(e)}calculateTypedMessageHash(e){const s=typeof e.domain.chainId=="object"?e.domain.chainId.toNumber():Number(e.domain.chainId);let a=e.primaryType;if(!a){const n=Object.values(e.types),i=Object.keys(e.types).filter(o=>n.every(l=>l.every(({type:u})=>u.replace("[","").replace("]","")!==o)));if(i.length===0||i.length>1)throw new Error("Please specify primaryType");a=i[0]}return q({message:e.message,domain:{...e.domain,chainId:s,verifyingContract:e.domain.verifyingContract,salt:e.domain.salt},types:e.types,primaryType:a})}async getOffChainSignature(e){return(await this.communicator.send(r.getOffChainSignature,e)).data}async isMessageSigned(e,s="0x"){let a;if(typeof e=="string"&&(a=async()=>{const n=this.calculateMessageHash(e);return await this.isMessageHashSigned(n,s)}),S(e)&&(a=async()=>{const n=this.calculateTypedMessageHash(e);return await this.isMessageHashSigned(n,s)}),a)return await a();throw new Error("Invalid message type")}async isMessageHashSigned(e,s="0x"){const a=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(const n of a)if(await n(e,s))return!0;return!1}async getEnvironmentInfo(){return(await this.communicator.send(r.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(r.requestAddressBook,void 0)).data}}j([M()],T.prototype,"requestAddressBook",null);class J{constructor(e={}){const{allowedDomains:s=null,debug:a=!1}=e;this.communicator=new H(s,a),this.eth=new O(this.communicator),this.txs=new A(this.communicator),this.safe=new T(this.communicator),this.wallet=new _(this.communicator)}}const Q=m.Operation,X=m.TokenType,Y=m.TransactionStatus,Z=m.TransferDirection;export{g as MessageFormatter,r as Methods,Q as Operation,c as RPC_CALLS,f as RestrictedMethods,X as TokenType,Y as TransactionStatus,Z as TransferDirection,J as default,v as getSDKVersion,S as isObjectEIP712TypedData};
1
+ import{r as k}from"./index-BV8s6ez1.js";import{az as w}from"./sendRawTransaction-lz2apptP.js";import{c as I,e as q}from"./hashTypedData-BbQ-AHc3.js";import"./NetworkUtil-EoWQDMpU.js";import"./sentry-973sfbO9.js";import"./react-DehiWSvs.js";import"./index-BqH8KAmH.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";const v=()=>"9.1.0",C=t=>t.toString(16).padStart(2,"0"),R=t=>{const e=new Uint8Array(t/2);return window.crypto.getRandomValues(e),Array.from(e,C).join("")},E=()=>typeof window<"u"?R(10):new Date().getTime().toString(36);class g{}g.makeRequest=(t,e)=>({id:E(),method:t,params:e,env:{sdkVersion:v()}});g.makeResponse=(t,e,s)=>({id:t,success:!0,version:s,data:e});g.makeErrorResponse=(t,e,s)=>({id:t,success:!1,error:e,version:s});var r;(function(t){t.sendTransactions="sendTransactions",t.rpcCall="rpcCall",t.getChainInfo="getChainInfo",t.getSafeInfo="getSafeInfo",t.getTxBySafeTxHash="getTxBySafeTxHash",t.getSafeBalances="getSafeBalances",t.signMessage="signMessage",t.signTypedMessage="signTypedMessage",t.getEnvironmentInfo="getEnvironmentInfo",t.getOffChainSignature="getOffChainSignature",t.requestAddressBook="requestAddressBook",t.wallet_getPermissions="wallet_getPermissions",t.wallet_requestPermissions="wallet_requestPermissions"})(r||(r={}));var f;(function(t){t.requestAddressBook="requestAddressBook"})(f||(f={}));class H{constructor(e=null,s=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:a,data:n,source:i})=>{const o=!n,l=!this.isServer&&i===window.parent,u=typeof n.version<"u"&&parseInt(n.version.split(".")[0]),B=typeof u=="number"&&u>=1;let y=!0;return Array.isArray(this.allowedOrigins)&&(y=this.allowedOrigins.find(P=>P.test(a))!==void 0),!o&&l&&B&&y},this.logIncomingMessage=a=>{console.info(`Safe Apps SDK v1: A message was received from origin ${a.origin}. `,a.data)},this.onParentMessage=a=>{this.isValidMessage(a)&&(this.debugMode&&this.logIncomingMessage(a),this.handleIncomingMessage(a.data))},this.handleIncomingMessage=a=>{const{id:n}=a,i=this.callbacks.get(n);i&&(i(a),this.callbacks.delete(n))},this.send=(a,n)=>{const i=g.makeRequest(a,n);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(i,"*"),new Promise((o,l)=>{this.callbacks.set(i.id,u=>{if(!u.success){l(new Error(u.error));return}o(u)})})},this.allowedOrigins=e,this.debugMode=s,this.isServer||window.addEventListener("message",this.onParentMessage)}}const S=t=>typeof t=="object"&&t!=null&&"domain"in t&&"types"in t&&"message"in t;var m=k();class A{constructor(e){this.communicator=e}async getBySafeTxHash(e){if(!e)throw new Error("Invalid safeTxHash");return(await this.communicator.send(r.getTxBySafeTxHash,{safeTxHash:e})).data}async signMessage(e){const s={message:e};return(await this.communicator.send(r.signMessage,s)).data}async signTypedMessage(e){if(!S(e))throw new Error("Invalid typed data");return(await this.communicator.send(r.signTypedMessage,{typedData:e})).data}async send({txs:e,params:s}){if(!e||!e.length)throw new Error("No transactions were passed");const a={txs:e,params:s};return(await this.communicator.send(r.sendTransactions,a)).data}}const c={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"},h={defaultBlockParam:(t="latest")=>t,returnFullTxObjectParam:(t=!1)=>t,blockNumberToHex:t=>Number.isInteger(t)?`0x${t.toString(16)}`:t};class O{constructor(e){this.communicator=e,this.call=this.buildRequest({call:c.eth_call,formatters:[null,h.defaultBlockParam]}),this.getBalance=this.buildRequest({call:c.eth_getBalance,formatters:[null,h.defaultBlockParam]}),this.getCode=this.buildRequest({call:c.eth_getCode,formatters:[null,h.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:c.eth_getStorageAt,formatters:[null,h.blockNumberToHex,h.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:c.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:c.eth_getBlockByHash,formatters:[null,h.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:c.eth_getBlockByNumber,formatters:[h.blockNumberToHex,h.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:c.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:c.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:c.eth_getTransactionCount,formatters:[null,h.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:c.eth_gasPrice}),this.getEstimateGas=s=>this.buildRequest({call:c.eth_estimateGas})([s]),this.setSafeSettings=this.buildRequest({call:c.safe_setSettings})}buildRequest(e){const{call:s,formatters:a}=e;return async n=>{a&&Array.isArray(n)&&a.forEach((l,u)=>{l&&(n[u]=l(n[u]))});const i={call:s,params:n||[]};return(await this.communicator.send(r.rpcCall,i)).data}}}const x="0x1626ba7e",V="0x20c13b0b",p=4001;class d extends Error{constructor(e,s,a){super(e),this.code=s,this.data=a,Object.setPrototypeOf(this,d.prototype)}}class _{constructor(e){this.communicator=e}async getPermissions(){return(await this.communicator.send(r.wallet_getPermissions,void 0)).data}async requestPermissions(e){if(!this.isPermissionRequestValid(e))throw new d("Permissions request is invalid",p);try{return(await this.communicator.send(r.wallet_requestPermissions,e)).data}catch{throw new d("Permissions rejected",p)}}isPermissionRequestValid(e){return e.every(s=>typeof s=="object"?Object.keys(s).every(a=>!!Object.values(f).includes(a)):!1)}}const b=(t,e)=>e.some(s=>s.parentCapability===t),M=()=>(t,e,s)=>{const a=s.value;return s.value=async function(){const n=new _(this.communicator);let i=await n.getPermissions();if(b(e,i)||(i=await n.requestPermissions([{[e]:{}}])),!b(e,i))throw new d("Permissions rejected",p);return a.apply(this)},s};var j=function(t,e,s,a){var n=arguments.length,i=n<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,s):a,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,s,a);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(i=(n<3?o(i):n>3?o(e,s,i):o(e,s))||i);return n>3&&i&&Object.defineProperty(e,s,i),i};class T{constructor(e){this.communicator=e}async getChainInfo(){return(await this.communicator.send(r.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(r.getSafeInfo,void 0)).data}async experimental_getBalances({currency:e="usd"}={}){return(await this.communicator.send(r.getSafeBalances,{currency:e})).data}async check1271Signature(e,s="0x"){const a=await this.getInfo(),n=w({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===x}catch{return!1}}async check1271SignatureBytes(e,s="0x"){const a=await this.getInfo(),n=w({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===V}catch{return!1}}calculateMessageHash(e){return I(e)}calculateTypedMessageHash(e){const s=typeof e.domain.chainId=="object"?e.domain.chainId.toNumber():Number(e.domain.chainId);let a=e.primaryType;if(!a){const n=Object.values(e.types),i=Object.keys(e.types).filter(o=>n.every(l=>l.every(({type:u})=>u.replace("[","").replace("]","")!==o)));if(i.length===0||i.length>1)throw new Error("Please specify primaryType");a=i[0]}return q({message:e.message,domain:{...e.domain,chainId:s,verifyingContract:e.domain.verifyingContract,salt:e.domain.salt},types:e.types,primaryType:a})}async getOffChainSignature(e){return(await this.communicator.send(r.getOffChainSignature,e)).data}async isMessageSigned(e,s="0x"){let a;if(typeof e=="string"&&(a=async()=>{const n=this.calculateMessageHash(e);return await this.isMessageHashSigned(n,s)}),S(e)&&(a=async()=>{const n=this.calculateTypedMessageHash(e);return await this.isMessageHashSigned(n,s)}),a)return await a();throw new Error("Invalid message type")}async isMessageHashSigned(e,s="0x"){const a=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(const n of a)if(await n(e,s))return!0;return!1}async getEnvironmentInfo(){return(await this.communicator.send(r.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(r.requestAddressBook,void 0)).data}}j([M()],T.prototype,"requestAddressBook",null);class J{constructor(e={}){const{allowedDomains:s=null,debug:a=!1}=e;this.communicator=new H(s,a),this.eth=new O(this.communicator),this.txs=new A(this.communicator),this.safe=new T(this.communicator),this.wallet=new _(this.communicator)}}const Q=m.Operation,X=m.TokenType,Y=m.TransactionStatus,Z=m.TransferDirection;export{g as MessageFormatter,r as Methods,Q as Operation,c as RPC_CALLS,f as RestrictedMethods,X as TokenType,Y as TransactionStatus,Z as TransferDirection,J as default,v as getSDKVersion,S as isObjectEIP712TypedData};
@@ -1,4 +1,4 @@
1
- import{C as l,E as g,R as h,o as m,S as w,b as c,r as E,t as _}from"./W3MFrameProviderSingleton-Be2imJ8Z.js";import{au as R}from"./NetworkUtil-EoWQDMpU.js";import{i as b,b as y}from"./lit-element-B3y9oplH.js";import{n as d,o as O}from"./class-map-CxwNmq0D.js";import{c as v}from"./index-BCyVn8MQ.js";import{d as C,r as S,e as $}from"./index-vt25O9Am.js";function I(){try{return c.returnOpenHref(`${R.SECURE_SITE_SDK_ORIGIN}/loading`,"popupWindow","width=600,height=800,scrollbars=yes")}catch{throw new Error("Could not open social popup")}}async function L(){h.push("ConnectingFarcaster");const e=m.getAuthConnector();if(e){const o=l.getAccountData();if(!(o!=null&&o.farcasterUrl))try{const{url:t}=await e.provider.getFarcasterUri();l.setAccountProp("farcasterUrl",t,l.state.activeChain)}catch(t){h.goBack(),w.showError(t)}}}async function T(e){h.push("ConnectingSocial");const o=m.getAuthConnector();let t=null;try{const i=setTimeout(()=>{throw new Error("Social login timed out. Please try again.")},45e3);if(o&&e){if(c.isTelegram()||(t=I()),t)l.setAccountProp("socialWindow",E(t),l.state.activeChain);else if(!c.isTelegram())throw new Error("Could not create social popup");const{uri:n}=await o.provider.getSocialRedirectUri({provider:e});if(!n)throw t==null||t.close(),new Error("Could not fetch the social redirect uri");if(t&&(t.location.href=n),c.isTelegram()){_.setTelegramSocialProvider(e);const r=c.formatTelegramSocialLoginUrl(n);c.openHref(r,"_top")}clearTimeout(i)}}catch(i){t==null||t.close();const n=c.parseError(i);w.showError(n),g.sendEvent({type:"track",event:"SOCIAL_LOGIN_ERROR",properties:{provider:e,message:n}})}}async function G(e){l.setAccountProp("socialProvider",e,l.state.activeChain),g.sendEvent({type:"track",event:"SOCIAL_LOGIN_STARTED",properties:{provider:e}}),e==="farcaster"?await L():await T(e)}const U=C`
1
+ import{C as l,E as g,R as h,o as m,S as w,b as c,r as E,t as _}from"./W3MFrameProviderSingleton-Dew4UHCH.js";import{au as R}from"./NetworkUtil-EoWQDMpU.js";import{i as b,b as y}from"./lit-element-B3y9oplH.js";import{n as d,o as O}from"./class-map-CxwNmq0D.js";import{c as v}from"./index-7ncft_vv.js";import{d as C,r as S,e as $}from"./index-DW8xuXKL.js";function I(){try{return c.returnOpenHref(`${R.SECURE_SITE_SDK_ORIGIN}/loading`,"popupWindow","width=600,height=800,scrollbars=yes")}catch{throw new Error("Could not open social popup")}}async function L(){h.push("ConnectingFarcaster");const e=m.getAuthConnector();if(e){const o=l.getAccountData();if(!(o!=null&&o.farcasterUrl))try{const{url:t}=await e.provider.getFarcasterUri();l.setAccountProp("farcasterUrl",t,l.state.activeChain)}catch(t){h.goBack(),w.showError(t)}}}async function T(e){h.push("ConnectingSocial");const o=m.getAuthConnector();let t=null;try{const i=setTimeout(()=>{throw new Error("Social login timed out. Please try again.")},45e3);if(o&&e){if(c.isTelegram()||(t=I()),t)l.setAccountProp("socialWindow",E(t),l.state.activeChain);else if(!c.isTelegram())throw new Error("Could not create social popup");const{uri:n}=await o.provider.getSocialRedirectUri({provider:e});if(!n)throw t==null||t.close(),new Error("Could not fetch the social redirect uri");if(t&&(t.location.href=n),c.isTelegram()){_.setTelegramSocialProvider(e);const r=c.formatTelegramSocialLoginUrl(n);c.openHref(r,"_top")}clearTimeout(i)}}catch(i){t==null||t.close();const n=c.parseError(i);w.showError(n),g.sendEvent({type:"track",event:"SOCIAL_LOGIN_ERROR",properties:{provider:e,message:n}})}}async function G(e){l.setAccountProp("socialProvider",e,l.state.activeChain),g.sendEvent({type:"track",event:"SOCIAL_LOGIN_STARTED",properties:{provider:e}}),e==="farcaster"?await L():await T(e)}const U=C`
2
2
  :host {
3
3
  display: flex;
4
4
  justify-content: center;