GasCreditVault
Overview
Key Features
Architecture
flowchart TB
subgraph "GasCreditVault"
A[Token Deposits] --> B[Price Conversion]
B --> C[Credit Allocation]
C --> D[Credit Management]
D --> E[Usage Tracking]
end
subgraph "External Dependencies"
F[Chainlink Oracles] --> B
G[ERC-20 Tokens] --> A
H[MetaTxGateway] --> D
end
subgraph "User Operations"
I[Deposit Tokens] --> A
J[Transfer Credits] --> D
K[Withdraw Tokens] --> A
L[Check Balance] --> E
endContract Interface
Core Functions
Token Support
Supported Tokens
Adding New Tokens
Credit Conversion
Price Calculation
Price Staleness Protection
Deposit Operations
Basic Deposit
Deposit for Another User
Credit Management
Credit Transfer
Credit Usage
Withdrawal Operations
Token Withdrawal
Emergency Withdrawal
Security Features
Access Control
Circuit Breaker
Reentrancy Protection
Events
Error Handling
Gas Optimization
Batch Operations
Storage Optimization
Integration Examples
Frontend Integration
Best Practices
For Developers
For Users
Deployed Address
Last updated