@rhinestone/deposit-modal 0.6.1 → 0.8.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-ICBGUVAA.cjs → DepositModalReown-J5YFZKFS.cjs} +9 -9
- package/dist/{DepositModalReown-IVRDXQAA.mjs → DepositModalReown-RZ6VSMKP.mjs} +6 -6
- package/dist/{WithdrawModalReown-O7PR343Z.mjs → WithdrawModalReown-4YUV2WWV.mjs} +5 -5
- package/dist/{WithdrawModalReown-6XWURPFZ.cjs → WithdrawModalReown-B6BGY52S.cjs} +8 -8
- package/dist/caip-C_ZYFIGa.d.cts +77 -0
- package/dist/caip-C_ZYFIGa.d.ts +77 -0
- package/dist/{chunk-NRNJAQUA.cjs → chunk-4IOQIWDY.cjs} +4 -4
- package/dist/{chunk-TCLBFO3S.mjs → chunk-5S5BQ2GM.mjs} +304 -115
- package/dist/{chunk-N73D3WN4.mjs → chunk-7JJ4EFDY.mjs} +13 -17
- package/dist/{chunk-VPWWFWZT.cjs → chunk-IRI34U6N.cjs} +331 -117
- package/dist/{chunk-SITLCMTI.cjs → chunk-JRFPKFL6.cjs} +102 -106
- package/dist/{chunk-7Q26RR6J.mjs → chunk-LXTAAHPC.mjs} +6 -4
- package/dist/{chunk-ABVRVW3P.cjs → chunk-PUMTR35E.cjs} +85 -31
- package/dist/{chunk-GBOCV2LQ.mjs → chunk-RXWJ267K.mjs} +366 -152
- package/dist/{chunk-WJX3TJFK.mjs → chunk-SX52FXKH.mjs} +84 -30
- package/dist/{chunk-F7P4MV72.mjs → chunk-TYB6AA6D.mjs} +1 -1
- package/dist/{chunk-VVKJRGX3.cjs → chunk-VURI4G2Z.cjs} +10 -8
- package/dist/{chunk-UEKPBRBY.cjs → chunk-WL7AXYQ4.cjs} +3 -3
- package/dist/{chunk-IZPUHIIN.cjs → chunk-XLXJW44N.cjs} +743 -554
- package/dist/{chunk-FJWLC4AM.mjs → chunk-YLIPI3NU.mjs} +1 -1
- package/dist/constants.cjs +4 -2
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.mjs +5 -3
- package/dist/deposit.cjs +6 -6
- package/dist/deposit.d.cts +2 -2
- package/dist/deposit.d.ts +2 -2
- package/dist/deposit.mjs +5 -5
- package/dist/index.cjs +11 -7
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +12 -8
- package/dist/polymarket.cjs +6 -6
- package/dist/polymarket.mjs +3 -3
- package/dist/styles.css +86 -12
- package/dist/{types-6ROxwyfG.d.cts → types--LQWg_4W.d.cts} +1 -1
- package/dist/{types-6ROxwyfG.d.ts → types--LQWg_4W.d.ts} +1 -1
- package/dist/withdraw.cjs +5 -5
- package/dist/withdraw.d.cts +2 -2
- package/dist/withdraw.d.ts +2 -2
- package/dist/withdraw.mjs +4 -4
- package/package.json +1 -1
- package/dist/caip-CsslyHGL.d.cts +0 -62
- package/dist/caip-CsslyHGL.d.ts +0 -62
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunkXLXJW44Ncjs = require('./chunk-XLXJW44N.cjs');
|
|
4
|
+
require('./chunk-4IOQIWDY.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
8
|
+
var _chunkVURI4G2Zcjs = require('./chunk-VURI4G2Z.cjs');
|
|
9
|
+
require('./chunk-IRI34U6N.cjs');
|
|
10
|
+
require('./chunk-WL7AXYQ4.cjs');
|
|
11
|
+
require('./chunk-PUMTR35E.cjs');
|
|
12
12
|
|
|
13
13
|
// src/DepositModalReown.tsx
|
|
14
14
|
var _react = require('react');
|
|
@@ -16,7 +16,7 @@ var _react3 = require('@reown/appkit/react');
|
|
|
16
16
|
var _react5 = require('@reown/appkit-adapter-solana/react');
|
|
17
17
|
var _jsxruntime = require('react/jsx-runtime');
|
|
18
18
|
function DepositModalWithReown(props) {
|
|
19
|
-
const reown =
|
|
19
|
+
const reown = _chunkVURI4G2Zcjs.useReownWallet.call(void 0, );
|
|
20
20
|
const enableSolana = _nullishCoalesce(props.enableSolana, () => ( true));
|
|
21
21
|
const { walletProvider: solanaWalletProvider } = _react3.useAppKitProvider.call(void 0,
|
|
22
22
|
enableSolana ? "solana" : "eip155"
|
|
@@ -37,7 +37,7 @@ function DepositModalWithReown(props) {
|
|
|
37
37
|
reown.disconnect();
|
|
38
38
|
}, [reown.disconnect]);
|
|
39
39
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
40
|
-
|
|
40
|
+
_chunkXLXJW44Ncjs.DepositModalInner,
|
|
41
41
|
{
|
|
42
42
|
...props,
|
|
43
43
|
reownWallet: reownWithSolana,
|
|
@@ -48,7 +48,7 @@ function DepositModalWithReown(props) {
|
|
|
48
48
|
}
|
|
49
49
|
function DepositModalReown(props) {
|
|
50
50
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
51
|
-
|
|
51
|
+
_chunkVURI4G2Zcjs.ReownWalletProvider,
|
|
52
52
|
{
|
|
53
53
|
projectId: props.reownAppId,
|
|
54
54
|
theme: props.theme,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModalInner
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-5S5BQ2GM.mjs";
|
|
4
|
+
import "./chunk-YLIPI3NU.mjs";
|
|
5
5
|
import {
|
|
6
6
|
ReownWalletProvider,
|
|
7
7
|
useReownWallet
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-LXTAAHPC.mjs";
|
|
9
|
+
import "./chunk-RXWJ267K.mjs";
|
|
10
|
+
import "./chunk-TYB6AA6D.mjs";
|
|
11
|
+
import "./chunk-SX52FXKH.mjs";
|
|
12
12
|
|
|
13
13
|
// src/DepositModalReown.tsx
|
|
14
14
|
import { useCallback, useMemo } from "react";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WithdrawModalInner
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7JJ4EFDY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ReownWalletProvider,
|
|
6
6
|
useReownWallet
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-LXTAAHPC.mjs";
|
|
8
|
+
import "./chunk-RXWJ267K.mjs";
|
|
9
|
+
import "./chunk-TYB6AA6D.mjs";
|
|
10
|
+
import "./chunk-SX52FXKH.mjs";
|
|
11
11
|
|
|
12
12
|
// src/WithdrawModalReown.tsx
|
|
13
13
|
import { useCallback } from "react";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkJRFPKFL6cjs = require('./chunk-JRFPKFL6.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
7
|
+
var _chunkVURI4G2Zcjs = require('./chunk-VURI4G2Z.cjs');
|
|
8
|
+
require('./chunk-IRI34U6N.cjs');
|
|
9
|
+
require('./chunk-WL7AXYQ4.cjs');
|
|
10
|
+
require('./chunk-PUMTR35E.cjs');
|
|
11
11
|
|
|
12
12
|
// src/WithdrawModalReown.tsx
|
|
13
13
|
var _react = require('react');
|
|
14
14
|
var _jsxruntime = require('react/jsx-runtime');
|
|
15
15
|
function WithdrawModalWithReown(props) {
|
|
16
|
-
const reown =
|
|
16
|
+
const reown = _chunkVURI4G2Zcjs.useReownWallet.call(void 0, );
|
|
17
17
|
const handleConnect = _react.useCallback.call(void 0, () => {
|
|
18
18
|
reown.openConnect();
|
|
19
19
|
}, [reown.openConnect]);
|
|
@@ -21,7 +21,7 @@ function WithdrawModalWithReown(props) {
|
|
|
21
21
|
reown.disconnect();
|
|
22
22
|
}, [reown.disconnect]);
|
|
23
23
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24
|
-
|
|
24
|
+
_chunkJRFPKFL6cjs.WithdrawModalInner,
|
|
25
25
|
{
|
|
26
26
|
...props,
|
|
27
27
|
reownWallet: reown,
|
|
@@ -32,7 +32,7 @@ function WithdrawModalWithReown(props) {
|
|
|
32
32
|
}
|
|
33
33
|
function WithdrawModalReown(props) {
|
|
34
34
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
35
|
-
|
|
35
|
+
_chunkVURI4G2Zcjs.ReownWalletProvider,
|
|
36
36
|
{
|
|
37
37
|
projectId: props.reownAppId,
|
|
38
38
|
theme: props.theme,
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Chain } from 'viem/chains';
|
|
2
|
+
import { Address } from 'viem';
|
|
3
|
+
|
|
4
|
+
declare function getChainIcon(chainId: number | "solana" | "hypercore"): string | undefined;
|
|
5
|
+
declare function tokenIconUrl(symbol: string): string;
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated Use {@link tokenIconUrl} and render via `<TokenIcon>` (or your own
|
|
8
|
+
* `<img onError>`). Kept as a compatibility alias for existing consumers: it now
|
|
9
|
+
* always returns the CDN URL (icons moved off the inline bundle), so it no
|
|
10
|
+
* longer signals "unknown" with `undefined` — a symbol with no hosted SVG yields
|
|
11
|
+
* a URL that 404s. Handle load failure at the render site.
|
|
12
|
+
*/
|
|
13
|
+
declare function getTokenIcon(symbol: string): string;
|
|
14
|
+
|
|
15
|
+
declare const DEFAULT_BACKEND_URL = "https://v1.orchestrator.rhinestone.dev/deposit-widget";
|
|
16
|
+
declare const DEFAULT_SIGNER_ADDRESS: Address;
|
|
17
|
+
declare const NATIVE_TOKEN_ADDRESS: Address;
|
|
18
|
+
declare const CHAIN_BY_ID: Record<number, Chain>;
|
|
19
|
+
declare const SOURCE_CHAINS: Chain[];
|
|
20
|
+
declare const SUPPORTED_CHAINS: Chain[];
|
|
21
|
+
type ChainRegistryToken = {
|
|
22
|
+
symbol: string;
|
|
23
|
+
address: Address;
|
|
24
|
+
decimals: number;
|
|
25
|
+
};
|
|
26
|
+
type ChainRegistryEntry = {
|
|
27
|
+
name: string;
|
|
28
|
+
tokens: readonly ChainRegistryToken[];
|
|
29
|
+
};
|
|
30
|
+
declare const chainRegistry: Record<string, ChainRegistryEntry>;
|
|
31
|
+
type SupportedTokenOption = {
|
|
32
|
+
symbol: string;
|
|
33
|
+
address: Address;
|
|
34
|
+
decimals: number;
|
|
35
|
+
};
|
|
36
|
+
declare function getChainId(chain: Chain | number): number;
|
|
37
|
+
declare function getChainObject(chain: Chain | number): Chain | undefined;
|
|
38
|
+
declare function getUsdcAddress(chainId: number): Address | undefined;
|
|
39
|
+
declare function getUsdcDecimals(chainId: number): number;
|
|
40
|
+
declare function getTokenAddress(symbol: string, chainId: number): Address | undefined;
|
|
41
|
+
declare function getTokenDecimals(symbol: string, chainId: number): number;
|
|
42
|
+
declare function getTargetTokenSymbolsForChain(chainId: number): string[];
|
|
43
|
+
declare function getSupportedTokenSymbolsForChain(chainId: number): string[];
|
|
44
|
+
declare function getSupportedChainIds(): number[];
|
|
45
|
+
declare function isSupportedTokenAddressForChain(token: Address, chainId: number): boolean;
|
|
46
|
+
declare function getSupportedTargetTokens(chainId: number): SupportedTokenOption[];
|
|
47
|
+
declare function getTokenDecimalsByAddress(token: Address, chainId?: number): number;
|
|
48
|
+
declare function findChainIdForToken(address: Address): number | undefined;
|
|
49
|
+
declare function getTokenSymbol(token: Address, chainId?: number): string;
|
|
50
|
+
declare function getChainName(chainId: number | "solana" | "hypercore"): string;
|
|
51
|
+
declare function getChainBadge(chainId: number | "solana" | "hypercore"): {
|
|
52
|
+
shortLabel: string;
|
|
53
|
+
color: string;
|
|
54
|
+
bg: string;
|
|
55
|
+
};
|
|
56
|
+
declare function getExplorerUrl(chainId: number | "solana" | "hypercore"): string | undefined;
|
|
57
|
+
declare function getExplorerTxUrl(chainId: number | "solana" | "hypercore", txHash: string): string | undefined;
|
|
58
|
+
declare function getExplorerName(chainId: number | "solana" | "hypercore"): string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* HyperCore — Hyperliquid's virtual trading L1 (internal chain id 1337),
|
|
62
|
+
* settling on HyperEVM (999). It is USDC-only and requires an EOA recipient. It
|
|
63
|
+
* has no node of its own and must never be used as an EVM RPC target. Its
|
|
64
|
+
* canonical CAIP-2 is `hypercore:mainnet` (RHI-4560), NOT `eip155:1337`;
|
|
65
|
+
* `targetChainToCaip2(1337)` emits the former.
|
|
66
|
+
*/
|
|
67
|
+
declare const HYPERCORE_CHAIN_ID = 1337;
|
|
68
|
+
/** Canonical USDC on HyperEVM (999), the HyperCore settlement chain. */
|
|
69
|
+
declare const HYPERCORE_USDC_ADDRESS = "0xb88339CB7199b77E23DB6E890353E22632Ba630f";
|
|
70
|
+
/**
|
|
71
|
+
* USDT0 on HyperEVM (999). HyperCore-origin deposits accept USDC *and* USDT0
|
|
72
|
+
* (both land on HyperEVM and route out via the orchestrator). Destination
|
|
73
|
+
* delivery stays USDC-only, so this is a *source*-token address only.
|
|
74
|
+
*/
|
|
75
|
+
declare const HYPERCORE_USDT0_ADDRESS = "0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb";
|
|
76
|
+
|
|
77
|
+
export { tokenIconUrl as A, HYPERCORE_USDT0_ADDRESS as B, CHAIN_BY_ID as C, DEFAULT_BACKEND_URL as D, HYPERCORE_CHAIN_ID as H, NATIVE_TOKEN_ADDRESS as N, SOURCE_CHAINS as S, DEFAULT_SIGNER_ADDRESS as a, HYPERCORE_USDC_ADDRESS as b, SUPPORTED_CHAINS as c, type SupportedTokenOption as d, chainRegistry as e, findChainIdForToken as f, getChainBadge as g, getChainIcon as h, getChainId as i, getChainName as j, getChainObject as k, getExplorerName as l, getExplorerTxUrl as m, getExplorerUrl as n, getSupportedChainIds as o, getSupportedTargetTokens as p, getSupportedTokenSymbolsForChain as q, getTargetTokenSymbolsForChain as r, getTokenAddress as s, getTokenDecimals as t, getTokenDecimalsByAddress as u, getTokenIcon as v, getTokenSymbol as w, getUsdcAddress as x, getUsdcDecimals as y, isSupportedTokenAddressForChain as z };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Chain } from 'viem/chains';
|
|
2
|
+
import { Address } from 'viem';
|
|
3
|
+
|
|
4
|
+
declare function getChainIcon(chainId: number | "solana" | "hypercore"): string | undefined;
|
|
5
|
+
declare function tokenIconUrl(symbol: string): string;
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated Use {@link tokenIconUrl} and render via `<TokenIcon>` (or your own
|
|
8
|
+
* `<img onError>`). Kept as a compatibility alias for existing consumers: it now
|
|
9
|
+
* always returns the CDN URL (icons moved off the inline bundle), so it no
|
|
10
|
+
* longer signals "unknown" with `undefined` — a symbol with no hosted SVG yields
|
|
11
|
+
* a URL that 404s. Handle load failure at the render site.
|
|
12
|
+
*/
|
|
13
|
+
declare function getTokenIcon(symbol: string): string;
|
|
14
|
+
|
|
15
|
+
declare const DEFAULT_BACKEND_URL = "https://v1.orchestrator.rhinestone.dev/deposit-widget";
|
|
16
|
+
declare const DEFAULT_SIGNER_ADDRESS: Address;
|
|
17
|
+
declare const NATIVE_TOKEN_ADDRESS: Address;
|
|
18
|
+
declare const CHAIN_BY_ID: Record<number, Chain>;
|
|
19
|
+
declare const SOURCE_CHAINS: Chain[];
|
|
20
|
+
declare const SUPPORTED_CHAINS: Chain[];
|
|
21
|
+
type ChainRegistryToken = {
|
|
22
|
+
symbol: string;
|
|
23
|
+
address: Address;
|
|
24
|
+
decimals: number;
|
|
25
|
+
};
|
|
26
|
+
type ChainRegistryEntry = {
|
|
27
|
+
name: string;
|
|
28
|
+
tokens: readonly ChainRegistryToken[];
|
|
29
|
+
};
|
|
30
|
+
declare const chainRegistry: Record<string, ChainRegistryEntry>;
|
|
31
|
+
type SupportedTokenOption = {
|
|
32
|
+
symbol: string;
|
|
33
|
+
address: Address;
|
|
34
|
+
decimals: number;
|
|
35
|
+
};
|
|
36
|
+
declare function getChainId(chain: Chain | number): number;
|
|
37
|
+
declare function getChainObject(chain: Chain | number): Chain | undefined;
|
|
38
|
+
declare function getUsdcAddress(chainId: number): Address | undefined;
|
|
39
|
+
declare function getUsdcDecimals(chainId: number): number;
|
|
40
|
+
declare function getTokenAddress(symbol: string, chainId: number): Address | undefined;
|
|
41
|
+
declare function getTokenDecimals(symbol: string, chainId: number): number;
|
|
42
|
+
declare function getTargetTokenSymbolsForChain(chainId: number): string[];
|
|
43
|
+
declare function getSupportedTokenSymbolsForChain(chainId: number): string[];
|
|
44
|
+
declare function getSupportedChainIds(): number[];
|
|
45
|
+
declare function isSupportedTokenAddressForChain(token: Address, chainId: number): boolean;
|
|
46
|
+
declare function getSupportedTargetTokens(chainId: number): SupportedTokenOption[];
|
|
47
|
+
declare function getTokenDecimalsByAddress(token: Address, chainId?: number): number;
|
|
48
|
+
declare function findChainIdForToken(address: Address): number | undefined;
|
|
49
|
+
declare function getTokenSymbol(token: Address, chainId?: number): string;
|
|
50
|
+
declare function getChainName(chainId: number | "solana" | "hypercore"): string;
|
|
51
|
+
declare function getChainBadge(chainId: number | "solana" | "hypercore"): {
|
|
52
|
+
shortLabel: string;
|
|
53
|
+
color: string;
|
|
54
|
+
bg: string;
|
|
55
|
+
};
|
|
56
|
+
declare function getExplorerUrl(chainId: number | "solana" | "hypercore"): string | undefined;
|
|
57
|
+
declare function getExplorerTxUrl(chainId: number | "solana" | "hypercore", txHash: string): string | undefined;
|
|
58
|
+
declare function getExplorerName(chainId: number | "solana" | "hypercore"): string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* HyperCore — Hyperliquid's virtual trading L1 (internal chain id 1337),
|
|
62
|
+
* settling on HyperEVM (999). It is USDC-only and requires an EOA recipient. It
|
|
63
|
+
* has no node of its own and must never be used as an EVM RPC target. Its
|
|
64
|
+
* canonical CAIP-2 is `hypercore:mainnet` (RHI-4560), NOT `eip155:1337`;
|
|
65
|
+
* `targetChainToCaip2(1337)` emits the former.
|
|
66
|
+
*/
|
|
67
|
+
declare const HYPERCORE_CHAIN_ID = 1337;
|
|
68
|
+
/** Canonical USDC on HyperEVM (999), the HyperCore settlement chain. */
|
|
69
|
+
declare const HYPERCORE_USDC_ADDRESS = "0xb88339CB7199b77E23DB6E890353E22632Ba630f";
|
|
70
|
+
/**
|
|
71
|
+
* USDT0 on HyperEVM (999). HyperCore-origin deposits accept USDC *and* USDT0
|
|
72
|
+
* (both land on HyperEVM and route out via the orchestrator). Destination
|
|
73
|
+
* delivery stays USDC-only, so this is a *source*-token address only.
|
|
74
|
+
*/
|
|
75
|
+
declare const HYPERCORE_USDT0_ADDRESS = "0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb";
|
|
76
|
+
|
|
77
|
+
export { tokenIconUrl as A, HYPERCORE_USDT0_ADDRESS as B, CHAIN_BY_ID as C, DEFAULT_BACKEND_URL as D, HYPERCORE_CHAIN_ID as H, NATIVE_TOKEN_ADDRESS as N, SOURCE_CHAINS as S, DEFAULT_SIGNER_ADDRESS as a, HYPERCORE_USDC_ADDRESS as b, SUPPORTED_CHAINS as c, type SupportedTokenOption as d, chainRegistry as e, findChainIdForToken as f, getChainBadge as g, getChainIcon as h, getChainId as i, getChainName as j, getChainObject as k, getExplorerName as l, getExplorerTxUrl as m, getExplorerUrl as n, getSupportedChainIds as o, getSupportedTargetTokens as p, getSupportedTokenSymbolsForChain as q, getTargetTokenSymbolsForChain as r, getTokenAddress as s, getTokenDecimals as t, getTokenDecimalsByAddress as u, getTokenIcon as v, getTokenSymbol as w, getUsdcAddress as x, getUsdcDecimals as y, isSupportedTokenAddressForChain as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkWL7AXYQ4cjs = require('./chunk-WL7AXYQ4.cjs');
|
|
4
4
|
|
|
5
5
|
// src/core/dapp-imports/polymarket/constants.ts
|
|
6
6
|
var POLYMARKET_POLYGON_CHAIN_ID = 137;
|
|
@@ -100,7 +100,7 @@ async function executePolymarketSafeTransfer(params) {
|
|
|
100
100
|
}
|
|
101
101
|
const isOwner = await publicClient.readContract({
|
|
102
102
|
address: safeAddress,
|
|
103
|
-
abi:
|
|
103
|
+
abi: _chunkWL7AXYQ4cjs.SAFE_ABI,
|
|
104
104
|
functionName: "isOwner",
|
|
105
105
|
args: [account.address]
|
|
106
106
|
});
|
|
@@ -117,7 +117,7 @@ async function executePolymarketSafeTransfer(params) {
|
|
|
117
117
|
account,
|
|
118
118
|
chain,
|
|
119
119
|
address: safeAddress,
|
|
120
|
-
abi:
|
|
120
|
+
abi: _chunkWL7AXYQ4cjs.SAFE_ABI,
|
|
121
121
|
functionName: "execTransaction",
|
|
122
122
|
args: [
|
|
123
123
|
safeTx.to,
|
|
@@ -136,7 +136,7 @@ async function executePolymarketSafeTransfer(params) {
|
|
|
136
136
|
hash: txHash
|
|
137
137
|
});
|
|
138
138
|
const parsed = _viem.parseEventLogs.call(void 0, {
|
|
139
|
-
abi:
|
|
139
|
+
abi: _chunkWL7AXYQ4cjs.SAFE_ABI,
|
|
140
140
|
logs: receipt.logs.filter(
|
|
141
141
|
(log) => log.address.toLowerCase() === safeAddress.toLowerCase()
|
|
142
142
|
),
|