Licensing
License Types
TokenBalance.sol

Token Balance

A license which allows for access based on a users token balance.

Configuration Functions

setExpression(bytes32 id, address token, Comparator comparator, uint256 value)

Sets the expression of necessary token balance to gain access.

enum Comparator {
    EQ,
    LT,
    GT
}
  • id: The node for which this expression is applied.
  • token: The address of a token which the user balance will be evaluated on.
  • comparator: a comparator which is one of the following: equal to, less than, greater than.
  • value: a unit value which a user balance will be compared to.

Access Functions

auth(bytes32 id, address user)

Returns true if a balance of user satisfies the expression set by the node owner.

See Smart Contracts for the address of this license.