Creates and returns a typed Ethers v6 contract instance for the Governance precompile contract. This contract is used for interoperability between the EVM and Cosmos.
import { getGovernancePrecompileEthersV6Contract, parseSei } from '@sei-js/evm/ethers';import { ethers } from 'ethers';const provider = new ethers.BrowserProvider(); // or any other providerconst signer = provider.getSigner();const governancePrecompileContract = getGovernancePrecompileEthersV6Contract(signer);// Surround with try/catch for detailed errorsconst depositResponse = await governancePrecompileContract.connect(signer).deposit('1', { value: parseSei(1) });console.log('Deposit Response:', depositResponse); Copy
import { getGovernancePrecompileEthersV6Contract, parseSei } from '@sei-js/evm/ethers';import { ethers } from 'ethers';const provider = new ethers.BrowserProvider(); // or any other providerconst signer = provider.getSigner();const governancePrecompileContract = getGovernancePrecompileEthersV6Contract(signer);// Surround with try/catch for detailed errorsconst depositResponse = await governancePrecompileContract.connect(signer).deposit('1', { value: parseSei(1) });console.log('Deposit Response:', depositResponse);
A Provider (read-only) or ethers.Signer to use with the contract.
The typed contract instance for interacting with the Governance precompile contract.
Creates and returns a typed Ethers v6 contract instance for the Governance precompile contract. This contract is used for interoperability between the EVM and Cosmos.
Example