Testnet Exclusive Functions
These functions are exclusively available in testnet deployments and are NOT included in mainnet versions of the EVVM ecosystem contracts. They serve as development faucets for testing and demonstration purposes.
addBalance
Function Type: external
Function Signature: addBalance(address,address,uint256)
Testnet faucet function that directly adds token balance to any user's account, bypassing normal deposit flows. This allows developers and testers to quickly obtain tokens for testing EVVM functionality.
Parameters
Field | Type | Description |
---|---|---|
user | address | The address of the user to receive the balance |
token | address | The address of the token contract to add balance for |
quantity | uint256 | The amount of tokens to add to the user's balance |
Workflow
- Direct Balance Addition: Adds the specified
quantity
directly tobalances[user][token]
mapping - No Authorization: No checks or validations - anyone can call this function on testnet
- Immediate Effect: Balance is available instantly for testing transactions
setPointStaker
Function Type: external
Function Signature: setPointStaker(address,bytes1)
Testnet faucet function that directly configures a user's staker status for testing purposes, bypassing normal staking registration and token requirements. This allows developers to quickly test staker-specific functionality.
Parameters
Field | Type | Description |
---|---|---|
user | address | The address of the user to set as staker |
answer | bytes1 | The bytes1 value representing the staker status |
Workflow
- Direct Status Assignment: Sets the staker status directly in
stakerList[user]
mapping to the providedanswer
value - No Token Requirements: No validation or token deposit checks - bypasses normal staking process
- Immediate Effect: Staker status is active instantly for testing staker-specific features
Staker Status Values
Value | Type | Description |
---|---|---|
0x00 | Non-Staker | Removes staker status (default state) |
0x01 | Regular Staker | Standard staker with basic rewards |
0x02 | Premium Staker | Enhanced staker with additional benefits |