@dynamic-labs/ethereum-core
Advanced tools
Comparing version 4.4.2-preview.0 to 4.4.2
'use client' | ||
var version = "4.4.2-preview.0"; | ||
var version = "4.4.2"; | ||
export { version }; |
{ | ||
"name": "@dynamic-labs/ethereum-core", | ||
"version": "4.4.2-preview.0", | ||
"version": "4.4.2", | ||
"description": "Core package for utilities and types for viem", | ||
@@ -25,10 +25,10 @@ "author": "Dynamic Labs, Inc.", | ||
"viem": "^2.21.55", | ||
"@dynamic-labs/assert-package-version": "4.4.2-preview.0", | ||
"@dynamic-labs/logger": "4.4.2-preview.0", | ||
"@dynamic-labs/rpc-providers": "4.4.2-preview.0", | ||
"@dynamic-labs/types": "4.4.2-preview.0", | ||
"@dynamic-labs/utils": "4.4.2-preview.0", | ||
"@dynamic-labs/wallet-book": "4.4.2-preview.0", | ||
"@dynamic-labs/wallet-connector-core": "4.4.2-preview.0" | ||
"@dynamic-labs/assert-package-version": "4.4.2", | ||
"@dynamic-labs/logger": "4.4.2", | ||
"@dynamic-labs/rpc-providers": "4.4.2", | ||
"@dynamic-labs/types": "4.4.2", | ||
"@dynamic-labs/utils": "4.4.2", | ||
"@dynamic-labs/wallet-book": "4.4.2", | ||
"@dynamic-labs/wallet-connector-core": "4.4.2" | ||
} | ||
} |
@@ -24,2 +24,3 @@ 'use client' | ||
export { validateAddressFormat } from './utils/validateAddressFormat/validateAddressFormat.js'; | ||
export { parseAddress } from './utils/parseAddress/parseAddress.js'; | ||
export { EthereumWallet } from './wallet/EthereumWallet.js'; | ||
@@ -26,0 +27,0 @@ export { isEthereumWallet } from './wallet/isEthereumWallet/isEthereumWallet.js'; |
@@ -5,1 +5,2 @@ export * from './viem'; | ||
export { validateAddressFormat } from './validateAddressFormat'; | ||
export { parseAddress } from './parseAddress'; |
import { Account, Chain, PublicClient, Transport, WalletClient } from 'viem'; | ||
import { Wallet } from '@dynamic-labs/wallet-connector-core'; | ||
import { Wallet, WalletProps } from '@dynamic-labs/wallet-connector-core'; | ||
import { EthereumWalletConnector } from '../connector'; | ||
export declare class EthereumWallet extends Wallet<EthereumWalletConnector> { | ||
constructor(props: WalletProps<EthereumWalletConnector>); | ||
/** | ||
@@ -6,0 +7,0 @@ * Sends the native balance of the wallet to the given address. |
@@ -13,4 +13,8 @@ 'use client' | ||
import { getChain } from '../utils/viem/getOrMapViemChain/getOrMapViemChain.js'; | ||
import { parseAddress } from '../utils/parseAddress/parseAddress.js'; | ||
class EthereumWallet extends Wallet { | ||
constructor(props) { | ||
super(Object.assign(Object.assign({}, props), { address: parseAddress(props.address) })); | ||
} | ||
/** | ||
@@ -17,0 +21,0 @@ * Sends the native balance of the wallet to the given address. |
Sorry, the diff of this file is too big to display
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1072812
141
15444
0