AriaTokenClaim
Inherits: OwnableUpgradeable, UUPSUpgradeable
Author: Aria Protocol
Merkle claim for Aria Token
State Variables
claimRoot
Retreive the current claim root.
bytes32 public claimRoot;
ariaToken
Address of the aria erc20 token.
IERC20 public ariaToken;
tokensClaimed
Mapping of address to boolean of if an address has claim their tokens.
mapping(address => bool) public tokensClaimed;
Functions
constructor
Note: oz-upgrades-unsafe-allow: constructor
constructor();
initialize
function initialize(address _ariaToken, bytes32 _claimRoot, address _owner) external initializer;
claim
Claim aria tokens.
function claim(uint256 amount, bytes32[] calldata proof) public;
Parameters
Name
Type
Description
amount
uint256
Number of tokens claimable by a user.
proof
bytes32[]
Merkle proof proving a user is able to claim tokens.
updateClaimRoot
Updates the claim root.
Only callable by owner.
function updateClaimRoot(bytes32 _claimRoot) external onlyOwner;
Parameters
Name
Type
Description
_claimRoot
bytes32
New claim root.
withdraw
Withdraws all tokens held by contract
The zero address denotes ETH
Only callable by owner.
function withdraw(address _tokenAddress) external onlyOwner;
Parameters
Name
Type
Description
_tokenAddress
address
Address of tokens to withdraw
_authorizeUpgrade
Internal function called when trying to perform upgrade
Only callable by owner.
function _authorizeUpgrade(address) internal virtual override onlyOwner;
Events
TokensClaimed
event TokensClaimed(bytes32 indexed root, address indexed claimer, uint256 amount);