Key Concepts
Axicov simplifies blockchain development by applying well-established patterns and practices. This section covers the fundamental concepts that underpin development with the Axicov SDK.
Project Architecture
Standard Project Structure
Axicov organizes projects following a consistent directory structure:
Configuration Management
Axicov uses a layered configuration approach:
Defaults - Sensible defaults for all settings
axicov.config.ts - Project-specific overrides
Environment Variables - Sensitive or environment-specific values
Command Line Arguments - Runtime overrides
This allows for flexible configuration that adapts to different environments and use cases.
Development Workflow
The Axicov Development Lifecycle
Initialize - Set up project structure and dependencies
Generate - Create contract templates
Develop - Customize contracts and write tests
Test - Verify contract functionality
Deploy - Push contracts to the blockchain
Verify - Publish source code on block explorers
Monitor - Track contract performance and usage
Version Control Integration
Axicov automatically configures .gitignore
for blockchain projects and supports Git-based workflows:
Smart Contract Paradigms
Contract Design Patterns
Axicov templates implement established design patterns:
Ownable - Restricted access to administrative functions
Pausable - Emergency stop mechanism
Role-Based Access Control - Granular permissions
Proxy Patterns - Upgradeable contracts
Factory Pattern - Dynamic contract creation
Checks-Effects-Interactions - Reentrancy protection
Modularity and Composability
Axicov encourages building contracts from reusable components:
This approach promotes:
Code reuse
Simplified auditing
Established security patterns
Interoperability with other protocols
Network Management
Supported Networks
Axicov provides pre-configured support for:
Sonic Blaze
Testnet
11155111
Default development testnet
Ethereum
Mainnet
1
Production Ethereum network
Goerli
Testnet
5
Ethereum testnet
Polygon
Mainnet
137
Production Polygon network
Mumbai
Testnet
80001
Polygon testnet
Arbitrum
Mainnet
42161
Production Arbitrum network
Optimism
Mainnet
10
Production Optimism network
Network Configuration
Networks can be configured in axicov.config.ts
:
Security Considerations
Automated Security Practices
Axicov implements security best practices by default:
SWC Registry - Checks for known vulnerabilities
Solidity Style Guide - Enforces coding standards
Gas Optimization - Identifies inefficient patterns
Formal Verification - Option for critical contracts
Audit Preparation
Prepare contracts for professional audits:
Deployment Strategies
Progressive Deployment
For complex systems, Axicov supports staged deployments:
Core Contracts - Deploy fundamental components
Peripheral Contracts - Deploy supporting contracts
Integration - Connect contracts together
Validation - Verify full system functionality
Access Control - Transfer ownership to final addresses
Deployment Records
Axicov maintains detailed deployment records by network:
These records enable reliable contract verification and system reconstruction.
Interoperability
Cross-Protocol Integration
Axicov simplifies integration with major DeFi protocols:
Uniswap - Liquidity provision and trading
Aave - Lending and borrowing
Chainlink - Oracle data feeds
OpenZeppelin - Security standards
Thirdweb - NFT infrastructure
Standardized Interfaces
Axicov encourages the use of standard interfaces:
By adhering to established standards, contracts built with Axicov maintain compatibility across the ecosystem.
Last updated