This repository contains Solidity smart contracts to simulate XP (experience points) interactions on the Helios testnet.
It includes multiple contracts for ledger management, auto XP generation, staking, bridging, governance, airdrops, and a full demo runner.
contracts/– All Solidity contractsHXPLedger.sol– Ledger to track XP per userHAutoXPv2.sol– Auto XP generation simulationMyContractXPLight.sol– Lightweight contract for fast XP interactionsHeliosStakeSim.sol– Stake simulation contractHMockBridge.sol– Mock cross-chain bridgeHGovTest.sol– Governance proposals and voting simulationHXPAirdrop.sol– XP airdrop contractHeliosFullTestRunner.sol– Runs full demo with all contracts
- Open Remix IDE
- Create a new workspace or folder in Remix
- Copy the contracts from
contracts/into Remix - Compile using Solidity 0.8.20 (except
MyContractXPLight.soluses 0.8.19) - Deploy contracts one by one on the Helios testnet
- Optionally, deploy
HeliosFullTestRunner.sollast to simulate all interactions automatically
- HAutoXPv2.sol – Call
runDemo()to simulate auto XP staking and bridging - MyContractXPLight.sol – Call
setMessage()andsendTip()for test transactions - HeliosStakeSim.sol – Call
runDemo()to stake/unstake ETH - HMockBridge.sol – Call
runDemo()to simulate bridging - HGovTest.sol – Call
runDemo()to create proposals and vote - HXPAirdrop.sol – Call
claimAirdrop()to receive XP - HeliosFullTestRunner.sol – Call
runFullDemo()to execute all contract demos once per wallet
- These contracts are for testnet/demo purposes only
- Do not deploy on mainnet
- Gas usage is minimized for testing, some interactions are simulated via events
- XP values and token balances are for demonstration only
MIT License. See LICENSE file.