@gibs/bridge-client 1.29.0 → 1.32.0
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/block-polling/package.json +6 -0
- package/coinbase-accept-list/package.json +6 -0
- package/dist/block-polling.d.ts +33 -0
- package/dist/block-polling.js +10 -0
- package/dist/cjs/block-polling.d.ts +33 -0
- package/dist/cjs/block-polling.js +15 -0
- package/dist/cjs/client.d.ts +9 -1
- package/dist/cjs/client.js +8 -5
- package/dist/cjs/coinbase-accept-list.d.ts +101 -0
- package/dist/cjs/coinbase-accept-list.js +97 -0
- package/dist/cjs/crossing-decision.d.ts +166 -0
- package/dist/cjs/crossing-decision.js +169 -0
- package/dist/cjs/crossing-vector-guard.d.ts +45 -0
- package/dist/cjs/crossing-vector-guard.js +139 -0
- package/dist/cjs/exchange-deposit-board.d.ts +50 -0
- package/dist/cjs/exchange-deposit-board.js +70 -0
- package/dist/cjs/exchange-deposit-chain.d.ts +146 -0
- package/dist/cjs/exchange-deposit-chain.js +228 -0
- package/dist/cjs/exchange-deposit-constants.d.ts +10 -0
- package/dist/cjs/exchange-deposit-constants.js +6 -0
- package/dist/cjs/exchange-deposit-factory-calls.d.ts +245 -0
- package/dist/cjs/exchange-deposit-factory-calls.js +103 -0
- package/dist/cjs/exchange-deposit-factory.d.ts +87 -0
- package/dist/cjs/exchange-deposit-factory.js +110 -0
- package/dist/cjs/exchange-deposit-fake.d.ts +67 -0
- package/dist/cjs/exchange-deposit-fake.js +179 -0
- package/dist/cjs/exchange-deposit-index.d.ts +77 -0
- package/dist/cjs/exchange-deposit-index.js +40 -0
- package/dist/cjs/exchange-deposit-issuance.d.ts +327 -0
- package/dist/cjs/exchange-deposit-issuance.js +244 -0
- package/dist/cjs/exchange-deposit-path.d.ts +16 -0
- package/dist/cjs/exchange-deposit-path.js +15 -0
- package/dist/cjs/exchange-deposit-pow.d.ts +163 -0
- package/dist/cjs/exchange-deposit-pow.js +101 -0
- package/dist/cjs/exchange-deposit-recipient.d.ts +66 -0
- package/dist/cjs/exchange-deposit-recipient.js +35 -0
- package/dist/cjs/exchange-deposit-self-cross.d.ts +163 -0
- package/dist/cjs/exchange-deposit-self-cross.js +60 -0
- package/dist/cjs/exchange-deposit-signin.d.ts +275 -0
- package/dist/cjs/exchange-deposit-signin.js +166 -0
- package/dist/cjs/exchange-deposit-watch.d.ts +133 -0
- package/dist/cjs/exchange-deposit-watch.js +58 -0
- package/dist/cjs/exchange-deposit.d.ts +440 -0
- package/dist/cjs/exchange-deposit.js +154 -0
- package/dist/cjs/exchange-sender-guides.d.ts +29 -0
- package/dist/cjs/exchange-sender-guides.js +25 -0
- package/dist/cjs/image.d.ts +18 -0
- package/dist/cjs/image.js +11 -9
- package/dist/cjs/index.d.ts +4 -0
- package/dist/cjs/index.js +32 -1
- package/dist/cjs/kraken-accept-list.d.ts +70 -0
- package/dist/cjs/kraken-accept-list.js +24 -0
- package/dist/cjs/unlisted-token.d.ts +26 -0
- package/dist/cjs/unlisted-token.js +34 -0
- package/dist/client.d.ts +9 -1
- package/dist/client.js +8 -5
- package/dist/coinbase-accept-list.d.ts +101 -0
- package/dist/coinbase-accept-list.js +89 -0
- package/dist/crossing-decision.d.ts +166 -0
- package/dist/crossing-decision.js +162 -0
- package/dist/crossing-vector-guard.d.ts +45 -0
- package/dist/crossing-vector-guard.js +134 -0
- package/dist/exchange-deposit-board.d.ts +50 -0
- package/dist/exchange-deposit-board.js +28 -0
- package/dist/exchange-deposit-chain.d.ts +146 -0
- package/dist/exchange-deposit-chain.js +218 -0
- package/dist/exchange-deposit-constants.d.ts +10 -0
- package/dist/exchange-deposit-constants.js +3 -0
- package/dist/exchange-deposit-factory-calls.d.ts +245 -0
- package/dist/exchange-deposit-factory-calls.js +97 -0
- package/dist/exchange-deposit-factory.d.ts +87 -0
- package/dist/exchange-deposit-factory.js +104 -0
- package/dist/exchange-deposit-fake.d.ts +67 -0
- package/dist/exchange-deposit-fake.js +171 -0
- package/dist/exchange-deposit-index.d.ts +77 -0
- package/dist/exchange-deposit-index.js +34 -0
- package/dist/exchange-deposit-issuance.d.ts +327 -0
- package/dist/exchange-deposit-issuance.js +224 -0
- package/dist/exchange-deposit-path.d.ts +16 -0
- package/dist/exchange-deposit-path.js +11 -0
- package/dist/exchange-deposit-pow.d.ts +163 -0
- package/dist/exchange-deposit-pow.js +93 -0
- package/dist/exchange-deposit-recipient.d.ts +66 -0
- package/dist/exchange-deposit-recipient.js +28 -0
- package/dist/exchange-deposit-self-cross.d.ts +163 -0
- package/dist/exchange-deposit-self-cross.js +46 -0
- package/dist/exchange-deposit-signin.d.ts +275 -0
- package/dist/exchange-deposit-signin.js +147 -0
- package/dist/exchange-deposit-watch.d.ts +133 -0
- package/dist/exchange-deposit-watch.js +44 -0
- package/dist/exchange-deposit.d.ts +440 -0
- package/dist/exchange-deposit.js +138 -0
- package/dist/exchange-sender-guides.d.ts +29 -0
- package/dist/exchange-sender-guides.js +21 -0
- package/dist/image.d.ts +18 -0
- package/dist/image.js +8 -8
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/kraken-accept-list.d.ts +70 -0
- package/dist/kraken-accept-list.js +17 -0
- package/dist/unlisted-token.d.ts +26 -0
- package/dist/unlisted-token.js +30 -0
- package/exchange-deposit/package.json +6 -0
- package/exchange-deposit-board/package.json +6 -0
- package/exchange-deposit-chain/package.json +6 -0
- package/exchange-deposit-factory/package.json +6 -0
- package/exchange-deposit-fake/package.json +6 -0
- package/exchange-deposit-issuance/package.json +6 -0
- package/exchange-deposit-path/package.json +6 -0
- package/exchange-deposit-pow/package.json +6 -0
- package/exchange-deposit-recipient/package.json +6 -0
- package/exchange-deposit-self-cross/package.json +6 -0
- package/exchange-deposit-signin/package.json +6 -0
- package/exchange-deposit-watch/package.json +6 -0
- package/exchange-sender-guides/package.json +6 -0
- package/kraken-accept-list/package.json +6 -0
- package/llms.txt +1 -0
- package/package.json +487 -6
- package/unlisted-token/package.json +6 -0
package/dist/image.js
CHANGED
|
@@ -26,14 +26,14 @@ export const chainLogoUrl = ({ chainId, displayPx, }) => {
|
|
|
26
26
|
};
|
|
27
27
|
const homeChainOfSymbol = new Map([...chainTable].reverse().map((entry) => [entry.nativeCurrency.symbol, entry.id]));
|
|
28
28
|
const symbolOfChain = new Map(chainTable.map((entry) => [entry.id, entry.nativeCurrency.symbol]));
|
|
29
|
-
export const
|
|
30
|
-
const sources = [`${chainId}/${zeroAddress}`];
|
|
29
|
+
export const nativeHomeChainOf = (chainId) => {
|
|
31
30
|
const symbol = symbolOfChain.get(chainId);
|
|
32
31
|
const home = symbol === undefined ? undefined : homeChainOfSymbol.get(symbol);
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
return home === undefined || home === chainId ? null : home;
|
|
33
|
+
};
|
|
34
|
+
export const tokenImage = (token) => imageLinks.tokenImageUrl({ ...token, nativeHomeChainId: nativeHomeChainOf(Number(token.chainId)) });
|
|
35
|
+
export const nativeCoinImageSources = (chainId) => {
|
|
36
|
+
const home = nativeHomeChainOf(chainId);
|
|
37
|
+
return [`${chainId}/${zeroAddress}`, ...(home === null ? [] : [`${home}/${zeroAddress}`]), `${chainId}/`];
|
|
38
38
|
};
|
|
39
|
-
export const nativeCoinLogoUrl = (chainId) =>
|
|
39
|
+
export const nativeCoinLogoUrl = (chainId) => tokenImage({ chainId, address: zeroAddress });
|
package/dist/index.d.ts
CHANGED
|
@@ -13,10 +13,14 @@
|
|
|
13
13
|
* `/endpoints`, `/image` and so on — so that importing one does not pull the
|
|
14
14
|
* rest. This barrel exists for consumers that would rather not think about it.
|
|
15
15
|
*/
|
|
16
|
+
export { blockPollIntervalForChain, blockPollIntervalMs, blockTimeMsByChainId, MAXIMUM_BLOCK_POLL_MS, MINIMUM_BLOCK_POLL_MS, } from './block-polling.js';
|
|
16
17
|
export { Cache } from './cache.js';
|
|
17
18
|
export { checkAllowance, type ApprovalParameters } from './chain-read.js';
|
|
18
19
|
export { clientFromChain, rpcBatchSetting } from './client.js';
|
|
19
20
|
export { add, configureEndpoints, ENDPOINTS_STORAGE_KEY, entries, get, getSnapshot, hasDefault, key, parse, productionSeed, remove, restoreDefault, setEndpoints, stringify, subscribe, testnetSeed, update, type EndpointEntry, type EndpointStorage, } from './endpoints.js';
|
|
21
|
+
export { FEE_RATE_SCALE, coverageOfAddress, crossingCoverage, ETHEREUM_MAINNET_CHAIN_ID, EXCHANGE_DEPOSIT_DEFAULT_FEE_RATE_E18, EXCHANGE_DEPOSIT_FEE_LIMITS_UNREADABLE, EXCHANGE_DEPOSIT_FEE_RATES, EXCHANGE_DEPOSIT_INITIAL_SELECTION, EXCHANGE_DEPOSIT_GAS_TABLE_NAME_BY_CHAIN, exchangeDepositGasTableOf, exchangeDepositSelectionReducer, assertFeeRatesWithinLimits, exchangeDepositStage, feeRateOptionsOf, feeRatePercent, SEPOLIA_CHAIN_ID, WEI_PER_ETHER, type CrossingCoverage, type CrossingCoverageInput, type ExchangeDepositAddress, type ExchangeDepositAddressOrigin, type ExchangeDepositContractGroup, type ExchangeDepositCrossing, type ExchangeDepositCrossingConditions, type ExchangeDepositRequest, type ExchangeDepositSelection, type ExchangeDepositSelectionAction, type ExchangeDepositSettings, type ExchangeDepositFeeLimits, type ExchangeDepositSource, type ExchangeDepositStage, type ExchangeDepositToken, } from './exchange-deposit.js';
|
|
22
|
+
export { readRecipient, recipientIdenticon, sameAddress, type RecipientIdenticon, type RecipientReading, } from './exchange-deposit-recipient.js';
|
|
20
23
|
export { chainLogoUrl, relayChainIconUrl } from './image.js';
|
|
21
24
|
export { evmChains, evmChainsById, isSupportedEvmChain } from './networks.js';
|
|
22
25
|
export { getBridgeTokenMetadata, getStoreKey, getStoreSize, getTokenAddressFromBridge, getTokenChainIdFromBridge, getTokenMetadata, loadTokenMetadata, parseChainScopedAddress, parseTokenKey, type ChainScopedAddress, } from './token-metadata.js';
|
|
26
|
+
export { readUnlistedToken } from './unlisted-token.js';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
export { blockPollIntervalForChain, blockPollIntervalMs, blockTimeMsByChainId, MAXIMUM_BLOCK_POLL_MS, MINIMUM_BLOCK_POLL_MS, } from './block-polling.js';
|
|
1
2
|
export { Cache } from './cache.js';
|
|
2
3
|
export { checkAllowance } from './chain-read.js';
|
|
3
4
|
export { clientFromChain, rpcBatchSetting } from './client.js';
|
|
4
5
|
export { add, configureEndpoints, ENDPOINTS_STORAGE_KEY, entries, get, getSnapshot, hasDefault, key, parse, productionSeed, remove, restoreDefault, setEndpoints, stringify, subscribe, testnetSeed, update, } from './endpoints.js';
|
|
6
|
+
export { FEE_RATE_SCALE, coverageOfAddress, crossingCoverage, ETHEREUM_MAINNET_CHAIN_ID, EXCHANGE_DEPOSIT_DEFAULT_FEE_RATE_E18, EXCHANGE_DEPOSIT_FEE_LIMITS_UNREADABLE, EXCHANGE_DEPOSIT_FEE_RATES, EXCHANGE_DEPOSIT_INITIAL_SELECTION, EXCHANGE_DEPOSIT_GAS_TABLE_NAME_BY_CHAIN, exchangeDepositGasTableOf, exchangeDepositSelectionReducer, assertFeeRatesWithinLimits, exchangeDepositStage, feeRateOptionsOf, feeRatePercent, SEPOLIA_CHAIN_ID, WEI_PER_ETHER, } from './exchange-deposit.js';
|
|
7
|
+
export { readRecipient, recipientIdenticon, sameAddress, } from './exchange-deposit-recipient.js';
|
|
5
8
|
export { chainLogoUrl, relayChainIconUrl } from './image.js';
|
|
6
9
|
export { evmChains, evmChainsById, isSupportedEvmChain } from './networks.js';
|
|
7
10
|
export { getBridgeTokenMetadata, getStoreKey, getStoreSize, getTokenAddressFromBridge, getTokenChainIdFromBridge, getTokenMetadata, loadTokenMetadata, parseChainScopedAddress, parseTokenKey, } from './token-metadata.js';
|
|
11
|
+
export { readUnlistedToken } from './unlisted-token.js';
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Kraken deposit minimums this interface routes against. Kraken publishes no public, keyless list of the networks
|
|
3
|
+
* it credits (its account API needs a key), so this table is copied by hand from Kraken's deposit page. Every row is
|
|
4
|
+
* on that page. A route to an asset not on the page is refused.
|
|
5
|
+
*
|
|
6
|
+
* Source: https://support.kraken.com/articles/360000292886-cryptocurrency-deposit-fees-and-minimums
|
|
7
|
+
* Dated: the page reads "Last updated: September 3, 2026".
|
|
8
|
+
*/
|
|
9
|
+
export declare const KRAKEN_DEPOSIT_SOURCE_URL = "https://support.kraken.com/articles/360000292886-cryptocurrency-deposit-fees-and-minimums";
|
|
10
|
+
/** The "Last updated" date the source page prints. The table is only as current as this date. */
|
|
11
|
+
export declare const KRAKEN_DEPOSIT_SOURCE_DATE = "September 3, 2026";
|
|
12
|
+
/**
|
|
13
|
+
* One asset Kraken credits on one EVM chain, and the deposit minimum below which Kraken says the funds are permanently
|
|
14
|
+
* lost. `tokenAddress` is `null` for the chain's native coin. `minimumAmount` is a whole-token decimal string, the way
|
|
15
|
+
* Kraken prints it.
|
|
16
|
+
*/
|
|
17
|
+
export interface KrakenDepositRule {
|
|
18
|
+
readonly chainId: number;
|
|
19
|
+
readonly tokenAddress: string | null;
|
|
20
|
+
readonly symbol: string;
|
|
21
|
+
readonly minimumAmount: string;
|
|
22
|
+
}
|
|
23
|
+
/** The Kraken deposit rules from the source page above: Ethereum mainnet and Base only. */
|
|
24
|
+
export declare const KRAKEN_DEPOSIT_RULES: readonly KrakenDepositRule[];
|
|
25
|
+
/**
|
|
26
|
+
* Finds the Kraken rule for one asset on one chain. Matching is by chain and contract address, compared in lower case,
|
|
27
|
+
* never by symbol. A `null` address means the chain's native coin.
|
|
28
|
+
*
|
|
29
|
+
* @param target - The chain and token address (`null` for native).
|
|
30
|
+
* @returns The rule, or `null` when Kraken does not credit that asset on that chain.
|
|
31
|
+
*/
|
|
32
|
+
export declare const krakenDepositRuleFor: (target: {
|
|
33
|
+
readonly chainId: number;
|
|
34
|
+
readonly tokenAddress: string | null;
|
|
35
|
+
}) => KrakenDepositRule | null;
|
|
36
|
+
/**
|
|
37
|
+
* Says whether Kraken credits a route's final asset on the route's final chain.
|
|
38
|
+
*
|
|
39
|
+
* @param target - The chain and token address (`null` for native).
|
|
40
|
+
* @returns `true` only when the source page lists that asset on that chain.
|
|
41
|
+
*/
|
|
42
|
+
export declare const isKrakenAcceptedDestination: (target: {
|
|
43
|
+
readonly chainId: number;
|
|
44
|
+
readonly tokenAddress: string | null;
|
|
45
|
+
}) => boolean;
|
|
46
|
+
/**
|
|
47
|
+
* The deposit minimum Kraken prints for an asset, as a whole-token decimal string, or `null` when Kraken does not
|
|
48
|
+
* credit that asset. A deposit below the minimum is lost, so the minimum is a refusal, not a warning.
|
|
49
|
+
*
|
|
50
|
+
* @param target - The chain and token address (`null` for native).
|
|
51
|
+
* @returns The minimum, such as `"2.5"`, or `null` when the asset is not on the table.
|
|
52
|
+
*/
|
|
53
|
+
export declare const krakenDepositMinimumFor: (target: {
|
|
54
|
+
readonly chainId: number;
|
|
55
|
+
readonly tokenAddress: string | null;
|
|
56
|
+
}) => string | null;
|
|
57
|
+
/**
|
|
58
|
+
* Says whether a delivered amount is strictly below an exchange's minimum. Both sides are compared in base units, so no
|
|
59
|
+
* floating point number is involved. viem rounds a minimum that has more decimal places than the token has.
|
|
60
|
+
*
|
|
61
|
+
* @param options.deliveredBaseUnits - The delivered amount in the token's base units.
|
|
62
|
+
* @param options.decimals - How many places the token divides into.
|
|
63
|
+
* @param options.minimumAmount - The minimum as a whole-token decimal string.
|
|
64
|
+
* @returns `true` only when the delivered amount is below the minimum. An amount exactly at the minimum passes.
|
|
65
|
+
*/
|
|
66
|
+
export declare const isBelowDepositMinimum: ({ deliveredBaseUnits, decimals, minimumAmount, }: {
|
|
67
|
+
readonly deliveredBaseUnits: bigint;
|
|
68
|
+
readonly decimals: number;
|
|
69
|
+
readonly minimumAmount: string;
|
|
70
|
+
}) => boolean;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { parseUnits } from 'viem';
|
|
2
|
+
export const KRAKEN_DEPOSIT_SOURCE_URL = 'https://support.kraken.com/articles/360000292886-cryptocurrency-deposit-fees-and-minimums';
|
|
3
|
+
export const KRAKEN_DEPOSIT_SOURCE_DATE = 'September 3, 2026';
|
|
4
|
+
export const KRAKEN_DEPOSIT_RULES = [
|
|
5
|
+
{ chainId: 1, tokenAddress: null, symbol: 'ETH', minimumAmount: '0.004' },
|
|
6
|
+
{ chainId: 1, tokenAddress: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', symbol: 'USDC', minimumAmount: '2.5' },
|
|
7
|
+
{ chainId: 1, tokenAddress: '0xdAC17F958D2ee523a2206206994597C13D831ec7', symbol: 'USDT', minimumAmount: '2.5' },
|
|
8
|
+
{ chainId: 8453, tokenAddress: null, symbol: 'ETH', minimumAmount: '0.0025' },
|
|
9
|
+
{ chainId: 8453, tokenAddress: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913', symbol: 'USDC', minimumAmount: '2.5' },
|
|
10
|
+
];
|
|
11
|
+
export const krakenDepositRuleFor = (target) => {
|
|
12
|
+
const lowerAddress = target.tokenAddress?.toLowerCase() ?? null;
|
|
13
|
+
return (KRAKEN_DEPOSIT_RULES.find((rule) => rule.chainId === target.chainId && (rule.tokenAddress?.toLowerCase() ?? null) === lowerAddress) ?? null);
|
|
14
|
+
};
|
|
15
|
+
export const isKrakenAcceptedDestination = (target) => krakenDepositRuleFor(target) !== null;
|
|
16
|
+
export const krakenDepositMinimumFor = (target) => krakenDepositRuleFor(target)?.minimumAmount ?? null;
|
|
17
|
+
export const isBelowDepositMinimum = ({ deliveredBaseUnits, decimals, minimumAmount, }) => deliveredBaseUnits < parseUnits(minimumAmount, decimals);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Token } from '@gibs/bridge-sdk/types';
|
|
2
|
+
import { type PublicClient } from 'viem';
|
|
3
|
+
/**
|
|
4
|
+
* Reads the name, symbol and decimals of a token that no token list carries.
|
|
5
|
+
* The read is one multicall on the token's own chain.
|
|
6
|
+
*
|
|
7
|
+
* The logo comes from the one image builder (`tokenImage`), never a hand-built
|
|
8
|
+
* url: the token's own picture first, then the token it pairs with. An
|
|
9
|
+
* unlisted bridged copy rarely has a picture of its own.
|
|
10
|
+
*
|
|
11
|
+
* @param params.chainId - the decimal chain id of the token
|
|
12
|
+
* @param params.address - the token address, or null
|
|
13
|
+
* @param params.counterpart - the token this one pairs with, used as the image
|
|
14
|
+
* fallback, or null
|
|
15
|
+
* @param params.client - a public client on the token's own chain
|
|
16
|
+
* @returns the token, or null when there is no address or the read fails
|
|
17
|
+
*/
|
|
18
|
+
export declare const readUnlistedToken: ({ chainId, address, counterpart, client, }: {
|
|
19
|
+
chainId: number;
|
|
20
|
+
address: string | null;
|
|
21
|
+
counterpart: {
|
|
22
|
+
chainId: number;
|
|
23
|
+
address: string;
|
|
24
|
+
} | null;
|
|
25
|
+
client: PublicClient;
|
|
26
|
+
}) => Promise<Token | null>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { chainsMetadata } from '@gibs/bridge-sdk/chains';
|
|
2
|
+
import { toChain } from '@gibs/bridge-sdk/config';
|
|
3
|
+
import { multicallErc20 } from '@gibs/common/erc20';
|
|
4
|
+
import { getAddress } from 'viem';
|
|
5
|
+
import { tokenImage } from './image.js';
|
|
6
|
+
export const readUnlistedToken = async ({ chainId, address, counterpart, client, }) => {
|
|
7
|
+
if (!address)
|
|
8
|
+
return null;
|
|
9
|
+
const checksummed = getAddress(address);
|
|
10
|
+
const metadata = await multicallErc20({
|
|
11
|
+
client,
|
|
12
|
+
chain: chainsMetadata[toChain(chainId)],
|
|
13
|
+
target: checksummed,
|
|
14
|
+
}).catch(() => null);
|
|
15
|
+
if (!metadata)
|
|
16
|
+
return null;
|
|
17
|
+
const [name, symbol, decimals] = metadata;
|
|
18
|
+
return {
|
|
19
|
+
name,
|
|
20
|
+
symbol,
|
|
21
|
+
decimals,
|
|
22
|
+
chainId,
|
|
23
|
+
address: checksummed,
|
|
24
|
+
logoURI: tokenImage({
|
|
25
|
+
chainId,
|
|
26
|
+
address: checksummed,
|
|
27
|
+
counterparts: counterpart ? [counterpart] : null,
|
|
28
|
+
}),
|
|
29
|
+
};
|
|
30
|
+
};
|
package/llms.txt
CHANGED
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
- `@gibs/bridge-client/networks`: the supported viem chains.
|
|
23
23
|
- `@gibs/bridge-client/image`: chain logo URLs.
|
|
24
24
|
- `@gibs/bridge-client/token-metadata`: token metadata reads and caching.
|
|
25
|
+
- `@gibs/bridge-client/block-polling`: how often to ask a chain for its latest block, once per block.
|
|
25
26
|
- `@gibs/bridge-client/chain-read`: allowance reads.
|
|
26
27
|
- `@gibs/bridge-client/cache`: the `Cache` class.
|
|
27
28
|
|