@bgd-labs/toolbox 0.0.40 → 0.0.41
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/dist/index.d.mts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -4
- package/dist/index.mjs.map +1 -1
- package/dist/node.js +6 -3
- package/dist/node.js.map +1 -1
- package/dist/node.mjs +8 -4
- package/dist/node.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -715,6 +715,7 @@ declare const ChainId: {
|
|
|
715
715
|
readonly ink: 57073;
|
|
716
716
|
readonly soneium: 1868;
|
|
717
717
|
readonly bob: 60808;
|
|
718
|
+
readonly plasma: 9745;
|
|
718
719
|
};
|
|
719
720
|
declare const ChainList: Record<valueOf<typeof ChainId>, Chain>;
|
|
720
721
|
|
|
@@ -737,12 +738,13 @@ declare const publicRPCs: {
|
|
|
737
738
|
readonly 43114: "https://api.avax.network/ext/bc/C/rpc";
|
|
738
739
|
readonly 59144: "https://rpc.linea.build";
|
|
739
740
|
readonly 60808: "https://rpc.gobob.xyz";
|
|
741
|
+
readonly 9745: "https://rpc.plasma.to";
|
|
740
742
|
};
|
|
741
|
-
declare const alchemySupportedChainIds: (1 | 10 | 56 | 100 | 137 | 146 | 324 | 1101 | 5000 | 8453 | 42161 | 42220 | 43113 | 43114 | 59144 | 80002 | 84532 | 421614 | 534351 | 534352 | 11155111 | 11155420 | 1088 | 57073 | 250 | 1868 | 60808 | 1666600000 | 4002)[];
|
|
742
|
-
declare const getNetworkEnv: (chainId: SupportedChainIds) => "RPC_BNB" | "RPC_CELO" | "RPC_METIS" | "RPC_BOB" | "RPC_BASE" | "RPC_SCROLL" | "RPC_MAINNET" | "RPC_POLYGON" | "RPC_POLYGON_AMOY" | "RPC_AVALANCHE" | "RPC_AVALANCHE_FUJI" | "RPC_ARBITRUM" | "RPC_ARBITRUM_SEPOLIA" | "RPC_FANTOM" | "RPC_FANTOM_TESTNET" | "RPC_OPTIMISM" | "RPC_OPTIMISM_SEPOLIA" | "RPC_HARMONY" | "RPC_SEPOLIA" | "RPC_SCROLL_SEPOLIA" | "RPC_SONIC" | "RPC_MANTLE" | "RPC_BASE_SEPOLIA" | "RPC_GNOSIS" | "RPC_ZKEVM" | "RPC_ZKSYNC" | "RPC_LINEA" | "RPC_INK" | "RPC_SONEIUM";
|
|
743
|
+
declare const alchemySupportedChainIds: (1 | 10 | 56 | 100 | 137 | 146 | 324 | 1101 | 5000 | 8453 | 42161 | 42220 | 43113 | 43114 | 59144 | 80002 | 84532 | 421614 | 534351 | 534352 | 11155111 | 11155420 | 1088 | 57073 | 250 | 1868 | 60808 | 1666600000 | 4002 | 9745)[];
|
|
744
|
+
declare const getNetworkEnv: (chainId: SupportedChainIds) => "RPC_BNB" | "RPC_CELO" | "RPC_METIS" | "RPC_BOB" | "RPC_BASE" | "RPC_SCROLL" | "RPC_MAINNET" | "RPC_POLYGON" | "RPC_POLYGON_AMOY" | "RPC_AVALANCHE" | "RPC_AVALANCHE_FUJI" | "RPC_ARBITRUM" | "RPC_ARBITRUM_SEPOLIA" | "RPC_FANTOM" | "RPC_FANTOM_TESTNET" | "RPC_OPTIMISM" | "RPC_OPTIMISM_SEPOLIA" | "RPC_HARMONY" | "RPC_SEPOLIA" | "RPC_SCROLL_SEPOLIA" | "RPC_SONIC" | "RPC_MANTLE" | "RPC_BASE_SEPOLIA" | "RPC_GNOSIS" | "RPC_ZKEVM" | "RPC_ZKSYNC" | "RPC_LINEA" | "RPC_INK" | "RPC_SONEIUM" | "RPC_PLASMA";
|
|
743
745
|
declare function getExplicitRPC(chainId: SupportedChainIds): string;
|
|
744
746
|
declare function getAlchemyRPC(chainId: SupportedChainIds, alchemyKey: string): string;
|
|
745
|
-
declare function getPublicRpc(chainId: SupportedChainIds): "https://mainnet.era.zksync.io" | "https://api.avax.network/ext/bc/C/rpc" | "https://rpc.linea.build" | "https://rpc.scroll.io" | "https://andromeda.metis.io/?owner=1088" | "https://rpc.gobob.xyz" | "https://eth.llamarpc.com" | "https://polygon.llamarpc.com" | "https://base.llamarpc.com" | "https://binance.llamarpc.com" | "https://rpc.ankr.com/gnosis" | "https://rpc.ftm.tools";
|
|
747
|
+
declare function getPublicRpc(chainId: SupportedChainIds): "https://mainnet.era.zksync.io" | "https://api.avax.network/ext/bc/C/rpc" | "https://rpc.linea.build" | "https://rpc.scroll.io" | "https://andromeda.metis.io/?owner=1088" | "https://rpc.gobob.xyz" | "https://rpc.plasma.to" | "https://eth.llamarpc.com" | "https://polygon.llamarpc.com" | "https://base.llamarpc.com" | "https://binance.llamarpc.com" | "https://rpc.ankr.com/gnosis" | "https://rpc.ftm.tools";
|
|
746
748
|
/**
|
|
747
749
|
* HyperRPCs are extremely fast **but** they only support a subset of the standard.
|
|
748
750
|
* Therefore they are not used in the generalized getClient atm.
|
package/dist/index.d.ts
CHANGED
|
@@ -715,6 +715,7 @@ declare const ChainId: {
|
|
|
715
715
|
readonly ink: 57073;
|
|
716
716
|
readonly soneium: 1868;
|
|
717
717
|
readonly bob: 60808;
|
|
718
|
+
readonly plasma: 9745;
|
|
718
719
|
};
|
|
719
720
|
declare const ChainList: Record<valueOf<typeof ChainId>, Chain>;
|
|
720
721
|
|
|
@@ -737,12 +738,13 @@ declare const publicRPCs: {
|
|
|
737
738
|
readonly 43114: "https://api.avax.network/ext/bc/C/rpc";
|
|
738
739
|
readonly 59144: "https://rpc.linea.build";
|
|
739
740
|
readonly 60808: "https://rpc.gobob.xyz";
|
|
741
|
+
readonly 9745: "https://rpc.plasma.to";
|
|
740
742
|
};
|
|
741
|
-
declare const alchemySupportedChainIds: (1 | 10 | 56 | 100 | 137 | 146 | 324 | 1101 | 5000 | 8453 | 42161 | 42220 | 43113 | 43114 | 59144 | 80002 | 84532 | 421614 | 534351 | 534352 | 11155111 | 11155420 | 1088 | 57073 | 250 | 1868 | 60808 | 1666600000 | 4002)[];
|
|
742
|
-
declare const getNetworkEnv: (chainId: SupportedChainIds) => "RPC_BNB" | "RPC_CELO" | "RPC_METIS" | "RPC_BOB" | "RPC_BASE" | "RPC_SCROLL" | "RPC_MAINNET" | "RPC_POLYGON" | "RPC_POLYGON_AMOY" | "RPC_AVALANCHE" | "RPC_AVALANCHE_FUJI" | "RPC_ARBITRUM" | "RPC_ARBITRUM_SEPOLIA" | "RPC_FANTOM" | "RPC_FANTOM_TESTNET" | "RPC_OPTIMISM" | "RPC_OPTIMISM_SEPOLIA" | "RPC_HARMONY" | "RPC_SEPOLIA" | "RPC_SCROLL_SEPOLIA" | "RPC_SONIC" | "RPC_MANTLE" | "RPC_BASE_SEPOLIA" | "RPC_GNOSIS" | "RPC_ZKEVM" | "RPC_ZKSYNC" | "RPC_LINEA" | "RPC_INK" | "RPC_SONEIUM";
|
|
743
|
+
declare const alchemySupportedChainIds: (1 | 10 | 56 | 100 | 137 | 146 | 324 | 1101 | 5000 | 8453 | 42161 | 42220 | 43113 | 43114 | 59144 | 80002 | 84532 | 421614 | 534351 | 534352 | 11155111 | 11155420 | 1088 | 57073 | 250 | 1868 | 60808 | 1666600000 | 4002 | 9745)[];
|
|
744
|
+
declare const getNetworkEnv: (chainId: SupportedChainIds) => "RPC_BNB" | "RPC_CELO" | "RPC_METIS" | "RPC_BOB" | "RPC_BASE" | "RPC_SCROLL" | "RPC_MAINNET" | "RPC_POLYGON" | "RPC_POLYGON_AMOY" | "RPC_AVALANCHE" | "RPC_AVALANCHE_FUJI" | "RPC_ARBITRUM" | "RPC_ARBITRUM_SEPOLIA" | "RPC_FANTOM" | "RPC_FANTOM_TESTNET" | "RPC_OPTIMISM" | "RPC_OPTIMISM_SEPOLIA" | "RPC_HARMONY" | "RPC_SEPOLIA" | "RPC_SCROLL_SEPOLIA" | "RPC_SONIC" | "RPC_MANTLE" | "RPC_BASE_SEPOLIA" | "RPC_GNOSIS" | "RPC_ZKEVM" | "RPC_ZKSYNC" | "RPC_LINEA" | "RPC_INK" | "RPC_SONEIUM" | "RPC_PLASMA";
|
|
743
745
|
declare function getExplicitRPC(chainId: SupportedChainIds): string;
|
|
744
746
|
declare function getAlchemyRPC(chainId: SupportedChainIds, alchemyKey: string): string;
|
|
745
|
-
declare function getPublicRpc(chainId: SupportedChainIds): "https://mainnet.era.zksync.io" | "https://api.avax.network/ext/bc/C/rpc" | "https://rpc.linea.build" | "https://rpc.scroll.io" | "https://andromeda.metis.io/?owner=1088" | "https://rpc.gobob.xyz" | "https://eth.llamarpc.com" | "https://polygon.llamarpc.com" | "https://base.llamarpc.com" | "https://binance.llamarpc.com" | "https://rpc.ankr.com/gnosis" | "https://rpc.ftm.tools";
|
|
747
|
+
declare function getPublicRpc(chainId: SupportedChainIds): "https://mainnet.era.zksync.io" | "https://api.avax.network/ext/bc/C/rpc" | "https://rpc.linea.build" | "https://rpc.scroll.io" | "https://andromeda.metis.io/?owner=1088" | "https://rpc.gobob.xyz" | "https://rpc.plasma.to" | "https://eth.llamarpc.com" | "https://polygon.llamarpc.com" | "https://base.llamarpc.com" | "https://binance.llamarpc.com" | "https://rpc.ankr.com/gnosis" | "https://rpc.ftm.tools";
|
|
746
748
|
/**
|
|
747
749
|
* HyperRPCs are extremely fast **but** they only support a subset of the standard.
|
|
748
750
|
* Therefore they are not used in the generalized getClient atm.
|
package/dist/index.js
CHANGED
|
@@ -18090,7 +18090,8 @@ var ChainId = {
|
|
|
18090
18090
|
linea: import_chains.linea.id,
|
|
18091
18091
|
ink: import_chains.ink.id,
|
|
18092
18092
|
soneium: import_chains.soneium.id,
|
|
18093
|
-
bob: import_chains.bob.id
|
|
18093
|
+
bob: import_chains.bob.id,
|
|
18094
|
+
plasma: import_chains.plasma.id
|
|
18094
18095
|
};
|
|
18095
18096
|
var ChainList = {
|
|
18096
18097
|
[ChainId.mainnet]: import_chains.mainnet,
|
|
@@ -18131,7 +18132,8 @@ var ChainList = {
|
|
|
18131
18132
|
[ChainId.linea]: import_chains.linea,
|
|
18132
18133
|
[ChainId.ink]: import_chains.ink,
|
|
18133
18134
|
[ChainId.soneium]: import_chains.soneium,
|
|
18134
|
-
[ChainId.bob]: import_chains.bob
|
|
18135
|
+
[ChainId.bob]: import_chains.bob,
|
|
18136
|
+
[ChainId.plasma]: import_chains.plasma
|
|
18135
18137
|
};
|
|
18136
18138
|
|
|
18137
18139
|
// src/ecosystem/tenderly.ts
|
|
@@ -18677,7 +18679,8 @@ var publicRPCs = {
|
|
|
18677
18679
|
[ChainId.fantom]: "https://rpc.ftm.tools",
|
|
18678
18680
|
[ChainId.avalanche]: "https://api.avax.network/ext/bc/C/rpc",
|
|
18679
18681
|
[ChainId.linea]: "https://rpc.linea.build",
|
|
18680
|
-
[ChainId.bob]: "https://rpc.gobob.xyz"
|
|
18682
|
+
[ChainId.bob]: "https://rpc.gobob.xyz",
|
|
18683
|
+
[ChainId.plasma]: "https://rpc.plasma.to"
|
|
18681
18684
|
};
|
|
18682
18685
|
var alchemySupportedChainIds = Object.values(ChainId).filter(
|
|
18683
18686
|
(id) => alchemyNetworkMap[id]
|