@ab-org/predicate-market-sdk 2.1.2 → 2.2.0-beta.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/README.md +1 -1
- package/dist/{autoReconnect-IFPVI2XU.js → autoReconnect-UEPGLSA7.js} +12 -3
- package/dist/{chunk-LOJTP47I.js → chunk-3AR6ZOML.js} +1 -1
- package/dist/{chunk-JFRRJXOJ.js → chunk-55FTUSW7.js} +48 -2
- package/dist/{chunk-F2UPP3YC.js → chunk-6MMOYCWR.js} +1 -1
- package/dist/{chunk-TPMI3XWV.js → chunk-AAFQWHHY.js} +1 -1
- package/dist/{chunk-VKONTJQE.js → chunk-FIDON2BY.js} +3 -3
- package/dist/chunk-FMFRUZS3.js +3770 -0
- package/dist/{chunk-SHLNBZBY.js → chunk-ITLN6GHC.js} +5 -0
- package/dist/core.js +4 -4
- package/dist/index.js +7 -7
- package/dist/merchant.js +4 -4
- package/dist/react.d.ts +4 -1
- package/dist/react.js +3 -3
- package/package.json +2 -2
- package/dist/chunk-KAMUFSZ7.js +0 -3193
|
@@ -27,6 +27,11 @@ function readProcessEnvStatic(key) {
|
|
|
27
27
|
return pick(process.env.NEXT_PUBLIC_CUBE_REG, process.env.CUBE_REG);
|
|
28
28
|
case "RELAY_ORIGIN":
|
|
29
29
|
return pick(process.env.NEXT_PUBLIC_RELAY_ORIGIN, process.env.RELAY_ORIGIN);
|
|
30
|
+
case "CUBE_KEEPALIVE_INTERVAL_MS":
|
|
31
|
+
return pick(
|
|
32
|
+
process.env.NEXT_PUBLIC_CUBE_KEEPALIVE_INTERVAL_MS,
|
|
33
|
+
process.env.CUBE_KEEPALIVE_INTERVAL_MS
|
|
34
|
+
);
|
|
30
35
|
case "FUNDING_TOKEN_SYMBOL":
|
|
31
36
|
return pick(process.env.NEXT_PUBLIC_FUNDING_TOKEN_SYMBOL, process.env.FUNDING_TOKEN_SYMBOL) || "USDT";
|
|
32
37
|
default:
|
package/dist/core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { tryAutoReconnect } from './chunk-
|
|
2
|
-
export { ClientIds, DEFAULT_FUNDING_CHAIN_ID, DEFAULT_FUNDING_TOKEN_ADDRESS, getChainInfo, getFundingTokenAddress } from './chunk-
|
|
1
|
+
export { tryAutoReconnect } from './chunk-3AR6ZOML.js';
|
|
2
|
+
export { ClientIds, DEFAULT_FUNDING_CHAIN_ID, DEFAULT_FUNDING_TOKEN_ADDRESS, getChainInfo, getFundingTokenAddress } from './chunk-6MMOYCWR.js';
|
|
3
3
|
export { getExplorerUrl } from './chunk-XB2DFS2W.js';
|
|
4
|
-
export { getFixedAuthConfig, getSDKConfig, initSDK } from './chunk-
|
|
5
|
-
export { getEnv } from './chunk-
|
|
4
|
+
export { getFixedAuthConfig, getSDKConfig, initSDK } from './chunk-55FTUSW7.js';
|
|
5
|
+
export { getEnv } from './chunk-ITLN6GHC.js';
|
|
6
6
|
import './chunk-WHTI52FI.js';
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { notifyTwitterCallback } from './chunk-UAXKA6QC.js';
|
|
2
|
-
export { tryAutoReconnect } from './chunk-
|
|
3
|
-
export { createDepositController, createFundingWithdrawExecutor, createMarketDataProvider, createPredicateMarketPolicyAdapter, createWithdrawController, fetchErc20Balance, fetchFundingTokenBalance, findTokenDataFromChains, isUsdtWithdrawDirect, parseUnits } from './chunk-
|
|
4
|
-
export { ClientIds, DEFAULT_FUNDING_CHAIN_ID, DEFAULT_FUNDING_TOKEN_ADDRESS, getChainInfo, getFundingTokenAddress } from './chunk-
|
|
5
|
-
export { DepositDetailsPanel, DepositModal, DropdownField, SignInModal, Toast, WalletAccount, WalletSelectionModal, WithdrawModal, clearSocialAccountInstance } from './chunk-
|
|
2
|
+
export { tryAutoReconnect } from './chunk-3AR6ZOML.js';
|
|
3
|
+
export { createDepositController, createFundingWithdrawExecutor, createMarketDataProvider, createPredicateMarketPolicyAdapter, createWithdrawController, fetchErc20Balance, fetchFundingTokenBalance, findTokenDataFromChains, isUsdtWithdrawDirect, parseUnits } from './chunk-FIDON2BY.js';
|
|
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-FMFRUZS3.js';
|
|
6
6
|
export { getExplorerUrl } from './chunk-XB2DFS2W.js';
|
|
7
|
-
export { configureMerchantApi, createOrder, getChains, getDepositOrder, getMerchantApiClient, getWithdrawOrder, quote, registerPlatform } from './chunk-
|
|
8
|
-
export { getFixedAuthConfig, getSDKConfig, initSDK } from './chunk-
|
|
9
|
-
export { getEnv } from './chunk-
|
|
7
|
+
export { configureMerchantApi, createOrder, getChains, getDepositOrder, getMerchantApiClient, getWithdrawOrder, quote, registerPlatform } from './chunk-AAFQWHHY.js';
|
|
8
|
+
export { getFixedAuthConfig, getSDKConfig, initSDK } from './chunk-55FTUSW7.js';
|
|
9
|
+
export { getEnv } from './chunk-ITLN6GHC.js';
|
|
10
10
|
import './chunk-6YQEHB6P.js';
|
|
11
11
|
import './chunk-WHTI52FI.js';
|
|
12
12
|
import './chunk-YX56ZGDB.js';
|
package/dist/merchant.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { createDepositController, createFundingWithdrawExecutor, createMarketDataProvider, createPredicateMarketPolicyAdapter, createWithdrawController, fetchErc20Balance, fetchFundingTokenBalance, findTokenDataFromChains, isUsdtWithdrawDirect, parseUnits } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
export { configureMerchantApi, createOrder, getChains, getDepositOrder, getMerchantApiClient, getWithdrawOrder, quote, registerPlatform } from './chunk-
|
|
4
|
-
import './chunk-
|
|
1
|
+
export { createDepositController, createFundingWithdrawExecutor, createMarketDataProvider, createPredicateMarketPolicyAdapter, createWithdrawController, fetchErc20Balance, fetchFundingTokenBalance, findTokenDataFromChains, isUsdtWithdrawDirect, parseUnits } from './chunk-FIDON2BY.js';
|
|
2
|
+
import './chunk-6MMOYCWR.js';
|
|
3
|
+
export { configureMerchantApi, createOrder, getChains, getDepositOrder, getMerchantApiClient, getWithdrawOrder, quote, registerPlatform } from './chunk-AAFQWHHY.js';
|
|
4
|
+
import './chunk-ITLN6GHC.js';
|
package/dist/react.d.ts
CHANGED
|
@@ -85,10 +85,13 @@ interface DropdownFieldProps {
|
|
|
85
85
|
focused?: boolean;
|
|
86
86
|
options?: SelectOption[];
|
|
87
87
|
onSelect?: (id: string) => void;
|
|
88
|
+
wrapperClassName?: string;
|
|
89
|
+
triggerClassName?: string;
|
|
90
|
+
triggerId?: string;
|
|
88
91
|
/** @deprecated Use `options` + `onSelect` instead. */
|
|
89
92
|
onClick?: () => void;
|
|
90
93
|
}
|
|
91
|
-
declare const DropdownField: ({ label, placeholder, value, icon, focused, options, onSelect, onClick, }: DropdownFieldProps) => react_jsx_runtime.JSX.Element;
|
|
94
|
+
declare const DropdownField: ({ label, placeholder, value, icon, focused, options, onSelect, wrapperClassName, triggerClassName, triggerId, onClick, }: DropdownFieldProps) => react_jsx_runtime.JSX.Element;
|
|
92
95
|
|
|
93
96
|
interface DepositModalProps {
|
|
94
97
|
/** Pre-selected token id. */
|
package/dist/react.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-FMFRUZS3.js';
|
|
2
2
|
import './chunk-XB2DFS2W.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-AAFQWHHY.js';
|
|
4
|
+
import './chunk-ITLN6GHC.js';
|
|
5
5
|
import './chunk-6YQEHB6P.js';
|
|
6
6
|
import './chunk-WHTI52FI.js';
|
|
7
7
|
import './chunk-YX56ZGDB.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ab-org/predicate-market-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0-beta.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/**/*",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"axios": "^1.13.6",
|
|
40
40
|
"qrcode-generator": "^2.0.4",
|
|
41
41
|
"viem": "2.21.54",
|
|
42
|
-
"@ab-org/sdk-core": "0.
|
|
42
|
+
"@ab-org/sdk-core": "0.3.0-beta.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">=18"
|