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

initialize

claim

Claim aria tokens.

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.

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.

Parameters

Name
Type
Description

_tokenAddress

address

Address of tokens to withdraw

_authorizeUpgrade

Internal function called when trying to perform upgrade

Only callable by owner.

Events

TokensClaimed