@rhinestone/deposit-modal 0.18.0 → 0.19.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 +49 -8
- package/dist/{DepositModalReown-TVO3ZQQK.cjs → DepositModalReown-UITYXJ6W.cjs} +16 -16
- package/dist/{DepositModalReown-VCY65DJX.mjs → DepositModalReown-XBNY6QCI.mjs} +3 -3
- package/dist/{WithdrawModal-RMCYJJ4S.mjs → WithdrawModal-DY6A55OA.mjs} +3 -3
- package/dist/WithdrawModal-V42OK7L3.cjs +11 -0
- package/dist/{chunk-AIZKGFVA.mjs → chunk-5NWLS5BQ.mjs} +69 -19
- package/dist/{chunk-R2B6VD4E.mjs → chunk-BIL4ENC3.mjs} +1 -1
- package/dist/{chunk-34JVJZEZ.cjs → chunk-EG4H7OMC.cjs} +71 -71
- package/dist/{chunk-N3AAT6BS.cjs → chunk-HMUGY66O.cjs} +226 -176
- package/dist/{chunk-O4JZKKCZ.cjs → chunk-ISLVD5HQ.cjs} +2 -2
- package/dist/{chunk-EKC2IRQG.mjs → chunk-NITKDXHR.mjs} +211 -31
- package/dist/{chunk-JV5OGG53.cjs → chunk-OCWSMLOP.cjs} +724 -544
- package/dist/{chunk-N6JJG57R.cjs → chunk-PYOC6K24.cjs} +1 -1
- package/dist/{chunk-3TEVMP76.mjs → chunk-X6N2XPTO.mjs} +1 -1
- package/dist/{chunk-X4EUXBHJ.mjs → chunk-ZGHVJ2XM.mjs} +1 -1
- package/dist/compliance.cjs +4 -4
- package/dist/compliance.mjs +2 -2
- package/dist/constants.cjs +2 -2
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.mjs +1 -1
- package/dist/deposit.cjs +4 -4
- package/dist/deposit.d.cts +2 -2
- package/dist/deposit.d.ts +2 -2
- package/dist/deposit.mjs +3 -3
- package/dist/embed.cjs +14 -14
- package/dist/embed.d.cts +1 -1
- package/dist/embed.d.ts +1 -1
- package/dist/embed.mjs +4 -4
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +4 -4
- package/dist/offramp.cjs +9 -9
- package/dist/offramp.mjs +7 -7
- package/dist/onramp.cjs +24 -11
- package/dist/onramp.d.cts +24 -6
- package/dist/onramp.d.ts +24 -6
- package/dist/onramp.mjs +22 -9
- package/dist/styles.css +25 -0
- package/dist/{types-CZYypODQ.d.ts → types-BOxa1DE-.d.ts} +37 -2
- package/dist/{types-CbUs4boj.d.cts → types-BShYNpvO.d.cts} +37 -2
- package/dist/withdraw.cjs +4 -4
- package/dist/withdraw.d.cts +2 -2
- package/dist/withdraw.d.ts +2 -2
- package/dist/withdraw.mjs +3 -3
- package/package.json +5 -5
- package/dist/WithdrawModal-GR3HLYXU.cjs +0 -11
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }// src/core/version.ts
|
|
2
|
-
var MODAL_VERSION = "0.
|
|
2
|
+
var MODAL_VERSION = "0.19.0";
|
|
3
3
|
var SERVICE_HEADERS = {
|
|
4
4
|
"Content-Type": "application/json",
|
|
5
5
|
"x-deposit-modal-version": MODAL_VERSION
|
package/dist/compliance.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunkISLVD5HQcjs = require('./chunk-ISLVD5HQ.cjs');
|
|
5
|
+
require('./chunk-PYOC6K24.cjs');
|
|
6
6
|
|
|
7
7
|
// src/core/compliance-service.ts
|
|
8
8
|
function getComplianceStatus(options) {
|
|
9
|
-
return
|
|
9
|
+
return _chunkISLVD5HQcjs.createBearerTransport.call(void 0, options)("/compliance/status");
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
exports.ScopedRequestError =
|
|
14
|
+
exports.ScopedRequestError = _chunkISLVD5HQcjs.ScopedRequestError; exports.getComplianceStatus = getComplianceStatus;
|
package/dist/compliance.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ScopedRequestError,
|
|
3
3
|
createBearerTransport
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-ZGHVJ2XM.mjs";
|
|
5
|
+
import "./chunk-X6N2XPTO.mjs";
|
|
6
6
|
|
|
7
7
|
// src/core/compliance-service.ts
|
|
8
8
|
function getComplianceStatus(options) {
|
package/dist/constants.cjs
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
var _chunkOY5N3E6Lcjs = require('./chunk-OY5N3E6L.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkPYOC6K24cjs = require('./chunk-PYOC6K24.cjs');
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
@@ -65,4 +65,4 @@ var _chunkN6JJG57Rcjs = require('./chunk-N6JJG57R.cjs');
|
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
exports.HYPERCORE_CHAIN_ID = _chunkOY5N3E6Lcjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_SPOT_CAIP2 = _chunkOY5N3E6Lcjs.HYPERCORE_SPOT_CAIP2; exports.HYPERCORE_USDC_ADDRESS = _chunkOY5N3E6Lcjs.HYPERCORE_USDC_ADDRESS; exports.MODAL_VERSION =
|
|
68
|
+
exports.HYPERCORE_CHAIN_ID = _chunkOY5N3E6Lcjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_SPOT_CAIP2 = _chunkOY5N3E6Lcjs.HYPERCORE_SPOT_CAIP2; exports.HYPERCORE_USDC_ADDRESS = _chunkOY5N3E6Lcjs.HYPERCORE_USDC_ADDRESS; exports.MODAL_VERSION = _chunkPYOC6K24cjs.MODAL_VERSION; exports.NATIVE_TOKEN_ADDRESS = _chunkOY5N3E6Lcjs.NATIVE_TOKEN_ADDRESS; exports.SOLANA_TOKENS = _chunkOY5N3E6Lcjs.SOLANA_TOKENS; exports.SUPPORTED_CHAIN_IDS = _chunkOY5N3E6Lcjs.SUPPORTED_CHAIN_IDS; exports.chainRegistry = _chunkOY5N3E6Lcjs.chainRegistry; exports.findChainIdForToken = _chunkOY5N3E6Lcjs.findChainIdForToken; exports.getChainBadge = _chunkOY5N3E6Lcjs.getChainBadge; exports.getChainIcon = _chunkOY5N3E6Lcjs.getChainIcon; exports.getChainId = _chunkOY5N3E6Lcjs.getChainId; exports.getChainName = _chunkOY5N3E6Lcjs.getChainName; exports.getExplorerName = _chunkOY5N3E6Lcjs.getExplorerName; exports.getExplorerTxUrl = _chunkOY5N3E6Lcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkOY5N3E6Lcjs.getExplorerUrl; exports.getSolanaTokenByMint = _chunkOY5N3E6Lcjs.getSolanaTokenByMint; exports.getSolanaTokenBySymbol = _chunkOY5N3E6Lcjs.getSolanaTokenBySymbol; exports.getSupportedChainIds = _chunkOY5N3E6Lcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkOY5N3E6Lcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkOY5N3E6Lcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkOY5N3E6Lcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkOY5N3E6Lcjs.getTokenAddress; exports.getTokenDecimals = _chunkOY5N3E6Lcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkOY5N3E6Lcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkOY5N3E6Lcjs.getTokenIcon; exports.getTokenSymbol = _chunkOY5N3E6Lcjs.getTokenSymbol; exports.getUsdcAddress = _chunkOY5N3E6Lcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkOY5N3E6Lcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkOY5N3E6Lcjs.isSupportedTokenAddressForChain; exports.tokenIconUrl = _chunkOY5N3E6Lcjs.tokenIconUrl;
|
package/dist/constants.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ export { N as NATIVE_TOKEN_ADDRESS, S as SUPPORTED_CHAIN_IDS, w as SupportedToke
|
|
|
2
2
|
export { H as HYPERCORE_CHAIN_ID, a as HYPERCORE_SPOT_CAIP2, b as HYPERCORE_USDC_ADDRESS } from './caip-BMi-9t09.cjs';
|
|
3
3
|
import 'viem';
|
|
4
4
|
|
|
5
|
-
declare const MODAL_VERSION = "0.
|
|
5
|
+
declare const MODAL_VERSION = "0.19.0";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Lightweight Solana token registry — no `@solana/web3.js` dependency, so it
|
package/dist/constants.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { N as NATIVE_TOKEN_ADDRESS, S as SUPPORTED_CHAIN_IDS, w as SupportedToke
|
|
|
2
2
|
export { H as HYPERCORE_CHAIN_ID, a as HYPERCORE_SPOT_CAIP2, b as HYPERCORE_USDC_ADDRESS } from './caip-BMi-9t09.js';
|
|
3
3
|
import 'viem';
|
|
4
4
|
|
|
5
|
-
declare const MODAL_VERSION = "0.
|
|
5
|
+
declare const MODAL_VERSION = "0.19.0";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Lightweight Solana token registry — no `@solana/web3.js` dependency, so it
|
package/dist/constants.mjs
CHANGED
package/dist/deposit.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkOCWSMLOPcjs = require('./chunk-OCWSMLOP.cjs');
|
|
4
4
|
require('./chunk-LVCD6RHF.cjs');
|
|
5
|
-
require('./chunk-
|
|
5
|
+
require('./chunk-HMUGY66O.cjs');
|
|
6
6
|
require('./chunk-OY5N3E6L.cjs');
|
|
7
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-PYOC6K24.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.DepositModal =
|
|
10
|
+
exports.DepositModal = _chunkOCWSMLOPcjs.DepositModal;
|
package/dist/deposit.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { O as DepositModalProps } from './types-
|
|
3
|
-
export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, d as AssetMigrationsConfig, e as AssetOption, f as ClaimAnalyticsAbandonmentReason, g as ClaimAnalyticsCloseSource, h as ClaimAnalyticsCorrelation, i as ClaimAnalyticsEntrySource, j as ClaimAnalyticsEvent, k as ClaimAnalyticsEventPayload, l as ClaimAnalyticsFailureReason, m as ClaimAnalyticsSessionProperties, n as ClaimAnalyticsStep, o as ClaimAnalyticsUiOutcome, p as ConnectedEventData, D as DepositAnalyticsAbandonmentReason, q as DepositAnalyticsCloseSource, r as DepositAnalyticsCorrelator, s as DepositAnalyticsEvent, t as DepositAnalyticsEventPayload, u as DepositAnalyticsExchangeStep, v as DepositAnalyticsFailureReason, w as DepositAnalyticsFiatStep, x as DepositAnalyticsMigrationStep, y as DepositAnalyticsSessionProperties, z as DepositAnalyticsSharedStep, B as DepositAnalyticsStep, E as DepositAnalyticsTransferStep, F as DepositAnalyticsUiOutcome, G as DepositAnalyticsWalletStep, H as DepositAssetMigrationMethodIdentifiers, I as DepositCompleteEventData, J as DepositExchangeConnectMethodIdentifiers, K as DepositFailedEventData, L as DepositFiatOnrampMethodIdentifiers, M as DepositFundingMethod, P as DepositModalTheme, Q as DepositModalUIConfig, R as DepositSubmittedEventData, S as DepositTransferHandoffIdentifiers, T as DepositWalletIntegration, U as DepositWalletMethodIdentifiers, V as ErrorEventData, W as FiatMethodsConfig, X as HistoryAnalyticsBadge, Y as HistoryClaimEntrySource, Z as HistoryStatus, a0 as
|
|
2
|
+
import { O as DepositModalProps } from './types-BShYNpvO.cjs';
|
|
3
|
+
export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, d as AssetMigrationsConfig, e as AssetOption, f as ClaimAnalyticsAbandonmentReason, g as ClaimAnalyticsCloseSource, h as ClaimAnalyticsCorrelation, i as ClaimAnalyticsEntrySource, j as ClaimAnalyticsEvent, k as ClaimAnalyticsEventPayload, l as ClaimAnalyticsFailureReason, m as ClaimAnalyticsSessionProperties, n as ClaimAnalyticsStep, o as ClaimAnalyticsUiOutcome, p as ConnectedEventData, D as DepositAnalyticsAbandonmentReason, q as DepositAnalyticsCloseSource, r as DepositAnalyticsCorrelator, s as DepositAnalyticsEvent, t as DepositAnalyticsEventPayload, u as DepositAnalyticsExchangeStep, v as DepositAnalyticsFailureReason, w as DepositAnalyticsFiatStep, x as DepositAnalyticsMigrationStep, y as DepositAnalyticsSessionProperties, z as DepositAnalyticsSharedStep, B as DepositAnalyticsStep, E as DepositAnalyticsTransferStep, F as DepositAnalyticsUiOutcome, G as DepositAnalyticsWalletStep, H as DepositAssetMigrationMethodIdentifiers, I as DepositCompleteEventData, J as DepositExchangeConnectMethodIdentifiers, K as DepositFailedEventData, L as DepositFiatOnrampMethodIdentifiers, M as DepositFundingMethod, P as DepositModalTheme, Q as DepositModalUIConfig, R as DepositSubmittedEventData, S as DepositTransferHandoffIdentifiers, T as DepositWalletIntegration, U as DepositWalletMethodIdentifiers, V as ErrorEventData, W as FiatMethodsConfig, X as HistoryAnalyticsBadge, Y as HistoryClaimEntrySource, Z as HistoryStatus, a0 as PaymentConfig, a1 as RecoveryErrorCode, a2 as RpcUrlMap, a3 as SignRecovery, a4 as SignRecoveryPayload } from './types-BShYNpvO.cjs';
|
|
4
4
|
import './caip-BMi-9t09.cjs';
|
|
5
5
|
import 'viem';
|
|
6
6
|
|
package/dist/deposit.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { O as DepositModalProps } from './types-
|
|
3
|
-
export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, d as AssetMigrationsConfig, e as AssetOption, f as ClaimAnalyticsAbandonmentReason, g as ClaimAnalyticsCloseSource, h as ClaimAnalyticsCorrelation, i as ClaimAnalyticsEntrySource, j as ClaimAnalyticsEvent, k as ClaimAnalyticsEventPayload, l as ClaimAnalyticsFailureReason, m as ClaimAnalyticsSessionProperties, n as ClaimAnalyticsStep, o as ClaimAnalyticsUiOutcome, p as ConnectedEventData, D as DepositAnalyticsAbandonmentReason, q as DepositAnalyticsCloseSource, r as DepositAnalyticsCorrelator, s as DepositAnalyticsEvent, t as DepositAnalyticsEventPayload, u as DepositAnalyticsExchangeStep, v as DepositAnalyticsFailureReason, w as DepositAnalyticsFiatStep, x as DepositAnalyticsMigrationStep, y as DepositAnalyticsSessionProperties, z as DepositAnalyticsSharedStep, B as DepositAnalyticsStep, E as DepositAnalyticsTransferStep, F as DepositAnalyticsUiOutcome, G as DepositAnalyticsWalletStep, H as DepositAssetMigrationMethodIdentifiers, I as DepositCompleteEventData, J as DepositExchangeConnectMethodIdentifiers, K as DepositFailedEventData, L as DepositFiatOnrampMethodIdentifiers, M as DepositFundingMethod, P as DepositModalTheme, Q as DepositModalUIConfig, R as DepositSubmittedEventData, S as DepositTransferHandoffIdentifiers, T as DepositWalletIntegration, U as DepositWalletMethodIdentifiers, V as ErrorEventData, W as FiatMethodsConfig, X as HistoryAnalyticsBadge, Y as HistoryClaimEntrySource, Z as HistoryStatus, a0 as
|
|
2
|
+
import { O as DepositModalProps } from './types-BOxa1DE-.js';
|
|
3
|
+
export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, d as AssetMigrationsConfig, e as AssetOption, f as ClaimAnalyticsAbandonmentReason, g as ClaimAnalyticsCloseSource, h as ClaimAnalyticsCorrelation, i as ClaimAnalyticsEntrySource, j as ClaimAnalyticsEvent, k as ClaimAnalyticsEventPayload, l as ClaimAnalyticsFailureReason, m as ClaimAnalyticsSessionProperties, n as ClaimAnalyticsStep, o as ClaimAnalyticsUiOutcome, p as ConnectedEventData, D as DepositAnalyticsAbandonmentReason, q as DepositAnalyticsCloseSource, r as DepositAnalyticsCorrelator, s as DepositAnalyticsEvent, t as DepositAnalyticsEventPayload, u as DepositAnalyticsExchangeStep, v as DepositAnalyticsFailureReason, w as DepositAnalyticsFiatStep, x as DepositAnalyticsMigrationStep, y as DepositAnalyticsSessionProperties, z as DepositAnalyticsSharedStep, B as DepositAnalyticsStep, E as DepositAnalyticsTransferStep, F as DepositAnalyticsUiOutcome, G as DepositAnalyticsWalletStep, H as DepositAssetMigrationMethodIdentifiers, I as DepositCompleteEventData, J as DepositExchangeConnectMethodIdentifiers, K as DepositFailedEventData, L as DepositFiatOnrampMethodIdentifiers, M as DepositFundingMethod, P as DepositModalTheme, Q as DepositModalUIConfig, R as DepositSubmittedEventData, S as DepositTransferHandoffIdentifiers, T as DepositWalletIntegration, U as DepositWalletMethodIdentifiers, V as ErrorEventData, W as FiatMethodsConfig, X as HistoryAnalyticsBadge, Y as HistoryClaimEntrySource, Z as HistoryStatus, a0 as PaymentConfig, a1 as RecoveryErrorCode, a2 as RpcUrlMap, a3 as SignRecovery, a4 as SignRecoveryPayload } from './types-BOxa1DE-.js';
|
|
4
4
|
import './caip-BMi-9t09.js';
|
|
5
5
|
import 'viem';
|
|
6
6
|
|
package/dist/deposit.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NITKDXHR.mjs";
|
|
4
4
|
import "./chunk-FTWKAJGN.mjs";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-5NWLS5BQ.mjs";
|
|
6
6
|
import "./chunk-EAGMY3QE.mjs";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-X6N2XPTO.mjs";
|
|
8
8
|
export {
|
|
9
9
|
DepositModal
|
|
10
10
|
};
|
package/dist/embed.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkOCWSMLOPcjs = require('./chunk-OCWSMLOP.cjs');
|
|
4
4
|
require('./chunk-LVCD6RHF.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkHMUGY66Ocjs = require('./chunk-HMUGY66O.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -13,7 +13,7 @@ var _chunkOY5N3E6Lcjs = require('./chunk-OY5N3E6L.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkPYOC6K24cjs = require('./chunk-PYOC6K24.cjs');
|
|
17
17
|
|
|
18
18
|
// src/embed.tsx
|
|
19
19
|
var _react = require('react');
|
|
@@ -691,7 +691,7 @@ function assertResultShape(method, result) {
|
|
|
691
691
|
`${method}: ${detail}`
|
|
692
692
|
)
|
|
693
693
|
);
|
|
694
|
-
throw SUBMITTING_WALLET_METHODS.includes(method) ?
|
|
694
|
+
throw SUBMITTING_WALLET_METHODS.includes(method) ? _chunkHMUGY66Ocjs.markSubmissionUncertain.call(void 0, error) : error;
|
|
695
695
|
};
|
|
696
696
|
switch (method) {
|
|
697
697
|
case "eth_sendTransaction":
|
|
@@ -743,7 +743,7 @@ function createBridgedWalletSession(options) {
|
|
|
743
743
|
);
|
|
744
744
|
} catch (error) {
|
|
745
745
|
if (submitting && isBridgeRequestError(error) && error.code === -32603) {
|
|
746
|
-
throw
|
|
746
|
+
throw _chunkHMUGY66Ocjs.markSubmissionUncertain.call(void 0,
|
|
747
747
|
new BridgeRequestError(
|
|
748
748
|
bridgeError(
|
|
749
749
|
BridgeErrorCode.SUBMISSION_UNCERTAIN,
|
|
@@ -754,7 +754,7 @@ function createBridgedWalletSession(options) {
|
|
|
754
754
|
);
|
|
755
755
|
}
|
|
756
756
|
if (submitting && isBridgeCode(error, BridgeErrorCode.SUBMISSION_UNCERTAIN)) {
|
|
757
|
-
throw
|
|
757
|
+
throw _chunkHMUGY66Ocjs.markSubmissionUncertain.call(void 0, error);
|
|
758
758
|
}
|
|
759
759
|
throw error;
|
|
760
760
|
}
|
|
@@ -873,7 +873,7 @@ async function connectToHost(options) {
|
|
|
873
873
|
});
|
|
874
874
|
const params = {
|
|
875
875
|
protocol: PROTOCOL_VERSION,
|
|
876
|
-
modalVersion:
|
|
876
|
+
modalVersion: _chunkPYOC6K24cjs.MODAL_VERSION
|
|
877
877
|
};
|
|
878
878
|
let raw;
|
|
879
879
|
try {
|
|
@@ -959,12 +959,12 @@ async function requestHostTransfer(transport, params) {
|
|
|
959
959
|
);
|
|
960
960
|
} catch (error) {
|
|
961
961
|
if (error instanceof Error && isBridgeCode(error, BridgeErrorCode.SUBMISSION_UNCERTAIN)) {
|
|
962
|
-
throw
|
|
962
|
+
throw _chunkHMUGY66Ocjs.markSubmissionUncertain.call(void 0, error);
|
|
963
963
|
}
|
|
964
964
|
throw error;
|
|
965
965
|
}
|
|
966
966
|
if (!isTxHash(_optionalChain([result, 'optionalAccess', _25 => _25.txHash]))) {
|
|
967
|
-
throw
|
|
967
|
+
throw _chunkHMUGY66Ocjs.markSubmissionUncertain.call(void 0,
|
|
968
968
|
new Error(
|
|
969
969
|
"The app did not return a transaction hash. Check your activity before trying again."
|
|
970
970
|
)
|
|
@@ -1109,7 +1109,7 @@ var UNKNOWN_SCREEN = "unknown";
|
|
|
1109
1109
|
// src/embed.tsx
|
|
1110
1110
|
var _jsxruntime = require('react/jsx-runtime');
|
|
1111
1111
|
var WithdrawModal = _react.lazy.call(void 0,
|
|
1112
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModal-
|
|
1112
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModal-V42OK7L3.cjs"))).then((m) => ({ default: m.WithdrawModal }))
|
|
1113
1113
|
);
|
|
1114
1114
|
function missingField(config, keys) {
|
|
1115
1115
|
const missing = keys.find(
|
|
@@ -1338,11 +1338,11 @@ function DepositEmbed({ target, onFatal }) {
|
|
|
1338
1338
|
_optionalChain([back, 'optionalCall', _33 => _33()]);
|
|
1339
1339
|
return { handled: Boolean(back) };
|
|
1340
1340
|
});
|
|
1341
|
-
|
|
1341
|
+
_chunkPYOC6K24cjs.setEmbedHost.call(void 0, next.hello.host);
|
|
1342
1342
|
setSession(next);
|
|
1343
1343
|
setChannelScope(next.channelScope);
|
|
1344
1344
|
setConfig(sanitizeConfig(next.hello.config));
|
|
1345
|
-
void
|
|
1345
|
+
void _chunkHMUGY66Ocjs.primeRuntimeChains.call(void 0, next.hello.config.backendUrl).then((result) => {
|
|
1346
1346
|
chains = result;
|
|
1347
1347
|
});
|
|
1348
1348
|
} catch (error) {
|
|
@@ -1352,7 +1352,7 @@ function DepositEmbed({ target, onFatal }) {
|
|
|
1352
1352
|
return () => {
|
|
1353
1353
|
live = false;
|
|
1354
1354
|
_optionalChain([opened, 'optionalAccess', _36 => _36.close, 'call', _37 => _37()]);
|
|
1355
|
-
|
|
1355
|
+
_chunkPYOC6K24cjs.setEmbedHost.call(void 0, null);
|
|
1356
1356
|
};
|
|
1357
1357
|
}, [target]);
|
|
1358
1358
|
const handleUiState = _react.useCallback.call(void 0,
|
|
@@ -1491,7 +1491,7 @@ function DepositEmbed({ target, onFatal }) {
|
|
|
1491
1491
|
) });
|
|
1492
1492
|
}
|
|
1493
1493
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1494
|
-
|
|
1494
|
+
_chunkOCWSMLOPcjs.DepositModalInner,
|
|
1495
1495
|
{
|
|
1496
1496
|
...toModalProps(ready, canOpenExternally, walletWithheld),
|
|
1497
1497
|
openExternally: canOpenExternally ? openExternally : void 0,
|
package/dist/embed.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { d as TargetChain } from './caip-BMi-9t09.cjs';
|
|
3
|
-
import { $ as OutputTokenRule, W as FiatMethodsConfig, d as AssetMigrationsConfig, P as DepositModalTheme, Q as DepositModalUIConfig } from './types-
|
|
3
|
+
import { $ as OutputTokenRule, W as FiatMethodsConfig, d as AssetMigrationsConfig, P as DepositModalTheme, Q as DepositModalUIConfig } from './types-BShYNpvO.cjs';
|
|
4
4
|
import { WalletClient, PublicClient, Address } from 'viem';
|
|
5
5
|
import { Transaction, Connection } from '@solana/web3.js';
|
|
6
6
|
|
package/dist/embed.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { d as TargetChain } from './caip-BMi-9t09.js';
|
|
3
|
-
import { $ as OutputTokenRule, W as FiatMethodsConfig, d as AssetMigrationsConfig, P as DepositModalTheme, Q as DepositModalUIConfig } from './types-
|
|
3
|
+
import { $ as OutputTokenRule, W as FiatMethodsConfig, d as AssetMigrationsConfig, P as DepositModalTheme, Q as DepositModalUIConfig } from './types-BOxa1DE-.js';
|
|
4
4
|
import { WalletClient, PublicClient, Address } from 'viem';
|
|
5
5
|
import { Transaction, Connection } from '@solana/web3.js';
|
|
6
6
|
|
package/dist/embed.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModalInner
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NITKDXHR.mjs";
|
|
4
4
|
import "./chunk-FTWKAJGN.mjs";
|
|
5
5
|
import {
|
|
6
6
|
markSubmissionUncertain,
|
|
7
7
|
primeRuntimeChains
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5NWLS5BQ.mjs";
|
|
9
9
|
import {
|
|
10
10
|
getChainName,
|
|
11
11
|
isTargetChain
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
MODAL_VERSION,
|
|
15
15
|
setEmbedHost
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-X6N2XPTO.mjs";
|
|
17
17
|
|
|
18
18
|
// src/embed.tsx
|
|
19
19
|
import { Suspense, lazy, useCallback, useEffect, useRef, useState } from "react";
|
|
@@ -1109,7 +1109,7 @@ var UNKNOWN_SCREEN = "unknown";
|
|
|
1109
1109
|
// src/embed.tsx
|
|
1110
1110
|
import { jsx } from "react/jsx-runtime";
|
|
1111
1111
|
var WithdrawModal = lazy(
|
|
1112
|
-
() => import("./WithdrawModal-
|
|
1112
|
+
() => import("./WithdrawModal-DY6A55OA.mjs").then((m) => ({ default: m.WithdrawModal }))
|
|
1113
1113
|
);
|
|
1114
1114
|
function missingField(config, keys) {
|
|
1115
1115
|
const missing = keys.find(
|
package/dist/index.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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 _chunkEG4H7OMCcjs = require('./chunk-EG4H7OMC.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkOCWSMLOPcjs = require('./chunk-OCWSMLOP.cjs');
|
|
7
7
|
require('./chunk-LVCD6RHF.cjs');
|
|
8
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-HMUGY66O.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -38,7 +38,7 @@ require('./chunk-N3AAT6BS.cjs');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
var _chunkOY5N3E6Lcjs = require('./chunk-OY5N3E6L.cjs');
|
|
41
|
-
require('./chunk-
|
|
41
|
+
require('./chunk-PYOC6K24.cjs');
|
|
42
42
|
|
|
43
43
|
// src/core/reown-disconnect.ts
|
|
44
44
|
async function disconnectWallet() {
|
|
@@ -93,4 +93,4 @@ async function disconnectWallet() {
|
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
|
|
96
|
-
exports.DepositModal =
|
|
96
|
+
exports.DepositModal = _chunkOCWSMLOPcjs.DepositModal; exports.HYPERCORE_CHAIN_ID = _chunkOY5N3E6Lcjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_SPOT_CAIP2 = _chunkOY5N3E6Lcjs.HYPERCORE_SPOT_CAIP2; exports.HYPERCORE_USDC_ADDRESS = _chunkOY5N3E6Lcjs.HYPERCORE_USDC_ADDRESS; exports.HYPERCORE_USDT0_ADDRESS = _chunkOY5N3E6Lcjs.HYPERCORE_USDT0_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkOY5N3E6Lcjs.NATIVE_TOKEN_ADDRESS; exports.STELLAR_PUBNET_CAIP2 = _chunkOY5N3E6Lcjs.STELLAR_PUBNET_CAIP2; exports.SUPPORTED_CHAIN_IDS = _chunkOY5N3E6Lcjs.SUPPORTED_CHAIN_IDS; exports.TRON_MAINNET_CAIP2 = _chunkOY5N3E6Lcjs.TRON_MAINNET_CAIP2; exports.WithdrawModal = _chunkEG4H7OMCcjs.WithdrawModal; exports.chainRegistry = _chunkOY5N3E6Lcjs.chainRegistry; exports.disconnectWallet = disconnectWallet; exports.findChainIdForToken = _chunkOY5N3E6Lcjs.findChainIdForToken; exports.getChainBadge = _chunkOY5N3E6Lcjs.getChainBadge; exports.getChainIcon = _chunkOY5N3E6Lcjs.getChainIcon; exports.getChainId = _chunkOY5N3E6Lcjs.getChainId; exports.getChainName = _chunkOY5N3E6Lcjs.getChainName; exports.getExplorerName = _chunkOY5N3E6Lcjs.getExplorerName; exports.getExplorerTxUrl = _chunkOY5N3E6Lcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkOY5N3E6Lcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkOY5N3E6Lcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkOY5N3E6Lcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkOY5N3E6Lcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkOY5N3E6Lcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkOY5N3E6Lcjs.getTokenAddress; exports.getTokenDecimals = _chunkOY5N3E6Lcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkOY5N3E6Lcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkOY5N3E6Lcjs.getTokenIcon; exports.getTokenSymbol = _chunkOY5N3E6Lcjs.getTokenSymbol; exports.getUsdcAddress = _chunkOY5N3E6Lcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkOY5N3E6Lcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkOY5N3E6Lcjs.isSupportedTokenAddressForChain; exports.tokenIconUrl = _chunkOY5N3E6Lcjs.tokenIconUrl;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { DepositModal } from './deposit.cjs';
|
|
2
2
|
export { WithdrawModal } from './withdraw.cjs';
|
|
3
|
-
export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, d as AssetMigrationsConfig, e as AssetOption, C as ChainId, f as ClaimAnalyticsAbandonmentReason, g as ClaimAnalyticsCloseSource, h as ClaimAnalyticsCorrelation, i as ClaimAnalyticsEntrySource, j as ClaimAnalyticsEvent, k as ClaimAnalyticsEventPayload, l as ClaimAnalyticsFailureReason, m as ClaimAnalyticsSessionProperties, n as ClaimAnalyticsStep, o as ClaimAnalyticsUiOutcome, p as ConnectedEventData, D as DepositAnalyticsAbandonmentReason, q as DepositAnalyticsCloseSource, r as DepositAnalyticsCorrelator, s as DepositAnalyticsEvent, t as DepositAnalyticsEventPayload, u as DepositAnalyticsExchangeStep, v as DepositAnalyticsFailureReason, w as DepositAnalyticsFiatStep, x as DepositAnalyticsMigrationStep, y as DepositAnalyticsSessionProperties, z as DepositAnalyticsSharedStep, B as DepositAnalyticsStep, E as DepositAnalyticsTransferStep, F as DepositAnalyticsUiOutcome, G as DepositAnalyticsWalletStep, H as DepositAssetMigrationMethodIdentifiers, I as DepositCompleteEventData, J as DepositExchangeConnectMethodIdentifiers, K as DepositFailedEventData, L as DepositFiatOnrampMethodIdentifiers, M as DepositFundingMethod, N as DepositLifecycleEvent, O as DepositModalProps, P as DepositModalTheme, Q as DepositModalUIConfig, R as DepositSubmittedEventData, S as DepositTransferHandoffIdentifiers, T as DepositWalletIntegration, U as DepositWalletMethodIdentifiers, V as ErrorEventData, W as FiatMethodsConfig, X as HistoryAnalyticsBadge, Y as HistoryClaimEntrySource, Z as HistoryStatus, _ as ModalAnalyticsEvent, $ as OutputTokenRule, a0 as
|
|
3
|
+
export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, d as AssetMigrationsConfig, e as AssetOption, C as ChainId, f as ClaimAnalyticsAbandonmentReason, g as ClaimAnalyticsCloseSource, h as ClaimAnalyticsCorrelation, i as ClaimAnalyticsEntrySource, j as ClaimAnalyticsEvent, k as ClaimAnalyticsEventPayload, l as ClaimAnalyticsFailureReason, m as ClaimAnalyticsSessionProperties, n as ClaimAnalyticsStep, o as ClaimAnalyticsUiOutcome, p as ConnectedEventData, D as DepositAnalyticsAbandonmentReason, q as DepositAnalyticsCloseSource, r as DepositAnalyticsCorrelator, s as DepositAnalyticsEvent, t as DepositAnalyticsEventPayload, u as DepositAnalyticsExchangeStep, v as DepositAnalyticsFailureReason, w as DepositAnalyticsFiatStep, x as DepositAnalyticsMigrationStep, y as DepositAnalyticsSessionProperties, z as DepositAnalyticsSharedStep, B as DepositAnalyticsStep, E as DepositAnalyticsTransferStep, F as DepositAnalyticsUiOutcome, G as DepositAnalyticsWalletStep, H as DepositAssetMigrationMethodIdentifiers, I as DepositCompleteEventData, J as DepositExchangeConnectMethodIdentifiers, K as DepositFailedEventData, L as DepositFiatOnrampMethodIdentifiers, M as DepositFundingMethod, N as DepositLifecycleEvent, O as DepositModalProps, P as DepositModalTheme, Q as DepositModalUIConfig, R as DepositSubmittedEventData, S as DepositTransferHandoffIdentifiers, T as DepositWalletIntegration, U as DepositWalletMethodIdentifiers, V as ErrorEventData, W as FiatMethodsConfig, X as HistoryAnalyticsBadge, Y as HistoryClaimEntrySource, Z as HistoryStatus, _ as ModalAnalyticsEvent, $ as OutputTokenRule, a0 as PaymentConfig, a1 as RecoveryErrorCode, a2 as RpcUrlMap, a3 as SignRecovery, a4 as SignRecoveryPayload, a5 as WithdrawAnalyticsAbandonmentReason, a6 as WithdrawAnalyticsCloseSource, a7 as WithdrawAnalyticsEvent, a8 as WithdrawAnalyticsEventPayload, a9 as WithdrawAnalyticsFailureReason, aa as WithdrawAnalyticsSessionProperties, ab as WithdrawAnalyticsStep, ac as WithdrawAnalyticsUiOutcome, ad as WithdrawCompleteEventData, ae as WithdrawFailedEventData, af as WithdrawLifecycleEvent, ag as WithdrawModalProps, ah as WithdrawSubmittedEventData, ai as WithdrawTransferRequest } from './types-BShYNpvO.cjs';
|
|
4
4
|
export { PolymarketAccount, PolymarketTokenBalance } from './polymarket.cjs';
|
|
5
5
|
export { N as NATIVE_TOKEN_ADDRESS, S as SUPPORTED_CHAIN_IDS, c as chainRegistry, f as findChainIdForToken, g as getChainBadge, a as getChainIcon, b as getChainId, d as getChainName, e as getExplorerName, h as getExplorerTxUrl, i as getExplorerUrl, j as getSupportedChainIds, k as getSupportedTargetTokens, l as getSupportedTokenSymbolsForChain, m as getTargetTokenSymbolsForChain, n as getTokenAddress, o as getTokenDecimals, p as getTokenDecimalsByAddress, q as getTokenIcon, r as getTokenSymbol, s as getUsdcAddress, t as getUsdcDecimals, u as isSupportedTokenAddressForChain, v as tokenIconUrl } from './constants-BT4ctuHo.cjs';
|
|
6
6
|
export { D as DisplayChainId, H as HYPERCORE_CHAIN_ID, a as HYPERCORE_SPOT_CAIP2, b as HYPERCORE_USDC_ADDRESS, c as HYPERCORE_USDT0_ADDRESS, S as STELLAR_PUBNET_CAIP2, T as TRON_MAINNET_CAIP2, d as TargetChain } from './caip-BMi-9t09.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { DepositModal } from './deposit.js';
|
|
2
2
|
export { WithdrawModal } from './withdraw.js';
|
|
3
|
-
export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, d as AssetMigrationsConfig, e as AssetOption, C as ChainId, f as ClaimAnalyticsAbandonmentReason, g as ClaimAnalyticsCloseSource, h as ClaimAnalyticsCorrelation, i as ClaimAnalyticsEntrySource, j as ClaimAnalyticsEvent, k as ClaimAnalyticsEventPayload, l as ClaimAnalyticsFailureReason, m as ClaimAnalyticsSessionProperties, n as ClaimAnalyticsStep, o as ClaimAnalyticsUiOutcome, p as ConnectedEventData, D as DepositAnalyticsAbandonmentReason, q as DepositAnalyticsCloseSource, r as DepositAnalyticsCorrelator, s as DepositAnalyticsEvent, t as DepositAnalyticsEventPayload, u as DepositAnalyticsExchangeStep, v as DepositAnalyticsFailureReason, w as DepositAnalyticsFiatStep, x as DepositAnalyticsMigrationStep, y as DepositAnalyticsSessionProperties, z as DepositAnalyticsSharedStep, B as DepositAnalyticsStep, E as DepositAnalyticsTransferStep, F as DepositAnalyticsUiOutcome, G as DepositAnalyticsWalletStep, H as DepositAssetMigrationMethodIdentifiers, I as DepositCompleteEventData, J as DepositExchangeConnectMethodIdentifiers, K as DepositFailedEventData, L as DepositFiatOnrampMethodIdentifiers, M as DepositFundingMethod, N as DepositLifecycleEvent, O as DepositModalProps, P as DepositModalTheme, Q as DepositModalUIConfig, R as DepositSubmittedEventData, S as DepositTransferHandoffIdentifiers, T as DepositWalletIntegration, U as DepositWalletMethodIdentifiers, V as ErrorEventData, W as FiatMethodsConfig, X as HistoryAnalyticsBadge, Y as HistoryClaimEntrySource, Z as HistoryStatus, _ as ModalAnalyticsEvent, $ as OutputTokenRule, a0 as
|
|
3
|
+
export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, d as AssetMigrationsConfig, e as AssetOption, C as ChainId, f as ClaimAnalyticsAbandonmentReason, g as ClaimAnalyticsCloseSource, h as ClaimAnalyticsCorrelation, i as ClaimAnalyticsEntrySource, j as ClaimAnalyticsEvent, k as ClaimAnalyticsEventPayload, l as ClaimAnalyticsFailureReason, m as ClaimAnalyticsSessionProperties, n as ClaimAnalyticsStep, o as ClaimAnalyticsUiOutcome, p as ConnectedEventData, D as DepositAnalyticsAbandonmentReason, q as DepositAnalyticsCloseSource, r as DepositAnalyticsCorrelator, s as DepositAnalyticsEvent, t as DepositAnalyticsEventPayload, u as DepositAnalyticsExchangeStep, v as DepositAnalyticsFailureReason, w as DepositAnalyticsFiatStep, x as DepositAnalyticsMigrationStep, y as DepositAnalyticsSessionProperties, z as DepositAnalyticsSharedStep, B as DepositAnalyticsStep, E as DepositAnalyticsTransferStep, F as DepositAnalyticsUiOutcome, G as DepositAnalyticsWalletStep, H as DepositAssetMigrationMethodIdentifiers, I as DepositCompleteEventData, J as DepositExchangeConnectMethodIdentifiers, K as DepositFailedEventData, L as DepositFiatOnrampMethodIdentifiers, M as DepositFundingMethod, N as DepositLifecycleEvent, O as DepositModalProps, P as DepositModalTheme, Q as DepositModalUIConfig, R as DepositSubmittedEventData, S as DepositTransferHandoffIdentifiers, T as DepositWalletIntegration, U as DepositWalletMethodIdentifiers, V as ErrorEventData, W as FiatMethodsConfig, X as HistoryAnalyticsBadge, Y as HistoryClaimEntrySource, Z as HistoryStatus, _ as ModalAnalyticsEvent, $ as OutputTokenRule, a0 as PaymentConfig, a1 as RecoveryErrorCode, a2 as RpcUrlMap, a3 as SignRecovery, a4 as SignRecoveryPayload, a5 as WithdrawAnalyticsAbandonmentReason, a6 as WithdrawAnalyticsCloseSource, a7 as WithdrawAnalyticsEvent, a8 as WithdrawAnalyticsEventPayload, a9 as WithdrawAnalyticsFailureReason, aa as WithdrawAnalyticsSessionProperties, ab as WithdrawAnalyticsStep, ac as WithdrawAnalyticsUiOutcome, ad as WithdrawCompleteEventData, ae as WithdrawFailedEventData, af as WithdrawLifecycleEvent, ag as WithdrawModalProps, ah as WithdrawSubmittedEventData, ai as WithdrawTransferRequest } from './types-BOxa1DE-.js';
|
|
4
4
|
export { PolymarketAccount, PolymarketTokenBalance } from './polymarket.js';
|
|
5
5
|
export { N as NATIVE_TOKEN_ADDRESS, S as SUPPORTED_CHAIN_IDS, c as chainRegistry, f as findChainIdForToken, g as getChainBadge, a as getChainIcon, b as getChainId, d as getChainName, e as getExplorerName, h as getExplorerTxUrl, i as getExplorerUrl, j as getSupportedChainIds, k as getSupportedTargetTokens, l as getSupportedTokenSymbolsForChain, m as getTargetTokenSymbolsForChain, n as getTokenAddress, o as getTokenDecimals, p as getTokenDecimalsByAddress, q as getTokenIcon, r as getTokenSymbol, s as getUsdcAddress, t as getUsdcDecimals, u as isSupportedTokenAddressForChain, v as tokenIconUrl } from './constants-D21ZdNOP.js';
|
|
6
6
|
export { D as DisplayChainId, H as HYPERCORE_CHAIN_ID, a as HYPERCORE_SPOT_CAIP2, b as HYPERCORE_USDC_ADDRESS, c as HYPERCORE_USDT0_ADDRESS, S as STELLAR_PUBNET_CAIP2, T as TRON_MAINNET_CAIP2, d as TargetChain } from './caip-BMi-9t09.js';
|
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WithdrawModal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BIL4ENC3.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DepositModal
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NITKDXHR.mjs";
|
|
7
7
|
import "./chunk-FTWKAJGN.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-5NWLS5BQ.mjs";
|
|
9
9
|
import {
|
|
10
10
|
HYPERCORE_CHAIN_ID,
|
|
11
11
|
HYPERCORE_SPOT_CAIP2,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
isSupportedTokenAddressForChain,
|
|
39
39
|
tokenIconUrl
|
|
40
40
|
} from "./chunk-EAGMY3QE.mjs";
|
|
41
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-X6N2XPTO.mjs";
|
|
42
42
|
|
|
43
43
|
// src/core/reown-disconnect.ts
|
|
44
44
|
async function disconnectWallet() {
|
package/dist/offramp.cjs
CHANGED
|
@@ -5,21 +5,21 @@ var _chunkADEWTBSNcjs = require('./chunk-ADEWTBSN.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
require('./chunk-
|
|
8
|
+
var _chunkISLVD5HQcjs = require('./chunk-ISLVD5HQ.cjs');
|
|
9
|
+
require('./chunk-PYOC6K24.cjs');
|
|
10
10
|
|
|
11
11
|
// src/core/offramp-service.ts
|
|
12
12
|
function createOfframpService(options) {
|
|
13
|
-
const request =
|
|
13
|
+
const request = _chunkISLVD5HQcjs.createBearerTransport.call(void 0, options);
|
|
14
14
|
return {
|
|
15
|
-
createSession: (body) => request("/offramp/sessions", body),
|
|
16
|
-
getSession: (id) => request(`/offramp/sessions/${_chunkADEWTBSNcjs.rampResourceId.call(void 0, id)}`),
|
|
17
|
-
getOptions: (intent) => request(`/offramp/options?${_chunkADEWTBSNcjs.rampQuery.call(void 0, intent)}`),
|
|
18
|
-
listPayments: (page = {}) => request(`/offramp/payments?${_chunkADEWTBSNcjs.rampQuery.call(void 0, page)}`),
|
|
19
|
-
getPayment: (id) => request(`/offramp/payments/${_chunkADEWTBSNcjs.rampResourceId.call(void 0, id)}`)
|
|
15
|
+
createSession: (body) => request("/offramp/noah/sessions", body),
|
|
16
|
+
getSession: (id) => request(`/offramp/noah/sessions/${_chunkADEWTBSNcjs.rampResourceId.call(void 0, id)}`),
|
|
17
|
+
getOptions: (intent) => request(`/offramp/noah/options?${_chunkADEWTBSNcjs.rampQuery.call(void 0, intent)}`),
|
|
18
|
+
listPayments: (page = {}) => request(`/offramp/noah/payments?${_chunkADEWTBSNcjs.rampQuery.call(void 0, page)}`),
|
|
19
|
+
getPayment: (id) => request(`/offramp/noah/payments/${_chunkADEWTBSNcjs.rampResourceId.call(void 0, id)}`)
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
exports.ScopedRequestError =
|
|
25
|
+
exports.ScopedRequestError = _chunkISLVD5HQcjs.ScopedRequestError; exports.createOfframpService = createOfframpService;
|
package/dist/offramp.mjs
CHANGED
|
@@ -5,18 +5,18 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
ScopedRequestError,
|
|
7
7
|
createBearerTransport
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-ZGHVJ2XM.mjs";
|
|
9
|
+
import "./chunk-X6N2XPTO.mjs";
|
|
10
10
|
|
|
11
11
|
// src/core/offramp-service.ts
|
|
12
12
|
function createOfframpService(options) {
|
|
13
13
|
const request = createBearerTransport(options);
|
|
14
14
|
return {
|
|
15
|
-
createSession: (body) => request("/offramp/sessions", body),
|
|
16
|
-
getSession: (id) => request(`/offramp/sessions/${rampResourceId(id)}`),
|
|
17
|
-
getOptions: (intent) => request(`/offramp/options?${rampQuery(intent)}`),
|
|
18
|
-
listPayments: (page = {}) => request(`/offramp/payments?${rampQuery(page)}`),
|
|
19
|
-
getPayment: (id) => request(`/offramp/payments/${rampResourceId(id)}`)
|
|
15
|
+
createSession: (body) => request("/offramp/noah/sessions", body),
|
|
16
|
+
getSession: (id) => request(`/offramp/noah/sessions/${rampResourceId(id)}`),
|
|
17
|
+
getOptions: (intent) => request(`/offramp/noah/options?${rampQuery(intent)}`),
|
|
18
|
+
listPayments: (page = {}) => request(`/offramp/noah/payments?${rampQuery(page)}`),
|
|
19
|
+
getPayment: (id) => request(`/offramp/noah/payments/${rampResourceId(id)}`)
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
export {
|
package/dist/onramp.cjs
CHANGED
|
@@ -5,23 +5,36 @@ var _chunkADEWTBSNcjs = require('./chunk-ADEWTBSN.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
require('./chunk-
|
|
8
|
+
var _chunkISLVD5HQcjs = require('./chunk-ISLVD5HQ.cjs');
|
|
9
|
+
require('./chunk-PYOC6K24.cjs');
|
|
10
10
|
|
|
11
11
|
// src/core/onramp-service.ts
|
|
12
12
|
function createOnrampService(options) {
|
|
13
|
-
const request =
|
|
13
|
+
const request = _chunkISLVD5HQcjs.createBearerTransport.call(void 0, options);
|
|
14
14
|
return {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
getOptions: (intent) => request(`/onramp/options?${_chunkADEWTBSNcjs.rampQuery.call(void 0, intent)}`),
|
|
18
|
-
listAccounts: (page = {}) => request(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
createSetup: (body) => request("/onramp/noah/setup", body),
|
|
16
|
+
getSetup: (id) => request(`/onramp/noah/setup/${_chunkADEWTBSNcjs.rampResourceId.call(void 0, id)}`),
|
|
17
|
+
getOptions: (intent) => request(`/onramp/noah/options?${_chunkADEWTBSNcjs.rampQuery.call(void 0, intent)}`),
|
|
18
|
+
listAccounts: (page = {}) => request(
|
|
19
|
+
`/onramp/noah/accounts?${_chunkADEWTBSNcjs.rampQuery.call(void 0, page)}`
|
|
20
|
+
),
|
|
21
|
+
getAccount: (id) => request(`/onramp/noah/accounts/${_chunkADEWTBSNcjs.rampResourceId.call(void 0, id)}`),
|
|
22
|
+
/**
|
|
23
|
+
* Mint a hosted address for the customer to read their account number or
|
|
24
|
+
* international account number from. A POST because minting one is a
|
|
25
|
+
* provider write; the coordinates themselves never cross this API.
|
|
26
|
+
*/
|
|
27
|
+
getAccountDetails: (id) => request(
|
|
28
|
+
`/onramp/noah/accounts/${_chunkADEWTBSNcjs.rampResourceId.call(void 0, id)}/details`,
|
|
29
|
+
{}
|
|
30
|
+
),
|
|
31
|
+
listPayments: (page = {}) => request(
|
|
32
|
+
`/onramp/noah/payments?${_chunkADEWTBSNcjs.rampQuery.call(void 0, page)}`
|
|
33
|
+
),
|
|
34
|
+
getPayment: (id) => request(`/onramp/noah/payments/${_chunkADEWTBSNcjs.rampResourceId.call(void 0, id)}`)
|
|
22
35
|
};
|
|
23
36
|
}
|
|
24
37
|
|
|
25
38
|
|
|
26
39
|
|
|
27
|
-
exports.ScopedRequestError =
|
|
40
|
+
exports.ScopedRequestError = _chunkISLVD5HQcjs.ScopedRequestError; exports.createOnrampService = createOnrampService;
|
package/dist/onramp.d.cts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { C as CustomerSessionOptions } from './bearer-transport-CVHNBgoV.cjs';
|
|
2
2
|
export { a as CustomerSession, S as ScopedRequestError } from './bearer-transport-CVHNBgoV.cjs';
|
|
3
|
-
import { f as RampCurrency, B as BankIntent, R as RampPayment, P as PaymentLegStatus, a as PaymentReturnStatus,
|
|
4
|
-
export { H as HostedNextAction } from './ramp-types-C6aUz4SZ.cjs';
|
|
3
|
+
import { f as RampCurrency, H as HostedNextAction, B as BankIntent, R as RampPayment, P as PaymentLegStatus, a as PaymentReturnStatus, c as RampPage, d as RampOption, e as RampPagination } from './ramp-types-C6aUz4SZ.cjs';
|
|
5
4
|
|
|
6
|
-
interface
|
|
5
|
+
interface OnrampSetupRequest extends BankIntent {
|
|
7
6
|
purpose: "account_setup";
|
|
8
7
|
}
|
|
9
8
|
interface OnrampOptionsRequest extends BankIntent {
|
|
@@ -23,15 +22,34 @@ interface OnrampAccount {
|
|
|
23
22
|
paymentMethod: "bank_transfer";
|
|
24
23
|
status: "pending" | "active" | "disabled";
|
|
25
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* The result of one account setup. Unlike an offramp session it carries no
|
|
27
|
+
* status and no expiry: the call either configured the account named here, or
|
|
28
|
+
* it failed. There is nothing to poll and nothing that lapses.
|
|
29
|
+
*/
|
|
30
|
+
interface OnrampSetup {
|
|
31
|
+
id: string;
|
|
32
|
+
account: OnrampAccount;
|
|
33
|
+
}
|
|
34
|
+
/** Where the customer reads their own bank coordinates; never returned here. */
|
|
35
|
+
interface OnrampAccountDetails {
|
|
36
|
+
nextAction: HostedNextAction;
|
|
37
|
+
}
|
|
26
38
|
/** No requests until an onramp method is called. */
|
|
27
39
|
declare function createOnrampService(options: CustomerSessionOptions): {
|
|
28
|
-
|
|
29
|
-
|
|
40
|
+
createSetup: (body: OnrampSetupRequest) => Promise<OnrampSetup>;
|
|
41
|
+
getSetup: (id: string) => Promise<OnrampSetup>;
|
|
30
42
|
getOptions: (intent: OnrampOptionsRequest) => Promise<RampPage<RampOption>>;
|
|
31
43
|
listAccounts: (page?: RampPagination) => Promise<RampPage<OnrampAccount>>;
|
|
32
44
|
getAccount: (id: string) => Promise<OnrampAccount>;
|
|
45
|
+
/**
|
|
46
|
+
* Mint a hosted address for the customer to read their account number or
|
|
47
|
+
* international account number from. A POST because minting one is a
|
|
48
|
+
* provider write; the coordinates themselves never cross this API.
|
|
49
|
+
*/
|
|
50
|
+
getAccountDetails: (id: string) => Promise<OnrampAccountDetails>;
|
|
33
51
|
listPayments: (page?: RampPagination) => Promise<RampPage<OnrampPayment>>;
|
|
34
52
|
getPayment: (id: string) => Promise<OnrampPayment>;
|
|
35
53
|
};
|
|
36
54
|
|
|
37
|
-
export { CustomerSessionOptions, type OnrampAccount, type OnrampOptionsRequest, type OnrampPayment, type
|
|
55
|
+
export { CustomerSessionOptions, HostedNextAction, type OnrampAccount, type OnrampAccountDetails, type OnrampOptionsRequest, type OnrampPayment, type OnrampSetup, type OnrampSetupRequest, PaymentLegStatus, PaymentReturnStatus, RampCurrency, RampOption, RampPage, RampPagination, createOnrampService };
|