@venusprotocol/chains 0.20.0 → 0.22.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/build/index.d.mts +4 -2
- package/build/index.mjs +1157 -68
- package/package.json +1 -1
package/build/index.d.mts
CHANGED
|
@@ -60,6 +60,7 @@ interface Token {
|
|
|
60
60
|
symbol: string;
|
|
61
61
|
decimals: number;
|
|
62
62
|
iconSrc: string;
|
|
63
|
+
chainId: ChainId;
|
|
63
64
|
address: Address;
|
|
64
65
|
isNative?: boolean;
|
|
65
66
|
tokenWrapped?: Token;
|
|
@@ -85,8 +86,9 @@ declare const chains: Record<ChainId, Chain>;
|
|
|
85
86
|
declare const tokens: { [chainId in ChainId]: Token[] };
|
|
86
87
|
//#endregion
|
|
87
88
|
//#region src/tokens/nativeTokens/index.d.ts
|
|
88
|
-
|
|
89
|
-
declare const
|
|
89
|
+
type TokenMapping<C extends ChainId[]> = Record<C[number], Token>;
|
|
90
|
+
declare const eth: TokenMapping<(ChainId.ETHEREUM | ChainId.SEPOLIA | ChainId.ARBITRUM_ONE | ChainId.ARBITRUM_SEPOLIA | ChainId.ZKSYNC_MAINNET | ChainId.ZKSYNC_SEPOLIA | ChainId.OPTIMISM_MAINNET | ChainId.OPTIMISM_SEPOLIA | ChainId.BASE_MAINNET | ChainId.BASE_SEPOLIA | ChainId.UNICHAIN_MAINNET | ChainId.UNICHAIN_SEPOLIA)[]>;
|
|
91
|
+
declare const bnb: TokenMapping<(ChainId.BSC_MAINNET | ChainId.BSC_TESTNET | ChainId.OPBNB_MAINNET | ChainId.OPBNB_TESTNET)[]>;
|
|
90
92
|
//#endregion
|
|
91
93
|
//#region src/generated/vTokens/index.d.ts
|
|
92
94
|
declare const vTokens: { [chainId in ChainId]: VToken[] };
|