
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
@aixweb3/evi-contracts
Advanced tools
AI-powered smart contract generator and deployer for Arbitrum networks with Gemini 2.0 Flash LLM integration
AI-powered smart contract generator and deployer for Arbitrum networks with Gemini 2.0 Flash LLM integration.
npm install -g evi-contracts
Using Gemini (default):
evi generate --description "Create an ERC20 token with a fixed supply of 1000000 tokens" --output MyToken.sol
Using OpenAI:
evi generate --description "Create an ERC20 token with a fixed supply of 1000000 tokens" --provider openai --output MyToken.sol
evi deploy --file MyToken.sol --network arbitrumSepolia --args '[1000000]'
evi verify --address 0xContractAddress --file MyToken.sol --network arbitrumSepolia
.env file with your API keys:# API Keys
OPENAI_API_KEY=your_openai_api_key
GEMINI_API_KEY=your_gemini_api_key
ARBISCAN_API_KEY=your_arbiscan_api_key
# Deployment Credentials (use only one of these)
PRIVATE_KEY=your_private_key
MNEMONIC=your_mnemonic_phrase
# Web Server Configuration
PORT=3001
For detailed CLI usage instructions, see CLI-USAGE.md.
const { generateFromDescription } = require('evi-contracts/src/generator');
async function generateContract() {
const description = "Create an ERC20 token with a fixed supply of 1000000 tokens";
const options = { provider: 'gemini' }; // or 'openai'
const contractSource = await generateFromDescription(description, options);
console.log(contractSource);
}
const { deployContract } = require('evi-contracts/src/deployer');
async function deployMyContract() {
const contractSource = `...your contract source code...`;
const options = {
network: 'arbitrumSepolia',
constructorArgs: [1000000]
};
const result = await deployContract(contractSource, options);
console.log(`Contract deployed to: ${result.address}`);
}
After installing the package, follow these steps to verify it works correctly:
# Verify the installed version
npx evi --version
# View all available commands
npx evi --help
# Get help for specific commands
npx evi generate --help
npx evi deploy --help
# View all contract templates
npx evi list-templates
# Generate using a template
npx evi generate --template ERC20Token --output TokenFromTemplate.sol
# Or generate using AI (requires API keys in .env)
npx evi generate --description "Create an ERC20 token with 1000000 supply" --provider gemini --output AIToken.sol
# View the generated contract
cat TokenFromTemplate.sol
Create a test file (test-lib.js):
const { generateFromTemplate } = require('@aixweb3/evi-contracts/src/generator');
async function testLib() {
try {
const contract = await generateFromTemplate('ERC20Token', {
name: 'TestToken',
symbol: 'TST',
decimals: 18,
totalSupply: 1000000
});
console.log('Successfully generated contract:');
console.log(contract.slice(0, 300) + '...');
} catch (error) {
console.error('Error testing library:', error);
}
}
testLib();
Run the test:
node test-lib.js
MIT
EVI Contracts is built and maintained by EVI Contributors.
FAQs
AI-powered smart contract generator and deployer for Arbitrum networks with Gemini 2.0 Flash LLM integration
The npm package @aixweb3/evi-contracts receives a total of 8 weekly downloads. As such, @aixweb3/evi-contracts popularity was classified as not popular.
We found that @aixweb3/evi-contracts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.