@dcl/shop 0.1.0-29233100198.commit-9f9c5c3 → 0.1.0-29233106796.commit-1837efd

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 (165) hide show
  1. package/assets/{AnimatedBackground-VqryAxgs.js → AnimatedBackground-C0rqDJfb.js} +1 -1
  2. package/assets/{Assets-g7OZXjgz.js → Assets-DFF19cjO.js} +1 -1
  3. package/assets/{Button-LpYH8yM9.js → Button-uGoMyMeg.js} +1 -1
  4. package/assets/{Cart-CshX-gZv.js → Cart-bVoFfuT2.js} +1 -1
  5. package/assets/{CircularProgress-BhZCy7vV.js → CircularProgress-Ca679YX-.js} +1 -1
  6. package/assets/{Collection-DCdasDON.js → Collection-Cbyv2bH1.js} +1 -1
  7. package/assets/{Creator-PRpgiDOB.js → Creator-CEshnkfr.js} +1 -1
  8. package/assets/{ExchangeController-BvseHIKh.js → ExchangeController-CFvT4C3L.js} +1 -1
  9. package/assets/{GetCredits-DJ2lpKn5.js → GetCredits-D48kUeN-.js} +2 -2
  10. package/assets/{HelpersUtil-CUh2GL4t.js → HelpersUtil-DSOtZH4j.js} +1 -1
  11. package/assets/{ImportListings-CD6B7TcH.js → ImportListings-DN6Tu-bh.js} +1 -1
  12. package/assets/{ItemDetail-vPIoej-L.js → ItemDetail-B1lNS7Di.js} +2 -2
  13. package/assets/{Market-BJ1k67P8.js → Market-KfYPcfQF.js} +1 -1
  14. package/assets/{MenuItem-Qxf8AUuZ.js → MenuItem-6nwFKjkW.js} +1 -1
  15. package/assets/{MyAssets-BO47KdOW.js → MyAssets-BXYso89u.js} +1 -1
  16. package/assets/{MyFavorites-DBizdb79.js → MyFavorites-6TD3GhQr.js} +1 -1
  17. package/assets/{MyPurchases-DAje-2R8.js → MyPurchases-DPAy76Q8.js} +1 -1
  18. package/assets/{NotFound-Rs_1-jiY.js → NotFound-CXoM3h2z.js} +1 -1
  19. package/assets/{RealCheckout-LhJxxl9O.js → RealCheckout-75GM0cgX.js} +1 -1
  20. package/assets/{ShopFooterInner-BJ8v08MR.js → ShopFooterInner-C274TFSL.js} +4 -4
  21. package/assets/{Success-CJbynlHT.js → Success-FCI3WLUn.js} +1 -1
  22. package/assets/{SvgIcon-EtKdg3eJ.js → SvgIcon-DuD4CLX1.js} +1 -1
  23. package/assets/{SwapController-BDXouf4n.js → SwapController-Bt0cz6Wd.js} +1 -1
  24. package/assets/{TradeService-BLt0rdBa.js → TradeService-DYLc9PvE.js} +1 -1
  25. package/assets/{W3MFrameProviderSingleton-HIFbrhpV.js → W3MFrameProviderSingleton-BvhNgFgm.js} +3 -3
  26. package/assets/{WebCryptoP256-B2q8xgj6.js → WebCryptoP256-CmPjTQJj.js} +1 -1
  27. package/assets/{basic-IKW6bIlX.js → basic-B0YfIqrx.js} +1 -1
  28. package/assets/{biconomy-Ty55lU_L.js → biconomy-ge27Lvzm.js} +1 -1
  29. package/assets/{buy-DqcuUA2b.js → buy-CtGOLfNq.js} +1 -1
  30. package/assets/{buy-gasless-BgOAI9mQ.js → buy-gasless-RvPPxhUM.js} +1 -1
  31. package/assets/{ccip-Bzl2RC_2.js → ccip-Dj85jtj6.js} +1 -1
  32. package/assets/{ccip-oyz3gRIg.js → ccip-I5jvI7YU.js} +1 -1
  33. package/assets/{collection-DYIg4xDl.js → collection-DttFUtCF.js} +1 -1
  34. package/assets/{controller-CSzZOCWl.js → controller-KIszeBL2.js} +2 -2
  35. package/assets/{core-D4tRVvbJ.js → core-ov94tG9b.js} +4 -4
  36. package/assets/{custom-CMxQdfTG.js → custom-5PrshmtG.js} +1 -1
  37. package/assets/{data-capture-DWnLaWtr.js → data-capture-lUD162xM.js} +1 -1
  38. package/assets/decimals-CF3AbQzO.js +1 -0
  39. package/assets/{decimals-DNXC6oox.js → decimals-DpraMyBi.js} +1 -1
  40. package/assets/{detectExtension-DWJXWfxy.js → detectExtension-aE5lnWvs.js} +1 -1
  41. package/assets/{email-DZMgm3If.js → email-CthjyMNP.js} +1 -1
  42. package/assets/{embedded-wallet-Cgzi8IdU.js → embedded-wallet-BJY3GXC2.js} +1 -1
  43. package/assets/{engine-B6Duhvvo.js → engine-j-oLBjOz.js} +1 -1
  44. package/assets/{estimate-l1-fee-R9E_QDGU.js → estimate-l1-fee-DjWZekSm.js} +1 -1
  45. package/assets/{eth_estimateGas-BZ8T7a4y.js → eth_estimateGas-DN3qr8TB.js} +1 -1
  46. package/assets/{eth_getStorageAt-Ig-K4RA7.js → eth_getStorageAt-DQzkgcMe.js} +1 -1
  47. package/assets/{eth_getTransactionCount-DRS72uXD.js → eth_getTransactionCount-DM4ijSWf.js} +1 -1
  48. package/assets/{extractIPFS-Byp-A00R.js → extractIPFS-iOFrfwzj.js} +1 -1
  49. package/assets/{features-ofC2eoYB.js → features-B2Sp0NPq.js} +1 -1
  50. package/assets/{fetchTokenMetadata-DeF29NZ6.js → fetchTokenMetadata-BuZDzhII.js} +2 -2
  51. package/assets/{generateUtilityClasses-SnTQo-Nj.js → generateUtilityClasses-EHQxwZec.js} +1 -1
  52. package/assets/{get-ecosystem-wallet-info-DAKOEt5a.js → get-ecosystem-wallet-info-f_luxiNk.js} +1 -1
  53. package/assets/{getBalance-CLXCoBiK.js → getBalance-DR8safQ4.js} +1 -1
  54. package/assets/{getInstalledModules-BC66L-Ye.js → getInstalledModules-DYdUHIJC.js} +1 -1
  55. package/assets/{getNFT-BjLU8fqf.js → getNFT-BRjpGSIo.js} +2 -2
  56. package/assets/{getNFT-CsqtQ6nK.js → getNFT-DRWdoeee.js} +1 -1
  57. package/assets/{hashTypedData-pPR44XM6.js → hashTypedData-CfSRA3ti.js} +1 -1
  58. package/assets/{hashTypedData-BRPxVwS8.js → hashTypedData-DLv4vmSt.js} +1 -1
  59. package/assets/{import-CC0ON0XX.js → import-B7IrqJHM.js} +1 -1
  60. package/assets/{in-app-wallet-calls-Dk0E6Jeu.js → in-app-wallet-calls-DArzhQxl.js} +1 -1
  61. package/assets/{index-CrKKCGLD.js → index-7RiTEasz.js} +1 -1
  62. package/assets/{index-DlIS_To5.js → index-B-B0JHcE.js} +1 -1
  63. package/assets/{index-CnyWpv3Y.js → index-B3X7tTfx.js} +1 -1
  64. package/assets/{index-Di5L8q-g.js → index-BILR6PXd.js} +1 -1
  65. package/assets/{index-kvHzOzXA.js → index-BJWi_Mde.js} +1 -1
  66. package/assets/{index-CcckN08p.js → index-BJpc1lfK.js} +1 -1
  67. package/assets/{index-Cn43f8qU.js → index-BN--SoPG.js} +1 -1
  68. package/assets/{index-CkZlIWCs.js → index-BP-fVzDu.js} +1 -1
  69. package/assets/{index-B20sGI9Q.js → index-BVKDtuC0.js} +1 -1
  70. package/assets/{index-BoRKL8IY.js → index-Bn5lQZ1w.js} +1 -1
  71. package/assets/{index-0aLZpfm3.js → index-Bq01IzMZ.js} +1 -1
  72. package/assets/{index-DhpMgCba.js → index-Br04ERn8.js} +1 -1
  73. package/assets/{index-C0Bcze4R.js → index-BrTElmXN.js} +1 -1
  74. package/assets/{index-CHSw5od-.js → index-BsihGVe1.js} +1 -1
  75. package/assets/{index-B_LJefT3.js → index-BuTY5O7i.js} +1 -1
  76. package/assets/{index-Cx4QKwWD.js → index-C0naoCgt.js} +1 -1
  77. package/assets/{index-2Y1nJrl2.js → index-C3Is1Apr.js} +1 -1
  78. package/assets/{index-AZYb3B3P.js → index-C6V3kfM1.js} +1 -1
  79. package/assets/{index-Ba3VtKUr.js → index-CD_ojwcp.js} +1 -1
  80. package/assets/{index-Bi26cqVW.js → index-CEMLnpSr.js} +1 -1
  81. package/assets/{index-BwBijlsT.js → index-CN5d5qP-.js} +3 -3
  82. package/assets/{index-1ZZIhF9w.js → index-COxGjPhG.js} +1 -1
  83. package/assets/{index-BykYN_RD.js → index-CRCB75oU.js} +1 -1
  84. package/assets/{index-DD069MRb.js → index-CXqoUgKu.js} +1 -1
  85. package/assets/{index-88dwLy7W.js → index-Catw56Zo.js} +1 -1
  86. package/assets/{index-C6_aVS8i.js → index-Cb2_Tzeq.js} +1 -1
  87. package/assets/{index-BFuVb7gG.js → index-Cg6lHlPj.js} +1 -1
  88. package/assets/{index-szhKhcKc.js → index-Co5EcXpK.js} +1 -1
  89. package/assets/{index-Jj2_I2j_.js → index-CrfX_nUp.js} +1 -1
  90. package/assets/{index-Bt1B83zt.js → index-CyLTth0X.js} +3 -3
  91. package/assets/{index-DyV1ucPn.js → index-D-dOTleV.js} +1 -1
  92. package/assets/{index-9Pgz4JXP.js → index-D2X-VE01.js} +1 -1
  93. package/assets/{index-CdN3EflT.js → index-D4hUhx_k.js} +2 -2
  94. package/assets/{index-DYhDSrZM.js → index-D5dW41Yp.js} +2 -2
  95. package/assets/{index-Deuimgf7.js → index-D8yull60.js} +5 -5
  96. package/assets/{index-gZ2lRfUX.js → index-D9E3HDnS.js} +1 -1
  97. package/assets/{index-B2yx5xCC.js → index-D9dKa_F_.js} +1 -1
  98. package/assets/{index-D3sJlz2N.js → index-DMKKgcdZ.js} +1 -1
  99. package/assets/{index-CNQZT46N.js → index-DRIZge00.js} +1 -1
  100. package/assets/{index-XBhnsctq.js → index-DbCLSKdx.js} +1 -1
  101. package/assets/{index-NApFtwcC.js → index-DjLIZOTh.js} +1 -1
  102. package/assets/{index-6Uhwah2k.js → index-Dl-2j4dO.js} +1 -1
  103. package/assets/{index-DeJX3qNj.js → index-DlKR3Fym.js} +1 -1
  104. package/assets/{index-DCrqkiFN.css → index-DliU9pat.css} +1 -1
  105. package/assets/{index-62O6xhDC.js → index-Dr-5ALhc.js} +1 -1
  106. package/assets/{index-uWOnOlAp.js → index-DrNzHQM5.js} +1 -1
  107. package/assets/{index-BGaCAtTi.js → index-DtCgIhCZ.js} +1 -1
  108. package/assets/{index-mHmTCmTy.js → index-DxiDSDBc.js} +1 -1
  109. package/assets/{index-4ABFZPBZ.js → index-FgCfQjOt.js} +1 -1
  110. package/assets/{index-CvTU3NOo.js → index-KO5jocfW.js} +1 -1
  111. package/assets/{index-_WKMctLH.js → index-QP8xnR1y.js} +1 -1
  112. package/assets/{index-ki-gzR7J.js → index-bhBCwNAI.js} +1 -1
  113. package/assets/{index-Bv1sYC5c.js → index-hm6YyqJl.js} +2 -2
  114. package/assets/{index-CPHF0xxv.js → index-mQkXd2DT.js} +1 -1
  115. package/assets/{index.es-BJoEcKnq.js → index.es-BiEhEc8p.js} +1 -1
  116. package/assets/{index.es-BN4d7x0a.js → index.es-CQ6rFGBE.js} +4 -4
  117. package/assets/{index.es-3d0bXRrJ.js → index.es-DyfpWv1f.js} +1 -1
  118. package/assets/{localBatchGatewayRequest-BETGcE2D.js → localBatchGatewayRequest-BDrEFVai.js} +1 -1
  119. package/assets/{mana-rate-BdKg_vcp.js → mana-rate-DrmNLaz-.js} +1 -1
  120. package/assets/network-CpS8nVMF.js +1 -0
  121. package/assets/{networks-C7Nat7MN.js → networks-bRyDO1Qp.js} +1 -1
  122. package/assets/{onramp-D7vLwa3W.js → onramp-BEQTNzss.js} +1 -1
  123. package/assets/{openzeppelin-DxYvc61B.js → openzeppelin-D_XQzmtX.js} +1 -1
  124. package/assets/{ownerOf-kRubhHTr.js → ownerOf-OA2RTQQO.js} +1 -1
  125. package/assets/{parseNft-BYxFUM8C.js → parseNft-CXoj0hvM.js} +2 -2
  126. package/assets/{parseSignature-DxXN_vOt.js → parseSignature-BxaAhKeg.js} +1 -1
  127. package/assets/{parseSignature-D_XEghQR.js → parseSignature-CKZOR4TK.js} +3 -3
  128. package/assets/{pay-with-exchange-B-ceIDQZ.js → pay-with-exchange-aKfCF8UA.js} +1 -1
  129. package/assets/{qr-overlay-C_wAjFS4.js → qr-overlay-D2uIJnFP.js} +1 -1
  130. package/assets/{receive-BK6bLmC1.js → receive-DA3o78qy.js} +1 -1
  131. package/assets/{resolveImplementation-BVOZBKVX.js → resolveImplementation-fVGP_Xas.js} +1 -1
  132. package/assets/{rpc-Cm_aRwEX.js → rpc-DBEEzhj8.js} +1 -1
  133. package/assets/{secp256k1-DqZVUEBe.js → secp256k1-B8n8HBER.js} +1 -1
  134. package/assets/{secp256k1-Dac0vT3P.js → secp256k1-BbaO7vsd.js} +1 -1
  135. package/assets/{secp256k1-VB9D4GQR.js → secp256k1-hn5_kA6G.js} +1 -1
  136. package/assets/{send-DsKc1FdL.js → send-DU8MQ1y8.js} +1 -1
  137. package/assets/{send-batch-transaction-CGZlBuhc.js → send-batch-transaction-DY_pgHDI.js} +1 -1
  138. package/assets/{send-eip712-transaction-DI232Ytt.js → send-eip712-transaction-BkgoythS.js} +2 -2
  139. package/assets/{send-gasless-transaction-BxC495ry.js → send-gasless-transaction-BVYH1gYX.js} +2 -2
  140. package/assets/{sendRawTransaction-D4mqtNAM.js → sendRawTransaction-DbhgEUz6.js} +3 -3
  141. package/assets/{serializeTransaction-sMIdRF96.js → serializeTransaction-DZrTl33k.js} +1 -1
  142. package/assets/{session-proposal-D19wWSmA.js → session-proposal-Cl2sjjeM.js} +1 -1
  143. package/assets/{session-request-CDg-byYv.js → session-request-dut4_Z-r.js} +2 -2
  144. package/assets/{sha256-BwGRJAPw.js → sha256-BCXR6ojR.js} +1 -1
  145. package/assets/{signing-uUQrxOhZ.js → signing-DstZY6Ke.js} +4 -4
  146. package/assets/{socials-BfEnC7Lc.js → socials-DFT4pr6K.js} +1 -1
  147. package/assets/{swaps-hYE6_Fal.js → swaps-B6e9-nOS.js} +1 -1
  148. package/assets/{thirdweb-CICE-4pR.js → thirdweb-13r7kkOp.js} +3 -3
  149. package/assets/{totalSupply-C71NiIy0.js → totalSupply-CEHgHE1R.js} +1 -1
  150. package/assets/{transactionReceipt-DJ_losKQ.js → transactionReceipt-CJqXaM7n.js} +1 -1
  151. package/assets/{transactions-B8OL599t.js → transactions-Dg8-HdPI.js} +1 -1
  152. package/assets/{useInfiniteGrid-DxX1FK6f.js → useInfiniteGrid-_j3sTNFy.js} +1 -1
  153. package/assets/{verifyHash-lvsgF229.js → verifyHash-DDifZCfe.js} +1 -1
  154. package/assets/{w3m-modal-CRy0SArt.js → w3m-modal-Bz6lLxMo.js} +1 -1
  155. package/assets/{w3m-modal-CcBbg9px.js → w3m-modal-wr6gqHHl.js} +1 -1
  156. package/assets/{wait-for-tx-receipt-C3okyaa9.js → wait-for-tx-receipt-TO5nTGOg.js} +1 -1
  157. package/assets/{wallet-kind-DdKJYQb3.js → wallet-kind-BSzJpUob.js} +1 -1
  158. package/assets/{wallets-CR_2vjb8.js → wallets-CrZ_KakB.js} +6 -6
  159. package/assets/{web-connector-AW0wCh5m.js → web-connector-C-PKMENi.js} +3 -3
  160. package/assets/{writeContract-DtLUQYrB.js → writeContract-dUugnk5I.js} +1 -1
  161. package/assets/{zoraTestnet-r9j17jLI.js → zoraTestnet-z7D1VXMG.js} +1 -1
  162. package/index.html +8 -8
  163. package/package.json +2 -2
  164. package/assets/decimals-DqPeEdAY.js +0 -1
  165. package/assets/network-CIOlKafM.js +0 -1
@@ -1,4 +1,4 @@
1
- import{a as d,i as p,b as m}from"./lit-element-B3y9oplH.js";import{n as h}from"./class-map-CxwNmq0D.js";import{r as f,v as r}from"./index-Bt1B83zt.js";import{c as x}from"./index-2Y1nJrl2.js";const g=d`
1
+ import{a as d,i as p,b as m}from"./lit-element-B3y9oplH.js";import{n as h}from"./class-map-CxwNmq0D.js";import{r as f,v as r}from"./index-CyLTth0X.js";import{c as x}from"./index-C3Is1Apr.js";const g=d`
2
2
  :host {
3
3
  display: flex;
4
4
  }
@@ -1 +1 @@
1
- import{r as k}from"./index-BV8s6ez1.js";import{az as w}from"./sendRawTransaction-D4mqtNAM.js";import{c as I,e as q}from"./hashTypedData-BRPxVwS8.js";import"./NetworkUtil-DDES604E.js";import"./ethers-JeCAM1sd.js";import"./react-Vu6nbGi5.js";import"./index-Deuimgf7.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 W{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 $=m.Operation,z=m.TokenType,J=m.TransactionStatus,Q=m.TransferDirection;export{g as MessageFormatter,r as Methods,$ as Operation,c as RPC_CALLS,f as RestrictedMethods,z as TokenType,J as TransactionStatus,Q as TransferDirection,W as default,v as getSDKVersion,S as isObjectEIP712TypedData};
1
+ import{r as k}from"./index-BV8s6ez1.js";import{az as w}from"./sendRawTransaction-DbhgEUz6.js";import{c as I,e as q}from"./hashTypedData-DLv4vmSt.js";import"./NetworkUtil-DDES604E.js";import"./ethers-JeCAM1sd.js";import"./react-Vu6nbGi5.js";import"./index-D8yull60.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 W{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 $=m.Operation,z=m.TokenType,J=m.TransactionStatus,Q=m.TransferDirection;export{g as MessageFormatter,r as Methods,$ as Operation,c as RPC_CALLS,f as RestrictedMethods,z as TokenType,J as TransactionStatus,Q as TransferDirection,W as default,v as getSDKVersion,S as isObjectEIP712TypedData};
@@ -1,4 +1,4 @@
1
- import{i as f,b as l,a as ee}from"./lit-element-B3y9oplH.js";import{n as c,o as w,r as u,a as Ii}from"./class-map-CxwNmq0D.js";import{d as v,r as _,e as W}from"./index-Bt1B83zt.js";import{c as p,U as F}from"./index-2Y1nJrl2.js";import"./index-szhKhcKc.js";import"./index-CkZlIWCs.js";import"./index-uWOnOlAp.js";import{O as m,C as d,L as Ee,q as E,b as y,M as P,E as C,t as me,o as b,R as h,d as D,S as A,k as x,l as ze,W as Fe,ak as Xt,aj as he,a3 as J,a1 as qi,z as I,am as tt,A as _i,F as Ki,D as Gi,y as Xi,T as ft,V as Yt,X as Qt,a9 as Yi,ao as Qi,Z as Bt,ap as Ji}from"./W3MFrameProviderSingleton-HIFbrhpV.js";import"./index-DlIS_To5.js";import{W as Ls,a as js}from"./index-DeJX3qNj.js";import"./index-88dwLy7W.js";import"./index-CPHF0xxv.js";import"./index-Ba3VtKUr.js";import{au as S}from"./NetworkUtil-DDES604E.js";import{H as Jt}from"./HelpersUtil-CUh2GL4t.js";import{n as Zi}from"./index-CNQZT46N.js";import{E as Q}from"./ExchangeController-BvseHIKh.js";import"./index-4ABFZPBZ.js";import"./index-AZYb3B3P.js";import"./index-BFuVb7gG.js";import{M as mt}from"./MathUtil-BGCe3rZ3.js";import"./index-CcckN08p.js";import{e as Zt,n as ei}from"./ref-BsAZ42-h.js";import"./index-Jj2_I2j_.js";import"./index-9Pgz4JXP.js";import"./index-Cx4QKwWD.js";import"./index-DhpMgCba.js";import{O as bt}from"./index-gZ2lRfUX.js";import{e as en}from"./index-CvTU3NOo.js";import"./index-0aLZpfm3.js";import"./index-B2yx5xCC.js";import{N as tn}from"./NavigationUtil-DmfK5sOV.js";import"./index-BykYN_RD.js";import"./index-Deuimgf7.js";import"./react-Vu6nbGi5.js";import"./ethers-JeCAM1sd.js";import"./index-DYhDSrZM.js";import"./index-CHSw5od-.js";import"./index-BcyJUD4U.js";import"./index-nibyPLVP.js";import"./index-6Uhwah2k.js";import"./index.es-BJoEcKnq.js";import"./browser-ponyfill-rND5WOqr.js";import"./ConstantsUtil-CiDezLbv.js";import"./async-directive-BRxn_Py3.js";import"./browser-DHYOtFa8.js";const nn=v`
1
+ import{i as f,b as l,a as ee}from"./lit-element-B3y9oplH.js";import{n as c,o as w,r as u,a as Ii}from"./class-map-CxwNmq0D.js";import{d as v,r as _,e as W}from"./index-CyLTth0X.js";import{c as p,U as F}from"./index-C3Is1Apr.js";import"./index-Co5EcXpK.js";import"./index-BP-fVzDu.js";import"./index-DrNzHQM5.js";import{O as m,C as d,L as Ee,q as E,b as y,M as P,E as C,t as me,o as b,R as h,d as D,S as A,k as x,l as ze,W as Fe,ak as Xt,aj as he,a3 as J,a1 as qi,z as I,am as tt,A as _i,F as Ki,D as Gi,y as Xi,T as ft,V as Yt,X as Qt,a9 as Yi,ao as Qi,Z as Bt,ap as Ji}from"./W3MFrameProviderSingleton-BvhNgFgm.js";import"./index-B-B0JHcE.js";import{W as Ls,a as js}from"./index-DlKR3Fym.js";import"./index-Catw56Zo.js";import"./index-mQkXd2DT.js";import"./index-CD_ojwcp.js";import{au as S}from"./NetworkUtil-DDES604E.js";import{H as Jt}from"./HelpersUtil-DSOtZH4j.js";import{n as Zi}from"./index-DRIZge00.js";import{E as Q}from"./ExchangeController-CFvT4C3L.js";import"./index-FgCfQjOt.js";import"./index-C6V3kfM1.js";import"./index-Cg6lHlPj.js";import{M as mt}from"./MathUtil-BGCe3rZ3.js";import"./index-BJpc1lfK.js";import{e as Zt,n as ei}from"./ref-BsAZ42-h.js";import"./index-CrfX_nUp.js";import"./index-D2X-VE01.js";import"./index-C0naoCgt.js";import"./index-Br04ERn8.js";import{O as bt}from"./index-D9E3HDnS.js";import{e as en}from"./index-KO5jocfW.js";import"./index-Bq01IzMZ.js";import"./index-D9dKa_F_.js";import{N as tn}from"./NavigationUtil-DmfK5sOV.js";import"./index-CRCB75oU.js";import"./index-D8yull60.js";import"./react-Vu6nbGi5.js";import"./ethers-JeCAM1sd.js";import"./index-D5dW41Yp.js";import"./index-BsihGVe1.js";import"./index-BcyJUD4U.js";import"./index-nibyPLVP.js";import"./index-Dl-2j4dO.js";import"./index.es-BiEhEc8p.js";import"./browser-ponyfill-rND5WOqr.js";import"./ConstantsUtil-CiDezLbv.js";import"./async-directive-BRxn_Py3.js";import"./browser-DHYOtFa8.js";const nn=v`
2
2
  :host {
3
3
  display: block;
4
4
  }
@@ -1,4 +1,4 @@
1
- import{i as b,b as l}from"./lit-element-B3y9oplH.js";import{n as s}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-2Y1nJrl2.js";import{d as m,r as f,e as v}from"./index-Bt1B83zt.js";const h=m`
1
+ import{i as b,b as l}from"./lit-element-B3y9oplH.js";import{n as s}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-C3Is1Apr.js";import{d as m,r as f,e as v}from"./index-CyLTth0X.js";const h=m`
2
2
  button {
3
3
  border: none;
4
4
  background: transparent;
@@ -1,4 +1,4 @@
1
- import{a as m,i as c,b as d}from"./lit-element-B3y9oplH.js";import{n as u,o as f}from"./class-map-CxwNmq0D.js";import{c as b}from"./index-2Y1nJrl2.js";import{r as h}from"./index-Bt1B83zt.js";import"./index-Jj2_I2j_.js";const v=m`
1
+ import{a as m,i as c,b as d}from"./lit-element-B3y9oplH.js";import{n as u,o as f}from"./class-map-CxwNmq0D.js";import{c as b}from"./index-C3Is1Apr.js";import{r as h}from"./index-CyLTth0X.js";import"./index-CrfX_nUp.js";const v=m`
2
2
  :host {
3
3
  position: relative;
4
4
  display: inline-block;