@rhinestone/deposit-modal 0.10.0 → 0.11.1
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-MTWT6Y66.mjs → DepositModalReown-MO5QDLIT.mjs} +96 -26
- package/dist/{DepositModalReown-S3DSFXTX.cjs → DepositModalReown-YGB73NMW.cjs} +97 -27
- package/dist/caip-D8aRWdEY.d.cts +40 -0
- package/dist/caip-D8aRWdEY.d.ts +40 -0
- package/dist/{chunk-NF4NBRUP.cjs → chunk-4FTI3GTB.cjs} +1 -1
- package/dist/{chunk-A223BLVC.mjs → chunk-53IFZGSF.mjs} +177 -21
- package/dist/{chunk-VDGT6NZQ.mjs → chunk-5746YXKC.mjs} +14 -31
- package/dist/{chunk-7TV7GLJB.mjs → chunk-CWGUBFJL.mjs} +763 -169
- package/dist/{chunk-LR7MKHYV.mjs → chunk-EIWOVX53.mjs} +27 -25
- package/dist/{chunk-VTVOHNXM.cjs → chunk-FVUXJ3RP.cjs} +3 -3
- package/dist/{chunk-A42XAHIB.cjs → chunk-HUHBNYD3.cjs} +84 -101
- package/dist/{chunk-YEBXUUH3.cjs → chunk-JPRV36DT.cjs} +2 -2
- package/dist/{chunk-UMCDZJMG.cjs → chunk-LQGYPM5B.cjs} +96 -94
- package/dist/{chunk-ILT2PITN.mjs → chunk-MZ53PDIX.mjs} +1 -1
- package/dist/{chunk-5NJYW5FT.mjs → chunk-OWYPKCYD.mjs} +12 -9
- package/dist/{chunk-W4YAOJPG.cjs → chunk-SSQ27YFB.cjs} +625 -568
- package/dist/{chunk-H577RJN5.cjs → chunk-TENL4H64.cjs} +186 -30
- package/dist/{chunk-5OEWGJR4.mjs → chunk-URFSTNRS.mjs} +1 -1
- package/dist/{chunk-KW32UBUQ.mjs → chunk-V6T7LORJ.mjs} +1 -1
- package/dist/{chunk-MHIOMTMM.mjs → chunk-YELNYILK.mjs} +391 -334
- package/dist/{chunk-PUJHXHRA.cjs → chunk-ZQR36NCV.cjs} +845 -251
- package/dist/{chunk-DEF767BA.cjs → chunk-ZRIRCIQM.cjs} +66 -63
- package/dist/claim.cjs +6 -6
- package/dist/claim.d.cts +3 -2
- package/dist/claim.d.ts +3 -2
- package/dist/claim.mjs +5 -5
- package/dist/{caip-523Zrc3r.d.cts → constants-FuzG3h4m.d.cts} +1 -18
- package/dist/{caip-523Zrc3r.d.ts → constants-FuzG3h4m.d.ts} +1 -18
- package/dist/constants.cjs +5 -3
- package/dist/constants.d.cts +3 -2
- package/dist/constants.d.ts +3 -2
- package/dist/constants.mjs +4 -2
- package/dist/deposit.cjs +8 -8
- package/dist/deposit.d.cts +3 -2
- package/dist/deposit.d.ts +3 -2
- package/dist/deposit.mjs +7 -7
- package/dist/index.cjs +12 -10
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.mjs +11 -9
- package/dist/polymarket.cjs +5 -5
- package/dist/polymarket.mjs +2 -2
- package/dist/{types-C0SGf-21.d.cts → types-CsGa-HxD.d.cts} +10 -3
- package/dist/{types-C0SGf-21.d.ts → types-DdS8OySJ.d.ts} +10 -3
- package/dist/withdraw.cjs +6 -6
- package/dist/withdraw.d.cts +3 -2
- package/dist/withdraw.d.ts +3 -2
- package/dist/withdraw.mjs +5 -5
- package/package.json +1 -1
package/dist/deposit.d.cts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { i as DepositModalProps } from './types-
|
|
3
|
-
export { A as AssetMigrationsConfig, a as AssetOption, e as ConnectedEventData, f as DepositCompleteEventData, g as DepositFailedEventData, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, R as RpcUrlMap } from './types-
|
|
2
|
+
import { i as DepositModalProps } from './types-CsGa-HxD.cjs';
|
|
3
|
+
export { A as AssetMigrationsConfig, a as AssetOption, e as ConnectedEventData, f as DepositCompleteEventData, g as DepositFailedEventData, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, R as RpcUrlMap } from './types-CsGa-HxD.cjs';
|
|
4
4
|
import 'viem';
|
|
5
|
+
import './caip-D8aRWdEY.cjs';
|
|
5
6
|
|
|
6
7
|
declare function DepositModal(props: DepositModalProps): react.JSX.Element;
|
|
7
8
|
declare namespace DepositModal {
|
package/dist/deposit.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { i as DepositModalProps } from './types-
|
|
3
|
-
export { A as AssetMigrationsConfig, a as AssetOption, e as ConnectedEventData, f as DepositCompleteEventData, g as DepositFailedEventData, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, R as RpcUrlMap } from './types-
|
|
2
|
+
import { i as DepositModalProps } from './types-DdS8OySJ.js';
|
|
3
|
+
export { A as AssetMigrationsConfig, a as AssetOption, e as ConnectedEventData, f as DepositCompleteEventData, g as DepositFailedEventData, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, R as RpcUrlMap } from './types-DdS8OySJ.js';
|
|
4
4
|
import 'viem';
|
|
5
|
+
import './caip-D8aRWdEY.js';
|
|
5
6
|
|
|
6
7
|
declare function DepositModal(props: DepositModalProps): react.JSX.Element;
|
|
7
8
|
declare namespace DepositModal {
|
package/dist/deposit.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModal
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-YELNYILK.mjs";
|
|
4
|
+
import "./chunk-5746YXKC.mjs";
|
|
5
|
+
import "./chunk-V6T7LORJ.mjs";
|
|
6
|
+
import "./chunk-CWGUBFJL.mjs";
|
|
7
|
+
import "./chunk-URFSTNRS.mjs";
|
|
8
|
+
import "./chunk-MZ53PDIX.mjs";
|
|
9
|
+
import "./chunk-53IFZGSF.mjs";
|
|
10
10
|
export {
|
|
11
11
|
DepositModal
|
|
12
12
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkSSQ27YFBcjs = require('./chunk-SSQ27YFB.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
6
|
+
var _chunkLQGYPM5Bcjs = require('./chunk-LQGYPM5B.cjs');
|
|
7
|
+
require('./chunk-HUHBNYD3.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
10
|
+
var _chunkZRIRCIQMcjs = require('./chunk-ZRIRCIQM.cjs');
|
|
11
|
+
require('./chunk-FVUXJ3RP.cjs');
|
|
12
|
+
require('./chunk-ZQR36NCV.cjs');
|
|
13
|
+
require('./chunk-4FTI3GTB.cjs');
|
|
14
|
+
require('./chunk-JPRV36DT.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -43,7 +43,8 @@ require('./chunk-YEBXUUH3.cjs');
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
|
|
47
|
+
var _chunkTENL4H64cjs = require('./chunk-TENL4H64.cjs');
|
|
47
48
|
|
|
48
49
|
// src/core/reown-disconnect.ts
|
|
49
50
|
async function disconnectWallet() {
|
|
@@ -99,4 +100,5 @@ async function disconnectWallet() {
|
|
|
99
100
|
|
|
100
101
|
|
|
101
102
|
|
|
102
|
-
|
|
103
|
+
|
|
104
|
+
exports.CHAIN_BY_ID = _chunkTENL4H64cjs.CHAIN_BY_ID; exports.ClaimModal = _chunkZRIRCIQMcjs.ClaimModal; exports.DepositModal = _chunkSSQ27YFBcjs.DepositModal; exports.HYPERCORE_CHAIN_ID = _chunkTENL4H64cjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_SPOT_CAIP2 = _chunkTENL4H64cjs.HYPERCORE_SPOT_CAIP2; exports.HYPERCORE_USDC_ADDRESS = _chunkTENL4H64cjs.HYPERCORE_USDC_ADDRESS; exports.HYPERCORE_USDT0_ADDRESS = _chunkTENL4H64cjs.HYPERCORE_USDT0_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkTENL4H64cjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkTENL4H64cjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkTENL4H64cjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkLQGYPM5Bcjs.WithdrawModal; exports.chainRegistry = _chunkTENL4H64cjs.chainRegistry; exports.disconnectWallet = disconnectWallet; exports.findChainIdForToken = _chunkTENL4H64cjs.findChainIdForToken; exports.getChainBadge = _chunkTENL4H64cjs.getChainBadge; exports.getChainIcon = _chunkTENL4H64cjs.getChainIcon; exports.getChainId = _chunkTENL4H64cjs.getChainId; exports.getChainName = _chunkTENL4H64cjs.getChainName; exports.getChainObject = _chunkTENL4H64cjs.getChainObject; exports.getExplorerName = _chunkTENL4H64cjs.getExplorerName; exports.getExplorerTxUrl = _chunkTENL4H64cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkTENL4H64cjs.getExplorerUrl; exports.getSupportedChainIds = _chunkTENL4H64cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkTENL4H64cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkTENL4H64cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkTENL4H64cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkTENL4H64cjs.getTokenAddress; exports.getTokenDecimals = _chunkTENL4H64cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkTENL4H64cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkTENL4H64cjs.getTokenIcon; exports.getTokenSymbol = _chunkTENL4H64cjs.getTokenSymbol; exports.getUsdcAddress = _chunkTENL4H64cjs.getUsdcAddress; exports.getUsdcDecimals = _chunkTENL4H64cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkTENL4H64cjs.isSupportedTokenAddressForChain; exports.tokenIconUrl = _chunkTENL4H64cjs.tokenIconUrl;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export { DepositModal } from './deposit.cjs';
|
|
2
2
|
export { WithdrawModal } from './withdraw.cjs';
|
|
3
3
|
export { ClaimModal } from './claim.cjs';
|
|
4
|
-
export { A as AssetMigrationsConfig, a as AssetOption, C as ChainId, b as ClaimAnalyticsEvent, c as ClaimLifecycleEvent, d as ClaimModalProps, e as ConnectedEventData, D as DepositAnalyticsEvent, f as DepositCompleteEventData, g as DepositFailedEventData, h as DepositLifecycleEvent, i as DepositModalProps, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, M as ModalAnalyticsEvent, O as OutputTokenRule, R as RpcUrlMap, W as WithdrawAnalyticsEvent, m as WithdrawCompleteEventData, n as WithdrawFailedEventData, o as WithdrawLifecycleEvent, p as WithdrawModalProps, q as WithdrawSubmittedEventData, r as WithdrawTransferRequest } from './types-
|
|
4
|
+
export { A as AssetMigrationsConfig, a as AssetOption, C as ChainId, b as ClaimAnalyticsEvent, c as ClaimLifecycleEvent, d as ClaimModalProps, e as ConnectedEventData, D as DepositAnalyticsEvent, f as DepositCompleteEventData, g as DepositFailedEventData, h as DepositLifecycleEvent, i as DepositModalProps, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, M as ModalAnalyticsEvent, O as OutputTokenRule, R as RpcUrlMap, W as WithdrawAnalyticsEvent, m as WithdrawCompleteEventData, n as WithdrawFailedEventData, o as WithdrawLifecycleEvent, p as WithdrawModalProps, q as WithdrawSubmittedEventData, r as WithdrawTransferRequest } from './types-CsGa-HxD.cjs';
|
|
5
5
|
export { PolymarketAccount, PolymarketTokenBalance } from './polymarket.cjs';
|
|
6
|
-
export { C as CHAIN_BY_ID,
|
|
6
|
+
export { C as CHAIN_BY_ID, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, a as SUPPORTED_CHAINS, c as chainRegistry, f as findChainIdForToken, g as getChainBadge, b as getChainIcon, d as getChainId, e as getChainName, h as getChainObject, i as getExplorerName, j as getExplorerTxUrl, k as getExplorerUrl, l as getSupportedChainIds, m as getSupportedTargetTokens, n as getSupportedTokenSymbolsForChain, o as getTargetTokenSymbolsForChain, p as getTokenAddress, q as getTokenDecimals, r as getTokenDecimalsByAddress, s as getTokenIcon, t as getTokenSymbol, u as getUsdcAddress, v as getUsdcDecimals, w as isSupportedTokenAddressForChain, x as tokenIconUrl } from './constants-FuzG3h4m.cjs';
|
|
7
|
+
export { H as HYPERCORE_CHAIN_ID, a as HYPERCORE_SPOT_CAIP2, b as HYPERCORE_USDC_ADDRESS, c as HYPERCORE_USDT0_ADDRESS, T as TargetChain } from './caip-D8aRWdEY.cjs';
|
|
7
8
|
import 'react';
|
|
8
9
|
import 'viem';
|
|
9
10
|
import 'viem/chains';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export { DepositModal } from './deposit.js';
|
|
2
2
|
export { WithdrawModal } from './withdraw.js';
|
|
3
3
|
export { ClaimModal } from './claim.js';
|
|
4
|
-
export { A as AssetMigrationsConfig, a as AssetOption, C as ChainId, b as ClaimAnalyticsEvent, c as ClaimLifecycleEvent, d as ClaimModalProps, e as ConnectedEventData, D as DepositAnalyticsEvent, f as DepositCompleteEventData, g as DepositFailedEventData, h as DepositLifecycleEvent, i as DepositModalProps, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, M as ModalAnalyticsEvent, O as OutputTokenRule, R as RpcUrlMap, W as WithdrawAnalyticsEvent, m as WithdrawCompleteEventData, n as WithdrawFailedEventData, o as WithdrawLifecycleEvent, p as WithdrawModalProps, q as WithdrawSubmittedEventData, r as WithdrawTransferRequest } from './types-
|
|
4
|
+
export { A as AssetMigrationsConfig, a as AssetOption, C as ChainId, b as ClaimAnalyticsEvent, c as ClaimLifecycleEvent, d as ClaimModalProps, e as ConnectedEventData, D as DepositAnalyticsEvent, f as DepositCompleteEventData, g as DepositFailedEventData, h as DepositLifecycleEvent, i as DepositModalProps, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, M as ModalAnalyticsEvent, O as OutputTokenRule, R as RpcUrlMap, W as WithdrawAnalyticsEvent, m as WithdrawCompleteEventData, n as WithdrawFailedEventData, o as WithdrawLifecycleEvent, p as WithdrawModalProps, q as WithdrawSubmittedEventData, r as WithdrawTransferRequest } from './types-DdS8OySJ.js';
|
|
5
5
|
export { PolymarketAccount, PolymarketTokenBalance } from './polymarket.js';
|
|
6
|
-
export { C as CHAIN_BY_ID,
|
|
6
|
+
export { C as CHAIN_BY_ID, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, a as SUPPORTED_CHAINS, c as chainRegistry, f as findChainIdForToken, g as getChainBadge, b as getChainIcon, d as getChainId, e as getChainName, h as getChainObject, i as getExplorerName, j as getExplorerTxUrl, k as getExplorerUrl, l as getSupportedChainIds, m as getSupportedTargetTokens, n as getSupportedTokenSymbolsForChain, o as getTargetTokenSymbolsForChain, p as getTokenAddress, q as getTokenDecimals, r as getTokenDecimalsByAddress, s as getTokenIcon, t as getTokenSymbol, u as getUsdcAddress, v as getUsdcDecimals, w as isSupportedTokenAddressForChain, x as tokenIconUrl } from './constants-FuzG3h4m.js';
|
|
7
|
+
export { H as HYPERCORE_CHAIN_ID, a as HYPERCORE_SPOT_CAIP2, b as HYPERCORE_USDC_ADDRESS, c as HYPERCORE_USDT0_ADDRESS, T as TargetChain } from './caip-D8aRWdEY.js';
|
|
7
8
|
import 'react';
|
|
8
9
|
import 'viem';
|
|
9
10
|
import 'viem/chains';
|
package/dist/index.mjs
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YELNYILK.mjs";
|
|
4
4
|
import {
|
|
5
5
|
WithdrawModal
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-EIWOVX53.mjs";
|
|
7
|
+
import "./chunk-5746YXKC.mjs";
|
|
8
8
|
import {
|
|
9
9
|
ClaimModal
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-OWYPKCYD.mjs";
|
|
11
|
+
import "./chunk-V6T7LORJ.mjs";
|
|
12
|
+
import "./chunk-CWGUBFJL.mjs";
|
|
13
|
+
import "./chunk-URFSTNRS.mjs";
|
|
14
|
+
import "./chunk-MZ53PDIX.mjs";
|
|
15
15
|
import {
|
|
16
16
|
CHAIN_BY_ID,
|
|
17
17
|
HYPERCORE_CHAIN_ID,
|
|
18
|
+
HYPERCORE_SPOT_CAIP2,
|
|
18
19
|
HYPERCORE_USDC_ADDRESS,
|
|
19
20
|
HYPERCORE_USDT0_ADDRESS,
|
|
20
21
|
NATIVE_TOKEN_ADDRESS,
|
|
@@ -43,7 +44,7 @@ import {
|
|
|
43
44
|
getUsdcDecimals,
|
|
44
45
|
isSupportedTokenAddressForChain,
|
|
45
46
|
tokenIconUrl
|
|
46
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-53IFZGSF.mjs";
|
|
47
48
|
|
|
48
49
|
// src/core/reown-disconnect.ts
|
|
49
50
|
async function disconnectWallet() {
|
|
@@ -69,6 +70,7 @@ export {
|
|
|
69
70
|
ClaimModal,
|
|
70
71
|
DepositModal,
|
|
71
72
|
HYPERCORE_CHAIN_ID,
|
|
73
|
+
HYPERCORE_SPOT_CAIP2,
|
|
72
74
|
HYPERCORE_USDC_ADDRESS,
|
|
73
75
|
HYPERCORE_USDT0_ADDRESS,
|
|
74
76
|
NATIVE_TOKEN_ADDRESS,
|
package/dist/polymarket.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
5
|
+
var _chunkJPRV36DTcjs = require('./chunk-JPRV36DT.cjs');
|
|
6
|
+
require('./chunk-TENL4H64.cjs');
|
|
7
7
|
|
|
8
8
|
// src/core/dapp-imports/polymarket/account.ts
|
|
9
9
|
|
|
@@ -22,12 +22,12 @@ async function getPolymarketAccount(params) {
|
|
|
22
22
|
);
|
|
23
23
|
}
|
|
24
24
|
const eoa = _viem.getAddress.call(void 0, params.eoa);
|
|
25
|
-
const proxyWallet = await
|
|
25
|
+
const proxyWallet = await _chunkJPRV36DTcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
|
|
26
26
|
if (!proxyWallet) return null;
|
|
27
27
|
throwIfAborted(signal);
|
|
28
28
|
let balances = { pusd: 0n, usdce: 0n };
|
|
29
29
|
try {
|
|
30
|
-
balances = await
|
|
30
|
+
balances = await _chunkJPRV36DTcjs.readPolymarketBalances.call(void 0, {
|
|
31
31
|
publicClient: polygonClient(rpcUrl),
|
|
32
32
|
proxyWallet
|
|
33
33
|
});
|
|
@@ -39,7 +39,7 @@ async function getPolymarketAccount(params) {
|
|
|
39
39
|
return {
|
|
40
40
|
eoa,
|
|
41
41
|
proxyWallet,
|
|
42
|
-
chainId:
|
|
42
|
+
chainId: _chunkJPRV36DTcjs.POLYMARKET_POLYGON_CHAIN_ID,
|
|
43
43
|
pusd,
|
|
44
44
|
usdce,
|
|
45
45
|
totalUsd: pusd.usd + usdce.usd
|
package/dist/polymarket.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
POLYMARKET_POLYGON_CHAIN_ID,
|
|
3
3
|
fetchPolymarketProxyWallet,
|
|
4
4
|
readPolymarketBalances
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-MZ53PDIX.mjs";
|
|
6
|
+
import "./chunk-53IFZGSF.mjs";
|
|
7
7
|
|
|
8
8
|
// src/core/dapp-imports/polymarket/account.ts
|
|
9
9
|
import {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TypedDataDefinition, Address, Hex, WalletClient, PublicClient, Chain } from 'viem';
|
|
2
|
+
import { T as TargetChain } from './caip-D8aRWdEY.cjs';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Public config shape exposed on DepositModalProps. Each provider defaults to
|
|
@@ -116,7 +117,7 @@ interface DepositCompleteEventData {
|
|
|
116
117
|
amount: string;
|
|
117
118
|
sourceChain: ChainId | "unknown";
|
|
118
119
|
sourceToken?: string;
|
|
119
|
-
targetChain:
|
|
120
|
+
targetChain: TargetChain;
|
|
120
121
|
targetToken: string;
|
|
121
122
|
}
|
|
122
123
|
interface DepositFailedEventData {
|
|
@@ -145,6 +146,12 @@ interface WithdrawFailedEventData {
|
|
|
145
146
|
interface ErrorEventData {
|
|
146
147
|
message: string;
|
|
147
148
|
code?: string;
|
|
149
|
+
/**
|
|
150
|
+
* The underlying wallet/RPC error, verbatim. `message` is written for the
|
|
151
|
+
* end user and drops the detail a bug report needs — log this instead. Never
|
|
152
|
+
* render it: it is unsanitized and can carry RPC URLs.
|
|
153
|
+
*/
|
|
154
|
+
cause?: string;
|
|
148
155
|
}
|
|
149
156
|
interface OutputTokenRule {
|
|
150
157
|
match: {
|
|
@@ -180,7 +187,7 @@ interface DepositModalProps {
|
|
|
180
187
|
walletClient?: WalletClient | null;
|
|
181
188
|
/** Read client paired with `walletClient`. Defaults to the modal's own. */
|
|
182
189
|
publicClient?: PublicClient | null;
|
|
183
|
-
targetChain: Chain |
|
|
190
|
+
targetChain: Chain | TargetChain;
|
|
184
191
|
targetToken: Address | string;
|
|
185
192
|
isOpen: boolean;
|
|
186
193
|
onClose: () => void;
|
|
@@ -460,7 +467,7 @@ type DepositLifecycleEvent = {
|
|
|
460
467
|
* input (QR transfer, fiat onramp, exchange connect).
|
|
461
468
|
*/
|
|
462
469
|
amountUsd?: string;
|
|
463
|
-
targetChain:
|
|
470
|
+
targetChain: TargetChain;
|
|
464
471
|
targetToken: string;
|
|
465
472
|
} | {
|
|
466
473
|
type: "failed";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TypedDataDefinition, Address, Hex, WalletClient, PublicClient, Chain } from 'viem';
|
|
2
|
+
import { T as TargetChain } from './caip-D8aRWdEY.js';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Public config shape exposed on DepositModalProps. Each provider defaults to
|
|
@@ -116,7 +117,7 @@ interface DepositCompleteEventData {
|
|
|
116
117
|
amount: string;
|
|
117
118
|
sourceChain: ChainId | "unknown";
|
|
118
119
|
sourceToken?: string;
|
|
119
|
-
targetChain:
|
|
120
|
+
targetChain: TargetChain;
|
|
120
121
|
targetToken: string;
|
|
121
122
|
}
|
|
122
123
|
interface DepositFailedEventData {
|
|
@@ -145,6 +146,12 @@ interface WithdrawFailedEventData {
|
|
|
145
146
|
interface ErrorEventData {
|
|
146
147
|
message: string;
|
|
147
148
|
code?: string;
|
|
149
|
+
/**
|
|
150
|
+
* The underlying wallet/RPC error, verbatim. `message` is written for the
|
|
151
|
+
* end user and drops the detail a bug report needs — log this instead. Never
|
|
152
|
+
* render it: it is unsanitized and can carry RPC URLs.
|
|
153
|
+
*/
|
|
154
|
+
cause?: string;
|
|
148
155
|
}
|
|
149
156
|
interface OutputTokenRule {
|
|
150
157
|
match: {
|
|
@@ -180,7 +187,7 @@ interface DepositModalProps {
|
|
|
180
187
|
walletClient?: WalletClient | null;
|
|
181
188
|
/** Read client paired with `walletClient`. Defaults to the modal's own. */
|
|
182
189
|
publicClient?: PublicClient | null;
|
|
183
|
-
targetChain: Chain |
|
|
190
|
+
targetChain: Chain | TargetChain;
|
|
184
191
|
targetToken: Address | string;
|
|
185
192
|
isOpen: boolean;
|
|
186
193
|
onClose: () => void;
|
|
@@ -460,7 +467,7 @@ type DepositLifecycleEvent = {
|
|
|
460
467
|
* input (QR transfer, fiat onramp, exchange connect).
|
|
461
468
|
*/
|
|
462
469
|
amountUsd?: string;
|
|
463
|
-
targetChain:
|
|
470
|
+
targetChain: TargetChain;
|
|
464
471
|
targetToken: string;
|
|
465
472
|
} | {
|
|
466
473
|
type: "failed";
|
package/dist/withdraw.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
3
|
+
var _chunkLQGYPM5Bcjs = require('./chunk-LQGYPM5B.cjs');
|
|
4
|
+
require('./chunk-HUHBNYD3.cjs');
|
|
5
|
+
require('./chunk-ZQR36NCV.cjs');
|
|
6
|
+
require('./chunk-4FTI3GTB.cjs');
|
|
7
|
+
require('./chunk-TENL4H64.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.WithdrawModal =
|
|
10
|
+
exports.WithdrawModal = _chunkLQGYPM5Bcjs.WithdrawModal;
|
package/dist/withdraw.d.cts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { p as WithdrawModalProps } from './types-
|
|
3
|
-
export { a as AssetOption, e as ConnectedEventData, E as ErrorEventData, R as RpcUrlMap, m as WithdrawCompleteEventData, n as WithdrawFailedEventData, q as WithdrawSubmittedEventData, r as WithdrawTransferRequest } from './types-
|
|
2
|
+
import { p as WithdrawModalProps } from './types-CsGa-HxD.cjs';
|
|
3
|
+
export { a as AssetOption, e as ConnectedEventData, E as ErrorEventData, R as RpcUrlMap, m as WithdrawCompleteEventData, n as WithdrawFailedEventData, q as WithdrawSubmittedEventData, r as WithdrawTransferRequest } from './types-CsGa-HxD.cjs';
|
|
4
4
|
import 'viem';
|
|
5
|
+
import './caip-D8aRWdEY.cjs';
|
|
5
6
|
|
|
6
7
|
declare function WithdrawModal({ accountAddress, sourceChain: sourceChainProp, sourceToken, targetChain: targetChainProp, targetToken, recipient, defaultAmount, isOpen, onClose, inline, closeOnOverlayClick, backendUrl, rpcUrls: rpcUrlsProp, forceRegister, onSendTransaction, theme, uiConfig, className, onReady, onLifecycle, onEvent, onError, debug, ...removedProps }: WithdrawModalProps): react.JSX.Element;
|
|
7
8
|
|
package/dist/withdraw.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { p as WithdrawModalProps } from './types-
|
|
3
|
-
export { a as AssetOption, e as ConnectedEventData, E as ErrorEventData, R as RpcUrlMap, m as WithdrawCompleteEventData, n as WithdrawFailedEventData, q as WithdrawSubmittedEventData, r as WithdrawTransferRequest } from './types-
|
|
2
|
+
import { p as WithdrawModalProps } from './types-DdS8OySJ.js';
|
|
3
|
+
export { a as AssetOption, e as ConnectedEventData, E as ErrorEventData, R as RpcUrlMap, m as WithdrawCompleteEventData, n as WithdrawFailedEventData, q as WithdrawSubmittedEventData, r as WithdrawTransferRequest } from './types-DdS8OySJ.js';
|
|
4
4
|
import 'viem';
|
|
5
|
+
import './caip-D8aRWdEY.js';
|
|
5
6
|
|
|
6
7
|
declare function WithdrawModal({ accountAddress, sourceChain: sourceChainProp, sourceToken, targetChain: targetChainProp, targetToken, recipient, defaultAmount, isOpen, onClose, inline, closeOnOverlayClick, backendUrl, rpcUrls: rpcUrlsProp, forceRegister, onSendTransaction, theme, uiConfig, className, onReady, onLifecycle, onEvent, onError, debug, ...removedProps }: WithdrawModalProps): react.JSX.Element;
|
|
7
8
|
|
package/dist/withdraw.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WithdrawModal
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-EIWOVX53.mjs";
|
|
4
|
+
import "./chunk-5746YXKC.mjs";
|
|
5
|
+
import "./chunk-CWGUBFJL.mjs";
|
|
6
|
+
import "./chunk-URFSTNRS.mjs";
|
|
7
|
+
import "./chunk-53IFZGSF.mjs";
|
|
8
8
|
export {
|
|
9
9
|
WithdrawModal
|
|
10
10
|
};
|