@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.
- package/README.md +193 -29
- package/dist/{chunk-2JPB3PLB.mjs → DepositModalReown-6KUAO5ZC.mjs} +56 -4
- package/dist/{chunk-Q3W53BKR.cjs → DepositModalReown-XC5RIU7Z.cjs} +62 -10
- package/dist/{caip-C_ZYFIGa.d.cts → caip-523Zrc3r.d.cts} +1 -3
- package/dist/{caip-C_ZYFIGa.d.ts → caip-523Zrc3r.d.ts} +1 -3
- package/dist/{chunk-D3Y7ZBED.cjs → chunk-22RV33LK.cjs} +2170 -1460
- package/dist/chunk-4WB2FHGC.mjs +865 -0
- package/dist/chunk-A223BLVC.mjs +801 -0
- package/dist/{chunk-HQWZCOMS.cjs → chunk-DIX7M3SP.cjs} +232 -601
- package/dist/{chunk-T43VUEJH.mjs → chunk-E4G5BOZP.mjs} +167 -536
- package/dist/chunk-H577RJN5.cjs +801 -0
- package/dist/{chunk-DABKCJVL.mjs → chunk-ILT2PITN.mjs} +60 -3
- package/dist/{chunk-7KHEIMWD.mjs → chunk-KKHLNFSA.mjs} +2436 -1726
- package/dist/chunk-LGVJWVSS.mjs +81 -0
- package/dist/chunk-NEXUCY4B.cjs +11 -0
- package/dist/chunk-NMIMRASD.cjs +1785 -0
- package/dist/chunk-OSI2CFGL.mjs +11 -0
- package/dist/chunk-PAGMU4RQ.cjs +865 -0
- package/dist/chunk-T7LGQFP3.cjs +81 -0
- package/dist/chunk-VN4BLZYC.cjs +2273 -0
- package/dist/chunk-VOGZAZB2.mjs +2273 -0
- package/dist/chunk-WYXBY2MQ.mjs +1785 -0
- package/dist/{chunk-4NN7UTWQ.cjs → chunk-YEBXUUH3.cjs} +63 -6
- package/dist/claim.cjs +10 -0
- package/dist/claim.d.cts +8 -0
- package/dist/claim.d.ts +8 -0
- package/dist/claim.mjs +10 -0
- package/dist/constants.cjs +3 -3
- package/dist/constants.d.cts +4 -2
- package/dist/constants.d.ts +4 -2
- package/dist/constants.mjs +5 -5
- package/dist/deposit.cjs +8 -6
- package/dist/deposit.d.cts +2 -2
- package/dist/deposit.d.ts +2 -2
- package/dist/deposit.mjs +7 -5
- package/dist/index.cjs +22 -12
- package/dist/index.d.cts +15 -2
- package/dist/index.d.ts +15 -2
- package/dist/index.mjs +21 -11
- package/dist/polymarket.cjs +5 -6
- package/dist/polymarket.mjs +2 -3
- package/dist/server.cjs +96 -0
- package/dist/server.d.cts +65 -0
- package/dist/server.d.ts +65 -0
- package/dist/server.mjs +96 -0
- package/dist/styles.css +263 -12
- package/dist/types-C0SGf-21.d.cts +606 -0
- package/dist/types-C0SGf-21.d.ts +606 -0
- package/dist/withdraw.cjs +6 -5
- package/dist/withdraw.d.cts +3 -6
- package/dist/withdraw.d.ts +3 -6
- package/dist/withdraw.mjs +5 -4
- package/package.json +53 -6
- package/dist/DepositModalReown-4BSHOQ5Y.mjs +0 -63
- package/dist/DepositModalReown-UND3DEJH.cjs +0 -63
- package/dist/WithdrawModalReown-FVXSSGY5.mjs +0 -46
- package/dist/WithdrawModalReown-TVZWJKQI.cjs +0 -46
- package/dist/chunk-7OKA6GNA.cjs +0 -4537
- package/dist/chunk-NASHLEVQ.mjs +0 -4537
- package/dist/chunk-O5OKA27M.mjs +0 -800
- package/dist/chunk-U7SVYWVD.cjs +0 -800
- package/dist/chunk-WK5AFRSP.mjs +0 -295
- package/dist/chunk-XRWQMIBY.cjs +0 -295
- package/dist/types--LQWg_4W.d.cts +0 -468
- package/dist/types--LQWg_4W.d.ts +0 -468
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
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 = "
|
|
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
|