@wormhole-foundation/connect-sdk-evm
Advanced tools
Comparing version 0.2.0-beta.4 to 0.2.0-beta.5
@@ -13,3 +13,3 @@ import { Balances, Chain, ChainsConfig, Network, PlatformContext, SignedTx, TokenId, TxHash } from '@wormhole-foundation/connect-sdk'; | ||
getRpc<C extends EvmChains>(chain: C): Provider; | ||
getChain<C extends EvmChains>(chain: C): EvmChain<N, C>; | ||
getChain<C extends EvmChains>(chain: C, rpc?: Provider): EvmChain<N, C>; | ||
static nativeTokenId<N extends Network, C extends EvmChains>(network: N, chain: C): TokenId<C>; | ||
@@ -16,0 +16,0 @@ static isNativeTokenId<N extends Network, C extends EvmChains>(network: N, chain: C, tokenId: TokenId): boolean; |
@@ -46,5 +46,5 @@ "use strict"; | ||
} | ||
getChain(chain) { | ||
getChain(chain, rpc) { | ||
if (chain in this.config) | ||
return new chain_1.EvmChain(chain, this); | ||
return new chain_1.EvmChain(chain, this, rpc); | ||
throw new Error('No configuration available for chain: ' + chain); | ||
@@ -51,0 +51,0 @@ } |
@@ -13,3 +13,3 @@ import { Balances, Chain, ChainsConfig, Network, PlatformContext, SignedTx, TokenId, TxHash } from '@wormhole-foundation/connect-sdk'; | ||
getRpc<C extends EvmChains>(chain: C): Provider; | ||
getChain<C extends EvmChains>(chain: C): EvmChain<N, C>; | ||
getChain<C extends EvmChains>(chain: C, rpc?: Provider): EvmChain<N, C>; | ||
static nativeTokenId<N extends Network, C extends EvmChains>(network: N, chain: C): TokenId<C>; | ||
@@ -16,0 +16,0 @@ static isNativeTokenId<N extends Network, C extends EvmChains>(network: N, chain: C, tokenId: TokenId): boolean; |
@@ -20,5 +20,5 @@ import { PlatformContext, chainToPlatform, decimals, encoding, nativeChainAddress, nativeChainIds, networkPlatformConfigs, } from '@wormhole-foundation/connect-sdk'; | ||
} | ||
getChain(chain) { | ||
getChain(chain, rpc) { | ||
if (chain in this.config) | ||
return new EvmChain(chain, this); | ||
return new EvmChain(chain, this, rpc); | ||
throw new Error('No configuration available for chain: ' + chain); | ||
@@ -25,0 +25,0 @@ } |
{ | ||
"name": "@wormhole-foundation/connect-sdk-evm", | ||
"version": "0.2.0-beta.4", | ||
"version": "0.2.0-beta.5", | ||
"repository": { | ||
@@ -56,3 +56,3 @@ "type": "git", | ||
"dependencies": { | ||
"@wormhole-foundation/connect-sdk": "^0.2.0-beta.4", | ||
"@wormhole-foundation/connect-sdk": "^0.2.0-beta.5", | ||
"typechain": "^8.2.0", | ||
@@ -59,0 +59,0 @@ "ethers": "^6.5.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
401128