@b3dotfun/sdk 0.0.48-alpha.3 → 0.0.48-alpha.4

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.
@@ -151,6 +151,20 @@ exports.EVM_MAINNET = {
151
151
  zapperEnum: "B3_MAINNET",
152
152
  coingeckoName: "b3",
153
153
  },
154
+ [chains_1.abstract.id]: {
155
+ id: chains_1.abstract.id,
156
+ name: chains_1.abstract.name,
157
+ logoUrl: "https://assets.relay.link/icons/square/2741/light.png",
158
+ type: chain_1.ChainType.EVM,
159
+ nativeRequired: (0, viem_1.parseEther)("0.0001"),
160
+ canDepositNative: true,
161
+ defaultToken: (0, token_1.getEthToken)(chains_1.abstract.id),
162
+ nativeToken: (0, token_1.getEthToken)(chains_1.abstract.id),
163
+ viem: getCustomEvmChain(chains_1.abstract, "https://cosmopolitan-nameless-mountain.abstract-mainnet.quiknode.pro/863853304b986b582bdacf625ce3350397c560f8/"),
164
+ pollingInterval: 3000, // 3 seconds for Abstract
165
+ zapperEnum: "B3_MAINNET",
166
+ coingeckoName: "b3",
167
+ },
154
168
  };
155
169
  exports.EVM_TESTNET = {
156
170
  [chains_1.sepolia.id]: {
@@ -1,7 +1,7 @@
1
1
  import { RELAY_SOLANA_MAINNET_CHAIN_ID } from "../../anyspend/constants/index.js";
2
2
  import invariant from "invariant";
3
3
  import { createPublicClient, createWalletClient, defineChain, http, parseEther, } from "viem";
4
- import { arbitrum, avalanche, b3, b3Sepolia, base, baseSepolia, bsc, mainnet, optimism, polygon, sepolia, } from "viem/chains";
4
+ import { abstract, arbitrum, avalanche, b3, b3Sepolia, base, baseSepolia, bsc, mainnet, optimism, polygon, sepolia, } from "viem/chains";
5
5
  import { ChainType } from "../types/chain.js";
6
6
  import { getAvaxToken, getBnbToken, getEthToken, getPolToken, getSolanaToken } from "./token.js";
7
7
  function getCustomEvmChain(chain, rpcUrl) {
@@ -127,6 +127,20 @@ export const EVM_MAINNET = {
127
127
  zapperEnum: "B3_MAINNET",
128
128
  coingeckoName: "b3",
129
129
  },
130
+ [abstract.id]: {
131
+ id: abstract.id,
132
+ name: abstract.name,
133
+ logoUrl: "https://assets.relay.link/icons/square/2741/light.png",
134
+ type: ChainType.EVM,
135
+ nativeRequired: parseEther("0.0001"),
136
+ canDepositNative: true,
137
+ defaultToken: getEthToken(abstract.id),
138
+ nativeToken: getEthToken(abstract.id),
139
+ viem: getCustomEvmChain(abstract, "https://cosmopolitan-nameless-mountain.abstract-mainnet.quiknode.pro/863853304b986b582bdacf625ce3350397c560f8/"),
140
+ pollingInterval: 3000, // 3 seconds for Abstract
141
+ zapperEnum: "B3_MAINNET",
142
+ coingeckoName: "b3",
143
+ },
130
144
  };
131
145
  export const EVM_TESTNET = {
132
146
  [sepolia.id]: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@b3dotfun/sdk",
3
- "version": "0.0.48-alpha.3",
3
+ "version": "0.0.48-alpha.4",
4
4
  "source": "src/index.ts",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "react-native": "./dist/cjs/index.native.js",
@@ -14,6 +14,7 @@ import {
14
14
  WalletClient,
15
15
  } from "viem";
16
16
  import {
17
+ abstract,
17
18
  arbitrum,
18
19
  avalanche,
19
20
  b3,
@@ -172,6 +173,23 @@ export const EVM_MAINNET: Record<number, IEVMChain> = {
172
173
  zapperEnum: "B3_MAINNET",
173
174
  coingeckoName: "b3",
174
175
  },
176
+ [abstract.id]: {
177
+ id: abstract.id,
178
+ name: abstract.name,
179
+ logoUrl: "https://assets.relay.link/icons/square/2741/light.png",
180
+ type: ChainType.EVM,
181
+ nativeRequired: parseEther("0.0001"),
182
+ canDepositNative: true,
183
+ defaultToken: getEthToken(abstract.id),
184
+ nativeToken: getEthToken(abstract.id),
185
+ viem: getCustomEvmChain(
186
+ abstract,
187
+ "https://cosmopolitan-nameless-mountain.abstract-mainnet.quiknode.pro/863853304b986b582bdacf625ce3350397c560f8/",
188
+ ),
189
+ pollingInterval: 3000, // 3 seconds for Abstract
190
+ zapperEnum: "B3_MAINNET",
191
+ coingeckoName: "b3",
192
+ },
175
193
  };
176
194
 
177
195
  export const EVM_TESTNET: Record<number, IEVMChain> = {