@wormhole-foundation/sdk-evm-tokenbridge
Advanced tools
Comparing version 0.6.9-beta.1 to 0.7.0-beta.0
@@ -1,2 +0,2 @@ | ||
import type { AccountAddress, AutomaticTokenBridge, ChainAddress, ChainsConfig, Contracts, NativeAddress, Network, TokenAddress } from '@wormhole-foundation/sdk-connect'; | ||
import type { AccountAddress, AutomaticTokenBridge, Chain, ChainAddress, ChainsConfig, Contracts, NativeAddress, Network, TokenAddress } from '@wormhole-foundation/sdk-connect'; | ||
import type { EvmChains, EvmPlatformType } from '@wormhole-foundation/sdk-evm'; | ||
@@ -19,3 +19,3 @@ import { EvmUnsignedTransaction } from '@wormhole-foundation/sdk-evm'; | ||
transfer(sender: AccountAddress<C>, recipient: ChainAddress, token: TokenAddress<C>, amount: bigint, nativeGas?: bigint): AsyncGenerator<EvmUnsignedTransaction<N, C>>; | ||
getRelayerFee(sender: AccountAddress<C>, recipient: ChainAddress, token: TokenAddress<C>): Promise<bigint>; | ||
getRelayerFee(destination: Chain, token: TokenAddress<C>): Promise<bigint>; | ||
nativeTokenAmount(token: TokenAddress<C>, amount: bigint): Promise<bigint>; | ||
@@ -22,0 +22,0 @@ maxSwapAmount(token: TokenAddress<C>): Promise<bigint>; |
@@ -72,4 +72,4 @@ "use strict"; | ||
} | ||
async getRelayerFee(sender, recipient, token) { | ||
const destChainId = (0, sdk_connect_1.toChainId)(recipient.chain); | ||
async getRelayerFee(destination, token) { | ||
const destChainId = (0, sdk_connect_1.toChainId)(destination); | ||
const srcTokenAddress = await this.tokenAddress(token); | ||
@@ -76,0 +76,0 @@ const tokenContract = sdk_evm_1.EvmPlatform.getTokenImplementation(this.provider, srcTokenAddress); |
@@ -1,2 +0,2 @@ | ||
import type { AccountAddress, AutomaticTokenBridge, ChainAddress, ChainsConfig, Contracts, NativeAddress, Network, TokenAddress } from '@wormhole-foundation/sdk-connect'; | ||
import type { AccountAddress, AutomaticTokenBridge, Chain, ChainAddress, ChainsConfig, Contracts, NativeAddress, Network, TokenAddress } from '@wormhole-foundation/sdk-connect'; | ||
import type { EvmChains, EvmPlatformType } from '@wormhole-foundation/sdk-evm'; | ||
@@ -19,3 +19,3 @@ import { EvmUnsignedTransaction } from '@wormhole-foundation/sdk-evm'; | ||
transfer(sender: AccountAddress<C>, recipient: ChainAddress, token: TokenAddress<C>, amount: bigint, nativeGas?: bigint): AsyncGenerator<EvmUnsignedTransaction<N, C>>; | ||
getRelayerFee(sender: AccountAddress<C>, recipient: ChainAddress, token: TokenAddress<C>): Promise<bigint>; | ||
getRelayerFee(destination: Chain, token: TokenAddress<C>): Promise<bigint>; | ||
nativeTokenAmount(token: TokenAddress<C>, amount: bigint): Promise<bigint>; | ||
@@ -22,0 +22,0 @@ maxSwapAmount(token: TokenAddress<C>): Promise<bigint>; |
@@ -69,4 +69,4 @@ import { isNative, serialize, toNative, nativeChainIds, toChainId, } from '@wormhole-foundation/sdk-connect'; | ||
} | ||
async getRelayerFee(sender, recipient, token) { | ||
const destChainId = toChainId(recipient.chain); | ||
async getRelayerFee(destination, token) { | ||
const destChainId = toChainId(destination); | ||
const srcTokenAddress = await this.tokenAddress(token); | ||
@@ -73,0 +73,0 @@ const tokenContract = EvmPlatform.getTokenImplementation(this.provider, srcTokenAddress); |
{ | ||
"name": "@wormhole-foundation/sdk-evm-tokenbridge", | ||
"version": "0.6.9-beta.1", | ||
"version": "0.7.0-beta.0", | ||
"repository": { | ||
@@ -55,5 +55,5 @@ "type": "git", | ||
"dependencies": { | ||
"@wormhole-foundation/sdk-connect": "0.6.9-beta.1", | ||
"@wormhole-foundation/sdk-evm": "0.6.9-beta.1", | ||
"@wormhole-foundation/sdk-evm-core": "0.6.9-beta.1", | ||
"@wormhole-foundation/sdk-connect": "0.7.0-beta.0", | ||
"@wormhole-foundation/sdk-evm": "0.7.0-beta.0", | ||
"@wormhole-foundation/sdk-evm-core": "0.7.0-beta.0", | ||
"ethers": "^6.5.1" | ||
@@ -60,0 +60,0 @@ }, |
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
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
958389
+ Added@wormhole-foundation/sdk-base@0.7.0-beta.0(transitive)
+ Added@wormhole-foundation/sdk-connect@0.7.0-beta.0(transitive)
+ Added@wormhole-foundation/sdk-definitions@0.7.0-beta.0(transitive)
+ Added@wormhole-foundation/sdk-evm@0.7.0-beta.0(transitive)
+ Added@wormhole-foundation/sdk-evm-core@0.7.0-beta.0(transitive)
- Removed@wormhole-foundation/sdk-base@0.6.9-beta.1(transitive)
- Removed@wormhole-foundation/sdk-connect@0.6.9-beta.1(transitive)
- Removed@wormhole-foundation/sdk-definitions@0.6.9-beta.1(transitive)
- Removed@wormhole-foundation/sdk-evm@0.6.9-beta.1(transitive)
- Removed@wormhole-foundation/sdk-evm-core@0.6.9-beta.1(transitive)