A comprehensive smart contract ecosystem for the Giza ERC20 token, featuring cross-chain functionality, staking mechanisms, and reward distribution systems.
The Giza token ecosystem consists of several smart contracts that enable:
- Cross-chain token transfers using LayerZero
- Token staking with cooldown periods
- Airdrop and reward distribution through merkle trees
- Deterministic deployment across multiple chains
- GIZA Token:
0x590830dFDf9A3F68aFCDdE2694773dEBDF267774
- GIZA OFT Adapter:
0x0b0E004b88A9c37453ad75C450F1147E9DEc97c3
- GIZA Token:
0x590830dFDf9A3F68aFCDdE2694773dEBDF267774
- Earning Power Calculator:
0x3E92f421B6641242Fe65C280AfA03Cea492Abca1
- Staker:
0xE576638a9f2AD99EE9dD6F4AcBb83217566D8e18
- Airdrop Distributor:
0xa49D748e0ECBDd8DE5305Bd1bd9c39F85e28DddB
- Emission Distributor:
0x6d104968D1d64AECea5f16aA956a87D67FfBc742
- Bumpor:
0x895407F1EC37C46D8b5BCa3884711172c8E9bcb8
- GizaCouncil:
0xc98b51936aF651c9eee4E5B9787258A144d06027
The Giza token is designed to maintain consistent contract addresses across all blockchain networks. This is achieved through:
- Deterministic deployment using CreateX
- Relies on
Create3
for address consistency - Ensures predictable contract addresses on all supported chains
Seamless token transfers between different blockchain networks are supported through:
- Implementation of the OFT (LayerZero standard)
- OFTAdapter deployment on the mainchain
A straightforward yet effective staking system that includes:
- Token staking and unstaking functionality
- Configurable cooldown periods
Efficient distribution of tokens and rewards through:
- Merkle tree-based verification system
- Multi-reward distributor supporting various assets
- Epoch-based reward accumulation
- Foundry
- Node.js and npm
Create a .env
file that follows the .env.exemple
file.
# Install Foundry dependencies
forge install
forge build --via-ir
# Install LayerZero dependencies
cd layerzero-oft
npm install
cd ..
Run the test suite using Foundry:
forge test --via-ir