@wormhole-foundation/connect-sdk-evm
Advanced tools
Comparing version 0.4.0-beta.8 to 0.4.0-beta.9
@@ -1,5 +0,6 @@ | ||
import { Chain, SignOnlySigner, SignedTx, Signer, UnsignedTransaction, Network } from '@wormhole-foundation/connect-sdk'; | ||
import { Network, SignOnlySigner, SignedTx, Signer, UnsignedTransaction } from '@wormhole-foundation/connect-sdk'; | ||
import { ethers } from 'ethers'; | ||
import { EvmChains } from '../types'; | ||
export declare function getEvmSigner(rpc: ethers.Provider, privateKey: string): Promise<Signer>; | ||
export declare class EvmSigner<N extends Network, C extends Chain> implements SignOnlySigner<N, C> { | ||
export declare class EvmSigner<N extends Network, C extends EvmChains = EvmChains> implements SignOnlySigner<N, C> { | ||
private _chain; | ||
@@ -10,2 +11,3 @@ private provider; | ||
chain(): C; | ||
getChainId(): C; | ||
address(): string; | ||
@@ -12,0 +14,0 @@ sign(tx: UnsignedTransaction[]): Promise<SignedTx[]>; |
@@ -25,2 +25,5 @@ "use strict"; | ||
} | ||
getChainId() { | ||
return this._chain; | ||
} | ||
address() { | ||
@@ -27,0 +30,0 @@ return this._wallet.address; |
@@ -1,5 +0,6 @@ | ||
import { Chain, SignOnlySigner, SignedTx, Signer, UnsignedTransaction, Network } from '@wormhole-foundation/connect-sdk'; | ||
import { Network, SignOnlySigner, SignedTx, Signer, UnsignedTransaction } from '@wormhole-foundation/connect-sdk'; | ||
import { ethers } from 'ethers'; | ||
import { EvmChains } from '../types'; | ||
export declare function getEvmSigner(rpc: ethers.Provider, privateKey: string): Promise<Signer>; | ||
export declare class EvmSigner<N extends Network, C extends Chain> implements SignOnlySigner<N, C> { | ||
export declare class EvmSigner<N extends Network, C extends EvmChains = EvmChains> implements SignOnlySigner<N, C> { | ||
private _chain; | ||
@@ -10,2 +11,3 @@ private provider; | ||
chain(): C; | ||
getChainId(): C; | ||
address(): string; | ||
@@ -12,0 +14,0 @@ sign(tx: UnsignedTransaction[]): Promise<SignedTx[]>; |
@@ -21,2 +21,5 @@ import { ethers } from 'ethers'; | ||
} | ||
getChainId() { | ||
return this._chain; | ||
} | ||
address() { | ||
@@ -23,0 +26,0 @@ return this._wallet.address; |
{ | ||
"name": "@wormhole-foundation/connect-sdk-evm", | ||
"version": "0.4.0-beta.8", | ||
"version": "0.4.0-beta.9", | ||
"repository": { | ||
@@ -56,3 +56,3 @@ "type": "git", | ||
"dependencies": { | ||
"@wormhole-foundation/connect-sdk": "^0.4.0-beta.8", | ||
"@wormhole-foundation/connect-sdk": "^0.4.0-beta.9", | ||
"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
803022
222
4125