@b3dotfun/sdk 0.0.56-alpha.1 → 0.0.56-alpha.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.
@@ -104,7 +104,7 @@ exports.EVM_MAINNET = {
104
104
  name: chains_1.polygon.name,
105
105
  logoUrl: "https://assets.relay.link/icons/square/137/light.png",
106
106
  type: chain_1.ChainType.EVM,
107
- nativeRequired: (0, viem_1.parseEther)("0.1"),
107
+ nativeRequired: (0, viem_1.parseEther)("0.5"),
108
108
  canDepositNative: true,
109
109
  defaultToken: (0, token_1.getPolToken)(),
110
110
  nativeToken: (0, token_1.getPolToken)(),
@@ -164,7 +164,7 @@ exports.EVM_MAINNET = {
164
164
  name: chains_1.abstract.name,
165
165
  logoUrl: "https://assets.relay.link/icons/square/2741/light.png",
166
166
  type: chain_1.ChainType.EVM,
167
- nativeRequired: (0, viem_1.parseEther)("0.0001"),
167
+ nativeRequired: (0, viem_1.parseEther)("0.0002"),
168
168
  canDepositNative: true,
169
169
  defaultToken: (0, token_1.getEthToken)(chains_1.abstract.id),
170
170
  nativeToken: (0, token_1.getEthToken)(chains_1.abstract.id),
@@ -64,7 +64,7 @@ function LoginStepCustom({ onSuccess, onError, chain, strategies, maxInitialWall
64
64
  setIsAuthenticating(false);
65
65
  }
66
66
  };
67
- return ((0, jsx_runtime_1.jsxs)(react_1.LoginStepContainer, { partnerId: partnerId, children: [authStrategies.length > 0 && ((0, jsx_runtime_1.jsx)("div", { className: "mb-6 grid w-full grid-cols-4 gap-4", children: authStrategies.map(strategy => {
67
+ return ((0, jsx_runtime_1.jsxs)(react_1.LoginStepContainer, { partnerId: partnerId, children: [authStrategies.length > 0 && ((0, jsx_runtime_1.jsx)("div", { className: `mb-6 w-full ${authStrategies.length <= 3 ? "space-y-3 px-3" : "grid grid-cols-4 gap-4"}`, children: authStrategies.map(strategy => {
68
68
  console.log("strategy", strategy);
69
69
  return ((0, jsx_runtime_1.jsx)(react_1.AuthButton, { strategy: strategy, onClick: () => handleConnect(strategy), isLoading: isLoading }, strategy));
70
70
  }) })), (0, jsx_runtime_1.jsx)("div", { className: "mb-4 w-full space-y-2", children: initialWallets.map(walletId => ((0, jsx_runtime_1.jsx)(react_1.WalletRow, { walletId: walletId, onClick: () => handleConnect(walletId), isLoading: isLoading }, walletId))) }), additionalWallets.length > 0 && ((0, jsx_runtime_1.jsxs)("div", { className: "w-full", children: [(0, jsx_runtime_1.jsx)(react_1.Button, { onClick: () => setShowAllWallets(!showAllWallets), className: "mb-2 w-full bg-transparent text-gray-600 hover:bg-gray-100", children: showAllWallets ? "Show less" : "More options" }), showAllWallets && ((0, jsx_runtime_1.jsx)("div", { className: "max-h-60 space-y-2 overflow-y-auto", children: additionalWallets.map(walletId => ((0, jsx_runtime_1.jsx)(react_1.WalletRow, { walletId: walletId, onClick: () => handleConnect(walletId), isLoading: isLoading }, walletId))) }))] }))] }));
@@ -80,7 +80,7 @@ export const EVM_MAINNET = {
80
80
  name: polygon.name,
81
81
  logoUrl: "https://assets.relay.link/icons/square/137/light.png",
82
82
  type: ChainType.EVM,
83
- nativeRequired: parseEther("0.1"),
83
+ nativeRequired: parseEther("0.5"),
84
84
  canDepositNative: true,
85
85
  defaultToken: getPolToken(),
86
86
  nativeToken: getPolToken(),
@@ -140,7 +140,7 @@ export const EVM_MAINNET = {
140
140
  name: abstract.name,
141
141
  logoUrl: "https://assets.relay.link/icons/square/2741/light.png",
142
142
  type: ChainType.EVM,
143
- nativeRequired: parseEther("0.0001"),
143
+ nativeRequired: parseEther("0.0002"),
144
144
  canDepositNative: true,
145
145
  defaultToken: getEthToken(abstract.id),
146
146
  nativeToken: getEthToken(abstract.id),
@@ -61,7 +61,7 @@ export function LoginStepCustom({ onSuccess, onError, chain, strategies, maxInit
61
61
  setIsAuthenticating(false);
62
62
  }
63
63
  };
64
- return (_jsxs(LoginStepContainer, { partnerId: partnerId, children: [authStrategies.length > 0 && (_jsx("div", { className: "mb-6 grid w-full grid-cols-4 gap-4", children: authStrategies.map(strategy => {
64
+ return (_jsxs(LoginStepContainer, { partnerId: partnerId, children: [authStrategies.length > 0 && (_jsx("div", { className: `mb-6 w-full ${authStrategies.length <= 3 ? "space-y-3 px-3" : "grid grid-cols-4 gap-4"}`, children: authStrategies.map(strategy => {
65
65
  console.log("strategy", strategy);
66
66
  return (_jsx(AuthButton, { strategy: strategy, onClick: () => handleConnect(strategy), isLoading: isLoading }, strategy));
67
67
  }) })), _jsx("div", { className: "mb-4 w-full space-y-2", children: initialWallets.map(walletId => (_jsx(WalletRow, { walletId: walletId, onClick: () => handleConnect(walletId), isLoading: isLoading }, walletId))) }), additionalWallets.length > 0 && (_jsxs("div", { className: "w-full", children: [_jsx(Button, { onClick: () => setShowAllWallets(!showAllWallets), className: "mb-2 w-full bg-transparent text-gray-600 hover:bg-gray-100", children: showAllWallets ? "Show less" : "More options" }), showAllWallets && (_jsx("div", { className: "max-h-60 space-y-2 overflow-y-auto", children: additionalWallets.map(walletId => (_jsx(WalletRow, { walletId: walletId, onClick: () => handleConnect(walletId), isLoading: isLoading }, walletId))) }))] }))] }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@b3dotfun/sdk",
3
- "version": "0.0.56-alpha.1",
3
+ "version": "0.0.56-alpha.3",
4
4
  "source": "src/index.ts",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "react-native": "./dist/cjs/index.native.js",
@@ -107,7 +107,7 @@ export const EVM_MAINNET: Record<number, IEVMChain> = {
107
107
  name: polygon.name,
108
108
  logoUrl: "https://assets.relay.link/icons/square/137/light.png",
109
109
  type: ChainType.EVM,
110
- nativeRequired: parseEther("0.1"),
110
+ nativeRequired: parseEther("0.5"),
111
111
  canDepositNative: true,
112
112
  defaultToken: getPolToken(),
113
113
  nativeToken: getPolToken(),
@@ -176,7 +176,7 @@ export const EVM_MAINNET: Record<number, IEVMChain> = {
176
176
  name: abstract.name,
177
177
  logoUrl: "https://assets.relay.link/icons/square/2741/light.png",
178
178
  type: ChainType.EVM,
179
- nativeRequired: parseEther("0.0001"),
179
+ nativeRequired: parseEther("0.0002"),
180
180
  canDepositNative: true,
181
181
  defaultToken: getEthToken(abstract.id),
182
182
  nativeToken: getEthToken(abstract.id),
@@ -97,7 +97,7 @@ export function LoginStepCustom({
97
97
  <LoginStepContainer partnerId={partnerId}>
98
98
  {/* Auth Strategies */}
99
99
  {authStrategies.length > 0 && (
100
- <div className="mb-6 grid w-full grid-cols-4 gap-4">
100
+ <div className={`mb-6 w-full ${authStrategies.length <= 3 ? "space-y-3 px-3" : "grid grid-cols-4 gap-4"}`}>
101
101
  {authStrategies.map(strategy => {
102
102
  console.log("strategy", strategy);
103
103
  return (