Added NatSpec comments

This commit is contained in:
Shriya Tyagi 2023-04-20 01:27:07 +04:00
parent 35d0a03a61
commit 15082a643e

View File

@ -8,6 +8,10 @@ import { IArbitrumTokenDistributor } from "./interface.sol";
abstract contract ArbitrumAirdrop is Events, Helpers { abstract contract ArbitrumAirdrop is Events, Helpers {
/**
* @dev DSA Arbitrum airdrop claim function.
* @param setId ID to set the claimable amount in the DSA
*/
function claimAirdrop(uint256 setId) function claimAirdrop(uint256 setId)
public public
returns (string memory eventName_, bytes memory eventParam_) returns (string memory eventName_, bytes memory eventParam_)
@ -21,6 +25,10 @@ abstract contract ArbitrumAirdrop is Events, Helpers {
eventParam_ = abi.encode(address(this), claimable, setId); eventParam_ = abi.encode(address(this), claimable, setId);
} }
/**
* @dev Delegates votes from signer to `delegatee`.
* @param delegatee The address to delegate the ARB tokens to.
*/
function delegate(address delegatee) function delegate(address delegatee)
public public
returns (string memory eventName_, bytes memory eventParam_) returns (string memory eventName_, bytes memory eventParam_)
@ -31,6 +39,12 @@ abstract contract ArbitrumAirdrop is Events, Helpers {
eventParam_ = abi.encode(address(this), delegatee); eventParam_ = abi.encode(address(this), delegatee);
} }
/**
* @dev Delegates votes from signer to `delegatee`.
* @param delegatee The address to delegate the ARB tokens to.
* @param nonce The nonce number.
* @param permits The struct containing signed permit data like v,r,s,expiry.
*/
function delegateBySig( function delegateBySig(
address delegatee, address delegatee,
uint256 nonce, uint256 nonce,