@rhinestone/deposit-modal 0.12.0 → 0.12.2
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-MVVRUXO4.mjs → DepositModalReown-TEC3MEZ4.mjs} +7 -7
- package/dist/{DepositModalReown-PZXHTPIS.cjs → DepositModalReown-VG66OTIU.cjs} +17 -17
- package/dist/{chunk-2AMRKYJ4.mjs → chunk-2TPSF77V.mjs} +4 -4
- package/dist/{chunk-YR43AAX5.mjs → chunk-3STTWRAN.mjs} +0 -5
- package/dist/{chunk-53IGTENZ.mjs → chunk-4ZXQPFNU.mjs} +1 -1
- package/dist/{chunk-XJB3VG4C.cjs → chunk-75DVGSAX.cjs} +2 -2
- package/dist/{chunk-LBJFACLH.cjs → chunk-BRYNGLDM.cjs} +77 -72
- package/dist/{chunk-EUIPQ3T4.mjs → chunk-FLVLYO64.mjs} +3 -3
- package/dist/{chunk-5IP67CL5.mjs → chunk-FXXUIK4E.mjs} +15 -10
- package/dist/{chunk-2PQ34KU3.cjs → chunk-HL5NUKZW.cjs} +3 -3
- package/dist/{chunk-GZNMBZHY.mjs → chunk-IAGFDSNC.mjs} +1 -1
- package/dist/{chunk-QF5T6HXC.mjs → chunk-J46WDSRD.mjs} +3 -4
- package/dist/{chunk-RMYUE6HJ.mjs → chunk-JE4R5VA3.mjs} +1 -1
- package/dist/{chunk-4SRVZRZF.cjs → chunk-L32UI7LA.cjs} +1 -1
- package/dist/{chunk-4R2ZHSDQ.cjs → chunk-O7BCVQ6L.cjs} +1 -6
- package/dist/{chunk-LTPVHQXJ.cjs → chunk-OIN4CXCP.cjs} +378 -378
- package/dist/{chunk-6ZJTZ7DS.cjs → chunk-PWLEBV5V.cjs} +78 -79
- package/dist/{chunk-Q5MFRAWD.mjs → chunk-SDSKIJC7.mjs} +6 -6
- package/dist/{chunk-WZJMJFP7.cjs → chunk-TM7VGHAG.cjs} +62 -62
- package/dist/{chunk-BK54FZAE.cjs → chunk-UQIJU6HV.cjs} +79 -79
- package/dist/claim.cjs +6 -6
- package/dist/claim.mjs +5 -5
- package/dist/constants.cjs +3 -3
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.mjs +2 -2
- package/dist/deposit.cjs +8 -8
- package/dist/deposit.mjs +7 -7
- package/dist/index.cjs +10 -10
- package/dist/index.mjs +9 -9
- package/dist/polymarket.cjs +5 -5
- package/dist/polymarket.mjs +2 -2
- package/dist/styles.css +9 -0
- package/dist/withdraw.cjs +6 -6
- package/dist/withdraw.mjs +5 -5
- package/package.json +1 -1
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 _chunkOIN4CXCPcjs = require('./chunk-OIN4CXCP.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
6
|
+
var _chunkUQIJU6HVcjs = require('./chunk-UQIJU6HV.cjs');
|
|
7
|
+
require('./chunk-PWLEBV5V.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
10
|
+
var _chunkTM7VGHAGcjs = require('./chunk-TM7VGHAG.cjs');
|
|
11
|
+
require('./chunk-HL5NUKZW.cjs');
|
|
12
|
+
require('./chunk-BRYNGLDM.cjs');
|
|
13
|
+
require('./chunk-L32UI7LA.cjs');
|
|
14
|
+
require('./chunk-75DVGSAX.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -44,7 +44,7 @@ require('./chunk-XJB3VG4C.cjs');
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
var
|
|
47
|
+
var _chunkO7BCVQ6Lcjs = require('./chunk-O7BCVQ6L.cjs');
|
|
48
48
|
|
|
49
49
|
// src/core/reown-disconnect.ts
|
|
50
50
|
async function disconnectWallet() {
|
|
@@ -101,4 +101,4 @@ async function disconnectWallet() {
|
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
|
|
104
|
-
exports.CHAIN_BY_ID =
|
|
104
|
+
exports.CHAIN_BY_ID = _chunkO7BCVQ6Lcjs.CHAIN_BY_ID; exports.ClaimModal = _chunkTM7VGHAGcjs.ClaimModal; exports.DepositModal = _chunkOIN4CXCPcjs.DepositModal; exports.HYPERCORE_CHAIN_ID = _chunkO7BCVQ6Lcjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_SPOT_CAIP2 = _chunkO7BCVQ6Lcjs.HYPERCORE_SPOT_CAIP2; exports.HYPERCORE_USDC_ADDRESS = _chunkO7BCVQ6Lcjs.HYPERCORE_USDC_ADDRESS; exports.HYPERCORE_USDT0_ADDRESS = _chunkO7BCVQ6Lcjs.HYPERCORE_USDT0_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkO7BCVQ6Lcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkO7BCVQ6Lcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkO7BCVQ6Lcjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkUQIJU6HVcjs.WithdrawModal; exports.chainRegistry = _chunkO7BCVQ6Lcjs.chainRegistry; exports.disconnectWallet = disconnectWallet; exports.findChainIdForToken = _chunkO7BCVQ6Lcjs.findChainIdForToken; exports.getChainBadge = _chunkO7BCVQ6Lcjs.getChainBadge; exports.getChainIcon = _chunkO7BCVQ6Lcjs.getChainIcon; exports.getChainId = _chunkO7BCVQ6Lcjs.getChainId; exports.getChainName = _chunkO7BCVQ6Lcjs.getChainName; exports.getChainObject = _chunkO7BCVQ6Lcjs.getChainObject; exports.getExplorerName = _chunkO7BCVQ6Lcjs.getExplorerName; exports.getExplorerTxUrl = _chunkO7BCVQ6Lcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkO7BCVQ6Lcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkO7BCVQ6Lcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkO7BCVQ6Lcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkO7BCVQ6Lcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkO7BCVQ6Lcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkO7BCVQ6Lcjs.getTokenAddress; exports.getTokenDecimals = _chunkO7BCVQ6Lcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkO7BCVQ6Lcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkO7BCVQ6Lcjs.getTokenIcon; exports.getTokenSymbol = _chunkO7BCVQ6Lcjs.getTokenSymbol; exports.getUsdcAddress = _chunkO7BCVQ6Lcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkO7BCVQ6Lcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkO7BCVQ6Lcjs.isSupportedTokenAddressForChain; exports.tokenIconUrl = _chunkO7BCVQ6Lcjs.tokenIconUrl;
|
package/dist/index.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SDSKIJC7.mjs";
|
|
4
4
|
import {
|
|
5
5
|
WithdrawModal
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-FLVLYO64.mjs";
|
|
7
|
+
import "./chunk-J46WDSRD.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-2TPSF77V.mjs";
|
|
11
|
+
import "./chunk-JE4R5VA3.mjs";
|
|
12
|
+
import "./chunk-FXXUIK4E.mjs";
|
|
13
|
+
import "./chunk-IAGFDSNC.mjs";
|
|
14
|
+
import "./chunk-4ZXQPFNU.mjs";
|
|
15
15
|
import {
|
|
16
16
|
CHAIN_BY_ID,
|
|
17
17
|
HYPERCORE_CHAIN_ID,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
getUsdcDecimals,
|
|
45
45
|
isSupportedTokenAddressForChain,
|
|
46
46
|
tokenIconUrl
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-3STTWRAN.mjs";
|
|
48
48
|
|
|
49
49
|
// src/core/reown-disconnect.ts
|
|
50
50
|
async function disconnectWallet() {
|
package/dist/polymarket.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
5
|
+
var _chunk75DVGSAXcjs = require('./chunk-75DVGSAX.cjs');
|
|
6
|
+
require('./chunk-O7BCVQ6L.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 _chunk75DVGSAXcjs.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 _chunk75DVGSAXcjs.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: _chunk75DVGSAXcjs.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-4ZXQPFNU.mjs";
|
|
6
|
+
import "./chunk-3STTWRAN.mjs";
|
|
7
7
|
|
|
8
8
|
// src/core/dapp-imports/polymarket/account.ts
|
|
9
9
|
import {
|
package/dist/styles.css
CHANGED
|
@@ -335,6 +335,15 @@
|
|
|
335
335
|
border-radius 240ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
336
336
|
}
|
|
337
337
|
|
|
338
|
+
/* The shell takes focus on open so the dialog is announced and Tab starts
|
|
339
|
+
inside it. It is a container, not a control, so the UA ring would outline
|
|
340
|
+
the whole modal and read as if the user had selected it. Keyboard users
|
|
341
|
+
lose nothing: the first Tab lands on a real control, which rings normally. */
|
|
342
|
+
.rs-modal-content:focus,
|
|
343
|
+
.rs-modal-content:focus-visible {
|
|
344
|
+
outline: none;
|
|
345
|
+
}
|
|
346
|
+
|
|
338
347
|
.rs-modal-content[data-theme="dark"] {
|
|
339
348
|
--rs-background: #0a0a0a;
|
|
340
349
|
--rs-border: #18181b;
|
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 _chunkUQIJU6HVcjs = require('./chunk-UQIJU6HV.cjs');
|
|
4
|
+
require('./chunk-PWLEBV5V.cjs');
|
|
5
|
+
require('./chunk-BRYNGLDM.cjs');
|
|
6
|
+
require('./chunk-L32UI7LA.cjs');
|
|
7
|
+
require('./chunk-O7BCVQ6L.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.WithdrawModal =
|
|
10
|
+
exports.WithdrawModal = _chunkUQIJU6HVcjs.WithdrawModal;
|
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-FLVLYO64.mjs";
|
|
4
|
+
import "./chunk-J46WDSRD.mjs";
|
|
5
|
+
import "./chunk-FXXUIK4E.mjs";
|
|
6
|
+
import "./chunk-IAGFDSNC.mjs";
|
|
7
|
+
import "./chunk-3STTWRAN.mjs";
|
|
8
8
|
export {
|
|
9
9
|
WithdrawModal
|
|
10
10
|
};
|