@ab-org/predicate-market-sdk 2.2.0-beta.2 → 2.2.0-beta.3
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.
|
@@ -2042,7 +2042,7 @@ var DepositModal = ({
|
|
|
2042
2042
|
useEffect(() => {
|
|
2043
2043
|
if (view !== "transfer") return;
|
|
2044
2044
|
if (!session?.address || !chain) return;
|
|
2045
|
-
const platform_contract_address =
|
|
2045
|
+
const platform_contract_address = depositAddress || session.address;
|
|
2046
2046
|
registerPlatform({
|
|
2047
2047
|
platform_contract_address,
|
|
2048
2048
|
chain_id: chain
|
|
@@ -2052,7 +2052,7 @@ var DepositModal = ({
|
|
|
2052
2052
|
}
|
|
2053
2053
|
}).catch(() => {
|
|
2054
2054
|
});
|
|
2055
|
-
}, [view, chain, session?.address]);
|
|
2055
|
+
}, [view, chain, session?.address, depositAddress]);
|
|
2056
2056
|
useEffect(() => {
|
|
2057
2057
|
if (!apiChains?.length || !token || !chain) {
|
|
2058
2058
|
setApiQuote(null);
|
|
@@ -2178,7 +2178,7 @@ var DepositModal = ({
|
|
|
2178
2178
|
chain,
|
|
2179
2179
|
tokenOptions,
|
|
2180
2180
|
chainOptions,
|
|
2181
|
-
depositAddress:
|
|
2181
|
+
depositAddress: internalDepositAddress,
|
|
2182
2182
|
minimumDeposit,
|
|
2183
2183
|
qrCenterIcon,
|
|
2184
2184
|
quote: apiQuote,
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ export { notifyTwitterCallback } from './chunk-UAXKA6QC.js';
|
|
|
2
2
|
export { tryAutoReconnect } from './chunk-3AR6ZOML.js';
|
|
3
3
|
export { createDepositController, createFundingWithdrawExecutor, createMarketDataProvider, createPredicateMarketPolicyAdapter, createWithdrawController, fetchErc20Balance, fetchFundingTokenBalance, findTokenDataFromChains, isUsdtWithdrawDirect, parseUnits } from './chunk-FIDON2BY.js';
|
|
4
4
|
export { ClientIds, DEFAULT_FUNDING_CHAIN_ID, DEFAULT_FUNDING_TOKEN_ADDRESS, getChainInfo, getFundingTokenAddress } from './chunk-6MMOYCWR.js';
|
|
5
|
-
export { DepositDetailsPanel, DepositModal, DropdownField, SignInModal, Toast, WalletAccount, WalletSelectionModal, WithdrawModal, clearSocialAccountInstance } from './chunk-
|
|
5
|
+
export { DepositDetailsPanel, DepositModal, DropdownField, SignInModal, Toast, WalletAccount, WalletSelectionModal, WithdrawModal, clearSocialAccountInstance } from './chunk-CFWENKGK.js';
|
|
6
6
|
export { getExplorerUrl } from './chunk-XB2DFS2W.js';
|
|
7
7
|
export { configureMerchantApi, createOrder, getChains, getDepositOrder, getMerchantApiClient, getWithdrawOrder, quote, registerPlatform } from './chunk-AAFQWHHY.js';
|
|
8
8
|
export { getFixedAuthConfig, getSDKConfig, initSDK } from './chunk-55FTUSW7.js';
|
package/dist/react.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DepositDetailsPanel, DepositModal, DropdownField, SignInModal, Toast, WalletAccount, WalletSelectionModal, WithdrawModal, clearSocialAccountInstance } from './chunk-
|
|
1
|
+
export { DepositDetailsPanel, DepositModal, DropdownField, SignInModal, Toast, WalletAccount, WalletSelectionModal, WithdrawModal, clearSocialAccountInstance } from './chunk-CFWENKGK.js';
|
|
2
2
|
import './chunk-XB2DFS2W.js';
|
|
3
3
|
import './chunk-AAFQWHHY.js';
|
|
4
4
|
import './chunk-ITLN6GHC.js';
|