UNPKG

@nomicfoundation/hardhat-viem

Version:
14 lines 1.57 kB
import { getPublicClient, getWalletClients, getWalletClient, getTestClient, } from "./clients.js"; import { deployContract, getContractAt, sendDeploymentTransaction, } from "./contracts.js"; export function initializeViem(chainType, provider, artifactManager, chainDescriptors, networkName) { return { getPublicClient: (publicClientConfig) => getPublicClient(provider, chainType, chainDescriptors, networkName, publicClientConfig), getWalletClients: (walletClientConfig) => getWalletClients(provider, chainType, chainDescriptors, networkName, walletClientConfig), getWalletClient: (address, walletClientConfig) => getWalletClient(provider, chainType, chainDescriptors, networkName, address, walletClientConfig), getTestClient: (testClientConfig) => getTestClient(provider, chainType, chainDescriptors, networkName, testClientConfig), deployContract: (contractName, constructorArgs, deployContractConfig) => deployContract(provider, artifactManager, chainDescriptors, networkName, contractName, constructorArgs, deployContractConfig), sendDeploymentTransaction: (contractName, constructorArgs, sendDeploymentTransactionConfig) => sendDeploymentTransaction(provider, artifactManager, chainDescriptors, networkName, contractName, constructorArgs, sendDeploymentTransactionConfig), getContractAt: (contractName, address, getContractAtConfig) => getContractAt(provider, artifactManager, chainDescriptors, networkName, contractName, address, getContractAtConfig), }; } //# sourceMappingURL=initialization.js.map