@rhinestone/deposit-modal 0.8.1 → 0.9.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 (65) hide show
  1. package/README.md +193 -29
  2. package/dist/{chunk-2JPB3PLB.mjs → DepositModalReown-6KUAO5ZC.mjs} +56 -4
  3. package/dist/{chunk-Q3W53BKR.cjs → DepositModalReown-XC5RIU7Z.cjs} +62 -10
  4. package/dist/{caip-C_ZYFIGa.d.cts → caip-523Zrc3r.d.cts} +1 -3
  5. package/dist/{caip-C_ZYFIGa.d.ts → caip-523Zrc3r.d.ts} +1 -3
  6. package/dist/{chunk-D3Y7ZBED.cjs → chunk-22RV33LK.cjs} +2170 -1460
  7. package/dist/chunk-4WB2FHGC.mjs +865 -0
  8. package/dist/chunk-A223BLVC.mjs +801 -0
  9. package/dist/{chunk-HQWZCOMS.cjs → chunk-DIX7M3SP.cjs} +232 -601
  10. package/dist/{chunk-T43VUEJH.mjs → chunk-E4G5BOZP.mjs} +167 -536
  11. package/dist/chunk-H577RJN5.cjs +801 -0
  12. package/dist/{chunk-DABKCJVL.mjs → chunk-ILT2PITN.mjs} +60 -3
  13. package/dist/{chunk-7KHEIMWD.mjs → chunk-KKHLNFSA.mjs} +2436 -1726
  14. package/dist/chunk-LGVJWVSS.mjs +81 -0
  15. package/dist/chunk-NEXUCY4B.cjs +11 -0
  16. package/dist/chunk-NMIMRASD.cjs +1785 -0
  17. package/dist/chunk-OSI2CFGL.mjs +11 -0
  18. package/dist/chunk-PAGMU4RQ.cjs +865 -0
  19. package/dist/chunk-T7LGQFP3.cjs +81 -0
  20. package/dist/chunk-VN4BLZYC.cjs +2273 -0
  21. package/dist/chunk-VOGZAZB2.mjs +2273 -0
  22. package/dist/chunk-WYXBY2MQ.mjs +1785 -0
  23. package/dist/{chunk-4NN7UTWQ.cjs → chunk-YEBXUUH3.cjs} +63 -6
  24. package/dist/claim.cjs +10 -0
  25. package/dist/claim.d.cts +8 -0
  26. package/dist/claim.d.ts +8 -0
  27. package/dist/claim.mjs +10 -0
  28. package/dist/constants.cjs +3 -3
  29. package/dist/constants.d.cts +4 -2
  30. package/dist/constants.d.ts +4 -2
  31. package/dist/constants.mjs +5 -5
  32. package/dist/deposit.cjs +8 -6
  33. package/dist/deposit.d.cts +2 -2
  34. package/dist/deposit.d.ts +2 -2
  35. package/dist/deposit.mjs +7 -5
  36. package/dist/index.cjs +22 -12
  37. package/dist/index.d.cts +15 -2
  38. package/dist/index.d.ts +15 -2
  39. package/dist/index.mjs +21 -11
  40. package/dist/polymarket.cjs +5 -6
  41. package/dist/polymarket.mjs +2 -3
  42. package/dist/server.cjs +96 -0
  43. package/dist/server.d.cts +65 -0
  44. package/dist/server.d.ts +65 -0
  45. package/dist/server.mjs +96 -0
  46. package/dist/styles.css +263 -12
  47. package/dist/types-C0SGf-21.d.cts +606 -0
  48. package/dist/types-C0SGf-21.d.ts +606 -0
  49. package/dist/withdraw.cjs +6 -5
  50. package/dist/withdraw.d.cts +3 -6
  51. package/dist/withdraw.d.ts +3 -6
  52. package/dist/withdraw.mjs +5 -4
  53. package/package.json +53 -6
  54. package/dist/DepositModalReown-4BSHOQ5Y.mjs +0 -63
  55. package/dist/DepositModalReown-UND3DEJH.cjs +0 -63
  56. package/dist/WithdrawModalReown-FVXSSGY5.mjs +0 -46
  57. package/dist/WithdrawModalReown-TVZWJKQI.cjs +0 -46
  58. package/dist/chunk-7OKA6GNA.cjs +0 -4537
  59. package/dist/chunk-NASHLEVQ.mjs +0 -4537
  60. package/dist/chunk-O5OKA27M.mjs +0 -800
  61. package/dist/chunk-U7SVYWVD.cjs +0 -800
  62. package/dist/chunk-WK5AFRSP.mjs +0 -295
  63. package/dist/chunk-XRWQMIBY.cjs +0 -295
  64. package/dist/types--LQWg_4W.d.cts +0 -468
  65. package/dist/types--LQWg_4W.d.ts +0 -468
@@ -1,6 +1,6 @@
1
1
  import {
2
- SAFE_ABI
3
- } from "./chunk-WK5AFRSP.mjs";
2
+ cdnIconUrl
3
+ } from "./chunk-A223BLVC.mjs";
4
4
 
5
5
  // src/core/dapp-imports/polymarket/constants.ts
6
6
  var POLYMARKET_POLYGON_CHAIN_ID = 137;
@@ -9,7 +9,7 @@ var POLYMARKET_USDCE_ADDRESS = "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174";
9
9
  var POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS = "0x2957922Eb93258b93368531d39fAcCA3B4dC5854";
10
10
  var SAFE_MULTI_SEND_CALL_ONLY_ADDRESS = "0x40A2aCCbd92BCA938b02010E17A5b8929b49130D";
11
11
  var GAMMA_API_PUBLIC_PROFILE = "https://gamma-api.polymarket.com/public-profile";
12
- var POLYMARKET_ICON_URL = "data:image/svg+xml,%3Csvg width='512' height='512' viewBox='0 0 512 512' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='512' height='512' fill='%232E5CFF'/%3E%3Cpath d='M375.84 389.422C375.84 403.572 375.84 410.647 371.212 414.154C366.585 417.662 359.773 415.75 346.15 411.927L127.22 350.493C119.012 348.19 114.907 347.038 112.534 343.907C110.161 340.776 110.161 336.513 110.161 327.988V184.012C110.161 175.487 110.161 171.224 112.534 168.093C114.907 164.962 119.012 163.81 127.22 161.507L346.15 100.072C359.773 96.2495 366.585 94.338 371.212 97.8455C375.84 101.353 375.84 108.428 375.84 122.578V389.422ZM164.761 330.463L346.035 381.337V279.595L164.761 330.463ZM139.963 306.862L321.201 256L139.963 205.138V306.862ZM164.759 181.537L346.035 232.406V130.663L164.759 181.537Z' fill='white'/%3E%3C/svg%3E";
12
+ var POLYMARKET_ICON_URL = cdnIconUrl("dapps", "polymarket");
13
13
 
14
14
  // src/core/dapp-imports/polymarket/gamma-api.ts
15
15
  import { getAddress, isAddress, zeroAddress } from "viem";
@@ -53,6 +53,62 @@ import {
53
53
  toHex,
54
54
  zeroAddress as zeroAddress2
55
55
  } from "viem";
56
+
57
+ // src/core/dapp-imports/polymarket/safe-abi.ts
58
+ var SAFE_ABI = [
59
+ {
60
+ type: "function",
61
+ name: "isOwner",
62
+ stateMutability: "view",
63
+ inputs: [{ name: "owner", type: "address" }],
64
+ outputs: [{ name: "", type: "bool" }]
65
+ },
66
+ {
67
+ type: "function",
68
+ name: "nonce",
69
+ stateMutability: "view",
70
+ inputs: [],
71
+ outputs: [{ type: "uint256" }]
72
+ },
73
+ {
74
+ type: "function",
75
+ name: "execTransaction",
76
+ stateMutability: "payable",
77
+ inputs: [
78
+ { name: "to", type: "address" },
79
+ { name: "value", type: "uint256" },
80
+ { name: "data", type: "bytes" },
81
+ { name: "operation", type: "uint8" },
82
+ { name: "safeTxGas", type: "uint256" },
83
+ { name: "baseGas", type: "uint256" },
84
+ { name: "gasPrice", type: "uint256" },
85
+ { name: "gasToken", type: "address" },
86
+ { name: "refundReceiver", type: "address" },
87
+ { name: "signatures", type: "bytes" }
88
+ ],
89
+ outputs: [{ name: "success", type: "bool" }]
90
+ },
91
+ {
92
+ type: "event",
93
+ name: "ExecutionSuccess",
94
+ inputs: [
95
+ { name: "txHash", type: "bytes32", indexed: true },
96
+ { name: "payment", type: "uint256", indexed: false }
97
+ ],
98
+ anonymous: false
99
+ },
100
+ {
101
+ type: "event",
102
+ name: "ExecutionFailure",
103
+ inputs: [
104
+ { name: "txHash", type: "bytes32", indexed: true },
105
+ { name: "payment", type: "uint256", indexed: false }
106
+ ],
107
+ anonymous: false
108
+ }
109
+ ];
110
+
111
+ // src/core/dapp-imports/polymarket/safe.ts
56
112
  var COLLATERAL_OFFRAMP_ABI = parseAbi([
57
113
  "function unwrap(address _asset, address _to, uint256 _amount)"
58
114
  ]);
@@ -206,6 +262,7 @@ export {
206
262
  POLYMARKET_USDCE_ADDRESS,
207
263
  POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS,
208
264
  POLYMARKET_ICON_URL,
265
+ SAFE_ABI,
209
266
  fetchPolymarketProxyWallet,
210
267
  readPolymarketBalances,
211
268
  executePolymarketSafeTransfer