@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
package/dist/safe.d.ts
CHANGED
|
@@ -1,62 +1,14 @@
|
|
|
1
|
+
export { S as SafeTransactionRequest } from './safe-CB7TvRCc.js';
|
|
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 };
|
package/dist/safe.mjs
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS,
|
|
3
|
+
POLYMARKET_POLYGON_CHAIN_ID,
|
|
4
|
+
POLYMARKET_PUSD_ADDRESS,
|
|
5
|
+
POLYMARKET_SAFE_FACTORY_ADDRESS,
|
|
6
|
+
POLYMARKET_SAFE_INIT_CODE_HASH,
|
|
7
|
+
POLYMARKET_USDCE_ADDRESS,
|
|
8
|
+
SAFE_MULTI_SEND_CALL_ONLY_ADDRESS,
|
|
9
|
+
derivePolymarketSafeAddress
|
|
10
|
+
} from "./chunk-LHOHM67Z.mjs";
|
|
11
|
+
import "./chunk-J2SWZSXL.mjs";
|
|
12
|
+
import "./chunk-WHW3ZMOT.mjs";
|
|
13
|
+
export {
|
|
14
|
+
POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS,
|
|
15
|
+
POLYMARKET_POLYGON_CHAIN_ID,
|
|
16
|
+
POLYMARKET_PUSD_ADDRESS,
|
|
17
|
+
POLYMARKET_SAFE_FACTORY_ADDRESS,
|
|
18
|
+
POLYMARKET_SAFE_INIT_CODE_HASH,
|
|
19
|
+
POLYMARKET_USDCE_ADDRESS,
|
|
20
|
+
SAFE_MULTI_SEND_CALL_ONLY_ADDRESS,
|
|
21
|
+
derivePolymarketSafeAddress
|
|
22
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Address, WalletClient, PublicClient, Chain, Hex } from 'viem';
|
|
2
|
-
import { SafeTransactionRequest } from './safe.js';
|
|
2
|
+
import { S as SafeTransactionRequest } from './safe-CB7TvRCc.js';
|
|
3
3
|
|
|
4
4
|
type Caip2ChainId = `eip155:${number}` | `solana:${string}`;
|
|
5
5
|
type ChainId = number | "solana" | Caip2ChainId;
|
|
@@ -112,6 +112,7 @@ interface DepositModalProps {
|
|
|
112
112
|
waitForFinalTx?: boolean;
|
|
113
113
|
reownAppId?: string;
|
|
114
114
|
enableSolana?: boolean;
|
|
115
|
+
enablePolymarketMigration?: boolean;
|
|
115
116
|
onRequestConnect?: () => void;
|
|
116
117
|
connectButtonLabel?: string;
|
|
117
118
|
theme?: DepositModalTheme;
|
|
@@ -178,6 +179,12 @@ interface AssetOption {
|
|
|
178
179
|
decimals: number;
|
|
179
180
|
balance?: string;
|
|
180
181
|
balanceUsd?: number;
|
|
182
|
+
source?: "wallet" | "polymarket";
|
|
183
|
+
sourceLabel?: string;
|
|
184
|
+
balanceAddress?: Address;
|
|
185
|
+
depositToken?: Address;
|
|
186
|
+
reviewLabel?: string;
|
|
187
|
+
reviewHelperText?: string;
|
|
181
188
|
}
|
|
182
189
|
interface OrderBookSwapAction {
|
|
183
190
|
type: "orderbook-swap";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Address, WalletClient, PublicClient, Chain, Hex } from 'viem';
|
|
2
|
-
import { SafeTransactionRequest } from './safe.cjs';
|
|
2
|
+
import { S as SafeTransactionRequest } from './safe-CB7TvRCc.cjs';
|
|
3
3
|
|
|
4
4
|
type Caip2ChainId = `eip155:${number}` | `solana:${string}`;
|
|
5
5
|
type ChainId = number | "solana" | Caip2ChainId;
|
|
@@ -112,6 +112,7 @@ interface DepositModalProps {
|
|
|
112
112
|
waitForFinalTx?: boolean;
|
|
113
113
|
reownAppId?: string;
|
|
114
114
|
enableSolana?: boolean;
|
|
115
|
+
enablePolymarketMigration?: boolean;
|
|
115
116
|
onRequestConnect?: () => void;
|
|
116
117
|
connectButtonLabel?: string;
|
|
117
118
|
theme?: DepositModalTheme;
|
|
@@ -178,6 +179,12 @@ interface AssetOption {
|
|
|
178
179
|
decimals: number;
|
|
179
180
|
balance?: string;
|
|
180
181
|
balanceUsd?: number;
|
|
182
|
+
source?: "wallet" | "polymarket";
|
|
183
|
+
sourceLabel?: string;
|
|
184
|
+
balanceAddress?: Address;
|
|
185
|
+
depositToken?: Address;
|
|
186
|
+
reviewLabel?: string;
|
|
187
|
+
reviewHelperText?: string;
|
|
181
188
|
}
|
|
182
189
|
interface OrderBookSwapAction {
|
|
183
190
|
type: "orderbook-swap";
|
package/dist/withdraw.cjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunk4S262VLPcjs = require('./chunk-4S262VLP.cjs');
|
|
4
|
+
require('./chunk-KE6CJVOV.cjs');
|
|
5
|
+
require('./chunk-YKGL66EF.cjs');
|
|
5
6
|
require('./chunk-R2HP743T.cjs');
|
|
6
7
|
|
|
7
8
|
|
|
8
|
-
exports.WithdrawModal =
|
|
9
|
+
exports.WithdrawModal = _chunk4S262VLPcjs.WithdrawModal;
|
package/dist/withdraw.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { l as WithdrawModalProps } from './types-
|
|
3
|
-
export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, k as WithdrawFailedEventData, m as WithdrawSubmittedEventData } from './types-
|
|
4
|
-
export { SafeTransactionRequest } from './safe.cjs';
|
|
2
|
+
import { l as WithdrawModalProps } from './types-D0NawmZ8.cjs';
|
|
3
|
+
export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, k as WithdrawFailedEventData, m as WithdrawSubmittedEventData } from './types-D0NawmZ8.cjs';
|
|
4
|
+
export { S as SafeTransactionRequest } from './safe-CB7TvRCc.cjs';
|
|
5
5
|
import 'viem';
|
|
6
6
|
|
|
7
7
|
declare function WithdrawModal(props: WithdrawModalProps): react_jsx_runtime.JSX.Element;
|
package/dist/withdraw.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { l as WithdrawModalProps } from './types-
|
|
3
|
-
export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, k as WithdrawFailedEventData, m as WithdrawSubmittedEventData } from './types-
|
|
4
|
-
export { SafeTransactionRequest } from './safe.js';
|
|
2
|
+
import { l as WithdrawModalProps } from './types-CeFbJ-MW.js';
|
|
3
|
+
export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, k as WithdrawFailedEventData, m as WithdrawSubmittedEventData } from './types-CeFbJ-MW.js';
|
|
4
|
+
export { S as SafeTransactionRequest } from './safe-CB7TvRCc.js';
|
|
5
5
|
import 'viem';
|
|
6
6
|
|
|
7
7
|
declare function WithdrawModal(props: WithdrawModalProps): react_jsx_runtime.JSX.Element;
|
package/dist/withdraw.mjs
CHANGED