A library with ERC implementations used across the DESAT protocol smart contracts
- Implementation of ERC7578 standard
Foundry
forge install xDeSAT/desat-contractsThen add the following line in the remappings.txt file:
@xDeSAT/desat-contracts/=lib/xDeSAT/desat-contracts/contracts/
Hardhat
npm install @xdesat/desat-contractsOnce installed, you can use the ERC7578 standard by importing it in your .sol contract:
pragma solidity ^0.8.21;
import {ERC7578} from "@xdesat/desat-contracts/contracts/ERC7578.sol";
contract MyContract is ERC7578 {
constructor(string memory name, string memory symbol) ERC7578(name, symbol) {
}
}