0.2.0 • Published 2 months ago

@relicprotocol/contracts v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Relic Contracts

Usage

Once installed, you can use the contracts in the library by importing them in your solidity. For example,

pragma solidity ^0.8.0;

import "@relicprotocol/contracts/BirthCertificateVerifier.sol";
import "@relicprotocol/contracts/interfaces/IReliquary.sol";

contract MyContract is BirthCertificateVerifier {

    // take Reliquary address as constructor arg, could instead be hardcoded
    constructor(IReliquary reliquary) BirthCertificateVerifier(reliquary) { }

    function someFunction() external onlyOlderThan(365 days) {
        // we know msg.sender's account is at least 1 year old
    }
}
0.2.0

2 months ago

0.1.1

4 months ago

0.1.0

10 months ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.5

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.4

1 year ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago