@spicenet-io/spiceflow-ui 1.8.0 → 1.8.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/index.cjs.js +5 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -3
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
+
const viem = require('viem');
|
|
5
|
+
const chains = require('viem/chains');
|
|
4
6
|
const jsxRuntime = require('react/jsx-runtime');
|
|
5
7
|
const React = require('react');
|
|
6
|
-
const viem = require('viem');
|
|
7
8
|
const Button = require('./Button-D2yFTia-.js');
|
|
8
9
|
const actions = require('viem/actions');
|
|
9
|
-
const chains = require('viem/chains');
|
|
10
10
|
const reactDom = require('react-dom');
|
|
11
11
|
const reactAuth = require('@privy-io/react-auth');
|
|
12
12
|
const sdkReactCore = require('@dynamic-labs/sdk-react-core');
|
|
@@ -4176,6 +4176,8 @@ const DepositWidget = ({
|
|
|
4176
4176
|
const allAssets = supportedChains.flatMap(
|
|
4177
4177
|
(chainId) => getAllAssetsForChain(chainId, assets)
|
|
4178
4178
|
);
|
|
4179
|
+
console.log("allAssets", allAssets);
|
|
4180
|
+
console.log("supportedTokens", supportedTokens);
|
|
4179
4181
|
if (supportedTokens && supportedTokens.length > 0) {
|
|
4180
4182
|
return allAssets.filter(
|
|
4181
4183
|
(asset) => supportedTokens.some(
|
|
@@ -12151,6 +12153,7 @@ exports.SpiceWithdraw = SpiceWithdraw;
|
|
|
12151
12153
|
exports.SwapWidget = SwapWidget;
|
|
12152
12154
|
exports.WithdrawModal = WithdrawModal;
|
|
12153
12155
|
exports.fetchBalances = fetchBalances;
|
|
12156
|
+
exports.relayerService = relayerService;
|
|
12154
12157
|
exports.useAssets = useAssets;
|
|
12155
12158
|
exports.useDepositInput = useDepositInput;
|
|
12156
12159
|
exports.useFromInput = useFromInput;
|
package/dist/index.d.ts
CHANGED
|
@@ -21,3 +21,4 @@ export type { LpModalProps } from "./types/lp";
|
|
|
21
21
|
export { useAssets, fetchBalances, useStatus, useFromInput, useToInputUpdate, useDepositInput, useWallet, useSpiceBalance, } from "./hooks";
|
|
22
22
|
export type { UseAssetsConfig, UseAssetsReturn, UseStatusConfig, UseStatusReturn, UseFromInputReturn, UseToInputUpdateReturn, UseDepositInputReturn, UseWalletReturn, WalletState, WalletActions, UseSpiceBalanceConfig, UseSpiceBalanceReturn, SpiceBalanceApiResponse, } from "./hooks";
|
|
23
23
|
export type { WalletProvider, WalletLoginProps, ProviderConfig, } from "./types/wallet";
|
|
24
|
+
export { relayerService } from "./utils/relayer";
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { defineChain, createPublicClient, http, isAddress, getAddress, parseEther, encodeFunctionData, parseUnits, erc20Abi } from 'viem';
|
|
3
|
+
import { basecampTestnet, citreaTestnet, baseSepolia, arbitrumSepolia, sepolia } from 'viem/chains';
|
|
2
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
3
5
|
import React, { useState, useRef, useEffect, useCallback, createContext, useContext, useTransition, useMemo, forwardRef, createElement } from 'react';
|
|
4
|
-
import { defineChain, createPublicClient, http, isAddress, getAddress, parseEther, encodeFunctionData, parseUnits, erc20Abi } from 'viem';
|
|
5
6
|
import { c as createTheme, B as Button, d as defaultTheme } from './Button-aWXByNBC.js';
|
|
6
7
|
import { getBalance, readContract } from 'viem/actions';
|
|
7
|
-
import { basecampTestnet, citreaTestnet, baseSepolia, arbitrumSepolia, sepolia } from 'viem/chains';
|
|
8
8
|
import { createPortal } from 'react-dom';
|
|
9
9
|
import { useWallets, usePrivy, useSign7702Authorization, useSignMessage } from '@privy-io/react-auth';
|
|
10
10
|
import { useDynamicContext } from '@dynamic-labs/sdk-react-core';
|
|
@@ -4174,6 +4174,8 @@ const DepositWidget = ({
|
|
|
4174
4174
|
const allAssets = supportedChains.flatMap(
|
|
4175
4175
|
(chainId) => getAllAssetsForChain(chainId, assets)
|
|
4176
4176
|
);
|
|
4177
|
+
console.log("allAssets", allAssets);
|
|
4178
|
+
console.log("supportedTokens", supportedTokens);
|
|
4177
4179
|
if (supportedTokens && supportedTokens.length > 0) {
|
|
4178
4180
|
return allAssets.filter(
|
|
4179
4181
|
(asset) => supportedTokens.some(
|
|
@@ -12134,4 +12136,4 @@ const useDepositInput = () => {
|
|
|
12134
12136
|
};
|
|
12135
12137
|
};
|
|
12136
12138
|
|
|
12137
|
-
export { ConnectWalletModal, DepositModal, DepositWidget, DepositWidgetModal, LpModal, ProviderLogin, SelectChainModal, SpiceBalance, SpiceDeposit, SpiceFlowProvider, SpiceFlowProviderContext, SpiceWithdraw, SwapWidget, WithdrawModal, fetchBalances, useAssets, useDepositInput, useFromInput, useSpiceBalance, useStatus, useToInputUpdate, useWallet };
|
|
12139
|
+
export { ConnectWalletModal, DepositModal, DepositWidget, DepositWidgetModal, LpModal, ProviderLogin, SelectChainModal, SpiceBalance, SpiceDeposit, SpiceFlowProvider, SpiceFlowProviderContext, SpiceWithdraw, SwapWidget, WithdrawModal, fetchBalances, relayerService, useAssets, useDepositInput, useFromInput, useSpiceBalance, useStatus, useToInputUpdate, useWallet };
|