@rhinestone/deposit-modal 0.2.4 → 0.2.5-alpha.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/dist/{DepositModalReown-CY5MSQGK.mjs → DepositModalReown-GIODYNOK.mjs} +4 -2
- package/dist/{DepositModalReown-2UMPITRN.cjs → DepositModalReown-SVVA3OZ6.cjs} +5 -3
- package/dist/{WithdrawModalReown-YSRO5ZTA.mjs → WithdrawModalReown-HTEB4XGU.mjs} +3 -2
- package/dist/{WithdrawModalReown-Z5BUZQ4Z.cjs → WithdrawModalReown-VNTKGALT.cjs} +4 -3
- package/dist/{chunk-QUOP5C6V.cjs → chunk-4S262VLP.cjs} +54 -338
- package/dist/{chunk-ARGMXV6E.cjs → chunk-AHQY2O3U.cjs} +507 -235
- package/dist/{chunk-WNFGZS56.mjs → chunk-DUGDAMAF.mjs} +134 -132
- package/dist/chunk-J2SWZSXL.mjs +295 -0
- package/dist/{chunk-NFXJEOE6.cjs → chunk-KE6CJVOV.cjs} +88 -86
- package/dist/chunk-LHOHM67Z.mjs +234 -0
- package/dist/{chunk-HFQV7EHS.mjs → chunk-RQ2VCKLS.mjs} +451 -179
- package/dist/{chunk-KJEHVIPZ.mjs → chunk-WA4RA4HB.mjs} +14 -298
- package/dist/chunk-YKGL66EF.cjs +295 -0
- package/dist/chunk-ZHLQMSQM.cjs +234 -0
- package/dist/deposit.cjs +5 -3
- package/dist/deposit.d.cts +3 -3
- package/dist/deposit.d.ts +3 -3
- package/dist/deposit.mjs +4 -2
- package/dist/index.cjs +6 -4
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +5 -3
- package/dist/reown.cjs +6 -4
- package/dist/reown.d.cts +2 -2
- package/dist/reown.d.ts +2 -2
- package/dist/reown.mjs +5 -3
- package/dist/safe-CB7TvRCc.d.cts +62 -0
- package/dist/safe-CB7TvRCc.d.ts +62 -0
- package/dist/safe.cjs +22 -1
- package/dist/safe.d.cts +11 -59
- package/dist/safe.d.ts +11 -59
- package/dist/safe.mjs +22 -0
- package/dist/{types-DGQzvl6v.d.ts → types-CeFbJ-MW.d.ts} +8 -1
- package/dist/{types-DJ1fzNC7.d.cts → types-D0NawmZ8.d.cts} +8 -1
- package/dist/withdraw.cjs +4 -3
- package/dist/withdraw.d.cts +3 -3
- package/dist/withdraw.d.ts +3 -3
- package/dist/withdraw.mjs +3 -2
- package/package.json +1 -1
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
|
+
|
|
3
|
+
var _chunkYKGL66EFcjs = require('./chunk-YKGL66EF.cjs');
|
|
4
|
+
|
|
5
|
+
// src/core/polymarket-safe.ts
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
var _viem = require('viem');
|
|
22
|
+
var POLYMARKET_POLYGON_CHAIN_ID = 137;
|
|
23
|
+
var POLYMARKET_SAFE_FACTORY_ADDRESS = "0xaacFeEa03eb1561C4e67d661e40682Bd20E3541b";
|
|
24
|
+
var POLYMARKET_SAFE_INIT_CODE_HASH = "0x2bce2127ff07fb632d16c8347c4ebf501f4841168bed00d9e6ef715ddb6fcecf";
|
|
25
|
+
var POLYMARKET_USDCE_ADDRESS = "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174";
|
|
26
|
+
var POLYMARKET_PUSD_ADDRESS = "0xC011a7E12a19f7B1f670d46F03B03f3342E82DFB";
|
|
27
|
+
var POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS = "0x2957922Eb93258b93368531d39fAcCA3B4dC5854";
|
|
28
|
+
var SAFE_MULTI_SEND_CALL_ONLY_ADDRESS = "0x40A2aCCbd92BCA938b02010E17A5b8929b49130D";
|
|
29
|
+
var COLLATERAL_OFFRAMP_ABI = _viem.parseAbi.call(void 0, [
|
|
30
|
+
"function unwrap(address _asset, address _to, uint256 _amount)"
|
|
31
|
+
]);
|
|
32
|
+
var MULTI_SEND_ABI = _viem.parseAbi.call(void 0, ["function multiSend(bytes transactions)"]);
|
|
33
|
+
function derivePolymarketSafeAddress(owner) {
|
|
34
|
+
const checksummedOwner = _viem.getAddress.call(void 0, owner);
|
|
35
|
+
const salt = _viem.keccak256.call(void 0,
|
|
36
|
+
_viem.encodeAbiParameters.call(void 0, [{ type: "address" }], [checksummedOwner])
|
|
37
|
+
);
|
|
38
|
+
return _viem.getCreate2Address.call(void 0, {
|
|
39
|
+
from: POLYMARKET_SAFE_FACTORY_ADDRESS,
|
|
40
|
+
salt,
|
|
41
|
+
bytecodeHash: POLYMARKET_SAFE_INIT_CODE_HASH
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function isPolymarketAsset(asset) {
|
|
45
|
+
return asset.source === "polymarket";
|
|
46
|
+
}
|
|
47
|
+
async function fetchPolymarketBalances(params) {
|
|
48
|
+
const safeAddress = derivePolymarketSafeAddress(params.owner);
|
|
49
|
+
const balances = await Promise.all([
|
|
50
|
+
readTokenBalance(params.publicClient, POLYMARKET_USDCE_ADDRESS, safeAddress),
|
|
51
|
+
readTokenBalance(params.publicClient, POLYMARKET_PUSD_ADDRESS, safeAddress)
|
|
52
|
+
]);
|
|
53
|
+
const [usdceBalance, pusdBalance] = balances;
|
|
54
|
+
const assets = [];
|
|
55
|
+
if (usdceBalance > 0n) {
|
|
56
|
+
assets.push(
|
|
57
|
+
buildPolymarketAsset({
|
|
58
|
+
kind: "usdce",
|
|
59
|
+
safeAddress,
|
|
60
|
+
balance: usdceBalance
|
|
61
|
+
})
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
if (pusdBalance > 0n) {
|
|
65
|
+
assets.push(
|
|
66
|
+
buildPolymarketAsset({
|
|
67
|
+
kind: "pusd",
|
|
68
|
+
safeAddress,
|
|
69
|
+
balance: pusdBalance
|
|
70
|
+
})
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
safeAddress,
|
|
75
|
+
assets,
|
|
76
|
+
totalUsd: assets.reduce((sum, asset) => sum + (_nullishCoalesce(asset.balanceUsd, () => ( 0))), 0)
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
async function executePolymarketSafeTransfer(params) {
|
|
80
|
+
const account = params.walletClient.account;
|
|
81
|
+
const chain = params.walletClient.chain;
|
|
82
|
+
if (!account || !chain) {
|
|
83
|
+
throw new Error("Wallet not connected");
|
|
84
|
+
}
|
|
85
|
+
if (chain.id !== POLYMARKET_POLYGON_CHAIN_ID) {
|
|
86
|
+
throw new Error("Switch to Polygon to sign");
|
|
87
|
+
}
|
|
88
|
+
const isOwner = await params.publicClient.readContract({
|
|
89
|
+
address: params.safeAddress,
|
|
90
|
+
abi: _chunkYKGL66EFcjs.SAFE_ABI,
|
|
91
|
+
functionName: "isOwner",
|
|
92
|
+
args: [account.address]
|
|
93
|
+
});
|
|
94
|
+
if (!isOwner) {
|
|
95
|
+
throw new Error("Connected wallet is not a Polymarket Safe owner");
|
|
96
|
+
}
|
|
97
|
+
const safeTx = params.tokenKind === "pusd" ? buildPusdUnwrapSafeTx(params.recipient, params.amount) : buildUsdceTransferSafeTx(params.recipient, params.amount);
|
|
98
|
+
const signature = _viem.concat.call(void 0, [
|
|
99
|
+
_viem.pad.call(void 0, account.address, { size: 32 }),
|
|
100
|
+
_viem.pad.call(void 0, _viem.toHex.call(void 0, 0), { size: 32 }),
|
|
101
|
+
_viem.toHex.call(void 0, 1, { size: 1 })
|
|
102
|
+
]);
|
|
103
|
+
const txHash = await params.walletClient.writeContract({
|
|
104
|
+
account,
|
|
105
|
+
chain,
|
|
106
|
+
address: params.safeAddress,
|
|
107
|
+
abi: _chunkYKGL66EFcjs.SAFE_ABI,
|
|
108
|
+
functionName: "execTransaction",
|
|
109
|
+
args: [
|
|
110
|
+
safeTx.to,
|
|
111
|
+
0n,
|
|
112
|
+
safeTx.data,
|
|
113
|
+
safeTx.operation,
|
|
114
|
+
0n,
|
|
115
|
+
0n,
|
|
116
|
+
0n,
|
|
117
|
+
_viem.zeroAddress,
|
|
118
|
+
_viem.zeroAddress,
|
|
119
|
+
signature
|
|
120
|
+
]
|
|
121
|
+
});
|
|
122
|
+
const receipt = await params.publicClient.waitForTransactionReceipt({
|
|
123
|
+
hash: txHash
|
|
124
|
+
});
|
|
125
|
+
const parsed = _viem.parseEventLogs.call(void 0, {
|
|
126
|
+
abi: _chunkYKGL66EFcjs.SAFE_ABI,
|
|
127
|
+
logs: receipt.logs.filter(
|
|
128
|
+
(log) => log.address.toLowerCase() === params.safeAddress.toLowerCase()
|
|
129
|
+
),
|
|
130
|
+
strict: false
|
|
131
|
+
});
|
|
132
|
+
if (parsed.some((log) => log.eventName === "ExecutionFailure")) {
|
|
133
|
+
throw new Error("Polymarket Safe transaction failed");
|
|
134
|
+
}
|
|
135
|
+
if (!parsed.some((log) => log.eventName === "ExecutionSuccess")) {
|
|
136
|
+
throw new Error("Polymarket Safe transaction status unavailable");
|
|
137
|
+
}
|
|
138
|
+
return {
|
|
139
|
+
txHash,
|
|
140
|
+
sourceToken: POLYMARKET_USDCE_ADDRESS,
|
|
141
|
+
sourceSymbol: params.tokenKind === "pusd" ? "pUSD" : "USDC.e"
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
function buildPolymarketAsset(params) {
|
|
145
|
+
const isPusd = params.kind === "pusd";
|
|
146
|
+
const symbol = isPusd ? "pUSD" : "USDC.e";
|
|
147
|
+
const balanceUsd = Number(_viem.formatUnits.call(void 0, params.balance, 6));
|
|
148
|
+
return {
|
|
149
|
+
id: `polymarket:${params.kind}`,
|
|
150
|
+
chainId: POLYMARKET_POLYGON_CHAIN_ID,
|
|
151
|
+
token: isPusd ? POLYMARKET_PUSD_ADDRESS : POLYMARKET_USDCE_ADDRESS,
|
|
152
|
+
symbol,
|
|
153
|
+
name: isPusd ? "Polymarket USD" : "Polygon USDC.e",
|
|
154
|
+
decimals: 6,
|
|
155
|
+
balance: params.balance.toString(),
|
|
156
|
+
balanceUsd: Number.isFinite(balanceUsd) ? balanceUsd : 0,
|
|
157
|
+
source: "polymarket",
|
|
158
|
+
sourceLabel: "Polymarket",
|
|
159
|
+
balanceAddress: params.safeAddress,
|
|
160
|
+
depositToken: POLYMARKET_USDCE_ADDRESS,
|
|
161
|
+
polymarketTokenKind: params.kind,
|
|
162
|
+
polymarketSafeAddress: params.safeAddress,
|
|
163
|
+
reviewLabel: isPusd ? "You send pUSD from Polymarket" : "You send USDC.e from Polymarket"
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
async function readTokenBalance(publicClient, token, holder) {
|
|
167
|
+
try {
|
|
168
|
+
return await publicClient.readContract({
|
|
169
|
+
address: token,
|
|
170
|
+
abi: _viem.erc20Abi,
|
|
171
|
+
functionName: "balanceOf",
|
|
172
|
+
args: [holder]
|
|
173
|
+
});
|
|
174
|
+
} catch (e) {
|
|
175
|
+
return 0n;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
function buildUsdceTransferSafeTx(recipient, amount) {
|
|
179
|
+
return {
|
|
180
|
+
to: POLYMARKET_USDCE_ADDRESS,
|
|
181
|
+
data: _viem.encodeFunctionData.call(void 0, {
|
|
182
|
+
abi: _viem.erc20Abi,
|
|
183
|
+
functionName: "transfer",
|
|
184
|
+
args: [recipient, amount]
|
|
185
|
+
}),
|
|
186
|
+
operation: 0
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
function buildPusdUnwrapSafeTx(recipient, amount) {
|
|
190
|
+
const approveData = _viem.encodeFunctionData.call(void 0, {
|
|
191
|
+
abi: _viem.erc20Abi,
|
|
192
|
+
functionName: "approve",
|
|
193
|
+
args: [POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS, amount]
|
|
194
|
+
});
|
|
195
|
+
const unwrapData = _viem.encodeFunctionData.call(void 0, {
|
|
196
|
+
abi: COLLATERAL_OFFRAMP_ABI,
|
|
197
|
+
functionName: "unwrap",
|
|
198
|
+
args: [POLYMARKET_USDCE_ADDRESS, recipient, amount]
|
|
199
|
+
});
|
|
200
|
+
return {
|
|
201
|
+
to: SAFE_MULTI_SEND_CALL_ONLY_ADDRESS,
|
|
202
|
+
data: _viem.encodeFunctionData.call(void 0, {
|
|
203
|
+
abi: MULTI_SEND_ABI,
|
|
204
|
+
functionName: "multiSend",
|
|
205
|
+
args: [
|
|
206
|
+
_viem.concat.call(void 0, [
|
|
207
|
+
encodeMultiSendCall(POLYMARKET_PUSD_ADDRESS, approveData),
|
|
208
|
+
encodeMultiSendCall(POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS, unwrapData)
|
|
209
|
+
])
|
|
210
|
+
]
|
|
211
|
+
}),
|
|
212
|
+
operation: 1
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
function encodeMultiSendCall(to, data) {
|
|
216
|
+
return _viem.encodePacked.call(void 0,
|
|
217
|
+
["uint8", "address", "uint256", "uint256", "bytes"],
|
|
218
|
+
[0, to, 0n, BigInt((data.length - 2) / 2), data]
|
|
219
|
+
);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
exports.POLYMARKET_POLYGON_CHAIN_ID = POLYMARKET_POLYGON_CHAIN_ID; exports.POLYMARKET_SAFE_FACTORY_ADDRESS = POLYMARKET_SAFE_FACTORY_ADDRESS; exports.POLYMARKET_SAFE_INIT_CODE_HASH = POLYMARKET_SAFE_INIT_CODE_HASH; exports.POLYMARKET_USDCE_ADDRESS = POLYMARKET_USDCE_ADDRESS; exports.POLYMARKET_PUSD_ADDRESS = POLYMARKET_PUSD_ADDRESS; exports.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS = POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS; exports.SAFE_MULTI_SEND_CALL_ONLY_ADDRESS = SAFE_MULTI_SEND_CALL_ONLY_ADDRESS; exports.derivePolymarketSafeAddress = derivePolymarketSafeAddress; exports.isPolymarketAsset = isPolymarketAsset; exports.fetchPolymarketBalances = fetchPolymarketBalances; exports.executePolymarketSafeTransfer = executePolymarketSafeTransfer;
|
package/dist/deposit.cjs
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunkAHQY2O3Ucjs = require('./chunk-AHQY2O3U.cjs');
|
|
4
|
+
require('./chunk-ZHLQMSQM.cjs');
|
|
5
|
+
require('./chunk-KE6CJVOV.cjs');
|
|
6
|
+
require('./chunk-YKGL66EF.cjs');
|
|
5
7
|
require('./chunk-R2HP743T.cjs');
|
|
6
8
|
|
|
7
9
|
|
|
8
|
-
exports.DepositModal =
|
|
10
|
+
exports.DepositModal = _chunkAHQY2O3Ucjs.DepositModal;
|
package/dist/deposit.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { e as DepositModalProps } from './types-
|
|
3
|
-
export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, c as DepositFailedEventData, d as DepositModalBranding, f as DepositModalTheme, g as DepositModalUIConfig, h as DepositSubmittedEventData, E as ErrorEventData } from './types-
|
|
2
|
+
import { e as DepositModalProps } from './types-D0NawmZ8.cjs';
|
|
3
|
+
export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, c as DepositFailedEventData, d as DepositModalBranding, f as DepositModalTheme, g as DepositModalUIConfig, h as DepositSubmittedEventData, E as ErrorEventData } from './types-D0NawmZ8.cjs';
|
|
4
4
|
import 'viem';
|
|
5
|
-
import './safe.cjs';
|
|
5
|
+
import './safe-CB7TvRCc.cjs';
|
|
6
6
|
|
|
7
7
|
declare function DepositModal(props: DepositModalProps): react_jsx_runtime.JSX.Element;
|
|
8
8
|
declare namespace DepositModal {
|
package/dist/deposit.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { e as DepositModalProps } from './types-
|
|
3
|
-
export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, c as DepositFailedEventData, d as DepositModalBranding, f as DepositModalTheme, g as DepositModalUIConfig, h as DepositSubmittedEventData, E as ErrorEventData } from './types-
|
|
2
|
+
import { e as DepositModalProps } from './types-CeFbJ-MW.js';
|
|
3
|
+
export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, c as DepositFailedEventData, d as DepositModalBranding, f as DepositModalTheme, g as DepositModalUIConfig, h as DepositSubmittedEventData, E as ErrorEventData } from './types-CeFbJ-MW.js';
|
|
4
4
|
import 'viem';
|
|
5
|
-
import './safe.js';
|
|
5
|
+
import './safe-CB7TvRCc.js';
|
|
6
6
|
|
|
7
7
|
declare function DepositModal(props: DepositModalProps): react_jsx_runtime.JSX.Element;
|
|
8
8
|
declare namespace DepositModal {
|
package/dist/deposit.mjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModal
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-RQ2VCKLS.mjs";
|
|
4
|
+
import "./chunk-LHOHM67Z.mjs";
|
|
5
|
+
import "./chunk-DUGDAMAF.mjs";
|
|
6
|
+
import "./chunk-J2SWZSXL.mjs";
|
|
5
7
|
import "./chunk-WHW3ZMOT.mjs";
|
|
6
8
|
export {
|
|
7
9
|
DepositModal
|
package/dist/index.cjs
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkAHQY2O3Ucjs = require('./chunk-AHQY2O3U.cjs');
|
|
4
|
+
require('./chunk-ZHLQMSQM.cjs');
|
|
4
5
|
|
|
5
6
|
|
|
6
|
-
var
|
|
7
|
+
var _chunk4S262VLPcjs = require('./chunk-4S262VLP.cjs');
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
var _chunkYQFH2WSWcjs = require('./chunk-YQFH2WSW.cjs');
|
|
10
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-KE6CJVOV.cjs');
|
|
12
|
+
require('./chunk-YKGL66EF.cjs');
|
|
11
13
|
|
|
12
14
|
|
|
13
15
|
|
|
@@ -70,4 +72,4 @@ var _chunkR2HP743Tcjs = require('./chunk-R2HP743T.cjs');
|
|
|
70
72
|
|
|
71
73
|
|
|
72
74
|
|
|
73
|
-
exports.CHAIN_BY_ID = _chunkR2HP743Tcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkR2HP743Tcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkR2HP743Tcjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal =
|
|
75
|
+
exports.CHAIN_BY_ID = _chunkR2HP743Tcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkR2HP743Tcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkR2HP743Tcjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkAHQY2O3Ucjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkR2HP743Tcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkR2HP743Tcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkR2HP743Tcjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunk4S262VLPcjs.WithdrawModal; exports.chainRegistry = _chunkR2HP743Tcjs.chainRegistry; exports.disconnectWallet = _chunkYQFH2WSWcjs.disconnectWallet; exports.findChainIdForToken = _chunkR2HP743Tcjs.findChainIdForToken; exports.getChainBadge = _chunkR2HP743Tcjs.getChainBadge; exports.getChainIcon = _chunkR2HP743Tcjs.getChainIcon; exports.getChainId = _chunkR2HP743Tcjs.getChainId; exports.getChainName = _chunkR2HP743Tcjs.getChainName; exports.getChainObject = _chunkR2HP743Tcjs.getChainObject; exports.getExplorerName = _chunkR2HP743Tcjs.getExplorerName; exports.getExplorerTxUrl = _chunkR2HP743Tcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkR2HP743Tcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkR2HP743Tcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkR2HP743Tcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkR2HP743Tcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkR2HP743Tcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkR2HP743Tcjs.getTokenAddress; exports.getTokenDecimals = _chunkR2HP743Tcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkR2HP743Tcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkR2HP743Tcjs.getTokenIcon; exports.getTokenSymbol = _chunkR2HP743Tcjs.getTokenSymbol; exports.getUsdcAddress = _chunkR2HP743Tcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkR2HP743Tcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkR2HP743Tcjs.isSupportedTokenAddressForChain;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { DepositModal } from './deposit.cjs';
|
|
2
2
|
export { WithdrawModal } from './withdraw.cjs';
|
|
3
3
|
export { disconnectWallet } from './reown.cjs';
|
|
4
|
-
export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositEvent, c as DepositFailedEventData, d as DepositModalBranding, e as DepositModalProps, f as DepositModalTheme, g as DepositModalUIConfig, h as DepositSubmittedEventData, E as ErrorEventData, M as ModalEvent, O as OrderBookSwapAction, i as OutputTokenRule, P as PostBridgeAction, R as RouteConfig, W as WithdrawCompleteEventData, j as WithdrawEvent, k as WithdrawFailedEventData, l as WithdrawModalProps, m as WithdrawSubmittedEventData } from './types-
|
|
4
|
+
export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositEvent, c as DepositFailedEventData, d as DepositModalBranding, e as DepositModalProps, f as DepositModalTheme, g as DepositModalUIConfig, h as DepositSubmittedEventData, E as ErrorEventData, M as ModalEvent, O as OrderBookSwapAction, i as OutputTokenRule, P as PostBridgeAction, R as RouteConfig, W as WithdrawCompleteEventData, j as WithdrawEvent, k as WithdrawFailedEventData, l as WithdrawModalProps, m as WithdrawSubmittedEventData } from './types-D0NawmZ8.cjs';
|
|
5
5
|
export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, chainRegistry, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTargetTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain } from './constants.cjs';
|
|
6
|
-
export { SafeTransactionRequest } from './safe.cjs';
|
|
6
|
+
export { S as SafeTransactionRequest } from './safe-CB7TvRCc.cjs';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
8
|
import 'viem';
|
|
9
9
|
import 'viem/chains';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { DepositModal } from './deposit.js';
|
|
2
2
|
export { WithdrawModal } from './withdraw.js';
|
|
3
3
|
export { disconnectWallet } from './reown.js';
|
|
4
|
-
export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositEvent, c as DepositFailedEventData, d as DepositModalBranding, e as DepositModalProps, f as DepositModalTheme, g as DepositModalUIConfig, h as DepositSubmittedEventData, E as ErrorEventData, M as ModalEvent, O as OrderBookSwapAction, i as OutputTokenRule, P as PostBridgeAction, R as RouteConfig, W as WithdrawCompleteEventData, j as WithdrawEvent, k as WithdrawFailedEventData, l as WithdrawModalProps, m as WithdrawSubmittedEventData } from './types-
|
|
4
|
+
export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositEvent, c as DepositFailedEventData, d as DepositModalBranding, e as DepositModalProps, f as DepositModalTheme, g as DepositModalUIConfig, h as DepositSubmittedEventData, E as ErrorEventData, M as ModalEvent, O as OrderBookSwapAction, i as OutputTokenRule, P as PostBridgeAction, R as RouteConfig, W as WithdrawCompleteEventData, j as WithdrawEvent, k as WithdrawFailedEventData, l as WithdrawModalProps, m as WithdrawSubmittedEventData } from './types-CeFbJ-MW.js';
|
|
5
5
|
export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, chainRegistry, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTargetTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain } from './constants.js';
|
|
6
|
-
export { SafeTransactionRequest } from './safe.js';
|
|
6
|
+
export { S as SafeTransactionRequest } from './safe-CB7TvRCc.js';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
8
|
import 'viem';
|
|
9
9
|
import 'viem/chains';
|
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RQ2VCKLS.mjs";
|
|
4
|
+
import "./chunk-LHOHM67Z.mjs";
|
|
4
5
|
import {
|
|
5
6
|
WithdrawModal
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WA4RA4HB.mjs";
|
|
7
8
|
import {
|
|
8
9
|
disconnectWallet
|
|
9
10
|
} from "./chunk-5YXAQB6A.mjs";
|
|
10
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-DUGDAMAF.mjs";
|
|
12
|
+
import "./chunk-J2SWZSXL.mjs";
|
|
11
13
|
import {
|
|
12
14
|
CHAIN_BY_ID,
|
|
13
15
|
DEFAULT_BACKEND_URL,
|
package/dist/reown.cjs
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkAHQY2O3Ucjs = require('./chunk-AHQY2O3U.cjs');
|
|
4
|
+
require('./chunk-ZHLQMSQM.cjs');
|
|
4
5
|
|
|
5
6
|
|
|
6
|
-
var
|
|
7
|
+
var _chunk4S262VLPcjs = require('./chunk-4S262VLP.cjs');
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
var _chunkYQFH2WSWcjs = require('./chunk-YQFH2WSW.cjs');
|
|
10
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-KE6CJVOV.cjs');
|
|
12
|
+
require('./chunk-YKGL66EF.cjs');
|
|
11
13
|
require('./chunk-R2HP743T.cjs');
|
|
12
14
|
|
|
13
15
|
|
|
14
16
|
|
|
15
17
|
|
|
16
|
-
exports.DepositModal =
|
|
18
|
+
exports.DepositModal = _chunkAHQY2O3Ucjs.DepositModal; exports.WithdrawModal = _chunk4S262VLPcjs.WithdrawModal; exports.disconnectWallet = _chunkYQFH2WSWcjs.disconnectWallet;
|
package/dist/reown.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { DepositModal } from './deposit.cjs';
|
|
2
2
|
export { WithdrawModal } from './withdraw.cjs';
|
|
3
|
-
export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, c as DepositFailedEventData, d as DepositModalBranding, e as DepositModalProps, f as DepositModalTheme, g as DepositModalUIConfig, h as DepositSubmittedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, k as WithdrawFailedEventData, l as WithdrawModalProps, m as WithdrawSubmittedEventData } from './types-
|
|
4
|
-
export { SafeTransactionRequest } from './safe.cjs';
|
|
3
|
+
export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, c as DepositFailedEventData, d as DepositModalBranding, e as DepositModalProps, f as DepositModalTheme, g as DepositModalUIConfig, h as DepositSubmittedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, k as WithdrawFailedEventData, l as WithdrawModalProps, m as WithdrawSubmittedEventData } from './types-D0NawmZ8.cjs';
|
|
4
|
+
export { S as SafeTransactionRequest } from './safe-CB7TvRCc.cjs';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
import 'viem';
|
|
7
7
|
|
package/dist/reown.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { DepositModal } from './deposit.js';
|
|
2
2
|
export { WithdrawModal } from './withdraw.js';
|
|
3
|
-
export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, c as DepositFailedEventData, d as DepositModalBranding, e as DepositModalProps, f as DepositModalTheme, g as DepositModalUIConfig, h as DepositSubmittedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, k as WithdrawFailedEventData, l as WithdrawModalProps, m as WithdrawSubmittedEventData } from './types-
|
|
4
|
-
export { SafeTransactionRequest } from './safe.js';
|
|
3
|
+
export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, c as DepositFailedEventData, d as DepositModalBranding, e as DepositModalProps, f as DepositModalTheme, g as DepositModalUIConfig, h as DepositSubmittedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, k as WithdrawFailedEventData, l as WithdrawModalProps, m as WithdrawSubmittedEventData } from './types-CeFbJ-MW.js';
|
|
4
|
+
export { S as SafeTransactionRequest } from './safe-CB7TvRCc.js';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
import 'viem';
|
|
7
7
|
|
package/dist/reown.mjs
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RQ2VCKLS.mjs";
|
|
4
|
+
import "./chunk-LHOHM67Z.mjs";
|
|
4
5
|
import {
|
|
5
6
|
WithdrawModal
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WA4RA4HB.mjs";
|
|
7
8
|
import {
|
|
8
9
|
disconnectWallet
|
|
9
10
|
} from "./chunk-5YXAQB6A.mjs";
|
|
10
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-DUGDAMAF.mjs";
|
|
12
|
+
import "./chunk-J2SWZSXL.mjs";
|
|
11
13
|
import "./chunk-WHW3ZMOT.mjs";
|
|
12
14
|
export {
|
|
13
15
|
DepositModal,
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Address, Hex } from 'viem';
|
|
2
|
+
|
|
3
|
+
interface SafeTransactionRequest {
|
|
4
|
+
chainId: number;
|
|
5
|
+
safeAddress: Address;
|
|
6
|
+
safeTxHash: Hex;
|
|
7
|
+
typedData: {
|
|
8
|
+
domain: {
|
|
9
|
+
chainId: number;
|
|
10
|
+
verifyingContract: Address;
|
|
11
|
+
};
|
|
12
|
+
types: typeof SAFE_TX_TYPES;
|
|
13
|
+
primaryType: "SafeTx";
|
|
14
|
+
message: {
|
|
15
|
+
to: Address;
|
|
16
|
+
value: bigint;
|
|
17
|
+
data: Hex;
|
|
18
|
+
operation: number;
|
|
19
|
+
safeTxGas: bigint;
|
|
20
|
+
baseGas: bigint;
|
|
21
|
+
gasPrice: bigint;
|
|
22
|
+
gasToken: Address;
|
|
23
|
+
refundReceiver: Address;
|
|
24
|
+
nonce: bigint;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
declare const SAFE_TX_TYPES: {
|
|
29
|
+
readonly SafeTx: readonly [{
|
|
30
|
+
readonly name: "to";
|
|
31
|
+
readonly type: "address";
|
|
32
|
+
}, {
|
|
33
|
+
readonly name: "value";
|
|
34
|
+
readonly type: "uint256";
|
|
35
|
+
}, {
|
|
36
|
+
readonly name: "data";
|
|
37
|
+
readonly type: "bytes";
|
|
38
|
+
}, {
|
|
39
|
+
readonly name: "operation";
|
|
40
|
+
readonly type: "uint8";
|
|
41
|
+
}, {
|
|
42
|
+
readonly name: "safeTxGas";
|
|
43
|
+
readonly type: "uint256";
|
|
44
|
+
}, {
|
|
45
|
+
readonly name: "baseGas";
|
|
46
|
+
readonly type: "uint256";
|
|
47
|
+
}, {
|
|
48
|
+
readonly name: "gasPrice";
|
|
49
|
+
readonly type: "uint256";
|
|
50
|
+
}, {
|
|
51
|
+
readonly name: "gasToken";
|
|
52
|
+
readonly type: "address";
|
|
53
|
+
}, {
|
|
54
|
+
readonly name: "refundReceiver";
|
|
55
|
+
readonly type: "address";
|
|
56
|
+
}, {
|
|
57
|
+
readonly name: "nonce";
|
|
58
|
+
readonly type: "uint256";
|
|
59
|
+
}];
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export type { SafeTransactionRequest as S };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Address, Hex } from 'viem';
|
|
2
|
+
|
|
3
|
+
interface SafeTransactionRequest {
|
|
4
|
+
chainId: number;
|
|
5
|
+
safeAddress: Address;
|
|
6
|
+
safeTxHash: Hex;
|
|
7
|
+
typedData: {
|
|
8
|
+
domain: {
|
|
9
|
+
chainId: number;
|
|
10
|
+
verifyingContract: Address;
|
|
11
|
+
};
|
|
12
|
+
types: typeof SAFE_TX_TYPES;
|
|
13
|
+
primaryType: "SafeTx";
|
|
14
|
+
message: {
|
|
15
|
+
to: Address;
|
|
16
|
+
value: bigint;
|
|
17
|
+
data: Hex;
|
|
18
|
+
operation: number;
|
|
19
|
+
safeTxGas: bigint;
|
|
20
|
+
baseGas: bigint;
|
|
21
|
+
gasPrice: bigint;
|
|
22
|
+
gasToken: Address;
|
|
23
|
+
refundReceiver: Address;
|
|
24
|
+
nonce: bigint;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
declare const SAFE_TX_TYPES: {
|
|
29
|
+
readonly SafeTx: readonly [{
|
|
30
|
+
readonly name: "to";
|
|
31
|
+
readonly type: "address";
|
|
32
|
+
}, {
|
|
33
|
+
readonly name: "value";
|
|
34
|
+
readonly type: "uint256";
|
|
35
|
+
}, {
|
|
36
|
+
readonly name: "data";
|
|
37
|
+
readonly type: "bytes";
|
|
38
|
+
}, {
|
|
39
|
+
readonly name: "operation";
|
|
40
|
+
readonly type: "uint8";
|
|
41
|
+
}, {
|
|
42
|
+
readonly name: "safeTxGas";
|
|
43
|
+
readonly type: "uint256";
|
|
44
|
+
}, {
|
|
45
|
+
readonly name: "baseGas";
|
|
46
|
+
readonly type: "uint256";
|
|
47
|
+
}, {
|
|
48
|
+
readonly name: "gasPrice";
|
|
49
|
+
readonly type: "uint256";
|
|
50
|
+
}, {
|
|
51
|
+
readonly name: "gasToken";
|
|
52
|
+
readonly type: "address";
|
|
53
|
+
}, {
|
|
54
|
+
readonly name: "refundReceiver";
|
|
55
|
+
readonly type: "address";
|
|
56
|
+
}, {
|
|
57
|
+
readonly name: "nonce";
|
|
58
|
+
readonly type: "uint256";
|
|
59
|
+
}];
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export type { SafeTransactionRequest as S };
|
package/dist/safe.cjs
CHANGED
|
@@ -1 +1,22 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _chunkZHLQMSQMcjs = require('./chunk-ZHLQMSQM.cjs');
|
|
11
|
+
require('./chunk-YKGL66EF.cjs');
|
|
12
|
+
require('./chunk-R2HP743T.cjs');
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
exports.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS = _chunkZHLQMSQMcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS; exports.POLYMARKET_POLYGON_CHAIN_ID = _chunkZHLQMSQMcjs.POLYMARKET_POLYGON_CHAIN_ID; exports.POLYMARKET_PUSD_ADDRESS = _chunkZHLQMSQMcjs.POLYMARKET_PUSD_ADDRESS; exports.POLYMARKET_SAFE_FACTORY_ADDRESS = _chunkZHLQMSQMcjs.POLYMARKET_SAFE_FACTORY_ADDRESS; exports.POLYMARKET_SAFE_INIT_CODE_HASH = _chunkZHLQMSQMcjs.POLYMARKET_SAFE_INIT_CODE_HASH; exports.POLYMARKET_USDCE_ADDRESS = _chunkZHLQMSQMcjs.POLYMARKET_USDCE_ADDRESS; exports.SAFE_MULTI_SEND_CALL_ONLY_ADDRESS = _chunkZHLQMSQMcjs.SAFE_MULTI_SEND_CALL_ONLY_ADDRESS; exports.derivePolymarketSafeAddress = _chunkZHLQMSQMcjs.derivePolymarketSafeAddress;
|
package/dist/safe.d.cts
CHANGED
|
@@ -1,62 +1,14 @@
|
|
|
1
|
+
export { S as SafeTransactionRequest } from './safe-CB7TvRCc.cjs';
|
|
1
2
|
import { Address, Hex } from 'viem';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
types: typeof SAFE_TX_TYPES;
|
|
13
|
-
primaryType: "SafeTx";
|
|
14
|
-
message: {
|
|
15
|
-
to: Address;
|
|
16
|
-
value: bigint;
|
|
17
|
-
data: Hex;
|
|
18
|
-
operation: number;
|
|
19
|
-
safeTxGas: bigint;
|
|
20
|
-
baseGas: bigint;
|
|
21
|
-
gasPrice: bigint;
|
|
22
|
-
gasToken: Address;
|
|
23
|
-
refundReceiver: Address;
|
|
24
|
-
nonce: bigint;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
declare const SAFE_TX_TYPES: {
|
|
29
|
-
readonly SafeTx: readonly [{
|
|
30
|
-
readonly name: "to";
|
|
31
|
-
readonly type: "address";
|
|
32
|
-
}, {
|
|
33
|
-
readonly name: "value";
|
|
34
|
-
readonly type: "uint256";
|
|
35
|
-
}, {
|
|
36
|
-
readonly name: "data";
|
|
37
|
-
readonly type: "bytes";
|
|
38
|
-
}, {
|
|
39
|
-
readonly name: "operation";
|
|
40
|
-
readonly type: "uint8";
|
|
41
|
-
}, {
|
|
42
|
-
readonly name: "safeTxGas";
|
|
43
|
-
readonly type: "uint256";
|
|
44
|
-
}, {
|
|
45
|
-
readonly name: "baseGas";
|
|
46
|
-
readonly type: "uint256";
|
|
47
|
-
}, {
|
|
48
|
-
readonly name: "gasPrice";
|
|
49
|
-
readonly type: "uint256";
|
|
50
|
-
}, {
|
|
51
|
-
readonly name: "gasToken";
|
|
52
|
-
readonly type: "address";
|
|
53
|
-
}, {
|
|
54
|
-
readonly name: "refundReceiver";
|
|
55
|
-
readonly type: "address";
|
|
56
|
-
}, {
|
|
57
|
-
readonly name: "nonce";
|
|
58
|
-
readonly type: "uint256";
|
|
59
|
-
}];
|
|
60
|
-
};
|
|
4
|
+
declare const POLYMARKET_POLYGON_CHAIN_ID = 137;
|
|
5
|
+
declare const POLYMARKET_SAFE_FACTORY_ADDRESS: Address;
|
|
6
|
+
declare const POLYMARKET_SAFE_INIT_CODE_HASH: Hex;
|
|
7
|
+
declare const POLYMARKET_USDCE_ADDRESS: Address;
|
|
8
|
+
declare const POLYMARKET_PUSD_ADDRESS: Address;
|
|
9
|
+
declare const POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS: Address;
|
|
10
|
+
declare const SAFE_MULTI_SEND_CALL_ONLY_ADDRESS: Address;
|
|
11
|
+
type PolymarketTokenKind = "usdce" | "pusd";
|
|
12
|
+
declare function derivePolymarketSafeAddress(owner: Address): Address;
|
|
61
13
|
|
|
62
|
-
export type
|
|
14
|
+
export { POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS, POLYMARKET_POLYGON_CHAIN_ID, POLYMARKET_PUSD_ADDRESS, POLYMARKET_SAFE_FACTORY_ADDRESS, POLYMARKET_SAFE_INIT_CODE_HASH, POLYMARKET_USDCE_ADDRESS, type PolymarketTokenKind, SAFE_MULTI_SEND_CALL_ONLY_ADDRESS, derivePolymarketSafeAddress };
|