├── .env.example ├── .gitignore ├── config.json ├── contracts ├── Auction.sol ├── FLPCrowndsale.sol ├── Floppy.sol ├── Hero.sol ├── HeroMarketplace.sol ├── USDT.sol └── Vault.sol ├── hardhat.config.ts ├── package-lock.json ├── package.json ├── scripts ├── config.ts └── deploy.ts ├── test └── test.ts ├── tsconfig.json └── typechain-types ├── common.ts ├── contracts ├── Auction.ts ├── FLPCrowndsale.sol │ ├── FLPCrowdSale.ts │ └── index.ts ├── Floppy.ts ├── Hero.sol │ ├── Hero.ts │ ├── IHero.ts │ └── index.ts ├── HeroMarketplace.ts ├── USDT.ts ├── Vault.ts └── index.ts ├── factories ├── contracts │ ├── Auction__factory.ts │ ├── FLPCrowndsale.sol │ │ ├── FLPCrowdSale__factory.ts │ │ └── index.ts │ ├── Floppy__factory.ts │ ├── Hero.sol │ │ ├── Hero__factory.ts │ │ ├── IHero__factory.ts │ │ └── index.ts │ ├── HeroMarketplace__factory.ts │ ├── USDT__factory.ts │ ├── Vault__factory.ts │ └── index.ts ├── index.ts └── openzeppelin-solidity │ ├── contracts │ ├── access │ │ ├── AccessControlEnumerable__factory.ts │ │ ├── AccessControl__factory.ts │ │ ├── IAccessControlEnumerable__factory.ts │ │ ├── IAccessControl__factory.ts │ │ ├── Ownable__factory.ts │ │ └── index.ts │ ├── index.ts │ ├── token │ │ ├── ERC20 │ │ │ ├── ERC20__factory.ts │ │ │ ├── IERC20__factory.ts │ │ │ ├── extensions │ │ │ │ ├── ERC20Burnable__factory.ts │ │ │ │ ├── IERC20Metadata__factory.ts │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── ERC721 │ │ │ ├── ERC721__factory.ts │ │ │ ├── IERC721Receiver__factory.ts │ │ │ ├── IERC721__factory.ts │ │ │ ├── extensions │ │ │ │ ├── ERC721Enumerable__factory.ts │ │ │ │ ├── IERC721Enumerable__factory.ts │ │ │ │ ├── IERC721Metadata__factory.ts │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ └── index.ts │ └── utils │ │ ├── index.ts │ │ └── introspection │ │ ├── ERC165__factory.ts │ │ ├── IERC165__factory.ts │ │ └── index.ts │ └── index.ts ├── hardhat.d.ts ├── index.ts └── openzeppelin-solidity ├── contracts ├── access │ ├── AccessControl.ts │ ├── AccessControlEnumerable.ts │ ├── IAccessControl.ts │ ├── IAccessControlEnumerable.ts │ ├── Ownable.ts │ └── index.ts ├── index.ts ├── token │ ├── ERC20 │ │ ├── ERC20.ts │ │ ├── IERC20.ts │ │ ├── extensions │ │ │ ├── ERC20Burnable.ts │ │ │ ├── IERC20Metadata.ts │ │ │ └── index.ts │ │ └── index.ts │ ├── ERC721 │ │ ├── ERC721.ts │ │ ├── IERC721.ts │ │ ├── IERC721Receiver.ts │ │ ├── extensions │ │ │ ├── ERC721Enumerable.ts │ │ │ ├── IERC721Enumerable.ts │ │ │ ├── IERC721Metadata.ts │ │ │ └── index.ts │ │ └── index.ts │ └── index.ts └── utils │ ├── index.ts │ └── introspection │ ├── ERC165.ts │ ├── IERC165.ts │ └── index.ts └── index.ts /.env.example: -------------------------------------------------------------------------------- 1 | PRIV_KEY="xxxxxxxxxx" 2 | API_KEY="xxxxxxxxxx" -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .env 3 | artifacts 4 | cache 5 | -------------------------------------------------------------------------------- /config.json: -------------------------------------------------------------------------------- 1 | { 2 | "dev": {}, 3 | "bsctest": { 4 | "Floppy": "0xd54D6d5BD983a6cA18F8820f80E0A970FE4A9a8c", 5 | "Vault": "0x60D63Ed0e4FBD4F18d76AC3E41358b13A97E0273", 6 | "USDT": "0xDc2229777a34798c9eE7E05dFCee2B4d2AfDcbfc", 7 | "ico": "0xA2FE414E565511f754Fa62DAdD4aA494e55683bB", 8 | "Hero": "0x65f00a282A58B30f8376D41832d76CeCB7b6186C", 9 | "HeroMarketplace": "0xF874e54B775042930CBEf1d435AAd202cA03f6D5", 10 | "Auction": "0x99214B8BBeE5DBcCee212f2f136Dc36f6643e0Cb" 11 | }, 12 | "main": {} 13 | } -------------------------------------------------------------------------------- /contracts/Auction.sol: -------------------------------------------------------------------------------- 1 | //SPDX-License-Identifier: UNLICENSED 2 | pragma solidity <= 0.8.10; 3 | 4 | import "openzeppelin-solidity/contracts/token/ERC20/utils/SafeERC20.sol"; 5 | import "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol"; 6 | import "openzeppelin-solidity/contracts/token/ERC721/IERC721.sol"; 7 | import "openzeppelin-solidity/contracts/token/ERC721/IERC721Receiver.sol"; 8 | import "openzeppelin-solidity/contracts/access/Ownable.sol"; 9 | 10 | contract Auction is IERC721Receiver, Ownable { 11 | 12 | // set nft and token 13 | IERC721 private nft; 14 | IERC20 private token; 15 | 16 | uint public constant AUCTION_SERVICE_FEE_RATE = 3; // Percentage 17 | 18 | uint public constant MINIMUM_BID_RATE = 110; // Percentage 19 | 20 | constructor (IERC20 _token, IERC721 _nft) { 21 | token = _token; 22 | nft = _nft; 23 | } 24 | 25 | function onERC721Received( 26 | address, 27 | address, 28 | uint256, 29 | bytes calldata 30 | ) external override pure returns (bytes4) { 31 | return 32 | bytes4( 33 | keccak256("onERC721Received(address,address,uint256,bytes)") 34 | ); 35 | } 36 | /// auction information 37 | struct AuctionInfo { 38 | address auctioneer; 39 | uint256 _tokenId; 40 | uint256 initialPrice; 41 | 42 | address previousBidder; 43 | 44 | uint256 lastBid; 45 | address lastBidder; 46 | 47 | uint256 startTime; 48 | uint256 endTime; 49 | 50 | bool completed; 51 | bool active; 52 | uint256 auctionId; 53 | } 54 | 55 | AuctionInfo[] private auction; 56 | 57 | function createAuction(uint256 _tokenId, uint256 _initialPrice, uint256 _startTime, uint256 _endTime) public { 58 | 59 | require(block.timestamp <= _startTime, "Auction can not start"); 60 | require(_startTime < _endTime, "Auction can not end before it starts"); 61 | require(0 < _initialPrice, "Initial price must be greater than 0"); 62 | 63 | require(nft.ownerOf(_tokenId) == msg.sender, "Must stake your own token"); 64 | require(nft.getApproved(_tokenId) == address(this), "This contract must be approved to transfer the token"); 65 | 66 | // Transfer ownership to the auctioneer 67 | nft.safeTransferFrom(msg.sender, address(this), _tokenId); 68 | 69 | AuctionInfo memory _auction = AuctionInfo( 70 | msg.sender, // auctioneer 71 | _tokenId, // tokenId 72 | _initialPrice, // initialPrice 73 | 74 | address(0), // previousBidder 75 | _initialPrice, // lastBid 76 | address(0), // lastBidder 77 | 78 | _startTime, // startTime 79 | _endTime, // endTime 80 | 81 | false, // completed 82 | true, // active 83 | auction.length // auctionID 84 | ); 85 | 86 | auction.push(_auction); 87 | } 88 | 89 | 90 | function joinAuction(uint256 _auctionId, uint256 _bid) public { 91 | 92 | AuctionInfo memory _auction = auction[_auctionId]; 93 | 94 | require(block.timestamp >= _auction.startTime, "Auction has not started"); 95 | require(_auction.completed == false, "Auction is already completed"); 96 | require(_auction.active, "Auction is not active"); 97 | 98 | uint256 _minBid = _auction.lastBidder == address(0) ? _auction.initialPrice : _auction.lastBid * MINIMUM_BID_RATE / 100; 99 | 100 | require(_minBid <= _bid, "Bid price must be greater than the minimum price"); 101 | 102 | require(token.balanceOf(msg.sender) >= _bid, "Insufficient balance"); 103 | require(token.allowance(msg.sender, address(this)) >= _bid, "Insufficient allowance"); 104 | 105 | // require(_auction.lastBidder != msg.sender, "You have already bid on this auction"); 106 | require(_auction.auctioneer != msg.sender, "Can not bid on your own auction"); 107 | 108 | // Next bidder transfer token to contract 109 | SafeERC20.safeTransferFrom(token, msg.sender, address(this), _bid); 110 | 111 | // Refund token to previous bidder 112 | if (_auction.lastBidder != address(0)) { 113 | token.transfer(_auction.lastBidder, _auction.lastBid); 114 | } 115 | 116 | // Update auction info 117 | auction[_auctionId].previousBidder = _auction.lastBidder; 118 | auction[_auctionId].lastBidder = msg.sender; 119 | auction[_auctionId].lastBid = _bid; 120 | } 121 | 122 | function finishAuction(uint256 _auctionId) public onlyAuctioneer(_auctionId){ 123 | 124 | require(auction[_auctionId].completed == false, "Auction is already completed"); 125 | require(auction[_auctionId].active, "Auction is not active"); 126 | 127 | // Transfer NFT to winner which is the last bidder 128 | nft.safeTransferFrom(address(this), auction[_auctionId].lastBidder, auction[_auctionId]._tokenId); 129 | 130 | // Calculate all fee 131 | uint256 lastBid = auction[_auctionId].lastBid; 132 | uint256 profit = auction[_auctionId].lastBid - auction[_auctionId].initialPrice; 133 | 134 | uint256 auctionServiceFee = profit * AUCTION_SERVICE_FEE_RATE / 100; 135 | 136 | uint256 auctioneerReceive = lastBid - auctionServiceFee; 137 | 138 | // Transfer token to auctioneer 139 | token.transfer(auction[_auctionId].auctioneer, auctioneerReceive); 140 | 141 | auction[_auctionId].completed = true; 142 | auction[_auctionId].active = false; 143 | } 144 | 145 | function cancelAuction(uint256 _auctionId) public onlyAuctioneer(_auctionId) { 146 | 147 | require(auction[_auctionId].completed == false, "Auction is already completed"); 148 | require(auction[_auctionId].active, "Auction is not active"); 149 | 150 | // Return NFT back to auctioneer 151 | nft.safeTransferFrom(address(this), auction[_auctionId].auctioneer, auction[_auctionId]._tokenId); 152 | 153 | // Refund token to previous bidder 154 | if (auction[_auctionId].lastBidder != address(0)) { 155 | token.transfer(auction[_auctionId].lastBidder, auction[_auctionId].lastBid); 156 | } 157 | auction[_auctionId].completed = true; 158 | auction[_auctionId].active = false; 159 | } 160 | 161 | function getAuction(uint256 _auctionId) public view returns (AuctionInfo memory) { 162 | return auction[_auctionId]; 163 | } 164 | 165 | function getAuctionByStatus(bool _active) public view returns (AuctionInfo[] memory) { 166 | uint length = 0; 167 | for (uint i = 0; i < auction.length; i++) { 168 | if (auction[i].active == _active) { 169 | length ++; 170 | } 171 | } 172 | 173 | AuctionInfo[] memory results=new AuctionInfo[](length); 174 | uint j=0; 175 | for (uint256 index = 0; index < auction.length; index++) { 176 | if(auction[index].active==_active) 177 | { 178 | results[j]=auction[index]; 179 | j++; 180 | } 181 | } 182 | return results; 183 | } 184 | 185 | 186 | modifier onlyAuctioneer(uint256 _auctionId) { 187 | require((msg.sender == auction[_auctionId].auctioneer||msg.sender==owner()), "Only auctioneer or owner can perform this action"); 188 | _; 189 | } 190 | 191 | } 192 | -------------------------------------------------------------------------------- /contracts/FLPCrowndsale.sol: -------------------------------------------------------------------------------- 1 | //SPDX-License-Identifier: UNLICENSED 2 | pragma solidity <=0.8.10; 3 | 4 | import "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol"; 5 | import "openzeppelin-solidity/contracts/access/Ownable.sol"; 6 | import "openzeppelin-solidity/contracts/token/ERC20/utils/SafeERC20.sol"; 7 | 8 | contract FLPCrowdSale is Ownable { 9 | using SafeERC20 for IERC20; 10 | address payable public _wallet; 11 | uint256 public BNB_rate; 12 | uint256 public USDT_rate; 13 | IERC20 public token; 14 | IERC20 public usdtToken; 15 | 16 | event BuyTokenByBNB(address buyer, uint256 amount); 17 | event BuyTokenByUSDT(address buyer, uint256 amount); 18 | event SetUSDTToken(IERC20 tokenAddress); 19 | event SetBNBRate(uint256 newRate); 20 | event SetUSDTRate(uint256 newRate); 21 | 22 | constructor( 23 | uint256 bnb_rate, 24 | uint256 usdt_rate, 25 | address payable wallet, 26 | IERC20 icotoken 27 | ) { 28 | BNB_rate = bnb_rate; 29 | USDT_rate = usdt_rate; 30 | _wallet = wallet; 31 | token = icotoken; 32 | } 33 | 34 | function setUSDTToken(IERC20 token_address) public onlyOwner { 35 | usdtToken = token_address; 36 | emit SetUSDTToken(token_address); 37 | } 38 | 39 | function setBNBRate(uint256 new_rate) public onlyOwner { 40 | BNB_rate = new_rate; 41 | emit SetBNBRate(new_rate); 42 | } 43 | 44 | function setUSDTRate(uint256 new_rate) public onlyOwner { 45 | USDT_rate = new_rate; 46 | emit SetUSDTRate(new_rate); 47 | } 48 | 49 | function buyTokenByBNB() external payable { 50 | uint256 bnbAmount = msg.value; 51 | uint256 amount = getTokenAmountBNB(bnbAmount); 52 | require(amount > 0, "Amount is zero"); 53 | require( 54 | token.balanceOf(address(this)) >= amount, 55 | "Insufficient account balance" 56 | ); 57 | require( 58 | msg.sender.balance >= bnbAmount, 59 | "Insufficient account balance" 60 | ); 61 | payable(_wallet).transfer(bnbAmount); 62 | SafeERC20.safeTransfer(token, msg.sender, amount); 63 | emit BuyTokenByBNB(msg.sender, amount); 64 | } 65 | 66 | function buyTokenByUSDT(uint256 USDTAmount) external { 67 | uint256 amount = getTokenAmountUSDT(USDTAmount); 68 | require( 69 | msg.sender.balance >= USDTAmount, 70 | "Insufficient account balance" 71 | ); 72 | require(amount > 0, "Amount is zero"); 73 | require( 74 | token.balanceOf(address(this)) >= amount, 75 | "Insufficient account balance" 76 | ); 77 | SafeERC20.safeTransferFrom(usdtToken, msg.sender, _wallet, USDTAmount); 78 | SafeERC20.safeTransfer(token, msg.sender, amount); 79 | emit BuyTokenByUSDT(msg.sender, amount); 80 | } 81 | 82 | function getTokenAmountBNB(uint256 BNBAmount) 83 | public 84 | view 85 | returns (uint256) 86 | { 87 | return BNBAmount * BNB_rate; 88 | } 89 | 90 | function getTokenAmountUSDT(uint256 USDTAmount) 91 | public 92 | view 93 | returns (uint256) 94 | { 95 | return USDTAmount * USDT_rate; 96 | } 97 | 98 | function withdraw() public onlyOwner { 99 | payable(msg.sender).transfer(address(this).balance); 100 | } 101 | 102 | function withdrawErc20() public onlyOwner { 103 | usdtToken.transfer(msg.sender, usdtToken.balanceOf(address(this))); 104 | } 105 | } 106 | -------------------------------------------------------------------------------- /contracts/Floppy.sol: -------------------------------------------------------------------------------- 1 | //SPDX-License-Identifier: UNLICENSED 2 | pragma solidity <=0.8.10; 3 | import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol"; 4 | import "openzeppelin-solidity/contracts/access/Ownable.sol"; 5 | import "openzeppelin-solidity/contracts/token/ERC20/extensions/ERC20Burnable.sol"; 6 | import "hardhat/console.sol"; 7 | contract Floppy is 8 | ERC20("Floppy", "FLP"), 9 | ERC20Burnable, 10 | Ownable 11 | { 12 | uint256 private cap = 50_000_000_000 * 10**uint256(18); 13 | constructor() { 14 | console.log("owner: %s maxcap: %s", msg.sender, cap); 15 | _mint(msg.sender, cap); 16 | transferOwnership(msg.sender); 17 | } 18 | function mint(address to, uint256 amount) public onlyOwner { 19 | require( 20 | ERC20.totalSupply() + amount <= cap, 21 | "Floppy: cap exceeded" 22 | ); 23 | _mint(to, amount); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /contracts/Hero.sol: -------------------------------------------------------------------------------- 1 | //SPDX-License-Identifier: UNLICENSED 2 | pragma solidity <=0.8.10; 3 | 4 | import "openzeppelin-solidity/contracts/utils/Context.sol"; 5 | import "openzeppelin-solidity/contracts/utils/Counters.sol"; 6 | import "openzeppelin-solidity/contracts/access/Ownable.sol"; 7 | import "openzeppelin-solidity/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; 8 | import "openzeppelin-solidity/contracts/token/ERC20/utils/SafeERC20.sol"; 9 | import "openzeppelin-solidity/contracts/access/AccessControlEnumerable.sol"; 10 | 11 | interface IHero { 12 | function mint(address to,uint256 hero_type) external returns (uint256); 13 | } 14 | 15 | contract Hero is ERC721Enumerable, Ownable,AccessControlEnumerable,IHero { 16 | using Counters for Counters.Counter; 17 | Counters.Counter private _tokenIdTracker; 18 | string private _url; 19 | bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); 20 | 21 | event Mint(address to,uint256 hero_type,uint256 tokenid); 22 | 23 | constructor() ERC721("Stickman Hero", "Hero") { 24 | _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); 25 | } 26 | 27 | function _baseURI() 28 | internal 29 | view 30 | override 31 | returns (string memory _newBaseURI) 32 | { 33 | return _url; 34 | } 35 | 36 | function mint(address to,uint256 hero_type) external override returns (uint256) { 37 | require(owner() == _msgSender()||hasRole(MINTER_ROLE,_msgSender()), "Caller is not a minter"); 38 | _tokenIdTracker.increment(); 39 | uint256 token_id = _tokenIdTracker.current(); 40 | _mint(to, token_id); 41 | emit Mint(to,hero_type,token_id); 42 | return token_id; 43 | } 44 | 45 | function listTokenIds(address owner)external view returns (uint256[] memory tokenIds){ 46 | uint balance = balanceOf(owner); 47 | uint256[] memory ids = new uint256[](balance); 48 | 49 | for( uint i = 0;i ListDetail ) listDetail; 32 | 33 | constructor(IERC20 _token, IERC721Enumerable _nft) { 34 | nft = _nft; 35 | token = _token; 36 | } 37 | 38 | function onERC721Received( 39 | address, 40 | address, 41 | uint256, 42 | bytes calldata 43 | ) external override pure returns (bytes4) { 44 | return 45 | bytes4( 46 | keccak256("onERC721Received(address,address,uint256,bytes)") 47 | ); 48 | } 49 | 50 | 51 | function setTax(uint256 _tax) public onlyOwner { 52 | tax = _tax; 53 | emit SetTax(_tax); 54 | } 55 | 56 | function setToken(IERC20 _token) public onlyOwner { 57 | token = _token; 58 | emit SetToken(_token); 59 | } 60 | 61 | function setNft(IERC721Enumerable _nft) public onlyOwner { 62 | nft = _nft; 63 | emit SetNFT(_nft); 64 | } 65 | 66 | function getListedNft() view public returns (ListDetail [] memory) { 67 | 68 | uint balance = nft.balanceOf(address(this)); 69 | ListDetail[] memory myNft = new ListDetail[](balance); 70 | 71 | for( uint i = 0; i < balance; i++) 72 | { 73 | myNft[i] = listDetail[nft.tokenOfOwnerByIndex(address(this), i)]; 74 | } 75 | return myNft; 76 | } 77 | 78 | function listNft(uint256 _tokenId, uint256 _price) public { 79 | require(nft.ownerOf(_tokenId) == msg.sender, "You are not the owner of this NFT"); 80 | require(nft.getApproved(_tokenId) == address(this), "Marketplace is not approved to transfer this NFT"); 81 | 82 | listDetail[_tokenId] = ListDetail(payable(msg.sender), _price, _tokenId); 83 | 84 | nft.safeTransferFrom(msg.sender, address(this), _tokenId); 85 | emit ListNFT(msg.sender,_tokenId, _price); 86 | } 87 | 88 | function updateListingNftPrice(uint256 _tokenId, uint256 _price) public { 89 | require(nft.ownerOf(_tokenId) == address(this), "This NFT doesn't exist on marketplace"); 90 | require(listDetail[_tokenId].author == msg.sender, "Only owner can update price of this NFT"); 91 | 92 | listDetail[_tokenId].price = _price; 93 | emit UpdateListingNFTPrice(_tokenId, _price); 94 | } 95 | 96 | function unlistNft(uint256 _tokenId) public { 97 | require(nft.ownerOf(_tokenId) == address(this), "This NFT doesn't exist on marketplace"); 98 | require(listDetail[_tokenId].author == msg.sender, "Only owner can unlist this NFT"); 99 | 100 | nft.safeTransferFrom(address(this), msg.sender, _tokenId); 101 | emit UnlistNFT(msg.sender,_tokenId); 102 | } 103 | 104 | function buyNft(uint256 _tokenId, uint256 _price) public { 105 | require(token.balanceOf(msg.sender) >= _price, "Insufficient account balance"); 106 | require(nft.ownerOf(_tokenId) == address(this), "This NFT doesn't exist on marketplace"); 107 | require(listDetail[_tokenId].price <= _price, "Minimum price has not been reached"); 108 | 109 | SafeERC20.safeTransferFrom(token, msg.sender, address(this), _price); 110 | token.transfer(listDetail[_tokenId].author, _price * (100 - tax) / 100); 111 | 112 | nft.safeTransferFrom(address(this), msg.sender, _tokenId); 113 | emit BuyNFT(msg.sender,_tokenId, _price); 114 | } 115 | // 116 | 117 | function withdraw() public onlyOwner { 118 | payable(msg.sender).transfer(address(this).balance); 119 | } 120 | function withdrawToken(uint256 amount) public onlyOwner { 121 | require(token.balanceOf(address(this)) >= amount, "Insufficient account balance"); 122 | token.transfer(msg.sender, amount); 123 | } 124 | 125 | function withdrawErc20() public onlyOwner { 126 | token.transfer(msg.sender, token.balanceOf(address(this))); 127 | } 128 | 129 | } 130 | -------------------------------------------------------------------------------- /contracts/USDT.sol: -------------------------------------------------------------------------------- 1 | //SPDX-License-Identifier: UNLICENSED 2 | pragma solidity <=0.8.10; 3 | import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol"; 4 | import "openzeppelin-solidity/contracts/access/Ownable.sol"; 5 | import "openzeppelin-solidity/contracts/token/ERC20/extensions/ERC20Burnable.sol"; 6 | import "hardhat/console.sol"; 7 | contract USDT is 8 | ERC20("USDT", "USDT"), 9 | ERC20Burnable, 10 | Ownable 11 | { 12 | uint256 private cap = 50_000_000_000 * 10**uint256(18); 13 | constructor() { 14 | console.log("owner: %s maxcap: %s", msg.sender, cap); 15 | _mint(msg.sender, cap); 16 | transferOwnership(msg.sender); 17 | } 18 | function mint(address to, uint256 amount) public onlyOwner { 19 | require( 20 | ERC20.totalSupply() + amount <= cap, 21 | "USDT: cap exceeded" 22 | ); 23 | _mint(to, amount); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /contracts/Vault.sol: -------------------------------------------------------------------------------- 1 | //SPDX-License-Identifier: UNLICENSED 2 | pragma solidity <=0.8.10; 3 | 4 | import "openzeppelin-solidity/contracts/token/ERC20/utils/SafeERC20.sol"; 5 | import "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol"; 6 | import "openzeppelin-solidity/contracts/access/Ownable.sol"; 7 | import "openzeppelin-solidity/contracts/access/AccessControlEnumerable.sol"; 8 | 9 | contract Vault is Ownable, AccessControlEnumerable { 10 | IERC20 private token; 11 | uint256 public maxWithdrawAmount; 12 | bool public withdrawEnable; 13 | bytes32 public constant WITHDRAWER_ROLE = keccak256("WITHDRAWER_ROLE"); 14 | 15 | function setWithdrawEnable(bool _isEnable) public onlyOwner { 16 | withdrawEnable = _isEnable; 17 | } 18 | function setMaxWithdrawAmount(uint256 _maxAmount) public onlyOwner { 19 | maxWithdrawAmount = _maxAmount; 20 | } 21 | function setToken(IERC20 _token) public onlyOwner { 22 | token = _token; 23 | } 24 | constructor() { 25 | _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); 26 | } 27 | function withdraw( 28 | uint256 _amount, 29 | address _to 30 | ) external onlyWithdrawer { 31 | require(withdrawEnable,"Withdraw is not available"); 32 | require(_amount<=maxWithdrawAmount,"Exceed maximum amount"); 33 | token.transfer(_to, _amount); 34 | } 35 | 36 | function deposit(uint256 _amount) external { 37 | require( 38 | token.balanceOf(msg.sender) >= _amount, 39 | "Insufficient account balance" 40 | ); 41 | SafeERC20.safeTransferFrom(token, msg.sender, address(this), _amount); 42 | } 43 | modifier onlyWithdrawer() { 44 | require(owner() == _msgSender()||hasRole(WITHDRAWER_ROLE,_msgSender()), "Caller is not a withdrawer"); 45 | _; 46 | } 47 | } -------------------------------------------------------------------------------- /hardhat.config.ts: -------------------------------------------------------------------------------- 1 | import "@nomicfoundation/hardhat-toolbox"; 2 | import * as dotenv from "dotenv"; 3 | dotenv.config({ path: __dirname + "/.env" }); 4 | /** @type import('hardhat/config').HardhatUserConfig */ 5 | module.exports = { 6 | solidity: "0.8.9", 7 | networks: { 8 | bsctest: { 9 | url: "https://data-seed-prebsc-2-s2.binance.org:8545", 10 | accounts: [process.env.PRIV_KEY] 11 | } 12 | }, 13 | etherscan: { 14 | apiKey: process.env.API_KEY 15 | } 16 | }; 17 | 18 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "workshop_01", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "compile": "hardhat compile", 8 | "deploy": "hardhat run scripts/deploy.ts --network", 9 | "test": "hardhat test", 10 | "verify": "hardhat verify --network" 11 | }, 12 | "author": "", 13 | "license": "ISC", 14 | "devDependencies": { 15 | "@nomicfoundation/hardhat-toolbox": "^1.0.2", 16 | "dotenv": "^16.0.1", 17 | "hardhat": "^2.10.2", 18 | "openzeppelin-solidity": "^4.6.0", 19 | "web3": "^1.7.5" 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /scripts/config.ts: -------------------------------------------------------------------------------- 1 | import {promises as fs} from 'fs' 2 | 3 | var config:any; 4 | 5 | export async function initConfig() { 6 | console.log('init'); 7 | config = JSON.parse((await fs.readFile('./config.json')).toString()); 8 | return config; 9 | } 10 | 11 | export function getConfig() { 12 | return config; 13 | } 14 | 15 | export function setConfig(path: string, val: string) { 16 | console.log(config); 17 | const splitPath = path.split('.').reverse() 18 | 19 | var ref = config; 20 | while (splitPath.length > 1) { 21 | let key = splitPath.pop(); 22 | if (key) { 23 | if (!ref[key]) 24 | ref[key] = {}; 25 | ref = ref[key]; 26 | } else { 27 | return; 28 | } 29 | } 30 | 31 | let key = splitPath.pop(); 32 | if (key) 33 | ref[key] = val 34 | } 35 | 36 | export async function updateConfig() { 37 | console.log("write: ", JSON.stringify(config)); 38 | 39 | return fs.writeFile('./config.json', JSON.stringify(config, null, 2)); 40 | } -------------------------------------------------------------------------------- /scripts/deploy.ts: -------------------------------------------------------------------------------- 1 | import { ethers, hardhatArguments } from 'hardhat'; 2 | import * as Config from './config'; 3 | 4 | async function main() { 5 | await Config.initConfig(); 6 | const network = hardhatArguments.network ? hardhatArguments.network : 'dev'; 7 | const [deployer] = await ethers.getSigners(); 8 | console.log('deploy from address: ', deployer.address); 9 | 10 | 11 | // const Floppy = await ethers.getContractFactory("Floppy"); 12 | // const floppy = await Floppy.deploy(); 13 | // console.log('Floppy address: ', floppy.address); 14 | // Config.setConfig(network + '.Floppy', floppy.address); 15 | 16 | // const Vault = await ethers.getContractFactory("Vault"); 17 | // const vault = await Vault.deploy(); 18 | // console.log('Floppy address: ', vault.address); 19 | // Config.setConfig(network + '.Vault', vault.address); 20 | 21 | // const Floppy = await ethers.getContractFactory("USDT"); 22 | // const floppy = await Floppy.deploy(); 23 | // console.log('USDT address: ', floppy.address); 24 | //Config.setConfig(network + '.USDT', floppy.address); 25 | 26 | // const Ico = await ethers.getContractFactory("FLPCrowdSale"); 27 | // const ico = await Ico.deploy(1000,100,'0xdF8De3b50Be87dE8676c4731187c5DC5C00E70F3', '0xd54D6d5BD983a6cA18F8820f80E0A970FE4A9a8c'); 28 | // console.log('ICO address: ', ico.address); 29 | // Config.setConfig(network + '.ico', ico.address); 30 | 31 | 32 | // const Hero = await ethers.getContractFactory("Hero"); 33 | // const hero = await Hero.deploy(); 34 | // console.log('stman hero address: ', hero.address); 35 | // Config.setConfig(network + '.Hero', hero.address); 36 | 37 | 38 | // const MKP = await ethers.getContractFactory("HeroMarketplace"); 39 | // const heroMarketplace = await MKP.deploy("0x65f00a282A58B30f8376D41832d76CeCB7b6186C", "0xd54D6d5BD983a6cA18F8820f80E0A970FE4A9a8c"); 40 | // console.log('Market deployed at: ', heroMarketplace.address); 41 | 42 | const Auction = await ethers.getContractFactory("Auction"); 43 | const auction = await Auction.deploy("0xd54D6d5BD983a6cA18F8820f80E0A970FE4A9a8c", "0x65f00a282A58B30f8376D41832d76CeCB7b6186C"); 44 | console.log('Market deployed at: ', auction.address); 45 | 46 | Config.setConfig(network + '.Auction', auction.address); 47 | 48 | await Config.updateConfig(); 49 | 50 | } 51 | 52 | main().then(() => process.exit(0)) 53 | .catch(err => { 54 | console.error(err); 55 | process.exit(1); 56 | }); 57 | -------------------------------------------------------------------------------- /test/test.ts: -------------------------------------------------------------------------------- 1 | import { expect } from "chai"; 2 | import { ethers } from "hardhat"; 3 | import { Contract } from '@ethersproject/contracts'; 4 | import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers'; 5 | import * as chai from "chai"; 6 | const chaiAsPromised = require('chai-as-promised'); 7 | chai.use(chaiAsPromised); 8 | import { keccak256 } from 'ethers/lib/utils'; 9 | 10 | function parseEther(amount: Number) { 11 | return ethers.utils.parseUnits(amount.toString(), 18); 12 | } 13 | 14 | describe("Vault", function () { 15 | let owner: SignerWithAddress, 16 | alice: SignerWithAddress, 17 | bob: SignerWithAddress, 18 | carol: SignerWithAddress; 19 | 20 | let vault:Contract; 21 | let token:Contract; 22 | 23 | beforeEach(async () => { 24 | await ethers.provider.send("hardhat_reset", []); 25 | [owner, alice, bob, carol] = await ethers.getSigners(); 26 | 27 | const Vault = await ethers.getContractFactory("Vault", owner); 28 | vault = await Vault.deploy(); 29 | const Token = await ethers.getContractFactory("Floppy", owner); 30 | token = await Token.deploy(); 31 | await vault.setToken(token.address); 32 | }) 33 | 34 | ////// Happy Path 35 | it("Should deposit into the Vault", async () => { 36 | await token.transfer(alice.address,parseEther(1 * 10**6)); 37 | await token.connect(alice).approve(vault.address,token.balanceOf(alice.address)); 38 | await vault.connect(alice).deposit(parseEther(500*10**3)); 39 | expect(await token.balanceOf(vault.address)).equal(parseEther(500 * 10**3)); 40 | }); 41 | it("Should withdraw", async () => { 42 | //grant withdrawer role to Bob 43 | let WITHDRAWER_ROLE = keccak256(Buffer.from("WITHDRAWER_ROLE")).toString(); 44 | await vault.grantRole(WITHDRAWER_ROLE, bob.address); 45 | 46 | // setter vault functions 47 | 48 | await vault.setWithdrawEnable(true); 49 | await vault.setMaxWithdrawAmount(parseEther(1*10**6)); 50 | 51 | // alice deposit into the vault 52 | await token.transfer(alice.address,parseEther(1 * 10**6)); 53 | await token.connect(alice).approve(vault.address,token.balanceOf(alice.address)); 54 | await vault.connect(alice).deposit(parseEther(500*10**3)); 55 | 56 | // bob withdraw into alice address 57 | await vault.connect(bob).withdraw(parseEther(300*10**3),alice.address); 58 | 59 | expect(await token.balanceOf(vault.address)).equal(parseEther(200 * 10**3)); 60 | expect(await token.balanceOf(alice.address)).equal(parseEther(800 * 10**3)); 61 | }); 62 | ///////Unhappy Path///////// 63 | it("Should not deposit, Insufficient account balance", async () => { 64 | await token.transfer(alice.address,parseEther(1 * 10**6)); 65 | await token.connect(alice).approve(vault.address,token.balanceOf(alice.address)); 66 | await expect (vault.connect(alice).deposit(parseEther(2 * 10**6))).revertedWith('Insufficient account balance'); 67 | }); 68 | it("Should not withdraw, Withdraw is not available ", async () => { 69 | //grant withdrawer role to Bob 70 | let WITHDRAWER_ROLE = keccak256(Buffer.from("WITHDRAWER_ROLE")).toString(); 71 | await vault.grantRole(WITHDRAWER_ROLE, bob.address); 72 | 73 | // setter vault functions 74 | 75 | await vault.setWithdrawEnable(false); 76 | await vault.setMaxWithdrawAmount(parseEther(1*10**6)); 77 | 78 | // alice deposit into the vault 79 | await token.transfer(alice.address,parseEther(1 * 10**6)); 80 | await token.connect(alice).approve(vault.address,token.balanceOf(alice.address)); 81 | await vault.connect(alice).deposit(parseEther(500*10**3)); 82 | 83 | // bob withdraw into alice address 84 | await expect (vault.connect(bob).withdraw(parseEther(300*10**3),alice.address)).revertedWith('Withdraw is not available'); 85 | 86 | }); 87 | it("Should not withdraw, Exceed maximum amount ", async () => { 88 | //grant withdrawer role to Bob 89 | let WITHDRAWER_ROLE = keccak256(Buffer.from("WITHDRAWER_ROLE")).toString(); 90 | await vault.grantRole(WITHDRAWER_ROLE, bob.address); 91 | 92 | // setter vault functions 93 | 94 | await vault.setWithdrawEnable(true); 95 | await vault.setMaxWithdrawAmount(parseEther(1*10**3)); 96 | 97 | // alice deposit into the vault 98 | await token.transfer(alice.address,parseEther(1 * 10**6)); 99 | await token.connect(alice).approve(vault.address,token.balanceOf(alice.address)); 100 | await vault.connect(alice).deposit(parseEther(500*10**3)); 101 | 102 | // bob withdraw into alice address 103 | await expect (vault.connect(bob).withdraw(parseEther(2*10**3),alice.address)).revertedWith('Exceed maximum amount'); 104 | 105 | }); 106 | it("Should not withdraw, Caller is not a withdrawer", async () => { 107 | //grant withdrawer role to Bob 108 | let WITHDRAWER_ROLE = keccak256(Buffer.from("WITHDRAWER_ROLE")).toString(); 109 | await vault.grantRole(WITHDRAWER_ROLE, bob.address); 110 | 111 | // setter vault functions 112 | 113 | await vault.setWithdrawEnable(true); 114 | await vault.setMaxWithdrawAmount(parseEther(1*10**3)); 115 | 116 | // alice deposit into the vault 117 | await token.transfer(alice.address,parseEther(1 * 10**6)); 118 | await token.connect(alice).approve(vault.address,token.balanceOf(alice.address)); 119 | await vault.connect(alice).deposit(parseEther(500*10**3)); 120 | 121 | // bob withdraw into alice address 122 | await expect (vault.connect(carol).withdraw(parseEther(1*10**3),alice.address)).revertedWith('Caller is not a withdrawer'); 123 | 124 | }) 125 | it("Should not withdraw, ERC20: transfer amount exceeds balance", async () => { 126 | //grant withdrawer role to Bob 127 | let WITHDRAWER_ROLE = keccak256(Buffer.from("WITHDRAWER_ROLE")).toString(); 128 | await vault.grantRole(WITHDRAWER_ROLE, bob.address); 129 | 130 | // setter vault functions 131 | 132 | await vault.setWithdrawEnable(true); 133 | await vault.setMaxWithdrawAmount(parseEther(5*10**3)); 134 | 135 | // alice deposit into the vault 136 | await token.transfer(alice.address,parseEther(1 * 10**6)); 137 | await token.connect(alice).approve(vault.address,token.balanceOf(alice.address)); 138 | await vault.connect(alice).deposit(parseEther(2*10**3)); 139 | 140 | // bob withdraw into alice address 141 | await expect (vault.connect(bob).withdraw(parseEther(3*10**3),alice.address)).revertedWith('ERC20: transfer amount exceeds balance'); 142 | 143 | }) 144 | }); 145 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es2020", 4 | "module": "commonjs", 5 | "esModuleInterop": true, 6 | "forceConsistentCasingInFileNames": true, 7 | "strict": true, 8 | "skipLibCheck": true 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /typechain-types/common.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | import type { Listener } from "@ethersproject/providers"; 5 | import type { Event, EventFilter } from "ethers"; 6 | 7 | export interface TypedEvent< 8 | TArgsArray extends Array = any, 9 | TArgsObject = any 10 | > extends Event { 11 | args: TArgsArray & TArgsObject; 12 | } 13 | 14 | export interface TypedEventFilter<_TEvent extends TypedEvent> 15 | extends EventFilter {} 16 | 17 | export interface TypedListener { 18 | (...listenerArg: [...__TypechainArgsArray, TEvent]): void; 19 | } 20 | 21 | type __TypechainArgsArray = T extends TypedEvent ? U : never; 22 | 23 | export interface OnEvent { 24 | ( 25 | eventFilter: TypedEventFilter, 26 | listener: TypedListener 27 | ): TRes; 28 | (eventName: string, listener: Listener): TRes; 29 | } 30 | 31 | export type MinEthersFactory = { 32 | deploy(...a: ARGS[]): Promise; 33 | }; 34 | 35 | export type GetContractTypeFromFactory = F extends MinEthersFactory< 36 | infer C, 37 | any 38 | > 39 | ? C 40 | : never; 41 | 42 | export type GetARGsTypeFromFactory = F extends MinEthersFactory 43 | ? Parameters 44 | : never; 45 | 46 | export type PromiseOrValue = T | Promise; 47 | -------------------------------------------------------------------------------- /typechain-types/contracts/FLPCrowndsale.sol/index.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | export type { FLPCrowdSale } from "./FLPCrowdSale"; 5 | -------------------------------------------------------------------------------- /typechain-types/contracts/Hero.sol/IHero.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | import type { 5 | BaseContract, 6 | BigNumber, 7 | BigNumberish, 8 | BytesLike, 9 | CallOverrides, 10 | ContractTransaction, 11 | Overrides, 12 | PopulatedTransaction, 13 | Signer, 14 | utils, 15 | } from "ethers"; 16 | import type { FunctionFragment, Result } from "@ethersproject/abi"; 17 | import type { Listener, Provider } from "@ethersproject/providers"; 18 | import type { 19 | TypedEventFilter, 20 | TypedEvent, 21 | TypedListener, 22 | OnEvent, 23 | PromiseOrValue, 24 | } from "../../common"; 25 | 26 | export interface IHeroInterface extends utils.Interface { 27 | functions: { 28 | "mint(address,uint256)": FunctionFragment; 29 | }; 30 | 31 | getFunction(nameOrSignatureOrTopic: "mint"): FunctionFragment; 32 | 33 | encodeFunctionData( 34 | functionFragment: "mint", 35 | values: [PromiseOrValue, PromiseOrValue] 36 | ): string; 37 | 38 | decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result; 39 | 40 | events: {}; 41 | } 42 | 43 | export interface IHero extends BaseContract { 44 | connect(signerOrProvider: Signer | Provider | string): this; 45 | attach(addressOrName: string): this; 46 | deployed(): Promise; 47 | 48 | interface: IHeroInterface; 49 | 50 | queryFilter( 51 | event: TypedEventFilter, 52 | fromBlockOrBlockhash?: string | number | undefined, 53 | toBlock?: string | number | undefined 54 | ): Promise>; 55 | 56 | listeners( 57 | eventFilter?: TypedEventFilter 58 | ): Array>; 59 | listeners(eventName?: string): Array; 60 | removeAllListeners( 61 | eventFilter: TypedEventFilter 62 | ): this; 63 | removeAllListeners(eventName?: string): this; 64 | off: OnEvent; 65 | on: OnEvent; 66 | once: OnEvent; 67 | removeListener: OnEvent; 68 | 69 | functions: { 70 | mint( 71 | to: PromiseOrValue, 72 | hero_type: PromiseOrValue, 73 | overrides?: Overrides & { from?: PromiseOrValue } 74 | ): Promise; 75 | }; 76 | 77 | mint( 78 | to: PromiseOrValue, 79 | hero_type: PromiseOrValue, 80 | overrides?: Overrides & { from?: PromiseOrValue } 81 | ): Promise; 82 | 83 | callStatic: { 84 | mint( 85 | to: PromiseOrValue, 86 | hero_type: PromiseOrValue, 87 | overrides?: CallOverrides 88 | ): Promise; 89 | }; 90 | 91 | filters: {}; 92 | 93 | estimateGas: { 94 | mint( 95 | to: PromiseOrValue, 96 | hero_type: PromiseOrValue, 97 | overrides?: Overrides & { from?: PromiseOrValue } 98 | ): Promise; 99 | }; 100 | 101 | populateTransaction: { 102 | mint( 103 | to: PromiseOrValue, 104 | hero_type: PromiseOrValue, 105 | overrides?: Overrides & { from?: PromiseOrValue } 106 | ): Promise; 107 | }; 108 | } 109 | -------------------------------------------------------------------------------- /typechain-types/contracts/Hero.sol/index.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | export type { Hero } from "./Hero"; 5 | export type { IHero } from "./IHero"; 6 | -------------------------------------------------------------------------------- /typechain-types/contracts/index.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | import type * as flpCrowndsaleSol from "./FLPCrowndsale.sol"; 5 | export type { flpCrowndsaleSol }; 6 | import type * as heroSol from "./Hero.sol"; 7 | export type { heroSol }; 8 | export type { Auction } from "./Auction"; 9 | export type { Floppy } from "./Floppy"; 10 | export type { HeroMarketplace } from "./HeroMarketplace"; 11 | export type { USDT } from "./USDT"; 12 | export type { Vault } from "./Vault"; 13 | -------------------------------------------------------------------------------- /typechain-types/factories/contracts/FLPCrowndsale.sol/index.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | export { FLPCrowdSale__factory } from "./FLPCrowdSale__factory"; 5 | -------------------------------------------------------------------------------- /typechain-types/factories/contracts/Hero.sol/IHero__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import type { Provider } from "@ethersproject/providers"; 7 | import type { IHero, IHeroInterface } from "../../../contracts/Hero.sol/IHero"; 8 | 9 | const _abi = [ 10 | { 11 | inputs: [ 12 | { 13 | internalType: "address", 14 | name: "to", 15 | type: "address", 16 | }, 17 | { 18 | internalType: "uint256", 19 | name: "hero_type", 20 | type: "uint256", 21 | }, 22 | ], 23 | name: "mint", 24 | outputs: [ 25 | { 26 | internalType: "uint256", 27 | name: "", 28 | type: "uint256", 29 | }, 30 | ], 31 | stateMutability: "nonpayable", 32 | type: "function", 33 | }, 34 | ]; 35 | 36 | export class IHero__factory { 37 | static readonly abi = _abi; 38 | static createInterface(): IHeroInterface { 39 | return new utils.Interface(_abi) as IHeroInterface; 40 | } 41 | static connect(address: string, signerOrProvider: Signer | Provider): IHero { 42 | return new Contract(address, _abi, signerOrProvider) as IHero; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /typechain-types/factories/contracts/Hero.sol/index.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | export { Hero__factory } from "./Hero__factory"; 5 | export { IHero__factory } from "./IHero__factory"; 6 | -------------------------------------------------------------------------------- /typechain-types/factories/contracts/index.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | export * as flpCrowndsaleSol from "./FLPCrowndsale.sol"; 5 | export * as heroSol from "./Hero.sol"; 6 | export { Auction__factory } from "./Auction__factory"; 7 | export { Floppy__factory } from "./Floppy__factory"; 8 | export { HeroMarketplace__factory } from "./HeroMarketplace__factory"; 9 | export { USDT__factory } from "./USDT__factory"; 10 | export { Vault__factory } from "./Vault__factory"; 11 | -------------------------------------------------------------------------------- /typechain-types/factories/index.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | export * as contracts from "./contracts"; 5 | export * as openzeppelinSolidity from "./openzeppelin-solidity"; 6 | -------------------------------------------------------------------------------- /typechain-types/factories/openzeppelin-solidity/contracts/access/AccessControlEnumerable__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import type { Provider } from "@ethersproject/providers"; 7 | import type { 8 | AccessControlEnumerable, 9 | AccessControlEnumerableInterface, 10 | } from "../../../../openzeppelin-solidity/contracts/access/AccessControlEnumerable"; 11 | 12 | const _abi = [ 13 | { 14 | anonymous: false, 15 | inputs: [ 16 | { 17 | indexed: true, 18 | internalType: "bytes32", 19 | name: "role", 20 | type: "bytes32", 21 | }, 22 | { 23 | indexed: true, 24 | internalType: "bytes32", 25 | name: "previousAdminRole", 26 | type: "bytes32", 27 | }, 28 | { 29 | indexed: true, 30 | internalType: "bytes32", 31 | name: "newAdminRole", 32 | type: "bytes32", 33 | }, 34 | ], 35 | name: "RoleAdminChanged", 36 | type: "event", 37 | }, 38 | { 39 | anonymous: false, 40 | inputs: [ 41 | { 42 | indexed: true, 43 | internalType: "bytes32", 44 | name: "role", 45 | type: "bytes32", 46 | }, 47 | { 48 | indexed: true, 49 | internalType: "address", 50 | name: "account", 51 | type: "address", 52 | }, 53 | { 54 | indexed: true, 55 | internalType: "address", 56 | name: "sender", 57 | type: "address", 58 | }, 59 | ], 60 | name: "RoleGranted", 61 | type: "event", 62 | }, 63 | { 64 | anonymous: false, 65 | inputs: [ 66 | { 67 | indexed: true, 68 | internalType: "bytes32", 69 | name: "role", 70 | type: "bytes32", 71 | }, 72 | { 73 | indexed: true, 74 | internalType: "address", 75 | name: "account", 76 | type: "address", 77 | }, 78 | { 79 | indexed: true, 80 | internalType: "address", 81 | name: "sender", 82 | type: "address", 83 | }, 84 | ], 85 | name: "RoleRevoked", 86 | type: "event", 87 | }, 88 | { 89 | inputs: [], 90 | name: "DEFAULT_ADMIN_ROLE", 91 | outputs: [ 92 | { 93 | internalType: "bytes32", 94 | name: "", 95 | type: "bytes32", 96 | }, 97 | ], 98 | stateMutability: "view", 99 | type: "function", 100 | }, 101 | { 102 | inputs: [ 103 | { 104 | internalType: "bytes32", 105 | name: "role", 106 | type: "bytes32", 107 | }, 108 | ], 109 | name: "getRoleAdmin", 110 | outputs: [ 111 | { 112 | internalType: "bytes32", 113 | name: "", 114 | type: "bytes32", 115 | }, 116 | ], 117 | stateMutability: "view", 118 | type: "function", 119 | }, 120 | { 121 | inputs: [ 122 | { 123 | internalType: "bytes32", 124 | name: "role", 125 | type: "bytes32", 126 | }, 127 | { 128 | internalType: "uint256", 129 | name: "index", 130 | type: "uint256", 131 | }, 132 | ], 133 | name: "getRoleMember", 134 | outputs: [ 135 | { 136 | internalType: "address", 137 | name: "", 138 | type: "address", 139 | }, 140 | ], 141 | stateMutability: "view", 142 | type: "function", 143 | }, 144 | { 145 | inputs: [ 146 | { 147 | internalType: "bytes32", 148 | name: "role", 149 | type: "bytes32", 150 | }, 151 | ], 152 | name: "getRoleMemberCount", 153 | outputs: [ 154 | { 155 | internalType: "uint256", 156 | name: "", 157 | type: "uint256", 158 | }, 159 | ], 160 | stateMutability: "view", 161 | type: "function", 162 | }, 163 | { 164 | inputs: [ 165 | { 166 | internalType: "bytes32", 167 | name: "role", 168 | type: "bytes32", 169 | }, 170 | { 171 | internalType: "address", 172 | name: "account", 173 | type: "address", 174 | }, 175 | ], 176 | name: "grantRole", 177 | outputs: [], 178 | stateMutability: "nonpayable", 179 | type: "function", 180 | }, 181 | { 182 | inputs: [ 183 | { 184 | internalType: "bytes32", 185 | name: "role", 186 | type: "bytes32", 187 | }, 188 | { 189 | internalType: "address", 190 | name: "account", 191 | type: "address", 192 | }, 193 | ], 194 | name: "hasRole", 195 | outputs: [ 196 | { 197 | internalType: "bool", 198 | name: "", 199 | type: "bool", 200 | }, 201 | ], 202 | stateMutability: "view", 203 | type: "function", 204 | }, 205 | { 206 | inputs: [ 207 | { 208 | internalType: "bytes32", 209 | name: "role", 210 | type: "bytes32", 211 | }, 212 | { 213 | internalType: "address", 214 | name: "account", 215 | type: "address", 216 | }, 217 | ], 218 | name: "renounceRole", 219 | outputs: [], 220 | stateMutability: "nonpayable", 221 | type: "function", 222 | }, 223 | { 224 | inputs: [ 225 | { 226 | internalType: "bytes32", 227 | name: "role", 228 | type: "bytes32", 229 | }, 230 | { 231 | internalType: "address", 232 | name: "account", 233 | type: "address", 234 | }, 235 | ], 236 | name: "revokeRole", 237 | outputs: [], 238 | stateMutability: "nonpayable", 239 | type: "function", 240 | }, 241 | { 242 | inputs: [ 243 | { 244 | internalType: "bytes4", 245 | name: "interfaceId", 246 | type: "bytes4", 247 | }, 248 | ], 249 | name: "supportsInterface", 250 | outputs: [ 251 | { 252 | internalType: "bool", 253 | name: "", 254 | type: "bool", 255 | }, 256 | ], 257 | stateMutability: "view", 258 | type: "function", 259 | }, 260 | ]; 261 | 262 | export class AccessControlEnumerable__factory { 263 | static readonly abi = _abi; 264 | static createInterface(): AccessControlEnumerableInterface { 265 | return new utils.Interface(_abi) as AccessControlEnumerableInterface; 266 | } 267 | static connect( 268 | address: string, 269 | signerOrProvider: Signer | Provider 270 | ): AccessControlEnumerable { 271 | return new Contract( 272 | address, 273 | _abi, 274 | signerOrProvider 275 | ) as AccessControlEnumerable; 276 | } 277 | } 278 | -------------------------------------------------------------------------------- /typechain-types/factories/openzeppelin-solidity/contracts/access/AccessControl__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import type { Provider } from "@ethersproject/providers"; 7 | import type { 8 | AccessControl, 9 | AccessControlInterface, 10 | } from "../../../../openzeppelin-solidity/contracts/access/AccessControl"; 11 | 12 | const _abi = [ 13 | { 14 | anonymous: false, 15 | inputs: [ 16 | { 17 | indexed: true, 18 | internalType: "bytes32", 19 | name: "role", 20 | type: "bytes32", 21 | }, 22 | { 23 | indexed: true, 24 | internalType: "bytes32", 25 | name: "previousAdminRole", 26 | type: "bytes32", 27 | }, 28 | { 29 | indexed: true, 30 | internalType: "bytes32", 31 | name: "newAdminRole", 32 | type: "bytes32", 33 | }, 34 | ], 35 | name: "RoleAdminChanged", 36 | type: "event", 37 | }, 38 | { 39 | anonymous: false, 40 | inputs: [ 41 | { 42 | indexed: true, 43 | internalType: "bytes32", 44 | name: "role", 45 | type: "bytes32", 46 | }, 47 | { 48 | indexed: true, 49 | internalType: "address", 50 | name: "account", 51 | type: "address", 52 | }, 53 | { 54 | indexed: true, 55 | internalType: "address", 56 | name: "sender", 57 | type: "address", 58 | }, 59 | ], 60 | name: "RoleGranted", 61 | type: "event", 62 | }, 63 | { 64 | anonymous: false, 65 | inputs: [ 66 | { 67 | indexed: true, 68 | internalType: "bytes32", 69 | name: "role", 70 | type: "bytes32", 71 | }, 72 | { 73 | indexed: true, 74 | internalType: "address", 75 | name: "account", 76 | type: "address", 77 | }, 78 | { 79 | indexed: true, 80 | internalType: "address", 81 | name: "sender", 82 | type: "address", 83 | }, 84 | ], 85 | name: "RoleRevoked", 86 | type: "event", 87 | }, 88 | { 89 | inputs: [], 90 | name: "DEFAULT_ADMIN_ROLE", 91 | outputs: [ 92 | { 93 | internalType: "bytes32", 94 | name: "", 95 | type: "bytes32", 96 | }, 97 | ], 98 | stateMutability: "view", 99 | type: "function", 100 | }, 101 | { 102 | inputs: [ 103 | { 104 | internalType: "bytes32", 105 | name: "role", 106 | type: "bytes32", 107 | }, 108 | ], 109 | name: "getRoleAdmin", 110 | outputs: [ 111 | { 112 | internalType: "bytes32", 113 | name: "", 114 | type: "bytes32", 115 | }, 116 | ], 117 | stateMutability: "view", 118 | type: "function", 119 | }, 120 | { 121 | inputs: [ 122 | { 123 | internalType: "bytes32", 124 | name: "role", 125 | type: "bytes32", 126 | }, 127 | { 128 | internalType: "address", 129 | name: "account", 130 | type: "address", 131 | }, 132 | ], 133 | name: "grantRole", 134 | outputs: [], 135 | stateMutability: "nonpayable", 136 | type: "function", 137 | }, 138 | { 139 | inputs: [ 140 | { 141 | internalType: "bytes32", 142 | name: "role", 143 | type: "bytes32", 144 | }, 145 | { 146 | internalType: "address", 147 | name: "account", 148 | type: "address", 149 | }, 150 | ], 151 | name: "hasRole", 152 | outputs: [ 153 | { 154 | internalType: "bool", 155 | name: "", 156 | type: "bool", 157 | }, 158 | ], 159 | stateMutability: "view", 160 | type: "function", 161 | }, 162 | { 163 | inputs: [ 164 | { 165 | internalType: "bytes32", 166 | name: "role", 167 | type: "bytes32", 168 | }, 169 | { 170 | internalType: "address", 171 | name: "account", 172 | type: "address", 173 | }, 174 | ], 175 | name: "renounceRole", 176 | outputs: [], 177 | stateMutability: "nonpayable", 178 | type: "function", 179 | }, 180 | { 181 | inputs: [ 182 | { 183 | internalType: "bytes32", 184 | name: "role", 185 | type: "bytes32", 186 | }, 187 | { 188 | internalType: "address", 189 | name: "account", 190 | type: "address", 191 | }, 192 | ], 193 | name: "revokeRole", 194 | outputs: [], 195 | stateMutability: "nonpayable", 196 | type: "function", 197 | }, 198 | { 199 | inputs: [ 200 | { 201 | internalType: "bytes4", 202 | name: "interfaceId", 203 | type: "bytes4", 204 | }, 205 | ], 206 | name: "supportsInterface", 207 | outputs: [ 208 | { 209 | internalType: "bool", 210 | name: "", 211 | type: "bool", 212 | }, 213 | ], 214 | stateMutability: "view", 215 | type: "function", 216 | }, 217 | ]; 218 | 219 | export class AccessControl__factory { 220 | static readonly abi = _abi; 221 | static createInterface(): AccessControlInterface { 222 | return new utils.Interface(_abi) as AccessControlInterface; 223 | } 224 | static connect( 225 | address: string, 226 | signerOrProvider: Signer | Provider 227 | ): AccessControl { 228 | return new Contract(address, _abi, signerOrProvider) as AccessControl; 229 | } 230 | } 231 | -------------------------------------------------------------------------------- /typechain-types/factories/openzeppelin-solidity/contracts/access/IAccessControlEnumerable__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import type { Provider } from "@ethersproject/providers"; 7 | import type { 8 | IAccessControlEnumerable, 9 | IAccessControlEnumerableInterface, 10 | } from "../../../../openzeppelin-solidity/contracts/access/IAccessControlEnumerable"; 11 | 12 | const _abi = [ 13 | { 14 | anonymous: false, 15 | inputs: [ 16 | { 17 | indexed: true, 18 | internalType: "bytes32", 19 | name: "role", 20 | type: "bytes32", 21 | }, 22 | { 23 | indexed: true, 24 | internalType: "bytes32", 25 | name: "previousAdminRole", 26 | type: "bytes32", 27 | }, 28 | { 29 | indexed: true, 30 | internalType: "bytes32", 31 | name: "newAdminRole", 32 | type: "bytes32", 33 | }, 34 | ], 35 | name: "RoleAdminChanged", 36 | type: "event", 37 | }, 38 | { 39 | anonymous: false, 40 | inputs: [ 41 | { 42 | indexed: true, 43 | internalType: "bytes32", 44 | name: "role", 45 | type: "bytes32", 46 | }, 47 | { 48 | indexed: true, 49 | internalType: "address", 50 | name: "account", 51 | type: "address", 52 | }, 53 | { 54 | indexed: true, 55 | internalType: "address", 56 | name: "sender", 57 | type: "address", 58 | }, 59 | ], 60 | name: "RoleGranted", 61 | type: "event", 62 | }, 63 | { 64 | anonymous: false, 65 | inputs: [ 66 | { 67 | indexed: true, 68 | internalType: "bytes32", 69 | name: "role", 70 | type: "bytes32", 71 | }, 72 | { 73 | indexed: true, 74 | internalType: "address", 75 | name: "account", 76 | type: "address", 77 | }, 78 | { 79 | indexed: true, 80 | internalType: "address", 81 | name: "sender", 82 | type: "address", 83 | }, 84 | ], 85 | name: "RoleRevoked", 86 | type: "event", 87 | }, 88 | { 89 | inputs: [ 90 | { 91 | internalType: "bytes32", 92 | name: "role", 93 | type: "bytes32", 94 | }, 95 | ], 96 | name: "getRoleAdmin", 97 | outputs: [ 98 | { 99 | internalType: "bytes32", 100 | name: "", 101 | type: "bytes32", 102 | }, 103 | ], 104 | stateMutability: "view", 105 | type: "function", 106 | }, 107 | { 108 | inputs: [ 109 | { 110 | internalType: "bytes32", 111 | name: "role", 112 | type: "bytes32", 113 | }, 114 | { 115 | internalType: "uint256", 116 | name: "index", 117 | type: "uint256", 118 | }, 119 | ], 120 | name: "getRoleMember", 121 | outputs: [ 122 | { 123 | internalType: "address", 124 | name: "", 125 | type: "address", 126 | }, 127 | ], 128 | stateMutability: "view", 129 | type: "function", 130 | }, 131 | { 132 | inputs: [ 133 | { 134 | internalType: "bytes32", 135 | name: "role", 136 | type: "bytes32", 137 | }, 138 | ], 139 | name: "getRoleMemberCount", 140 | outputs: [ 141 | { 142 | internalType: "uint256", 143 | name: "", 144 | type: "uint256", 145 | }, 146 | ], 147 | stateMutability: "view", 148 | type: "function", 149 | }, 150 | { 151 | inputs: [ 152 | { 153 | internalType: "bytes32", 154 | name: "role", 155 | type: "bytes32", 156 | }, 157 | { 158 | internalType: "address", 159 | name: "account", 160 | type: "address", 161 | }, 162 | ], 163 | name: "grantRole", 164 | outputs: [], 165 | stateMutability: "nonpayable", 166 | type: "function", 167 | }, 168 | { 169 | inputs: [ 170 | { 171 | internalType: "bytes32", 172 | name: "role", 173 | type: "bytes32", 174 | }, 175 | { 176 | internalType: "address", 177 | name: "account", 178 | type: "address", 179 | }, 180 | ], 181 | name: "hasRole", 182 | outputs: [ 183 | { 184 | internalType: "bool", 185 | name: "", 186 | type: "bool", 187 | }, 188 | ], 189 | stateMutability: "view", 190 | type: "function", 191 | }, 192 | { 193 | inputs: [ 194 | { 195 | internalType: "bytes32", 196 | name: "role", 197 | type: "bytes32", 198 | }, 199 | { 200 | internalType: "address", 201 | name: "account", 202 | type: "address", 203 | }, 204 | ], 205 | name: "renounceRole", 206 | outputs: [], 207 | stateMutability: "nonpayable", 208 | type: "function", 209 | }, 210 | { 211 | inputs: [ 212 | { 213 | internalType: "bytes32", 214 | name: "role", 215 | type: "bytes32", 216 | }, 217 | { 218 | internalType: "address", 219 | name: "account", 220 | type: "address", 221 | }, 222 | ], 223 | name: "revokeRole", 224 | outputs: [], 225 | stateMutability: "nonpayable", 226 | type: "function", 227 | }, 228 | ]; 229 | 230 | export class IAccessControlEnumerable__factory { 231 | static readonly abi = _abi; 232 | static createInterface(): IAccessControlEnumerableInterface { 233 | return new utils.Interface(_abi) as IAccessControlEnumerableInterface; 234 | } 235 | static connect( 236 | address: string, 237 | signerOrProvider: Signer | Provider 238 | ): IAccessControlEnumerable { 239 | return new Contract( 240 | address, 241 | _abi, 242 | signerOrProvider 243 | ) as IAccessControlEnumerable; 244 | } 245 | } 246 | -------------------------------------------------------------------------------- /typechain-types/factories/openzeppelin-solidity/contracts/access/IAccessControl__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import type { Provider } from "@ethersproject/providers"; 7 | import type { 8 | IAccessControl, 9 | IAccessControlInterface, 10 | } from "../../../../openzeppelin-solidity/contracts/access/IAccessControl"; 11 | 12 | const _abi = [ 13 | { 14 | anonymous: false, 15 | inputs: [ 16 | { 17 | indexed: true, 18 | internalType: "bytes32", 19 | name: "role", 20 | type: "bytes32", 21 | }, 22 | { 23 | indexed: true, 24 | internalType: "bytes32", 25 | name: "previousAdminRole", 26 | type: "bytes32", 27 | }, 28 | { 29 | indexed: true, 30 | internalType: "bytes32", 31 | name: "newAdminRole", 32 | type: "bytes32", 33 | }, 34 | ], 35 | name: "RoleAdminChanged", 36 | type: "event", 37 | }, 38 | { 39 | anonymous: false, 40 | inputs: [ 41 | { 42 | indexed: true, 43 | internalType: "bytes32", 44 | name: "role", 45 | type: "bytes32", 46 | }, 47 | { 48 | indexed: true, 49 | internalType: "address", 50 | name: "account", 51 | type: "address", 52 | }, 53 | { 54 | indexed: true, 55 | internalType: "address", 56 | name: "sender", 57 | type: "address", 58 | }, 59 | ], 60 | name: "RoleGranted", 61 | type: "event", 62 | }, 63 | { 64 | anonymous: false, 65 | inputs: [ 66 | { 67 | indexed: true, 68 | internalType: "bytes32", 69 | name: "role", 70 | type: "bytes32", 71 | }, 72 | { 73 | indexed: true, 74 | internalType: "address", 75 | name: "account", 76 | type: "address", 77 | }, 78 | { 79 | indexed: true, 80 | internalType: "address", 81 | name: "sender", 82 | type: "address", 83 | }, 84 | ], 85 | name: "RoleRevoked", 86 | type: "event", 87 | }, 88 | { 89 | inputs: [ 90 | { 91 | internalType: "bytes32", 92 | name: "role", 93 | type: "bytes32", 94 | }, 95 | ], 96 | name: "getRoleAdmin", 97 | outputs: [ 98 | { 99 | internalType: "bytes32", 100 | name: "", 101 | type: "bytes32", 102 | }, 103 | ], 104 | stateMutability: "view", 105 | type: "function", 106 | }, 107 | { 108 | inputs: [ 109 | { 110 | internalType: "bytes32", 111 | name: "role", 112 | type: "bytes32", 113 | }, 114 | { 115 | internalType: "address", 116 | name: "account", 117 | type: "address", 118 | }, 119 | ], 120 | name: "grantRole", 121 | outputs: [], 122 | stateMutability: "nonpayable", 123 | type: "function", 124 | }, 125 | { 126 | inputs: [ 127 | { 128 | internalType: "bytes32", 129 | name: "role", 130 | type: "bytes32", 131 | }, 132 | { 133 | internalType: "address", 134 | name: "account", 135 | type: "address", 136 | }, 137 | ], 138 | name: "hasRole", 139 | outputs: [ 140 | { 141 | internalType: "bool", 142 | name: "", 143 | type: "bool", 144 | }, 145 | ], 146 | stateMutability: "view", 147 | type: "function", 148 | }, 149 | { 150 | inputs: [ 151 | { 152 | internalType: "bytes32", 153 | name: "role", 154 | type: "bytes32", 155 | }, 156 | { 157 | internalType: "address", 158 | name: "account", 159 | type: "address", 160 | }, 161 | ], 162 | name: "renounceRole", 163 | outputs: [], 164 | stateMutability: "nonpayable", 165 | type: "function", 166 | }, 167 | { 168 | inputs: [ 169 | { 170 | internalType: "bytes32", 171 | name: "role", 172 | type: "bytes32", 173 | }, 174 | { 175 | internalType: "address", 176 | name: "account", 177 | type: "address", 178 | }, 179 | ], 180 | name: "revokeRole", 181 | outputs: [], 182 | stateMutability: "nonpayable", 183 | type: "function", 184 | }, 185 | ]; 186 | 187 | export class IAccessControl__factory { 188 | static readonly abi = _abi; 189 | static createInterface(): IAccessControlInterface { 190 | return new utils.Interface(_abi) as IAccessControlInterface; 191 | } 192 | static connect( 193 | address: string, 194 | signerOrProvider: Signer | Provider 195 | ): IAccessControl { 196 | return new Contract(address, _abi, signerOrProvider) as IAccessControl; 197 | } 198 | } 199 | -------------------------------------------------------------------------------- /typechain-types/factories/openzeppelin-solidity/contracts/access/Ownable__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import type { Provider } from "@ethersproject/providers"; 7 | import type { 8 | Ownable, 9 | OwnableInterface, 10 | } from "../../../../openzeppelin-solidity/contracts/access/Ownable"; 11 | 12 | const _abi = [ 13 | { 14 | anonymous: false, 15 | inputs: [ 16 | { 17 | indexed: true, 18 | internalType: "address", 19 | name: "previousOwner", 20 | type: "address", 21 | }, 22 | { 23 | indexed: true, 24 | internalType: "address", 25 | name: "newOwner", 26 | type: "address", 27 | }, 28 | ], 29 | name: "OwnershipTransferred", 30 | type: "event", 31 | }, 32 | { 33 | inputs: [], 34 | name: "owner", 35 | outputs: [ 36 | { 37 | internalType: "address", 38 | name: "", 39 | type: "address", 40 | }, 41 | ], 42 | stateMutability: "view", 43 | type: "function", 44 | }, 45 | { 46 | inputs: [], 47 | name: "renounceOwnership", 48 | outputs: [], 49 | stateMutability: "nonpayable", 50 | type: "function", 51 | }, 52 | { 53 | inputs: [ 54 | { 55 | internalType: "address", 56 | name: "newOwner", 57 | type: "address", 58 | }, 59 | ], 60 | name: "transferOwnership", 61 | outputs: [], 62 | stateMutability: "nonpayable", 63 | type: "function", 64 | }, 65 | ]; 66 | 67 | export class Ownable__factory { 68 | static readonly abi = _abi; 69 | static createInterface(): OwnableInterface { 70 | return new utils.Interface(_abi) as OwnableInterface; 71 | } 72 | static connect( 73 | address: string, 74 | signerOrProvider: Signer | Provider 75 | ): Ownable { 76 | return new Contract(address, _abi, signerOrProvider) as Ownable; 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /typechain-types/factories/openzeppelin-solidity/contracts/access/index.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | export { AccessControl__factory } from "./AccessControl__factory"; 5 | export { AccessControlEnumerable__factory } from "./AccessControlEnumerable__factory"; 6 | export { IAccessControl__factory } from "./IAccessControl__factory"; 7 | export { IAccessControlEnumerable__factory } from "./IAccessControlEnumerable__factory"; 8 | export { Ownable__factory } from "./Ownable__factory"; 9 | -------------------------------------------------------------------------------- /typechain-types/factories/openzeppelin-solidity/contracts/index.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | export * as access from "./access"; 5 | export * as token from "./token"; 6 | export * as utils from "./utils"; 7 | -------------------------------------------------------------------------------- /typechain-types/factories/openzeppelin-solidity/contracts/token/ERC20/IERC20__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import type { Provider } from "@ethersproject/providers"; 7 | import type { 8 | IERC20, 9 | IERC20Interface, 10 | } from "../../../../../openzeppelin-solidity/contracts/token/ERC20/IERC20"; 11 | 12 | const _abi = [ 13 | { 14 | anonymous: false, 15 | inputs: [ 16 | { 17 | indexed: true, 18 | internalType: "address", 19 | name: "owner", 20 | type: "address", 21 | }, 22 | { 23 | indexed: true, 24 | internalType: "address", 25 | name: "spender", 26 | type: "address", 27 | }, 28 | { 29 | indexed: false, 30 | internalType: "uint256", 31 | name: "value", 32 | type: "uint256", 33 | }, 34 | ], 35 | name: "Approval", 36 | type: "event", 37 | }, 38 | { 39 | anonymous: false, 40 | inputs: [ 41 | { 42 | indexed: true, 43 | internalType: "address", 44 | name: "from", 45 | type: "address", 46 | }, 47 | { 48 | indexed: true, 49 | internalType: "address", 50 | name: "to", 51 | type: "address", 52 | }, 53 | { 54 | indexed: false, 55 | internalType: "uint256", 56 | name: "value", 57 | type: "uint256", 58 | }, 59 | ], 60 | name: "Transfer", 61 | type: "event", 62 | }, 63 | { 64 | inputs: [ 65 | { 66 | internalType: "address", 67 | name: "owner", 68 | type: "address", 69 | }, 70 | { 71 | internalType: "address", 72 | name: "spender", 73 | type: "address", 74 | }, 75 | ], 76 | name: "allowance", 77 | outputs: [ 78 | { 79 | internalType: "uint256", 80 | name: "", 81 | type: "uint256", 82 | }, 83 | ], 84 | stateMutability: "view", 85 | type: "function", 86 | }, 87 | { 88 | inputs: [ 89 | { 90 | internalType: "address", 91 | name: "spender", 92 | type: "address", 93 | }, 94 | { 95 | internalType: "uint256", 96 | name: "amount", 97 | type: "uint256", 98 | }, 99 | ], 100 | name: "approve", 101 | outputs: [ 102 | { 103 | internalType: "bool", 104 | name: "", 105 | type: "bool", 106 | }, 107 | ], 108 | stateMutability: "nonpayable", 109 | type: "function", 110 | }, 111 | { 112 | inputs: [ 113 | { 114 | internalType: "address", 115 | name: "account", 116 | type: "address", 117 | }, 118 | ], 119 | name: "balanceOf", 120 | outputs: [ 121 | { 122 | internalType: "uint256", 123 | name: "", 124 | type: "uint256", 125 | }, 126 | ], 127 | stateMutability: "view", 128 | type: "function", 129 | }, 130 | { 131 | inputs: [], 132 | name: "totalSupply", 133 | outputs: [ 134 | { 135 | internalType: "uint256", 136 | name: "", 137 | type: "uint256", 138 | }, 139 | ], 140 | stateMutability: "view", 141 | type: "function", 142 | }, 143 | { 144 | inputs: [ 145 | { 146 | internalType: "address", 147 | name: "to", 148 | type: "address", 149 | }, 150 | { 151 | internalType: "uint256", 152 | name: "amount", 153 | type: "uint256", 154 | }, 155 | ], 156 | name: "transfer", 157 | outputs: [ 158 | { 159 | internalType: "bool", 160 | name: "", 161 | type: "bool", 162 | }, 163 | ], 164 | stateMutability: "nonpayable", 165 | type: "function", 166 | }, 167 | { 168 | inputs: [ 169 | { 170 | internalType: "address", 171 | name: "from", 172 | type: "address", 173 | }, 174 | { 175 | internalType: "address", 176 | name: "to", 177 | type: "address", 178 | }, 179 | { 180 | internalType: "uint256", 181 | name: "amount", 182 | type: "uint256", 183 | }, 184 | ], 185 | name: "transferFrom", 186 | outputs: [ 187 | { 188 | internalType: "bool", 189 | name: "", 190 | type: "bool", 191 | }, 192 | ], 193 | stateMutability: "nonpayable", 194 | type: "function", 195 | }, 196 | ]; 197 | 198 | export class IERC20__factory { 199 | static readonly abi = _abi; 200 | static createInterface(): IERC20Interface { 201 | return new utils.Interface(_abi) as IERC20Interface; 202 | } 203 | static connect(address: string, signerOrProvider: Signer | Provider): IERC20 { 204 | return new Contract(address, _abi, signerOrProvider) as IERC20; 205 | } 206 | } 207 | -------------------------------------------------------------------------------- /typechain-types/factories/openzeppelin-solidity/contracts/token/ERC20/extensions/ERC20Burnable__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import type { Provider } from "@ethersproject/providers"; 7 | import type { 8 | ERC20Burnable, 9 | ERC20BurnableInterface, 10 | } from "../../../../../../openzeppelin-solidity/contracts/token/ERC20/extensions/ERC20Burnable"; 11 | 12 | const _abi = [ 13 | { 14 | anonymous: false, 15 | inputs: [ 16 | { 17 | indexed: true, 18 | internalType: "address", 19 | name: "owner", 20 | type: "address", 21 | }, 22 | { 23 | indexed: true, 24 | internalType: "address", 25 | name: "spender", 26 | type: "address", 27 | }, 28 | { 29 | indexed: false, 30 | internalType: "uint256", 31 | name: "value", 32 | type: "uint256", 33 | }, 34 | ], 35 | name: "Approval", 36 | type: "event", 37 | }, 38 | { 39 | anonymous: false, 40 | inputs: [ 41 | { 42 | indexed: true, 43 | internalType: "address", 44 | name: "from", 45 | type: "address", 46 | }, 47 | { 48 | indexed: true, 49 | internalType: "address", 50 | name: "to", 51 | type: "address", 52 | }, 53 | { 54 | indexed: false, 55 | internalType: "uint256", 56 | name: "value", 57 | type: "uint256", 58 | }, 59 | ], 60 | name: "Transfer", 61 | type: "event", 62 | }, 63 | { 64 | inputs: [ 65 | { 66 | internalType: "address", 67 | name: "owner", 68 | type: "address", 69 | }, 70 | { 71 | internalType: "address", 72 | name: "spender", 73 | type: "address", 74 | }, 75 | ], 76 | name: "allowance", 77 | outputs: [ 78 | { 79 | internalType: "uint256", 80 | name: "", 81 | type: "uint256", 82 | }, 83 | ], 84 | stateMutability: "view", 85 | type: "function", 86 | }, 87 | { 88 | inputs: [ 89 | { 90 | internalType: "address", 91 | name: "spender", 92 | type: "address", 93 | }, 94 | { 95 | internalType: "uint256", 96 | name: "amount", 97 | type: "uint256", 98 | }, 99 | ], 100 | name: "approve", 101 | outputs: [ 102 | { 103 | internalType: "bool", 104 | name: "", 105 | type: "bool", 106 | }, 107 | ], 108 | stateMutability: "nonpayable", 109 | type: "function", 110 | }, 111 | { 112 | inputs: [ 113 | { 114 | internalType: "address", 115 | name: "account", 116 | type: "address", 117 | }, 118 | ], 119 | name: "balanceOf", 120 | outputs: [ 121 | { 122 | internalType: "uint256", 123 | name: "", 124 | type: "uint256", 125 | }, 126 | ], 127 | stateMutability: "view", 128 | type: "function", 129 | }, 130 | { 131 | inputs: [ 132 | { 133 | internalType: "uint256", 134 | name: "amount", 135 | type: "uint256", 136 | }, 137 | ], 138 | name: "burn", 139 | outputs: [], 140 | stateMutability: "nonpayable", 141 | type: "function", 142 | }, 143 | { 144 | inputs: [ 145 | { 146 | internalType: "address", 147 | name: "account", 148 | type: "address", 149 | }, 150 | { 151 | internalType: "uint256", 152 | name: "amount", 153 | type: "uint256", 154 | }, 155 | ], 156 | name: "burnFrom", 157 | outputs: [], 158 | stateMutability: "nonpayable", 159 | type: "function", 160 | }, 161 | { 162 | inputs: [], 163 | name: "decimals", 164 | outputs: [ 165 | { 166 | internalType: "uint8", 167 | name: "", 168 | type: "uint8", 169 | }, 170 | ], 171 | stateMutability: "view", 172 | type: "function", 173 | }, 174 | { 175 | inputs: [ 176 | { 177 | internalType: "address", 178 | name: "spender", 179 | type: "address", 180 | }, 181 | { 182 | internalType: "uint256", 183 | name: "subtractedValue", 184 | type: "uint256", 185 | }, 186 | ], 187 | name: "decreaseAllowance", 188 | outputs: [ 189 | { 190 | internalType: "bool", 191 | name: "", 192 | type: "bool", 193 | }, 194 | ], 195 | stateMutability: "nonpayable", 196 | type: "function", 197 | }, 198 | { 199 | inputs: [ 200 | { 201 | internalType: "address", 202 | name: "spender", 203 | type: "address", 204 | }, 205 | { 206 | internalType: "uint256", 207 | name: "addedValue", 208 | type: "uint256", 209 | }, 210 | ], 211 | name: "increaseAllowance", 212 | outputs: [ 213 | { 214 | internalType: "bool", 215 | name: "", 216 | type: "bool", 217 | }, 218 | ], 219 | stateMutability: "nonpayable", 220 | type: "function", 221 | }, 222 | { 223 | inputs: [], 224 | name: "name", 225 | outputs: [ 226 | { 227 | internalType: "string", 228 | name: "", 229 | type: "string", 230 | }, 231 | ], 232 | stateMutability: "view", 233 | type: "function", 234 | }, 235 | { 236 | inputs: [], 237 | name: "symbol", 238 | outputs: [ 239 | { 240 | internalType: "string", 241 | name: "", 242 | type: "string", 243 | }, 244 | ], 245 | stateMutability: "view", 246 | type: "function", 247 | }, 248 | { 249 | inputs: [], 250 | name: "totalSupply", 251 | outputs: [ 252 | { 253 | internalType: "uint256", 254 | name: "", 255 | type: "uint256", 256 | }, 257 | ], 258 | stateMutability: "view", 259 | type: "function", 260 | }, 261 | { 262 | inputs: [ 263 | { 264 | internalType: "address", 265 | name: "to", 266 | type: "address", 267 | }, 268 | { 269 | internalType: "uint256", 270 | name: "amount", 271 | type: "uint256", 272 | }, 273 | ], 274 | name: "transfer", 275 | outputs: [ 276 | { 277 | internalType: "bool", 278 | name: "", 279 | type: "bool", 280 | }, 281 | ], 282 | stateMutability: "nonpayable", 283 | type: "function", 284 | }, 285 | { 286 | inputs: [ 287 | { 288 | internalType: "address", 289 | name: "from", 290 | type: "address", 291 | }, 292 | { 293 | internalType: "address", 294 | name: "to", 295 | type: "address", 296 | }, 297 | { 298 | internalType: "uint256", 299 | name: "amount", 300 | type: "uint256", 301 | }, 302 | ], 303 | name: "transferFrom", 304 | outputs: [ 305 | { 306 | internalType: "bool", 307 | name: "", 308 | type: "bool", 309 | }, 310 | ], 311 | stateMutability: "nonpayable", 312 | type: "function", 313 | }, 314 | ]; 315 | 316 | export class ERC20Burnable__factory { 317 | static readonly abi = _abi; 318 | static createInterface(): ERC20BurnableInterface { 319 | return new utils.Interface(_abi) as ERC20BurnableInterface; 320 | } 321 | static connect( 322 | address: string, 323 | signerOrProvider: Signer | Provider 324 | ): ERC20Burnable { 325 | return new Contract(address, _abi, signerOrProvider) as ERC20Burnable; 326 | } 327 | } 328 | -------------------------------------------------------------------------------- /typechain-types/factories/openzeppelin-solidity/contracts/token/ERC20/extensions/IERC20Metadata__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import type { Provider } from "@ethersproject/providers"; 7 | import type { 8 | IERC20Metadata, 9 | IERC20MetadataInterface, 10 | } from "../../../../../../openzeppelin-solidity/contracts/token/ERC20/extensions/IERC20Metadata"; 11 | 12 | const _abi = [ 13 | { 14 | anonymous: false, 15 | inputs: [ 16 | { 17 | indexed: true, 18 | internalType: "address", 19 | name: "owner", 20 | type: "address", 21 | }, 22 | { 23 | indexed: true, 24 | internalType: "address", 25 | name: "spender", 26 | type: "address", 27 | }, 28 | { 29 | indexed: false, 30 | internalType: "uint256", 31 | name: "value", 32 | type: "uint256", 33 | }, 34 | ], 35 | name: "Approval", 36 | type: "event", 37 | }, 38 | { 39 | anonymous: false, 40 | inputs: [ 41 | { 42 | indexed: true, 43 | internalType: "address", 44 | name: "from", 45 | type: "address", 46 | }, 47 | { 48 | indexed: true, 49 | internalType: "address", 50 | name: "to", 51 | type: "address", 52 | }, 53 | { 54 | indexed: false, 55 | internalType: "uint256", 56 | name: "value", 57 | type: "uint256", 58 | }, 59 | ], 60 | name: "Transfer", 61 | type: "event", 62 | }, 63 | { 64 | inputs: [ 65 | { 66 | internalType: "address", 67 | name: "owner", 68 | type: "address", 69 | }, 70 | { 71 | internalType: "address", 72 | name: "spender", 73 | type: "address", 74 | }, 75 | ], 76 | name: "allowance", 77 | outputs: [ 78 | { 79 | internalType: "uint256", 80 | name: "", 81 | type: "uint256", 82 | }, 83 | ], 84 | stateMutability: "view", 85 | type: "function", 86 | }, 87 | { 88 | inputs: [ 89 | { 90 | internalType: "address", 91 | name: "spender", 92 | type: "address", 93 | }, 94 | { 95 | internalType: "uint256", 96 | name: "amount", 97 | type: "uint256", 98 | }, 99 | ], 100 | name: "approve", 101 | outputs: [ 102 | { 103 | internalType: "bool", 104 | name: "", 105 | type: "bool", 106 | }, 107 | ], 108 | stateMutability: "nonpayable", 109 | type: "function", 110 | }, 111 | { 112 | inputs: [ 113 | { 114 | internalType: "address", 115 | name: "account", 116 | type: "address", 117 | }, 118 | ], 119 | name: "balanceOf", 120 | outputs: [ 121 | { 122 | internalType: "uint256", 123 | name: "", 124 | type: "uint256", 125 | }, 126 | ], 127 | stateMutability: "view", 128 | type: "function", 129 | }, 130 | { 131 | inputs: [], 132 | name: "decimals", 133 | outputs: [ 134 | { 135 | internalType: "uint8", 136 | name: "", 137 | type: "uint8", 138 | }, 139 | ], 140 | stateMutability: "view", 141 | type: "function", 142 | }, 143 | { 144 | inputs: [], 145 | name: "name", 146 | outputs: [ 147 | { 148 | internalType: "string", 149 | name: "", 150 | type: "string", 151 | }, 152 | ], 153 | stateMutability: "view", 154 | type: "function", 155 | }, 156 | { 157 | inputs: [], 158 | name: "symbol", 159 | outputs: [ 160 | { 161 | internalType: "string", 162 | name: "", 163 | type: "string", 164 | }, 165 | ], 166 | stateMutability: "view", 167 | type: "function", 168 | }, 169 | { 170 | inputs: [], 171 | name: "totalSupply", 172 | outputs: [ 173 | { 174 | internalType: "uint256", 175 | name: "", 176 | type: "uint256", 177 | }, 178 | ], 179 | stateMutability: "view", 180 | type: "function", 181 | }, 182 | { 183 | inputs: [ 184 | { 185 | internalType: "address", 186 | name: "to", 187 | type: "address", 188 | }, 189 | { 190 | internalType: "uint256", 191 | name: "amount", 192 | type: "uint256", 193 | }, 194 | ], 195 | name: "transfer", 196 | outputs: [ 197 | { 198 | internalType: "bool", 199 | name: "", 200 | type: "bool", 201 | }, 202 | ], 203 | stateMutability: "nonpayable", 204 | type: "function", 205 | }, 206 | { 207 | inputs: [ 208 | { 209 | internalType: "address", 210 | name: "from", 211 | type: "address", 212 | }, 213 | { 214 | internalType: "address", 215 | name: "to", 216 | type: "address", 217 | }, 218 | { 219 | internalType: "uint256", 220 | name: "amount", 221 | type: "uint256", 222 | }, 223 | ], 224 | name: "transferFrom", 225 | outputs: [ 226 | { 227 | internalType: "bool", 228 | name: "", 229 | type: "bool", 230 | }, 231 | ], 232 | stateMutability: "nonpayable", 233 | type: "function", 234 | }, 235 | ]; 236 | 237 | export class IERC20Metadata__factory { 238 | static readonly abi = _abi; 239 | static createInterface(): IERC20MetadataInterface { 240 | return new utils.Interface(_abi) as IERC20MetadataInterface; 241 | } 242 | static connect( 243 | address: string, 244 | signerOrProvider: Signer | Provider 245 | ): IERC20Metadata { 246 | return new Contract(address, _abi, signerOrProvider) as IERC20Metadata; 247 | } 248 | } 249 | -------------------------------------------------------------------------------- /typechain-types/factories/openzeppelin-solidity/contracts/token/ERC20/extensions/index.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | export { ERC20Burnable__factory } from "./ERC20Burnable__factory"; 5 | export { IERC20Metadata__factory } from "./IERC20Metadata__factory"; 6 | -------------------------------------------------------------------------------- /typechain-types/factories/openzeppelin-solidity/contracts/token/ERC20/index.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | export * as extensions from "./extensions"; 5 | export { ERC20__factory } from "./ERC20__factory"; 6 | export { IERC20__factory } from "./IERC20__factory"; 7 | -------------------------------------------------------------------------------- /typechain-types/factories/openzeppelin-solidity/contracts/token/ERC721/IERC721Receiver__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import type { Provider } from "@ethersproject/providers"; 7 | import type { 8 | IERC721Receiver, 9 | IERC721ReceiverInterface, 10 | } from "../../../../../openzeppelin-solidity/contracts/token/ERC721/IERC721Receiver"; 11 | 12 | const _abi = [ 13 | { 14 | inputs: [ 15 | { 16 | internalType: "address", 17 | name: "operator", 18 | type: "address", 19 | }, 20 | { 21 | internalType: "address", 22 | name: "from", 23 | type: "address", 24 | }, 25 | { 26 | internalType: "uint256", 27 | name: "tokenId", 28 | type: "uint256", 29 | }, 30 | { 31 | internalType: "bytes", 32 | name: "data", 33 | type: "bytes", 34 | }, 35 | ], 36 | name: "onERC721Received", 37 | outputs: [ 38 | { 39 | internalType: "bytes4", 40 | name: "", 41 | type: "bytes4", 42 | }, 43 | ], 44 | stateMutability: "nonpayable", 45 | type: "function", 46 | }, 47 | ]; 48 | 49 | export class IERC721Receiver__factory { 50 | static readonly abi = _abi; 51 | static createInterface(): IERC721ReceiverInterface { 52 | return new utils.Interface(_abi) as IERC721ReceiverInterface; 53 | } 54 | static connect( 55 | address: string, 56 | signerOrProvider: Signer | Provider 57 | ): IERC721Receiver { 58 | return new Contract(address, _abi, signerOrProvider) as IERC721Receiver; 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /typechain-types/factories/openzeppelin-solidity/contracts/token/ERC721/IERC721__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import type { Provider } from "@ethersproject/providers"; 7 | import type { 8 | IERC721, 9 | IERC721Interface, 10 | } from "../../../../../openzeppelin-solidity/contracts/token/ERC721/IERC721"; 11 | 12 | const _abi = [ 13 | { 14 | anonymous: false, 15 | inputs: [ 16 | { 17 | indexed: true, 18 | internalType: "address", 19 | name: "owner", 20 | type: "address", 21 | }, 22 | { 23 | indexed: true, 24 | internalType: "address", 25 | name: "approved", 26 | type: "address", 27 | }, 28 | { 29 | indexed: true, 30 | internalType: "uint256", 31 | name: "tokenId", 32 | type: "uint256", 33 | }, 34 | ], 35 | name: "Approval", 36 | type: "event", 37 | }, 38 | { 39 | anonymous: false, 40 | inputs: [ 41 | { 42 | indexed: true, 43 | internalType: "address", 44 | name: "owner", 45 | type: "address", 46 | }, 47 | { 48 | indexed: true, 49 | internalType: "address", 50 | name: "operator", 51 | type: "address", 52 | }, 53 | { 54 | indexed: false, 55 | internalType: "bool", 56 | name: "approved", 57 | type: "bool", 58 | }, 59 | ], 60 | name: "ApprovalForAll", 61 | type: "event", 62 | }, 63 | { 64 | anonymous: false, 65 | inputs: [ 66 | { 67 | indexed: true, 68 | internalType: "address", 69 | name: "from", 70 | type: "address", 71 | }, 72 | { 73 | indexed: true, 74 | internalType: "address", 75 | name: "to", 76 | type: "address", 77 | }, 78 | { 79 | indexed: true, 80 | internalType: "uint256", 81 | name: "tokenId", 82 | type: "uint256", 83 | }, 84 | ], 85 | name: "Transfer", 86 | type: "event", 87 | }, 88 | { 89 | inputs: [ 90 | { 91 | internalType: "address", 92 | name: "to", 93 | type: "address", 94 | }, 95 | { 96 | internalType: "uint256", 97 | name: "tokenId", 98 | type: "uint256", 99 | }, 100 | ], 101 | name: "approve", 102 | outputs: [], 103 | stateMutability: "nonpayable", 104 | type: "function", 105 | }, 106 | { 107 | inputs: [ 108 | { 109 | internalType: "address", 110 | name: "owner", 111 | type: "address", 112 | }, 113 | ], 114 | name: "balanceOf", 115 | outputs: [ 116 | { 117 | internalType: "uint256", 118 | name: "balance", 119 | type: "uint256", 120 | }, 121 | ], 122 | stateMutability: "view", 123 | type: "function", 124 | }, 125 | { 126 | inputs: [ 127 | { 128 | internalType: "uint256", 129 | name: "tokenId", 130 | type: "uint256", 131 | }, 132 | ], 133 | name: "getApproved", 134 | outputs: [ 135 | { 136 | internalType: "address", 137 | name: "operator", 138 | type: "address", 139 | }, 140 | ], 141 | stateMutability: "view", 142 | type: "function", 143 | }, 144 | { 145 | inputs: [ 146 | { 147 | internalType: "address", 148 | name: "owner", 149 | type: "address", 150 | }, 151 | { 152 | internalType: "address", 153 | name: "operator", 154 | type: "address", 155 | }, 156 | ], 157 | name: "isApprovedForAll", 158 | outputs: [ 159 | { 160 | internalType: "bool", 161 | name: "", 162 | type: "bool", 163 | }, 164 | ], 165 | stateMutability: "view", 166 | type: "function", 167 | }, 168 | { 169 | inputs: [ 170 | { 171 | internalType: "uint256", 172 | name: "tokenId", 173 | type: "uint256", 174 | }, 175 | ], 176 | name: "ownerOf", 177 | outputs: [ 178 | { 179 | internalType: "address", 180 | name: "owner", 181 | type: "address", 182 | }, 183 | ], 184 | stateMutability: "view", 185 | type: "function", 186 | }, 187 | { 188 | inputs: [ 189 | { 190 | internalType: "address", 191 | name: "from", 192 | type: "address", 193 | }, 194 | { 195 | internalType: "address", 196 | name: "to", 197 | type: "address", 198 | }, 199 | { 200 | internalType: "uint256", 201 | name: "tokenId", 202 | type: "uint256", 203 | }, 204 | ], 205 | name: "safeTransferFrom", 206 | outputs: [], 207 | stateMutability: "nonpayable", 208 | type: "function", 209 | }, 210 | { 211 | inputs: [ 212 | { 213 | internalType: "address", 214 | name: "from", 215 | type: "address", 216 | }, 217 | { 218 | internalType: "address", 219 | name: "to", 220 | type: "address", 221 | }, 222 | { 223 | internalType: "uint256", 224 | name: "tokenId", 225 | type: "uint256", 226 | }, 227 | { 228 | internalType: "bytes", 229 | name: "data", 230 | type: "bytes", 231 | }, 232 | ], 233 | name: "safeTransferFrom", 234 | outputs: [], 235 | stateMutability: "nonpayable", 236 | type: "function", 237 | }, 238 | { 239 | inputs: [ 240 | { 241 | internalType: "address", 242 | name: "operator", 243 | type: "address", 244 | }, 245 | { 246 | internalType: "bool", 247 | name: "_approved", 248 | type: "bool", 249 | }, 250 | ], 251 | name: "setApprovalForAll", 252 | outputs: [], 253 | stateMutability: "nonpayable", 254 | type: "function", 255 | }, 256 | { 257 | inputs: [ 258 | { 259 | internalType: "bytes4", 260 | name: "interfaceId", 261 | type: "bytes4", 262 | }, 263 | ], 264 | name: "supportsInterface", 265 | outputs: [ 266 | { 267 | internalType: "bool", 268 | name: "", 269 | type: "bool", 270 | }, 271 | ], 272 | stateMutability: "view", 273 | type: "function", 274 | }, 275 | { 276 | inputs: [ 277 | { 278 | internalType: "address", 279 | name: "from", 280 | type: "address", 281 | }, 282 | { 283 | internalType: "address", 284 | name: "to", 285 | type: "address", 286 | }, 287 | { 288 | internalType: "uint256", 289 | name: "tokenId", 290 | type: "uint256", 291 | }, 292 | ], 293 | name: "transferFrom", 294 | outputs: [], 295 | stateMutability: "nonpayable", 296 | type: "function", 297 | }, 298 | ]; 299 | 300 | export class IERC721__factory { 301 | static readonly abi = _abi; 302 | static createInterface(): IERC721Interface { 303 | return new utils.Interface(_abi) as IERC721Interface; 304 | } 305 | static connect( 306 | address: string, 307 | signerOrProvider: Signer | Provider 308 | ): IERC721 { 309 | return new Contract(address, _abi, signerOrProvider) as IERC721; 310 | } 311 | } 312 | -------------------------------------------------------------------------------- /typechain-types/factories/openzeppelin-solidity/contracts/token/ERC721/extensions/ERC721Enumerable__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import type { Provider } from "@ethersproject/providers"; 7 | import type { 8 | ERC721Enumerable, 9 | ERC721EnumerableInterface, 10 | } from "../../../../../../openzeppelin-solidity/contracts/token/ERC721/extensions/ERC721Enumerable"; 11 | 12 | const _abi = [ 13 | { 14 | anonymous: false, 15 | inputs: [ 16 | { 17 | indexed: true, 18 | internalType: "address", 19 | name: "owner", 20 | type: "address", 21 | }, 22 | { 23 | indexed: true, 24 | internalType: "address", 25 | name: "approved", 26 | type: "address", 27 | }, 28 | { 29 | indexed: true, 30 | internalType: "uint256", 31 | name: "tokenId", 32 | type: "uint256", 33 | }, 34 | ], 35 | name: "Approval", 36 | type: "event", 37 | }, 38 | { 39 | anonymous: false, 40 | inputs: [ 41 | { 42 | indexed: true, 43 | internalType: "address", 44 | name: "owner", 45 | type: "address", 46 | }, 47 | { 48 | indexed: true, 49 | internalType: "address", 50 | name: "operator", 51 | type: "address", 52 | }, 53 | { 54 | indexed: false, 55 | internalType: "bool", 56 | name: "approved", 57 | type: "bool", 58 | }, 59 | ], 60 | name: "ApprovalForAll", 61 | type: "event", 62 | }, 63 | { 64 | anonymous: false, 65 | inputs: [ 66 | { 67 | indexed: true, 68 | internalType: "address", 69 | name: "from", 70 | type: "address", 71 | }, 72 | { 73 | indexed: true, 74 | internalType: "address", 75 | name: "to", 76 | type: "address", 77 | }, 78 | { 79 | indexed: true, 80 | internalType: "uint256", 81 | name: "tokenId", 82 | type: "uint256", 83 | }, 84 | ], 85 | name: "Transfer", 86 | type: "event", 87 | }, 88 | { 89 | inputs: [ 90 | { 91 | internalType: "address", 92 | name: "to", 93 | type: "address", 94 | }, 95 | { 96 | internalType: "uint256", 97 | name: "tokenId", 98 | type: "uint256", 99 | }, 100 | ], 101 | name: "approve", 102 | outputs: [], 103 | stateMutability: "nonpayable", 104 | type: "function", 105 | }, 106 | { 107 | inputs: [ 108 | { 109 | internalType: "address", 110 | name: "owner", 111 | type: "address", 112 | }, 113 | ], 114 | name: "balanceOf", 115 | outputs: [ 116 | { 117 | internalType: "uint256", 118 | name: "", 119 | type: "uint256", 120 | }, 121 | ], 122 | stateMutability: "view", 123 | type: "function", 124 | }, 125 | { 126 | inputs: [ 127 | { 128 | internalType: "uint256", 129 | name: "tokenId", 130 | type: "uint256", 131 | }, 132 | ], 133 | name: "getApproved", 134 | outputs: [ 135 | { 136 | internalType: "address", 137 | name: "", 138 | type: "address", 139 | }, 140 | ], 141 | stateMutability: "view", 142 | type: "function", 143 | }, 144 | { 145 | inputs: [ 146 | { 147 | internalType: "address", 148 | name: "owner", 149 | type: "address", 150 | }, 151 | { 152 | internalType: "address", 153 | name: "operator", 154 | type: "address", 155 | }, 156 | ], 157 | name: "isApprovedForAll", 158 | outputs: [ 159 | { 160 | internalType: "bool", 161 | name: "", 162 | type: "bool", 163 | }, 164 | ], 165 | stateMutability: "view", 166 | type: "function", 167 | }, 168 | { 169 | inputs: [], 170 | name: "name", 171 | outputs: [ 172 | { 173 | internalType: "string", 174 | name: "", 175 | type: "string", 176 | }, 177 | ], 178 | stateMutability: "view", 179 | type: "function", 180 | }, 181 | { 182 | inputs: [ 183 | { 184 | internalType: "uint256", 185 | name: "tokenId", 186 | type: "uint256", 187 | }, 188 | ], 189 | name: "ownerOf", 190 | outputs: [ 191 | { 192 | internalType: "address", 193 | name: "", 194 | type: "address", 195 | }, 196 | ], 197 | stateMutability: "view", 198 | type: "function", 199 | }, 200 | { 201 | inputs: [ 202 | { 203 | internalType: "address", 204 | name: "from", 205 | type: "address", 206 | }, 207 | { 208 | internalType: "address", 209 | name: "to", 210 | type: "address", 211 | }, 212 | { 213 | internalType: "uint256", 214 | name: "tokenId", 215 | type: "uint256", 216 | }, 217 | ], 218 | name: "safeTransferFrom", 219 | outputs: [], 220 | stateMutability: "nonpayable", 221 | type: "function", 222 | }, 223 | { 224 | inputs: [ 225 | { 226 | internalType: "address", 227 | name: "from", 228 | type: "address", 229 | }, 230 | { 231 | internalType: "address", 232 | name: "to", 233 | type: "address", 234 | }, 235 | { 236 | internalType: "uint256", 237 | name: "tokenId", 238 | type: "uint256", 239 | }, 240 | { 241 | internalType: "bytes", 242 | name: "_data", 243 | type: "bytes", 244 | }, 245 | ], 246 | name: "safeTransferFrom", 247 | outputs: [], 248 | stateMutability: "nonpayable", 249 | type: "function", 250 | }, 251 | { 252 | inputs: [ 253 | { 254 | internalType: "address", 255 | name: "operator", 256 | type: "address", 257 | }, 258 | { 259 | internalType: "bool", 260 | name: "approved", 261 | type: "bool", 262 | }, 263 | ], 264 | name: "setApprovalForAll", 265 | outputs: [], 266 | stateMutability: "nonpayable", 267 | type: "function", 268 | }, 269 | { 270 | inputs: [ 271 | { 272 | internalType: "bytes4", 273 | name: "interfaceId", 274 | type: "bytes4", 275 | }, 276 | ], 277 | name: "supportsInterface", 278 | outputs: [ 279 | { 280 | internalType: "bool", 281 | name: "", 282 | type: "bool", 283 | }, 284 | ], 285 | stateMutability: "view", 286 | type: "function", 287 | }, 288 | { 289 | inputs: [], 290 | name: "symbol", 291 | outputs: [ 292 | { 293 | internalType: "string", 294 | name: "", 295 | type: "string", 296 | }, 297 | ], 298 | stateMutability: "view", 299 | type: "function", 300 | }, 301 | { 302 | inputs: [ 303 | { 304 | internalType: "uint256", 305 | name: "index", 306 | type: "uint256", 307 | }, 308 | ], 309 | name: "tokenByIndex", 310 | outputs: [ 311 | { 312 | internalType: "uint256", 313 | name: "", 314 | type: "uint256", 315 | }, 316 | ], 317 | stateMutability: "view", 318 | type: "function", 319 | }, 320 | { 321 | inputs: [ 322 | { 323 | internalType: "address", 324 | name: "owner", 325 | type: "address", 326 | }, 327 | { 328 | internalType: "uint256", 329 | name: "index", 330 | type: "uint256", 331 | }, 332 | ], 333 | name: "tokenOfOwnerByIndex", 334 | outputs: [ 335 | { 336 | internalType: "uint256", 337 | name: "", 338 | type: "uint256", 339 | }, 340 | ], 341 | stateMutability: "view", 342 | type: "function", 343 | }, 344 | { 345 | inputs: [ 346 | { 347 | internalType: "uint256", 348 | name: "tokenId", 349 | type: "uint256", 350 | }, 351 | ], 352 | name: "tokenURI", 353 | outputs: [ 354 | { 355 | internalType: "string", 356 | name: "", 357 | type: "string", 358 | }, 359 | ], 360 | stateMutability: "view", 361 | type: "function", 362 | }, 363 | { 364 | inputs: [], 365 | name: "totalSupply", 366 | outputs: [ 367 | { 368 | internalType: "uint256", 369 | name: "", 370 | type: "uint256", 371 | }, 372 | ], 373 | stateMutability: "view", 374 | type: "function", 375 | }, 376 | { 377 | inputs: [ 378 | { 379 | internalType: "address", 380 | name: "from", 381 | type: "address", 382 | }, 383 | { 384 | internalType: "address", 385 | name: "to", 386 | type: "address", 387 | }, 388 | { 389 | internalType: "uint256", 390 | name: "tokenId", 391 | type: "uint256", 392 | }, 393 | ], 394 | name: "transferFrom", 395 | outputs: [], 396 | stateMutability: "nonpayable", 397 | type: "function", 398 | }, 399 | ]; 400 | 401 | export class ERC721Enumerable__factory { 402 | static readonly abi = _abi; 403 | static createInterface(): ERC721EnumerableInterface { 404 | return new utils.Interface(_abi) as ERC721EnumerableInterface; 405 | } 406 | static connect( 407 | address: string, 408 | signerOrProvider: Signer | Provider 409 | ): ERC721Enumerable { 410 | return new Contract(address, _abi, signerOrProvider) as ERC721Enumerable; 411 | } 412 | } 413 | -------------------------------------------------------------------------------- /typechain-types/factories/openzeppelin-solidity/contracts/token/ERC721/extensions/IERC721Enumerable__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import type { Provider } from "@ethersproject/providers"; 7 | import type { 8 | IERC721Enumerable, 9 | IERC721EnumerableInterface, 10 | } from "../../../../../../openzeppelin-solidity/contracts/token/ERC721/extensions/IERC721Enumerable"; 11 | 12 | const _abi = [ 13 | { 14 | anonymous: false, 15 | inputs: [ 16 | { 17 | indexed: true, 18 | internalType: "address", 19 | name: "owner", 20 | type: "address", 21 | }, 22 | { 23 | indexed: true, 24 | internalType: "address", 25 | name: "approved", 26 | type: "address", 27 | }, 28 | { 29 | indexed: true, 30 | internalType: "uint256", 31 | name: "tokenId", 32 | type: "uint256", 33 | }, 34 | ], 35 | name: "Approval", 36 | type: "event", 37 | }, 38 | { 39 | anonymous: false, 40 | inputs: [ 41 | { 42 | indexed: true, 43 | internalType: "address", 44 | name: "owner", 45 | type: "address", 46 | }, 47 | { 48 | indexed: true, 49 | internalType: "address", 50 | name: "operator", 51 | type: "address", 52 | }, 53 | { 54 | indexed: false, 55 | internalType: "bool", 56 | name: "approved", 57 | type: "bool", 58 | }, 59 | ], 60 | name: "ApprovalForAll", 61 | type: "event", 62 | }, 63 | { 64 | anonymous: false, 65 | inputs: [ 66 | { 67 | indexed: true, 68 | internalType: "address", 69 | name: "from", 70 | type: "address", 71 | }, 72 | { 73 | indexed: true, 74 | internalType: "address", 75 | name: "to", 76 | type: "address", 77 | }, 78 | { 79 | indexed: true, 80 | internalType: "uint256", 81 | name: "tokenId", 82 | type: "uint256", 83 | }, 84 | ], 85 | name: "Transfer", 86 | type: "event", 87 | }, 88 | { 89 | inputs: [ 90 | { 91 | internalType: "address", 92 | name: "to", 93 | type: "address", 94 | }, 95 | { 96 | internalType: "uint256", 97 | name: "tokenId", 98 | type: "uint256", 99 | }, 100 | ], 101 | name: "approve", 102 | outputs: [], 103 | stateMutability: "nonpayable", 104 | type: "function", 105 | }, 106 | { 107 | inputs: [ 108 | { 109 | internalType: "address", 110 | name: "owner", 111 | type: "address", 112 | }, 113 | ], 114 | name: "balanceOf", 115 | outputs: [ 116 | { 117 | internalType: "uint256", 118 | name: "balance", 119 | type: "uint256", 120 | }, 121 | ], 122 | stateMutability: "view", 123 | type: "function", 124 | }, 125 | { 126 | inputs: [ 127 | { 128 | internalType: "uint256", 129 | name: "tokenId", 130 | type: "uint256", 131 | }, 132 | ], 133 | name: "getApproved", 134 | outputs: [ 135 | { 136 | internalType: "address", 137 | name: "operator", 138 | type: "address", 139 | }, 140 | ], 141 | stateMutability: "view", 142 | type: "function", 143 | }, 144 | { 145 | inputs: [ 146 | { 147 | internalType: "address", 148 | name: "owner", 149 | type: "address", 150 | }, 151 | { 152 | internalType: "address", 153 | name: "operator", 154 | type: "address", 155 | }, 156 | ], 157 | name: "isApprovedForAll", 158 | outputs: [ 159 | { 160 | internalType: "bool", 161 | name: "", 162 | type: "bool", 163 | }, 164 | ], 165 | stateMutability: "view", 166 | type: "function", 167 | }, 168 | { 169 | inputs: [ 170 | { 171 | internalType: "uint256", 172 | name: "tokenId", 173 | type: "uint256", 174 | }, 175 | ], 176 | name: "ownerOf", 177 | outputs: [ 178 | { 179 | internalType: "address", 180 | name: "owner", 181 | type: "address", 182 | }, 183 | ], 184 | stateMutability: "view", 185 | type: "function", 186 | }, 187 | { 188 | inputs: [ 189 | { 190 | internalType: "address", 191 | name: "from", 192 | type: "address", 193 | }, 194 | { 195 | internalType: "address", 196 | name: "to", 197 | type: "address", 198 | }, 199 | { 200 | internalType: "uint256", 201 | name: "tokenId", 202 | type: "uint256", 203 | }, 204 | ], 205 | name: "safeTransferFrom", 206 | outputs: [], 207 | stateMutability: "nonpayable", 208 | type: "function", 209 | }, 210 | { 211 | inputs: [ 212 | { 213 | internalType: "address", 214 | name: "from", 215 | type: "address", 216 | }, 217 | { 218 | internalType: "address", 219 | name: "to", 220 | type: "address", 221 | }, 222 | { 223 | internalType: "uint256", 224 | name: "tokenId", 225 | type: "uint256", 226 | }, 227 | { 228 | internalType: "bytes", 229 | name: "data", 230 | type: "bytes", 231 | }, 232 | ], 233 | name: "safeTransferFrom", 234 | outputs: [], 235 | stateMutability: "nonpayable", 236 | type: "function", 237 | }, 238 | { 239 | inputs: [ 240 | { 241 | internalType: "address", 242 | name: "operator", 243 | type: "address", 244 | }, 245 | { 246 | internalType: "bool", 247 | name: "_approved", 248 | type: "bool", 249 | }, 250 | ], 251 | name: "setApprovalForAll", 252 | outputs: [], 253 | stateMutability: "nonpayable", 254 | type: "function", 255 | }, 256 | { 257 | inputs: [ 258 | { 259 | internalType: "bytes4", 260 | name: "interfaceId", 261 | type: "bytes4", 262 | }, 263 | ], 264 | name: "supportsInterface", 265 | outputs: [ 266 | { 267 | internalType: "bool", 268 | name: "", 269 | type: "bool", 270 | }, 271 | ], 272 | stateMutability: "view", 273 | type: "function", 274 | }, 275 | { 276 | inputs: [ 277 | { 278 | internalType: "uint256", 279 | name: "index", 280 | type: "uint256", 281 | }, 282 | ], 283 | name: "tokenByIndex", 284 | outputs: [ 285 | { 286 | internalType: "uint256", 287 | name: "", 288 | type: "uint256", 289 | }, 290 | ], 291 | stateMutability: "view", 292 | type: "function", 293 | }, 294 | { 295 | inputs: [ 296 | { 297 | internalType: "address", 298 | name: "owner", 299 | type: "address", 300 | }, 301 | { 302 | internalType: "uint256", 303 | name: "index", 304 | type: "uint256", 305 | }, 306 | ], 307 | name: "tokenOfOwnerByIndex", 308 | outputs: [ 309 | { 310 | internalType: "uint256", 311 | name: "", 312 | type: "uint256", 313 | }, 314 | ], 315 | stateMutability: "view", 316 | type: "function", 317 | }, 318 | { 319 | inputs: [], 320 | name: "totalSupply", 321 | outputs: [ 322 | { 323 | internalType: "uint256", 324 | name: "", 325 | type: "uint256", 326 | }, 327 | ], 328 | stateMutability: "view", 329 | type: "function", 330 | }, 331 | { 332 | inputs: [ 333 | { 334 | internalType: "address", 335 | name: "from", 336 | type: "address", 337 | }, 338 | { 339 | internalType: "address", 340 | name: "to", 341 | type: "address", 342 | }, 343 | { 344 | internalType: "uint256", 345 | name: "tokenId", 346 | type: "uint256", 347 | }, 348 | ], 349 | name: "transferFrom", 350 | outputs: [], 351 | stateMutability: "nonpayable", 352 | type: "function", 353 | }, 354 | ]; 355 | 356 | export class IERC721Enumerable__factory { 357 | static readonly abi = _abi; 358 | static createInterface(): IERC721EnumerableInterface { 359 | return new utils.Interface(_abi) as IERC721EnumerableInterface; 360 | } 361 | static connect( 362 | address: string, 363 | signerOrProvider: Signer | Provider 364 | ): IERC721Enumerable { 365 | return new Contract(address, _abi, signerOrProvider) as IERC721Enumerable; 366 | } 367 | } 368 | -------------------------------------------------------------------------------- /typechain-types/factories/openzeppelin-solidity/contracts/token/ERC721/extensions/IERC721Metadata__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import type { Provider } from "@ethersproject/providers"; 7 | import type { 8 | IERC721Metadata, 9 | IERC721MetadataInterface, 10 | } from "../../../../../../openzeppelin-solidity/contracts/token/ERC721/extensions/IERC721Metadata"; 11 | 12 | const _abi = [ 13 | { 14 | anonymous: false, 15 | inputs: [ 16 | { 17 | indexed: true, 18 | internalType: "address", 19 | name: "owner", 20 | type: "address", 21 | }, 22 | { 23 | indexed: true, 24 | internalType: "address", 25 | name: "approved", 26 | type: "address", 27 | }, 28 | { 29 | indexed: true, 30 | internalType: "uint256", 31 | name: "tokenId", 32 | type: "uint256", 33 | }, 34 | ], 35 | name: "Approval", 36 | type: "event", 37 | }, 38 | { 39 | anonymous: false, 40 | inputs: [ 41 | { 42 | indexed: true, 43 | internalType: "address", 44 | name: "owner", 45 | type: "address", 46 | }, 47 | { 48 | indexed: true, 49 | internalType: "address", 50 | name: "operator", 51 | type: "address", 52 | }, 53 | { 54 | indexed: false, 55 | internalType: "bool", 56 | name: "approved", 57 | type: "bool", 58 | }, 59 | ], 60 | name: "ApprovalForAll", 61 | type: "event", 62 | }, 63 | { 64 | anonymous: false, 65 | inputs: [ 66 | { 67 | indexed: true, 68 | internalType: "address", 69 | name: "from", 70 | type: "address", 71 | }, 72 | { 73 | indexed: true, 74 | internalType: "address", 75 | name: "to", 76 | type: "address", 77 | }, 78 | { 79 | indexed: true, 80 | internalType: "uint256", 81 | name: "tokenId", 82 | type: "uint256", 83 | }, 84 | ], 85 | name: "Transfer", 86 | type: "event", 87 | }, 88 | { 89 | inputs: [ 90 | { 91 | internalType: "address", 92 | name: "to", 93 | type: "address", 94 | }, 95 | { 96 | internalType: "uint256", 97 | name: "tokenId", 98 | type: "uint256", 99 | }, 100 | ], 101 | name: "approve", 102 | outputs: [], 103 | stateMutability: "nonpayable", 104 | type: "function", 105 | }, 106 | { 107 | inputs: [ 108 | { 109 | internalType: "address", 110 | name: "owner", 111 | type: "address", 112 | }, 113 | ], 114 | name: "balanceOf", 115 | outputs: [ 116 | { 117 | internalType: "uint256", 118 | name: "balance", 119 | type: "uint256", 120 | }, 121 | ], 122 | stateMutability: "view", 123 | type: "function", 124 | }, 125 | { 126 | inputs: [ 127 | { 128 | internalType: "uint256", 129 | name: "tokenId", 130 | type: "uint256", 131 | }, 132 | ], 133 | name: "getApproved", 134 | outputs: [ 135 | { 136 | internalType: "address", 137 | name: "operator", 138 | type: "address", 139 | }, 140 | ], 141 | stateMutability: "view", 142 | type: "function", 143 | }, 144 | { 145 | inputs: [ 146 | { 147 | internalType: "address", 148 | name: "owner", 149 | type: "address", 150 | }, 151 | { 152 | internalType: "address", 153 | name: "operator", 154 | type: "address", 155 | }, 156 | ], 157 | name: "isApprovedForAll", 158 | outputs: [ 159 | { 160 | internalType: "bool", 161 | name: "", 162 | type: "bool", 163 | }, 164 | ], 165 | stateMutability: "view", 166 | type: "function", 167 | }, 168 | { 169 | inputs: [], 170 | name: "name", 171 | outputs: [ 172 | { 173 | internalType: "string", 174 | name: "", 175 | type: "string", 176 | }, 177 | ], 178 | stateMutability: "view", 179 | type: "function", 180 | }, 181 | { 182 | inputs: [ 183 | { 184 | internalType: "uint256", 185 | name: "tokenId", 186 | type: "uint256", 187 | }, 188 | ], 189 | name: "ownerOf", 190 | outputs: [ 191 | { 192 | internalType: "address", 193 | name: "owner", 194 | type: "address", 195 | }, 196 | ], 197 | stateMutability: "view", 198 | type: "function", 199 | }, 200 | { 201 | inputs: [ 202 | { 203 | internalType: "address", 204 | name: "from", 205 | type: "address", 206 | }, 207 | { 208 | internalType: "address", 209 | name: "to", 210 | type: "address", 211 | }, 212 | { 213 | internalType: "uint256", 214 | name: "tokenId", 215 | type: "uint256", 216 | }, 217 | ], 218 | name: "safeTransferFrom", 219 | outputs: [], 220 | stateMutability: "nonpayable", 221 | type: "function", 222 | }, 223 | { 224 | inputs: [ 225 | { 226 | internalType: "address", 227 | name: "from", 228 | type: "address", 229 | }, 230 | { 231 | internalType: "address", 232 | name: "to", 233 | type: "address", 234 | }, 235 | { 236 | internalType: "uint256", 237 | name: "tokenId", 238 | type: "uint256", 239 | }, 240 | { 241 | internalType: "bytes", 242 | name: "data", 243 | type: "bytes", 244 | }, 245 | ], 246 | name: "safeTransferFrom", 247 | outputs: [], 248 | stateMutability: "nonpayable", 249 | type: "function", 250 | }, 251 | { 252 | inputs: [ 253 | { 254 | internalType: "address", 255 | name: "operator", 256 | type: "address", 257 | }, 258 | { 259 | internalType: "bool", 260 | name: "_approved", 261 | type: "bool", 262 | }, 263 | ], 264 | name: "setApprovalForAll", 265 | outputs: [], 266 | stateMutability: "nonpayable", 267 | type: "function", 268 | }, 269 | { 270 | inputs: [ 271 | { 272 | internalType: "bytes4", 273 | name: "interfaceId", 274 | type: "bytes4", 275 | }, 276 | ], 277 | name: "supportsInterface", 278 | outputs: [ 279 | { 280 | internalType: "bool", 281 | name: "", 282 | type: "bool", 283 | }, 284 | ], 285 | stateMutability: "view", 286 | type: "function", 287 | }, 288 | { 289 | inputs: [], 290 | name: "symbol", 291 | outputs: [ 292 | { 293 | internalType: "string", 294 | name: "", 295 | type: "string", 296 | }, 297 | ], 298 | stateMutability: "view", 299 | type: "function", 300 | }, 301 | { 302 | inputs: [ 303 | { 304 | internalType: "uint256", 305 | name: "tokenId", 306 | type: "uint256", 307 | }, 308 | ], 309 | name: "tokenURI", 310 | outputs: [ 311 | { 312 | internalType: "string", 313 | name: "", 314 | type: "string", 315 | }, 316 | ], 317 | stateMutability: "view", 318 | type: "function", 319 | }, 320 | { 321 | inputs: [ 322 | { 323 | internalType: "address", 324 | name: "from", 325 | type: "address", 326 | }, 327 | { 328 | internalType: "address", 329 | name: "to", 330 | type: "address", 331 | }, 332 | { 333 | internalType: "uint256", 334 | name: "tokenId", 335 | type: "uint256", 336 | }, 337 | ], 338 | name: "transferFrom", 339 | outputs: [], 340 | stateMutability: "nonpayable", 341 | type: "function", 342 | }, 343 | ]; 344 | 345 | export class IERC721Metadata__factory { 346 | static readonly abi = _abi; 347 | static createInterface(): IERC721MetadataInterface { 348 | return new utils.Interface(_abi) as IERC721MetadataInterface; 349 | } 350 | static connect( 351 | address: string, 352 | signerOrProvider: Signer | Provider 353 | ): IERC721Metadata { 354 | return new Contract(address, _abi, signerOrProvider) as IERC721Metadata; 355 | } 356 | } 357 | -------------------------------------------------------------------------------- /typechain-types/factories/openzeppelin-solidity/contracts/token/ERC721/extensions/index.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | export { ERC721Enumerable__factory } from "./ERC721Enumerable__factory"; 5 | export { IERC721Enumerable__factory } from "./IERC721Enumerable__factory"; 6 | export { IERC721Metadata__factory } from "./IERC721Metadata__factory"; 7 | -------------------------------------------------------------------------------- /typechain-types/factories/openzeppelin-solidity/contracts/token/ERC721/index.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | export * as extensions from "./extensions"; 5 | export { ERC721__factory } from "./ERC721__factory"; 6 | export { IERC721__factory } from "./IERC721__factory"; 7 | export { IERC721Receiver__factory } from "./IERC721Receiver__factory"; 8 | -------------------------------------------------------------------------------- /typechain-types/factories/openzeppelin-solidity/contracts/token/index.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | export * as erc20 from "./ERC20"; 5 | export * as erc721 from "./ERC721"; 6 | -------------------------------------------------------------------------------- /typechain-types/factories/openzeppelin-solidity/contracts/utils/index.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | export * as introspection from "./introspection"; 5 | -------------------------------------------------------------------------------- /typechain-types/factories/openzeppelin-solidity/contracts/utils/introspection/ERC165__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import type { Provider } from "@ethersproject/providers"; 7 | import type { 8 | ERC165, 9 | ERC165Interface, 10 | } from "../../../../../openzeppelin-solidity/contracts/utils/introspection/ERC165"; 11 | 12 | const _abi = [ 13 | { 14 | inputs: [ 15 | { 16 | internalType: "bytes4", 17 | name: "interfaceId", 18 | type: "bytes4", 19 | }, 20 | ], 21 | name: "supportsInterface", 22 | outputs: [ 23 | { 24 | internalType: "bool", 25 | name: "", 26 | type: "bool", 27 | }, 28 | ], 29 | stateMutability: "view", 30 | type: "function", 31 | }, 32 | ]; 33 | 34 | export class ERC165__factory { 35 | static readonly abi = _abi; 36 | static createInterface(): ERC165Interface { 37 | return new utils.Interface(_abi) as ERC165Interface; 38 | } 39 | static connect(address: string, signerOrProvider: Signer | Provider): ERC165 { 40 | return new Contract(address, _abi, signerOrProvider) as ERC165; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /typechain-types/factories/openzeppelin-solidity/contracts/utils/introspection/IERC165__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import type { Provider } from "@ethersproject/providers"; 7 | import type { 8 | IERC165, 9 | IERC165Interface, 10 | } from "../../../../../openzeppelin-solidity/contracts/utils/introspection/IERC165"; 11 | 12 | const _abi = [ 13 | { 14 | inputs: [ 15 | { 16 | internalType: "bytes4", 17 | name: "interfaceId", 18 | type: "bytes4", 19 | }, 20 | ], 21 | name: "supportsInterface", 22 | outputs: [ 23 | { 24 | internalType: "bool", 25 | name: "", 26 | type: "bool", 27 | }, 28 | ], 29 | stateMutability: "view", 30 | type: "function", 31 | }, 32 | ]; 33 | 34 | export class IERC165__factory { 35 | static readonly abi = _abi; 36 | static createInterface(): IERC165Interface { 37 | return new utils.Interface(_abi) as IERC165Interface; 38 | } 39 | static connect( 40 | address: string, 41 | signerOrProvider: Signer | Provider 42 | ): IERC165 { 43 | return new Contract(address, _abi, signerOrProvider) as IERC165; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /typechain-types/factories/openzeppelin-solidity/contracts/utils/introspection/index.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | export { ERC165__factory } from "./ERC165__factory"; 5 | export { IERC165__factory } from "./IERC165__factory"; 6 | -------------------------------------------------------------------------------- /typechain-types/factories/openzeppelin-solidity/index.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | export * as contracts from "./contracts"; 5 | -------------------------------------------------------------------------------- /typechain-types/hardhat.d.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { ethers } from "ethers"; 6 | import { 7 | FactoryOptions, 8 | HardhatEthersHelpers as HardhatEthersHelpersBase, 9 | } from "@nomiclabs/hardhat-ethers/types"; 10 | 11 | import * as Contracts from "."; 12 | 13 | declare module "hardhat/types/runtime" { 14 | interface HardhatEthersHelpers extends HardhatEthersHelpersBase { 15 | getContractFactory( 16 | name: "Auction", 17 | signerOrOptions?: ethers.Signer | FactoryOptions 18 | ): Promise; 19 | getContractFactory( 20 | name: "Floppy", 21 | signerOrOptions?: ethers.Signer | FactoryOptions 22 | ): Promise; 23 | getContractFactory( 24 | name: "FLPCrowdSale", 25 | signerOrOptions?: ethers.Signer | FactoryOptions 26 | ): Promise; 27 | getContractFactory( 28 | name: "Hero", 29 | signerOrOptions?: ethers.Signer | FactoryOptions 30 | ): Promise; 31 | getContractFactory( 32 | name: "IHero", 33 | signerOrOptions?: ethers.Signer | FactoryOptions 34 | ): Promise; 35 | getContractFactory( 36 | name: "HeroMarketplace", 37 | signerOrOptions?: ethers.Signer | FactoryOptions 38 | ): Promise; 39 | getContractFactory( 40 | name: "USDT", 41 | signerOrOptions?: ethers.Signer | FactoryOptions 42 | ): Promise; 43 | getContractFactory( 44 | name: "Vault", 45 | signerOrOptions?: ethers.Signer | FactoryOptions 46 | ): Promise; 47 | getContractFactory( 48 | name: "AccessControl", 49 | signerOrOptions?: ethers.Signer | FactoryOptions 50 | ): Promise; 51 | getContractFactory( 52 | name: "AccessControlEnumerable", 53 | signerOrOptions?: ethers.Signer | FactoryOptions 54 | ): Promise; 55 | getContractFactory( 56 | name: "IAccessControl", 57 | signerOrOptions?: ethers.Signer | FactoryOptions 58 | ): Promise; 59 | getContractFactory( 60 | name: "IAccessControlEnumerable", 61 | signerOrOptions?: ethers.Signer | FactoryOptions 62 | ): Promise; 63 | getContractFactory( 64 | name: "Ownable", 65 | signerOrOptions?: ethers.Signer | FactoryOptions 66 | ): Promise; 67 | getContractFactory( 68 | name: "ERC20", 69 | signerOrOptions?: ethers.Signer | FactoryOptions 70 | ): Promise; 71 | getContractFactory( 72 | name: "ERC20Burnable", 73 | signerOrOptions?: ethers.Signer | FactoryOptions 74 | ): Promise; 75 | getContractFactory( 76 | name: "IERC20Metadata", 77 | signerOrOptions?: ethers.Signer | FactoryOptions 78 | ): Promise; 79 | getContractFactory( 80 | name: "IERC20", 81 | signerOrOptions?: ethers.Signer | FactoryOptions 82 | ): Promise; 83 | getContractFactory( 84 | name: "ERC721", 85 | signerOrOptions?: ethers.Signer | FactoryOptions 86 | ): Promise; 87 | getContractFactory( 88 | name: "ERC721Enumerable", 89 | signerOrOptions?: ethers.Signer | FactoryOptions 90 | ): Promise; 91 | getContractFactory( 92 | name: "IERC721Enumerable", 93 | signerOrOptions?: ethers.Signer | FactoryOptions 94 | ): Promise; 95 | getContractFactory( 96 | name: "IERC721Metadata", 97 | signerOrOptions?: ethers.Signer | FactoryOptions 98 | ): Promise; 99 | getContractFactory( 100 | name: "IERC721", 101 | signerOrOptions?: ethers.Signer | FactoryOptions 102 | ): Promise; 103 | getContractFactory( 104 | name: "IERC721Receiver", 105 | signerOrOptions?: ethers.Signer | FactoryOptions 106 | ): Promise; 107 | getContractFactory( 108 | name: "ERC165", 109 | signerOrOptions?: ethers.Signer | FactoryOptions 110 | ): Promise; 111 | getContractFactory( 112 | name: "IERC165", 113 | signerOrOptions?: ethers.Signer | FactoryOptions 114 | ): Promise; 115 | 116 | getContractAt( 117 | name: "Auction", 118 | address: string, 119 | signer?: ethers.Signer 120 | ): Promise; 121 | getContractAt( 122 | name: "Floppy", 123 | address: string, 124 | signer?: ethers.Signer 125 | ): Promise; 126 | getContractAt( 127 | name: "FLPCrowdSale", 128 | address: string, 129 | signer?: ethers.Signer 130 | ): Promise; 131 | getContractAt( 132 | name: "Hero", 133 | address: string, 134 | signer?: ethers.Signer 135 | ): Promise; 136 | getContractAt( 137 | name: "IHero", 138 | address: string, 139 | signer?: ethers.Signer 140 | ): Promise; 141 | getContractAt( 142 | name: "HeroMarketplace", 143 | address: string, 144 | signer?: ethers.Signer 145 | ): Promise; 146 | getContractAt( 147 | name: "USDT", 148 | address: string, 149 | signer?: ethers.Signer 150 | ): Promise; 151 | getContractAt( 152 | name: "Vault", 153 | address: string, 154 | signer?: ethers.Signer 155 | ): Promise; 156 | getContractAt( 157 | name: "AccessControl", 158 | address: string, 159 | signer?: ethers.Signer 160 | ): Promise; 161 | getContractAt( 162 | name: "AccessControlEnumerable", 163 | address: string, 164 | signer?: ethers.Signer 165 | ): Promise; 166 | getContractAt( 167 | name: "IAccessControl", 168 | address: string, 169 | signer?: ethers.Signer 170 | ): Promise; 171 | getContractAt( 172 | name: "IAccessControlEnumerable", 173 | address: string, 174 | signer?: ethers.Signer 175 | ): Promise; 176 | getContractAt( 177 | name: "Ownable", 178 | address: string, 179 | signer?: ethers.Signer 180 | ): Promise; 181 | getContractAt( 182 | name: "ERC20", 183 | address: string, 184 | signer?: ethers.Signer 185 | ): Promise; 186 | getContractAt( 187 | name: "ERC20Burnable", 188 | address: string, 189 | signer?: ethers.Signer 190 | ): Promise; 191 | getContractAt( 192 | name: "IERC20Metadata", 193 | address: string, 194 | signer?: ethers.Signer 195 | ): Promise; 196 | getContractAt( 197 | name: "IERC20", 198 | address: string, 199 | signer?: ethers.Signer 200 | ): Promise; 201 | getContractAt( 202 | name: "ERC721", 203 | address: string, 204 | signer?: ethers.Signer 205 | ): Promise; 206 | getContractAt( 207 | name: "ERC721Enumerable", 208 | address: string, 209 | signer?: ethers.Signer 210 | ): Promise; 211 | getContractAt( 212 | name: "IERC721Enumerable", 213 | address: string, 214 | signer?: ethers.Signer 215 | ): Promise; 216 | getContractAt( 217 | name: "IERC721Metadata", 218 | address: string, 219 | signer?: ethers.Signer 220 | ): Promise; 221 | getContractAt( 222 | name: "IERC721", 223 | address: string, 224 | signer?: ethers.Signer 225 | ): Promise; 226 | getContractAt( 227 | name: "IERC721Receiver", 228 | address: string, 229 | signer?: ethers.Signer 230 | ): Promise; 231 | getContractAt( 232 | name: "ERC165", 233 | address: string, 234 | signer?: ethers.Signer 235 | ): Promise; 236 | getContractAt( 237 | name: "IERC165", 238 | address: string, 239 | signer?: ethers.Signer 240 | ): Promise; 241 | 242 | // default types 243 | getContractFactory( 244 | name: string, 245 | signerOrOptions?: ethers.Signer | FactoryOptions 246 | ): Promise; 247 | getContractFactory( 248 | abi: any[], 249 | bytecode: ethers.utils.BytesLike, 250 | signer?: ethers.Signer 251 | ): Promise; 252 | getContractAt( 253 | nameOrAbi: string | any[], 254 | address: string, 255 | signer?: ethers.Signer 256 | ): Promise; 257 | } 258 | } 259 | -------------------------------------------------------------------------------- /typechain-types/index.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | import type * as contracts from "./contracts"; 5 | export type { contracts }; 6 | import type * as openzeppelinSolidity from "./openzeppelin-solidity"; 7 | export type { openzeppelinSolidity }; 8 | export * as factories from "./factories"; 9 | export type { Auction } from "./contracts/Auction"; 10 | export { Auction__factory } from "./factories/contracts/Auction__factory"; 11 | export type { Floppy } from "./contracts/Floppy"; 12 | export { Floppy__factory } from "./factories/contracts/Floppy__factory"; 13 | export type { FLPCrowdSale } from "./contracts/FLPCrowndsale.sol/FLPCrowdSale"; 14 | export { FLPCrowdSale__factory } from "./factories/contracts/FLPCrowndsale.sol/FLPCrowdSale__factory"; 15 | export type { Hero } from "./contracts/Hero.sol/Hero"; 16 | export { Hero__factory } from "./factories/contracts/Hero.sol/Hero__factory"; 17 | export type { IHero } from "./contracts/Hero.sol/IHero"; 18 | export { IHero__factory } from "./factories/contracts/Hero.sol/IHero__factory"; 19 | export type { HeroMarketplace } from "./contracts/HeroMarketplace"; 20 | export { HeroMarketplace__factory } from "./factories/contracts/HeroMarketplace__factory"; 21 | export type { USDT } from "./contracts/USDT"; 22 | export { USDT__factory } from "./factories/contracts/USDT__factory"; 23 | export type { Vault } from "./contracts/Vault"; 24 | export { Vault__factory } from "./factories/contracts/Vault__factory"; 25 | export type { AccessControl } from "./openzeppelin-solidity/contracts/access/AccessControl"; 26 | export { AccessControl__factory } from "./factories/openzeppelin-solidity/contracts/access/AccessControl__factory"; 27 | export type { AccessControlEnumerable } from "./openzeppelin-solidity/contracts/access/AccessControlEnumerable"; 28 | export { AccessControlEnumerable__factory } from "./factories/openzeppelin-solidity/contracts/access/AccessControlEnumerable__factory"; 29 | export type { IAccessControl } from "./openzeppelin-solidity/contracts/access/IAccessControl"; 30 | export { IAccessControl__factory } from "./factories/openzeppelin-solidity/contracts/access/IAccessControl__factory"; 31 | export type { IAccessControlEnumerable } from "./openzeppelin-solidity/contracts/access/IAccessControlEnumerable"; 32 | export { IAccessControlEnumerable__factory } from "./factories/openzeppelin-solidity/contracts/access/IAccessControlEnumerable__factory"; 33 | export type { Ownable } from "./openzeppelin-solidity/contracts/access/Ownable"; 34 | export { Ownable__factory } from "./factories/openzeppelin-solidity/contracts/access/Ownable__factory"; 35 | export type { ERC20 } from "./openzeppelin-solidity/contracts/token/ERC20/ERC20"; 36 | export { ERC20__factory } from "./factories/openzeppelin-solidity/contracts/token/ERC20/ERC20__factory"; 37 | export type { ERC20Burnable } from "./openzeppelin-solidity/contracts/token/ERC20/extensions/ERC20Burnable"; 38 | export { ERC20Burnable__factory } from "./factories/openzeppelin-solidity/contracts/token/ERC20/extensions/ERC20Burnable__factory"; 39 | export type { IERC20Metadata } from "./openzeppelin-solidity/contracts/token/ERC20/extensions/IERC20Metadata"; 40 | export { IERC20Metadata__factory } from "./factories/openzeppelin-solidity/contracts/token/ERC20/extensions/IERC20Metadata__factory"; 41 | export type { IERC20 } from "./openzeppelin-solidity/contracts/token/ERC20/IERC20"; 42 | export { IERC20__factory } from "./factories/openzeppelin-solidity/contracts/token/ERC20/IERC20__factory"; 43 | export type { ERC721 } from "./openzeppelin-solidity/contracts/token/ERC721/ERC721"; 44 | export { ERC721__factory } from "./factories/openzeppelin-solidity/contracts/token/ERC721/ERC721__factory"; 45 | export type { ERC721Enumerable } from "./openzeppelin-solidity/contracts/token/ERC721/extensions/ERC721Enumerable"; 46 | export { ERC721Enumerable__factory } from "./factories/openzeppelin-solidity/contracts/token/ERC721/extensions/ERC721Enumerable__factory"; 47 | export type { IERC721Enumerable } from "./openzeppelin-solidity/contracts/token/ERC721/extensions/IERC721Enumerable"; 48 | export { IERC721Enumerable__factory } from "./factories/openzeppelin-solidity/contracts/token/ERC721/extensions/IERC721Enumerable__factory"; 49 | export type { IERC721Metadata } from "./openzeppelin-solidity/contracts/token/ERC721/extensions/IERC721Metadata"; 50 | export { IERC721Metadata__factory } from "./factories/openzeppelin-solidity/contracts/token/ERC721/extensions/IERC721Metadata__factory"; 51 | export type { IERC721 } from "./openzeppelin-solidity/contracts/token/ERC721/IERC721"; 52 | export { IERC721__factory } from "./factories/openzeppelin-solidity/contracts/token/ERC721/IERC721__factory"; 53 | export type { IERC721Receiver } from "./openzeppelin-solidity/contracts/token/ERC721/IERC721Receiver"; 54 | export { IERC721Receiver__factory } from "./factories/openzeppelin-solidity/contracts/token/ERC721/IERC721Receiver__factory"; 55 | export type { ERC165 } from "./openzeppelin-solidity/contracts/utils/introspection/ERC165"; 56 | export { ERC165__factory } from "./factories/openzeppelin-solidity/contracts/utils/introspection/ERC165__factory"; 57 | export type { IERC165 } from "./openzeppelin-solidity/contracts/utils/introspection/IERC165"; 58 | export { IERC165__factory } from "./factories/openzeppelin-solidity/contracts/utils/introspection/IERC165__factory"; 59 | -------------------------------------------------------------------------------- /typechain-types/openzeppelin-solidity/contracts/access/AccessControl.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | import type { 5 | BaseContract, 6 | BigNumber, 7 | BytesLike, 8 | CallOverrides, 9 | ContractTransaction, 10 | Overrides, 11 | PopulatedTransaction, 12 | Signer, 13 | utils, 14 | } from "ethers"; 15 | import type { 16 | FunctionFragment, 17 | Result, 18 | EventFragment, 19 | } from "@ethersproject/abi"; 20 | import type { Listener, Provider } from "@ethersproject/providers"; 21 | import type { 22 | TypedEventFilter, 23 | TypedEvent, 24 | TypedListener, 25 | OnEvent, 26 | PromiseOrValue, 27 | } from "../../../common"; 28 | 29 | export interface AccessControlInterface extends utils.Interface { 30 | functions: { 31 | "DEFAULT_ADMIN_ROLE()": FunctionFragment; 32 | "getRoleAdmin(bytes32)": FunctionFragment; 33 | "grantRole(bytes32,address)": FunctionFragment; 34 | "hasRole(bytes32,address)": FunctionFragment; 35 | "renounceRole(bytes32,address)": FunctionFragment; 36 | "revokeRole(bytes32,address)": FunctionFragment; 37 | "supportsInterface(bytes4)": FunctionFragment; 38 | }; 39 | 40 | getFunction( 41 | nameOrSignatureOrTopic: 42 | | "DEFAULT_ADMIN_ROLE" 43 | | "getRoleAdmin" 44 | | "grantRole" 45 | | "hasRole" 46 | | "renounceRole" 47 | | "revokeRole" 48 | | "supportsInterface" 49 | ): FunctionFragment; 50 | 51 | encodeFunctionData( 52 | functionFragment: "DEFAULT_ADMIN_ROLE", 53 | values?: undefined 54 | ): string; 55 | encodeFunctionData( 56 | functionFragment: "getRoleAdmin", 57 | values: [PromiseOrValue] 58 | ): string; 59 | encodeFunctionData( 60 | functionFragment: "grantRole", 61 | values: [PromiseOrValue, PromiseOrValue] 62 | ): string; 63 | encodeFunctionData( 64 | functionFragment: "hasRole", 65 | values: [PromiseOrValue, PromiseOrValue] 66 | ): string; 67 | encodeFunctionData( 68 | functionFragment: "renounceRole", 69 | values: [PromiseOrValue, PromiseOrValue] 70 | ): string; 71 | encodeFunctionData( 72 | functionFragment: "revokeRole", 73 | values: [PromiseOrValue, PromiseOrValue] 74 | ): string; 75 | encodeFunctionData( 76 | functionFragment: "supportsInterface", 77 | values: [PromiseOrValue] 78 | ): string; 79 | 80 | decodeFunctionResult( 81 | functionFragment: "DEFAULT_ADMIN_ROLE", 82 | data: BytesLike 83 | ): Result; 84 | decodeFunctionResult( 85 | functionFragment: "getRoleAdmin", 86 | data: BytesLike 87 | ): Result; 88 | decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result; 89 | decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result; 90 | decodeFunctionResult( 91 | functionFragment: "renounceRole", 92 | data: BytesLike 93 | ): Result; 94 | decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result; 95 | decodeFunctionResult( 96 | functionFragment: "supportsInterface", 97 | data: BytesLike 98 | ): Result; 99 | 100 | events: { 101 | "RoleAdminChanged(bytes32,bytes32,bytes32)": EventFragment; 102 | "RoleGranted(bytes32,address,address)": EventFragment; 103 | "RoleRevoked(bytes32,address,address)": EventFragment; 104 | }; 105 | 106 | getEvent(nameOrSignatureOrTopic: "RoleAdminChanged"): EventFragment; 107 | getEvent(nameOrSignatureOrTopic: "RoleGranted"): EventFragment; 108 | getEvent(nameOrSignatureOrTopic: "RoleRevoked"): EventFragment; 109 | } 110 | 111 | export interface RoleAdminChangedEventObject { 112 | role: string; 113 | previousAdminRole: string; 114 | newAdminRole: string; 115 | } 116 | export type RoleAdminChangedEvent = TypedEvent< 117 | [string, string, string], 118 | RoleAdminChangedEventObject 119 | >; 120 | 121 | export type RoleAdminChangedEventFilter = 122 | TypedEventFilter; 123 | 124 | export interface RoleGrantedEventObject { 125 | role: string; 126 | account: string; 127 | sender: string; 128 | } 129 | export type RoleGrantedEvent = TypedEvent< 130 | [string, string, string], 131 | RoleGrantedEventObject 132 | >; 133 | 134 | export type RoleGrantedEventFilter = TypedEventFilter; 135 | 136 | export interface RoleRevokedEventObject { 137 | role: string; 138 | account: string; 139 | sender: string; 140 | } 141 | export type RoleRevokedEvent = TypedEvent< 142 | [string, string, string], 143 | RoleRevokedEventObject 144 | >; 145 | 146 | export type RoleRevokedEventFilter = TypedEventFilter; 147 | 148 | export interface AccessControl extends BaseContract { 149 | connect(signerOrProvider: Signer | Provider | string): this; 150 | attach(addressOrName: string): this; 151 | deployed(): Promise; 152 | 153 | interface: AccessControlInterface; 154 | 155 | queryFilter( 156 | event: TypedEventFilter, 157 | fromBlockOrBlockhash?: string | number | undefined, 158 | toBlock?: string | number | undefined 159 | ): Promise>; 160 | 161 | listeners( 162 | eventFilter?: TypedEventFilter 163 | ): Array>; 164 | listeners(eventName?: string): Array; 165 | removeAllListeners( 166 | eventFilter: TypedEventFilter 167 | ): this; 168 | removeAllListeners(eventName?: string): this; 169 | off: OnEvent; 170 | on: OnEvent; 171 | once: OnEvent; 172 | removeListener: OnEvent; 173 | 174 | functions: { 175 | DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<[string]>; 176 | 177 | getRoleAdmin( 178 | role: PromiseOrValue, 179 | overrides?: CallOverrides 180 | ): Promise<[string]>; 181 | 182 | grantRole( 183 | role: PromiseOrValue, 184 | account: PromiseOrValue, 185 | overrides?: Overrides & { from?: PromiseOrValue } 186 | ): Promise; 187 | 188 | hasRole( 189 | role: PromiseOrValue, 190 | account: PromiseOrValue, 191 | overrides?: CallOverrides 192 | ): Promise<[boolean]>; 193 | 194 | renounceRole( 195 | role: PromiseOrValue, 196 | account: PromiseOrValue, 197 | overrides?: Overrides & { from?: PromiseOrValue } 198 | ): Promise; 199 | 200 | revokeRole( 201 | role: PromiseOrValue, 202 | account: PromiseOrValue, 203 | overrides?: Overrides & { from?: PromiseOrValue } 204 | ): Promise; 205 | 206 | supportsInterface( 207 | interfaceId: PromiseOrValue, 208 | overrides?: CallOverrides 209 | ): Promise<[boolean]>; 210 | }; 211 | 212 | DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; 213 | 214 | getRoleAdmin( 215 | role: PromiseOrValue, 216 | overrides?: CallOverrides 217 | ): Promise; 218 | 219 | grantRole( 220 | role: PromiseOrValue, 221 | account: PromiseOrValue, 222 | overrides?: Overrides & { from?: PromiseOrValue } 223 | ): Promise; 224 | 225 | hasRole( 226 | role: PromiseOrValue, 227 | account: PromiseOrValue, 228 | overrides?: CallOverrides 229 | ): Promise; 230 | 231 | renounceRole( 232 | role: PromiseOrValue, 233 | account: PromiseOrValue, 234 | overrides?: Overrides & { from?: PromiseOrValue } 235 | ): Promise; 236 | 237 | revokeRole( 238 | role: PromiseOrValue, 239 | account: PromiseOrValue, 240 | overrides?: Overrides & { from?: PromiseOrValue } 241 | ): Promise; 242 | 243 | supportsInterface( 244 | interfaceId: PromiseOrValue, 245 | overrides?: CallOverrides 246 | ): Promise; 247 | 248 | callStatic: { 249 | DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; 250 | 251 | getRoleAdmin( 252 | role: PromiseOrValue, 253 | overrides?: CallOverrides 254 | ): Promise; 255 | 256 | grantRole( 257 | role: PromiseOrValue, 258 | account: PromiseOrValue, 259 | overrides?: CallOverrides 260 | ): Promise; 261 | 262 | hasRole( 263 | role: PromiseOrValue, 264 | account: PromiseOrValue, 265 | overrides?: CallOverrides 266 | ): Promise; 267 | 268 | renounceRole( 269 | role: PromiseOrValue, 270 | account: PromiseOrValue, 271 | overrides?: CallOverrides 272 | ): Promise; 273 | 274 | revokeRole( 275 | role: PromiseOrValue, 276 | account: PromiseOrValue, 277 | overrides?: CallOverrides 278 | ): Promise; 279 | 280 | supportsInterface( 281 | interfaceId: PromiseOrValue, 282 | overrides?: CallOverrides 283 | ): Promise; 284 | }; 285 | 286 | filters: { 287 | "RoleAdminChanged(bytes32,bytes32,bytes32)"( 288 | role?: PromiseOrValue | null, 289 | previousAdminRole?: PromiseOrValue | null, 290 | newAdminRole?: PromiseOrValue | null 291 | ): RoleAdminChangedEventFilter; 292 | RoleAdminChanged( 293 | role?: PromiseOrValue | null, 294 | previousAdminRole?: PromiseOrValue | null, 295 | newAdminRole?: PromiseOrValue | null 296 | ): RoleAdminChangedEventFilter; 297 | 298 | "RoleGranted(bytes32,address,address)"( 299 | role?: PromiseOrValue | null, 300 | account?: PromiseOrValue | null, 301 | sender?: PromiseOrValue | null 302 | ): RoleGrantedEventFilter; 303 | RoleGranted( 304 | role?: PromiseOrValue | null, 305 | account?: PromiseOrValue | null, 306 | sender?: PromiseOrValue | null 307 | ): RoleGrantedEventFilter; 308 | 309 | "RoleRevoked(bytes32,address,address)"( 310 | role?: PromiseOrValue | null, 311 | account?: PromiseOrValue | null, 312 | sender?: PromiseOrValue | null 313 | ): RoleRevokedEventFilter; 314 | RoleRevoked( 315 | role?: PromiseOrValue | null, 316 | account?: PromiseOrValue | null, 317 | sender?: PromiseOrValue | null 318 | ): RoleRevokedEventFilter; 319 | }; 320 | 321 | estimateGas: { 322 | DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; 323 | 324 | getRoleAdmin( 325 | role: PromiseOrValue, 326 | overrides?: CallOverrides 327 | ): Promise; 328 | 329 | grantRole( 330 | role: PromiseOrValue, 331 | account: PromiseOrValue, 332 | overrides?: Overrides & { from?: PromiseOrValue } 333 | ): Promise; 334 | 335 | hasRole( 336 | role: PromiseOrValue, 337 | account: PromiseOrValue, 338 | overrides?: CallOverrides 339 | ): Promise; 340 | 341 | renounceRole( 342 | role: PromiseOrValue, 343 | account: PromiseOrValue, 344 | overrides?: Overrides & { from?: PromiseOrValue } 345 | ): Promise; 346 | 347 | revokeRole( 348 | role: PromiseOrValue, 349 | account: PromiseOrValue, 350 | overrides?: Overrides & { from?: PromiseOrValue } 351 | ): Promise; 352 | 353 | supportsInterface( 354 | interfaceId: PromiseOrValue, 355 | overrides?: CallOverrides 356 | ): Promise; 357 | }; 358 | 359 | populateTransaction: { 360 | DEFAULT_ADMIN_ROLE( 361 | overrides?: CallOverrides 362 | ): Promise; 363 | 364 | getRoleAdmin( 365 | role: PromiseOrValue, 366 | overrides?: CallOverrides 367 | ): Promise; 368 | 369 | grantRole( 370 | role: PromiseOrValue, 371 | account: PromiseOrValue, 372 | overrides?: Overrides & { from?: PromiseOrValue } 373 | ): Promise; 374 | 375 | hasRole( 376 | role: PromiseOrValue, 377 | account: PromiseOrValue, 378 | overrides?: CallOverrides 379 | ): Promise; 380 | 381 | renounceRole( 382 | role: PromiseOrValue, 383 | account: PromiseOrValue, 384 | overrides?: Overrides & { from?: PromiseOrValue } 385 | ): Promise; 386 | 387 | revokeRole( 388 | role: PromiseOrValue, 389 | account: PromiseOrValue, 390 | overrides?: Overrides & { from?: PromiseOrValue } 391 | ): Promise; 392 | 393 | supportsInterface( 394 | interfaceId: PromiseOrValue, 395 | overrides?: CallOverrides 396 | ): Promise; 397 | }; 398 | } 399 | -------------------------------------------------------------------------------- /typechain-types/openzeppelin-solidity/contracts/access/IAccessControl.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | import type { 5 | BaseContract, 6 | BigNumber, 7 | BytesLike, 8 | CallOverrides, 9 | ContractTransaction, 10 | Overrides, 11 | PopulatedTransaction, 12 | Signer, 13 | utils, 14 | } from "ethers"; 15 | import type { 16 | FunctionFragment, 17 | Result, 18 | EventFragment, 19 | } from "@ethersproject/abi"; 20 | import type { Listener, Provider } from "@ethersproject/providers"; 21 | import type { 22 | TypedEventFilter, 23 | TypedEvent, 24 | TypedListener, 25 | OnEvent, 26 | PromiseOrValue, 27 | } from "../../../common"; 28 | 29 | export interface IAccessControlInterface extends utils.Interface { 30 | functions: { 31 | "getRoleAdmin(bytes32)": FunctionFragment; 32 | "grantRole(bytes32,address)": FunctionFragment; 33 | "hasRole(bytes32,address)": FunctionFragment; 34 | "renounceRole(bytes32,address)": FunctionFragment; 35 | "revokeRole(bytes32,address)": FunctionFragment; 36 | }; 37 | 38 | getFunction( 39 | nameOrSignatureOrTopic: 40 | | "getRoleAdmin" 41 | | "grantRole" 42 | | "hasRole" 43 | | "renounceRole" 44 | | "revokeRole" 45 | ): FunctionFragment; 46 | 47 | encodeFunctionData( 48 | functionFragment: "getRoleAdmin", 49 | values: [PromiseOrValue] 50 | ): string; 51 | encodeFunctionData( 52 | functionFragment: "grantRole", 53 | values: [PromiseOrValue, PromiseOrValue] 54 | ): string; 55 | encodeFunctionData( 56 | functionFragment: "hasRole", 57 | values: [PromiseOrValue, PromiseOrValue] 58 | ): string; 59 | encodeFunctionData( 60 | functionFragment: "renounceRole", 61 | values: [PromiseOrValue, PromiseOrValue] 62 | ): string; 63 | encodeFunctionData( 64 | functionFragment: "revokeRole", 65 | values: [PromiseOrValue, PromiseOrValue] 66 | ): string; 67 | 68 | decodeFunctionResult( 69 | functionFragment: "getRoleAdmin", 70 | data: BytesLike 71 | ): Result; 72 | decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result; 73 | decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result; 74 | decodeFunctionResult( 75 | functionFragment: "renounceRole", 76 | data: BytesLike 77 | ): Result; 78 | decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result; 79 | 80 | events: { 81 | "RoleAdminChanged(bytes32,bytes32,bytes32)": EventFragment; 82 | "RoleGranted(bytes32,address,address)": EventFragment; 83 | "RoleRevoked(bytes32,address,address)": EventFragment; 84 | }; 85 | 86 | getEvent(nameOrSignatureOrTopic: "RoleAdminChanged"): EventFragment; 87 | getEvent(nameOrSignatureOrTopic: "RoleGranted"): EventFragment; 88 | getEvent(nameOrSignatureOrTopic: "RoleRevoked"): EventFragment; 89 | } 90 | 91 | export interface RoleAdminChangedEventObject { 92 | role: string; 93 | previousAdminRole: string; 94 | newAdminRole: string; 95 | } 96 | export type RoleAdminChangedEvent = TypedEvent< 97 | [string, string, string], 98 | RoleAdminChangedEventObject 99 | >; 100 | 101 | export type RoleAdminChangedEventFilter = 102 | TypedEventFilter; 103 | 104 | export interface RoleGrantedEventObject { 105 | role: string; 106 | account: string; 107 | sender: string; 108 | } 109 | export type RoleGrantedEvent = TypedEvent< 110 | [string, string, string], 111 | RoleGrantedEventObject 112 | >; 113 | 114 | export type RoleGrantedEventFilter = TypedEventFilter; 115 | 116 | export interface RoleRevokedEventObject { 117 | role: string; 118 | account: string; 119 | sender: string; 120 | } 121 | export type RoleRevokedEvent = TypedEvent< 122 | [string, string, string], 123 | RoleRevokedEventObject 124 | >; 125 | 126 | export type RoleRevokedEventFilter = TypedEventFilter; 127 | 128 | export interface IAccessControl extends BaseContract { 129 | connect(signerOrProvider: Signer | Provider | string): this; 130 | attach(addressOrName: string): this; 131 | deployed(): Promise; 132 | 133 | interface: IAccessControlInterface; 134 | 135 | queryFilter( 136 | event: TypedEventFilter, 137 | fromBlockOrBlockhash?: string | number | undefined, 138 | toBlock?: string | number | undefined 139 | ): Promise>; 140 | 141 | listeners( 142 | eventFilter?: TypedEventFilter 143 | ): Array>; 144 | listeners(eventName?: string): Array; 145 | removeAllListeners( 146 | eventFilter: TypedEventFilter 147 | ): this; 148 | removeAllListeners(eventName?: string): this; 149 | off: OnEvent; 150 | on: OnEvent; 151 | once: OnEvent; 152 | removeListener: OnEvent; 153 | 154 | functions: { 155 | getRoleAdmin( 156 | role: PromiseOrValue, 157 | overrides?: CallOverrides 158 | ): Promise<[string]>; 159 | 160 | grantRole( 161 | role: PromiseOrValue, 162 | account: PromiseOrValue, 163 | overrides?: Overrides & { from?: PromiseOrValue } 164 | ): Promise; 165 | 166 | hasRole( 167 | role: PromiseOrValue, 168 | account: PromiseOrValue, 169 | overrides?: CallOverrides 170 | ): Promise<[boolean]>; 171 | 172 | renounceRole( 173 | role: PromiseOrValue, 174 | account: PromiseOrValue, 175 | overrides?: Overrides & { from?: PromiseOrValue } 176 | ): Promise; 177 | 178 | revokeRole( 179 | role: PromiseOrValue, 180 | account: PromiseOrValue, 181 | overrides?: Overrides & { from?: PromiseOrValue } 182 | ): Promise; 183 | }; 184 | 185 | getRoleAdmin( 186 | role: PromiseOrValue, 187 | overrides?: CallOverrides 188 | ): Promise; 189 | 190 | grantRole( 191 | role: PromiseOrValue, 192 | account: PromiseOrValue, 193 | overrides?: Overrides & { from?: PromiseOrValue } 194 | ): Promise; 195 | 196 | hasRole( 197 | role: PromiseOrValue, 198 | account: PromiseOrValue, 199 | overrides?: CallOverrides 200 | ): Promise; 201 | 202 | renounceRole( 203 | role: PromiseOrValue, 204 | account: PromiseOrValue, 205 | overrides?: Overrides & { from?: PromiseOrValue } 206 | ): Promise; 207 | 208 | revokeRole( 209 | role: PromiseOrValue, 210 | account: PromiseOrValue, 211 | overrides?: Overrides & { from?: PromiseOrValue } 212 | ): Promise; 213 | 214 | callStatic: { 215 | getRoleAdmin( 216 | role: PromiseOrValue, 217 | overrides?: CallOverrides 218 | ): Promise; 219 | 220 | grantRole( 221 | role: PromiseOrValue, 222 | account: PromiseOrValue, 223 | overrides?: CallOverrides 224 | ): Promise; 225 | 226 | hasRole( 227 | role: PromiseOrValue, 228 | account: PromiseOrValue, 229 | overrides?: CallOverrides 230 | ): Promise; 231 | 232 | renounceRole( 233 | role: PromiseOrValue, 234 | account: PromiseOrValue, 235 | overrides?: CallOverrides 236 | ): Promise; 237 | 238 | revokeRole( 239 | role: PromiseOrValue, 240 | account: PromiseOrValue, 241 | overrides?: CallOverrides 242 | ): Promise; 243 | }; 244 | 245 | filters: { 246 | "RoleAdminChanged(bytes32,bytes32,bytes32)"( 247 | role?: PromiseOrValue | null, 248 | previousAdminRole?: PromiseOrValue | null, 249 | newAdminRole?: PromiseOrValue | null 250 | ): RoleAdminChangedEventFilter; 251 | RoleAdminChanged( 252 | role?: PromiseOrValue | null, 253 | previousAdminRole?: PromiseOrValue | null, 254 | newAdminRole?: PromiseOrValue | null 255 | ): RoleAdminChangedEventFilter; 256 | 257 | "RoleGranted(bytes32,address,address)"( 258 | role?: PromiseOrValue | null, 259 | account?: PromiseOrValue | null, 260 | sender?: PromiseOrValue | null 261 | ): RoleGrantedEventFilter; 262 | RoleGranted( 263 | role?: PromiseOrValue | null, 264 | account?: PromiseOrValue | null, 265 | sender?: PromiseOrValue | null 266 | ): RoleGrantedEventFilter; 267 | 268 | "RoleRevoked(bytes32,address,address)"( 269 | role?: PromiseOrValue | null, 270 | account?: PromiseOrValue | null, 271 | sender?: PromiseOrValue | null 272 | ): RoleRevokedEventFilter; 273 | RoleRevoked( 274 | role?: PromiseOrValue | null, 275 | account?: PromiseOrValue | null, 276 | sender?: PromiseOrValue | null 277 | ): RoleRevokedEventFilter; 278 | }; 279 | 280 | estimateGas: { 281 | getRoleAdmin( 282 | role: PromiseOrValue, 283 | overrides?: CallOverrides 284 | ): Promise; 285 | 286 | grantRole( 287 | role: PromiseOrValue, 288 | account: PromiseOrValue, 289 | overrides?: Overrides & { from?: PromiseOrValue } 290 | ): Promise; 291 | 292 | hasRole( 293 | role: PromiseOrValue, 294 | account: PromiseOrValue, 295 | overrides?: CallOverrides 296 | ): Promise; 297 | 298 | renounceRole( 299 | role: PromiseOrValue, 300 | account: PromiseOrValue, 301 | overrides?: Overrides & { from?: PromiseOrValue } 302 | ): Promise; 303 | 304 | revokeRole( 305 | role: PromiseOrValue, 306 | account: PromiseOrValue, 307 | overrides?: Overrides & { from?: PromiseOrValue } 308 | ): Promise; 309 | }; 310 | 311 | populateTransaction: { 312 | getRoleAdmin( 313 | role: PromiseOrValue, 314 | overrides?: CallOverrides 315 | ): Promise; 316 | 317 | grantRole( 318 | role: PromiseOrValue, 319 | account: PromiseOrValue, 320 | overrides?: Overrides & { from?: PromiseOrValue } 321 | ): Promise; 322 | 323 | hasRole( 324 | role: PromiseOrValue, 325 | account: PromiseOrValue, 326 | overrides?: CallOverrides 327 | ): Promise; 328 | 329 | renounceRole( 330 | role: PromiseOrValue, 331 | account: PromiseOrValue, 332 | overrides?: Overrides & { from?: PromiseOrValue } 333 | ): Promise; 334 | 335 | revokeRole( 336 | role: PromiseOrValue, 337 | account: PromiseOrValue, 338 | overrides?: Overrides & { from?: PromiseOrValue } 339 | ): Promise; 340 | }; 341 | } 342 | -------------------------------------------------------------------------------- /typechain-types/openzeppelin-solidity/contracts/access/IAccessControlEnumerable.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | import type { 5 | BaseContract, 6 | BigNumber, 7 | BigNumberish, 8 | BytesLike, 9 | CallOverrides, 10 | ContractTransaction, 11 | Overrides, 12 | PopulatedTransaction, 13 | Signer, 14 | utils, 15 | } from "ethers"; 16 | import type { 17 | FunctionFragment, 18 | Result, 19 | EventFragment, 20 | } from "@ethersproject/abi"; 21 | import type { Listener, Provider } from "@ethersproject/providers"; 22 | import type { 23 | TypedEventFilter, 24 | TypedEvent, 25 | TypedListener, 26 | OnEvent, 27 | PromiseOrValue, 28 | } from "../../../common"; 29 | 30 | export interface IAccessControlEnumerableInterface extends utils.Interface { 31 | functions: { 32 | "getRoleAdmin(bytes32)": FunctionFragment; 33 | "getRoleMember(bytes32,uint256)": FunctionFragment; 34 | "getRoleMemberCount(bytes32)": FunctionFragment; 35 | "grantRole(bytes32,address)": FunctionFragment; 36 | "hasRole(bytes32,address)": FunctionFragment; 37 | "renounceRole(bytes32,address)": FunctionFragment; 38 | "revokeRole(bytes32,address)": FunctionFragment; 39 | }; 40 | 41 | getFunction( 42 | nameOrSignatureOrTopic: 43 | | "getRoleAdmin" 44 | | "getRoleMember" 45 | | "getRoleMemberCount" 46 | | "grantRole" 47 | | "hasRole" 48 | | "renounceRole" 49 | | "revokeRole" 50 | ): FunctionFragment; 51 | 52 | encodeFunctionData( 53 | functionFragment: "getRoleAdmin", 54 | values: [PromiseOrValue] 55 | ): string; 56 | encodeFunctionData( 57 | functionFragment: "getRoleMember", 58 | values: [PromiseOrValue, PromiseOrValue] 59 | ): string; 60 | encodeFunctionData( 61 | functionFragment: "getRoleMemberCount", 62 | values: [PromiseOrValue] 63 | ): string; 64 | encodeFunctionData( 65 | functionFragment: "grantRole", 66 | values: [PromiseOrValue, PromiseOrValue] 67 | ): string; 68 | encodeFunctionData( 69 | functionFragment: "hasRole", 70 | values: [PromiseOrValue, PromiseOrValue] 71 | ): string; 72 | encodeFunctionData( 73 | functionFragment: "renounceRole", 74 | values: [PromiseOrValue, PromiseOrValue] 75 | ): string; 76 | encodeFunctionData( 77 | functionFragment: "revokeRole", 78 | values: [PromiseOrValue, PromiseOrValue] 79 | ): string; 80 | 81 | decodeFunctionResult( 82 | functionFragment: "getRoleAdmin", 83 | data: BytesLike 84 | ): Result; 85 | decodeFunctionResult( 86 | functionFragment: "getRoleMember", 87 | data: BytesLike 88 | ): Result; 89 | decodeFunctionResult( 90 | functionFragment: "getRoleMemberCount", 91 | data: BytesLike 92 | ): Result; 93 | decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result; 94 | decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result; 95 | decodeFunctionResult( 96 | functionFragment: "renounceRole", 97 | data: BytesLike 98 | ): Result; 99 | decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result; 100 | 101 | events: { 102 | "RoleAdminChanged(bytes32,bytes32,bytes32)": EventFragment; 103 | "RoleGranted(bytes32,address,address)": EventFragment; 104 | "RoleRevoked(bytes32,address,address)": EventFragment; 105 | }; 106 | 107 | getEvent(nameOrSignatureOrTopic: "RoleAdminChanged"): EventFragment; 108 | getEvent(nameOrSignatureOrTopic: "RoleGranted"): EventFragment; 109 | getEvent(nameOrSignatureOrTopic: "RoleRevoked"): EventFragment; 110 | } 111 | 112 | export interface RoleAdminChangedEventObject { 113 | role: string; 114 | previousAdminRole: string; 115 | newAdminRole: string; 116 | } 117 | export type RoleAdminChangedEvent = TypedEvent< 118 | [string, string, string], 119 | RoleAdminChangedEventObject 120 | >; 121 | 122 | export type RoleAdminChangedEventFilter = 123 | TypedEventFilter; 124 | 125 | export interface RoleGrantedEventObject { 126 | role: string; 127 | account: string; 128 | sender: string; 129 | } 130 | export type RoleGrantedEvent = TypedEvent< 131 | [string, string, string], 132 | RoleGrantedEventObject 133 | >; 134 | 135 | export type RoleGrantedEventFilter = TypedEventFilter; 136 | 137 | export interface RoleRevokedEventObject { 138 | role: string; 139 | account: string; 140 | sender: string; 141 | } 142 | export type RoleRevokedEvent = TypedEvent< 143 | [string, string, string], 144 | RoleRevokedEventObject 145 | >; 146 | 147 | export type RoleRevokedEventFilter = TypedEventFilter; 148 | 149 | export interface IAccessControlEnumerable extends BaseContract { 150 | connect(signerOrProvider: Signer | Provider | string): this; 151 | attach(addressOrName: string): this; 152 | deployed(): Promise; 153 | 154 | interface: IAccessControlEnumerableInterface; 155 | 156 | queryFilter( 157 | event: TypedEventFilter, 158 | fromBlockOrBlockhash?: string | number | undefined, 159 | toBlock?: string | number | undefined 160 | ): Promise>; 161 | 162 | listeners( 163 | eventFilter?: TypedEventFilter 164 | ): Array>; 165 | listeners(eventName?: string): Array; 166 | removeAllListeners( 167 | eventFilter: TypedEventFilter 168 | ): this; 169 | removeAllListeners(eventName?: string): this; 170 | off: OnEvent; 171 | on: OnEvent; 172 | once: OnEvent; 173 | removeListener: OnEvent; 174 | 175 | functions: { 176 | getRoleAdmin( 177 | role: PromiseOrValue, 178 | overrides?: CallOverrides 179 | ): Promise<[string]>; 180 | 181 | getRoleMember( 182 | role: PromiseOrValue, 183 | index: PromiseOrValue, 184 | overrides?: CallOverrides 185 | ): Promise<[string]>; 186 | 187 | getRoleMemberCount( 188 | role: PromiseOrValue, 189 | overrides?: CallOverrides 190 | ): Promise<[BigNumber]>; 191 | 192 | grantRole( 193 | role: PromiseOrValue, 194 | account: PromiseOrValue, 195 | overrides?: Overrides & { from?: PromiseOrValue } 196 | ): Promise; 197 | 198 | hasRole( 199 | role: PromiseOrValue, 200 | account: PromiseOrValue, 201 | overrides?: CallOverrides 202 | ): Promise<[boolean]>; 203 | 204 | renounceRole( 205 | role: PromiseOrValue, 206 | account: PromiseOrValue, 207 | overrides?: Overrides & { from?: PromiseOrValue } 208 | ): Promise; 209 | 210 | revokeRole( 211 | role: PromiseOrValue, 212 | account: PromiseOrValue, 213 | overrides?: Overrides & { from?: PromiseOrValue } 214 | ): Promise; 215 | }; 216 | 217 | getRoleAdmin( 218 | role: PromiseOrValue, 219 | overrides?: CallOverrides 220 | ): Promise; 221 | 222 | getRoleMember( 223 | role: PromiseOrValue, 224 | index: PromiseOrValue, 225 | overrides?: CallOverrides 226 | ): Promise; 227 | 228 | getRoleMemberCount( 229 | role: PromiseOrValue, 230 | overrides?: CallOverrides 231 | ): Promise; 232 | 233 | grantRole( 234 | role: PromiseOrValue, 235 | account: PromiseOrValue, 236 | overrides?: Overrides & { from?: PromiseOrValue } 237 | ): Promise; 238 | 239 | hasRole( 240 | role: PromiseOrValue, 241 | account: PromiseOrValue, 242 | overrides?: CallOverrides 243 | ): Promise; 244 | 245 | renounceRole( 246 | role: PromiseOrValue, 247 | account: PromiseOrValue, 248 | overrides?: Overrides & { from?: PromiseOrValue } 249 | ): Promise; 250 | 251 | revokeRole( 252 | role: PromiseOrValue, 253 | account: PromiseOrValue, 254 | overrides?: Overrides & { from?: PromiseOrValue } 255 | ): Promise; 256 | 257 | callStatic: { 258 | getRoleAdmin( 259 | role: PromiseOrValue, 260 | overrides?: CallOverrides 261 | ): Promise; 262 | 263 | getRoleMember( 264 | role: PromiseOrValue, 265 | index: PromiseOrValue, 266 | overrides?: CallOverrides 267 | ): Promise; 268 | 269 | getRoleMemberCount( 270 | role: PromiseOrValue, 271 | overrides?: CallOverrides 272 | ): Promise; 273 | 274 | grantRole( 275 | role: PromiseOrValue, 276 | account: PromiseOrValue, 277 | overrides?: CallOverrides 278 | ): Promise; 279 | 280 | hasRole( 281 | role: PromiseOrValue, 282 | account: PromiseOrValue, 283 | overrides?: CallOverrides 284 | ): Promise; 285 | 286 | renounceRole( 287 | role: PromiseOrValue, 288 | account: PromiseOrValue, 289 | overrides?: CallOverrides 290 | ): Promise; 291 | 292 | revokeRole( 293 | role: PromiseOrValue, 294 | account: PromiseOrValue, 295 | overrides?: CallOverrides 296 | ): Promise; 297 | }; 298 | 299 | filters: { 300 | "RoleAdminChanged(bytes32,bytes32,bytes32)"( 301 | role?: PromiseOrValue | null, 302 | previousAdminRole?: PromiseOrValue | null, 303 | newAdminRole?: PromiseOrValue | null 304 | ): RoleAdminChangedEventFilter; 305 | RoleAdminChanged( 306 | role?: PromiseOrValue | null, 307 | previousAdminRole?: PromiseOrValue | null, 308 | newAdminRole?: PromiseOrValue | null 309 | ): RoleAdminChangedEventFilter; 310 | 311 | "RoleGranted(bytes32,address,address)"( 312 | role?: PromiseOrValue | null, 313 | account?: PromiseOrValue | null, 314 | sender?: PromiseOrValue | null 315 | ): RoleGrantedEventFilter; 316 | RoleGranted( 317 | role?: PromiseOrValue | null, 318 | account?: PromiseOrValue | null, 319 | sender?: PromiseOrValue | null 320 | ): RoleGrantedEventFilter; 321 | 322 | "RoleRevoked(bytes32,address,address)"( 323 | role?: PromiseOrValue | null, 324 | account?: PromiseOrValue | null, 325 | sender?: PromiseOrValue | null 326 | ): RoleRevokedEventFilter; 327 | RoleRevoked( 328 | role?: PromiseOrValue | null, 329 | account?: PromiseOrValue | null, 330 | sender?: PromiseOrValue | null 331 | ): RoleRevokedEventFilter; 332 | }; 333 | 334 | estimateGas: { 335 | getRoleAdmin( 336 | role: PromiseOrValue, 337 | overrides?: CallOverrides 338 | ): Promise; 339 | 340 | getRoleMember( 341 | role: PromiseOrValue, 342 | index: PromiseOrValue, 343 | overrides?: CallOverrides 344 | ): Promise; 345 | 346 | getRoleMemberCount( 347 | role: PromiseOrValue, 348 | overrides?: CallOverrides 349 | ): Promise; 350 | 351 | grantRole( 352 | role: PromiseOrValue, 353 | account: PromiseOrValue, 354 | overrides?: Overrides & { from?: PromiseOrValue } 355 | ): Promise; 356 | 357 | hasRole( 358 | role: PromiseOrValue, 359 | account: PromiseOrValue, 360 | overrides?: CallOverrides 361 | ): Promise; 362 | 363 | renounceRole( 364 | role: PromiseOrValue, 365 | account: PromiseOrValue, 366 | overrides?: Overrides & { from?: PromiseOrValue } 367 | ): Promise; 368 | 369 | revokeRole( 370 | role: PromiseOrValue, 371 | account: PromiseOrValue, 372 | overrides?: Overrides & { from?: PromiseOrValue } 373 | ): Promise; 374 | }; 375 | 376 | populateTransaction: { 377 | getRoleAdmin( 378 | role: PromiseOrValue, 379 | overrides?: CallOverrides 380 | ): Promise; 381 | 382 | getRoleMember( 383 | role: PromiseOrValue, 384 | index: PromiseOrValue, 385 | overrides?: CallOverrides 386 | ): Promise; 387 | 388 | getRoleMemberCount( 389 | role: PromiseOrValue, 390 | overrides?: CallOverrides 391 | ): Promise; 392 | 393 | grantRole( 394 | role: PromiseOrValue, 395 | account: PromiseOrValue, 396 | overrides?: Overrides & { from?: PromiseOrValue } 397 | ): Promise; 398 | 399 | hasRole( 400 | role: PromiseOrValue, 401 | account: PromiseOrValue, 402 | overrides?: CallOverrides 403 | ): Promise; 404 | 405 | renounceRole( 406 | role: PromiseOrValue, 407 | account: PromiseOrValue, 408 | overrides?: Overrides & { from?: PromiseOrValue } 409 | ): Promise; 410 | 411 | revokeRole( 412 | role: PromiseOrValue, 413 | account: PromiseOrValue, 414 | overrides?: Overrides & { from?: PromiseOrValue } 415 | ): Promise; 416 | }; 417 | } 418 | -------------------------------------------------------------------------------- /typechain-types/openzeppelin-solidity/contracts/access/Ownable.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | import type { 5 | BaseContract, 6 | BigNumber, 7 | BytesLike, 8 | CallOverrides, 9 | ContractTransaction, 10 | Overrides, 11 | PopulatedTransaction, 12 | Signer, 13 | utils, 14 | } from "ethers"; 15 | import type { 16 | FunctionFragment, 17 | Result, 18 | EventFragment, 19 | } from "@ethersproject/abi"; 20 | import type { Listener, Provider } from "@ethersproject/providers"; 21 | import type { 22 | TypedEventFilter, 23 | TypedEvent, 24 | TypedListener, 25 | OnEvent, 26 | PromiseOrValue, 27 | } from "../../../common"; 28 | 29 | export interface OwnableInterface extends utils.Interface { 30 | functions: { 31 | "owner()": FunctionFragment; 32 | "renounceOwnership()": FunctionFragment; 33 | "transferOwnership(address)": FunctionFragment; 34 | }; 35 | 36 | getFunction( 37 | nameOrSignatureOrTopic: "owner" | "renounceOwnership" | "transferOwnership" 38 | ): FunctionFragment; 39 | 40 | encodeFunctionData(functionFragment: "owner", values?: undefined): string; 41 | encodeFunctionData( 42 | functionFragment: "renounceOwnership", 43 | values?: undefined 44 | ): string; 45 | encodeFunctionData( 46 | functionFragment: "transferOwnership", 47 | values: [PromiseOrValue] 48 | ): string; 49 | 50 | decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; 51 | decodeFunctionResult( 52 | functionFragment: "renounceOwnership", 53 | data: BytesLike 54 | ): Result; 55 | decodeFunctionResult( 56 | functionFragment: "transferOwnership", 57 | data: BytesLike 58 | ): Result; 59 | 60 | events: { 61 | "OwnershipTransferred(address,address)": EventFragment; 62 | }; 63 | 64 | getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment; 65 | } 66 | 67 | export interface OwnershipTransferredEventObject { 68 | previousOwner: string; 69 | newOwner: string; 70 | } 71 | export type OwnershipTransferredEvent = TypedEvent< 72 | [string, string], 73 | OwnershipTransferredEventObject 74 | >; 75 | 76 | export type OwnershipTransferredEventFilter = 77 | TypedEventFilter; 78 | 79 | export interface Ownable extends BaseContract { 80 | connect(signerOrProvider: Signer | Provider | string): this; 81 | attach(addressOrName: string): this; 82 | deployed(): Promise; 83 | 84 | interface: OwnableInterface; 85 | 86 | queryFilter( 87 | event: TypedEventFilter, 88 | fromBlockOrBlockhash?: string | number | undefined, 89 | toBlock?: string | number | undefined 90 | ): Promise>; 91 | 92 | listeners( 93 | eventFilter?: TypedEventFilter 94 | ): Array>; 95 | listeners(eventName?: string): Array; 96 | removeAllListeners( 97 | eventFilter: TypedEventFilter 98 | ): this; 99 | removeAllListeners(eventName?: string): this; 100 | off: OnEvent; 101 | on: OnEvent; 102 | once: OnEvent; 103 | removeListener: OnEvent; 104 | 105 | functions: { 106 | owner(overrides?: CallOverrides): Promise<[string]>; 107 | 108 | renounceOwnership( 109 | overrides?: Overrides & { from?: PromiseOrValue } 110 | ): Promise; 111 | 112 | transferOwnership( 113 | newOwner: PromiseOrValue, 114 | overrides?: Overrides & { from?: PromiseOrValue } 115 | ): Promise; 116 | }; 117 | 118 | owner(overrides?: CallOverrides): Promise; 119 | 120 | renounceOwnership( 121 | overrides?: Overrides & { from?: PromiseOrValue } 122 | ): Promise; 123 | 124 | transferOwnership( 125 | newOwner: PromiseOrValue, 126 | overrides?: Overrides & { from?: PromiseOrValue } 127 | ): Promise; 128 | 129 | callStatic: { 130 | owner(overrides?: CallOverrides): Promise; 131 | 132 | renounceOwnership(overrides?: CallOverrides): Promise; 133 | 134 | transferOwnership( 135 | newOwner: PromiseOrValue, 136 | overrides?: CallOverrides 137 | ): Promise; 138 | }; 139 | 140 | filters: { 141 | "OwnershipTransferred(address,address)"( 142 | previousOwner?: PromiseOrValue | null, 143 | newOwner?: PromiseOrValue | null 144 | ): OwnershipTransferredEventFilter; 145 | OwnershipTransferred( 146 | previousOwner?: PromiseOrValue | null, 147 | newOwner?: PromiseOrValue | null 148 | ): OwnershipTransferredEventFilter; 149 | }; 150 | 151 | estimateGas: { 152 | owner(overrides?: CallOverrides): Promise; 153 | 154 | renounceOwnership( 155 | overrides?: Overrides & { from?: PromiseOrValue } 156 | ): Promise; 157 | 158 | transferOwnership( 159 | newOwner: PromiseOrValue, 160 | overrides?: Overrides & { from?: PromiseOrValue } 161 | ): Promise; 162 | }; 163 | 164 | populateTransaction: { 165 | owner(overrides?: CallOverrides): Promise; 166 | 167 | renounceOwnership( 168 | overrides?: Overrides & { from?: PromiseOrValue } 169 | ): Promise; 170 | 171 | transferOwnership( 172 | newOwner: PromiseOrValue, 173 | overrides?: Overrides & { from?: PromiseOrValue } 174 | ): Promise; 175 | }; 176 | } 177 | -------------------------------------------------------------------------------- /typechain-types/openzeppelin-solidity/contracts/access/index.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | export type { AccessControl } from "./AccessControl"; 5 | export type { AccessControlEnumerable } from "./AccessControlEnumerable"; 6 | export type { IAccessControl } from "./IAccessControl"; 7 | export type { IAccessControlEnumerable } from "./IAccessControlEnumerable"; 8 | export type { Ownable } from "./Ownable"; 9 | -------------------------------------------------------------------------------- /typechain-types/openzeppelin-solidity/contracts/index.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | import type * as access from "./access"; 5 | export type { access }; 6 | import type * as token from "./token"; 7 | export type { token }; 8 | import type * as utils from "./utils"; 9 | export type { utils }; 10 | -------------------------------------------------------------------------------- /typechain-types/openzeppelin-solidity/contracts/token/ERC20/IERC20.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | import type { 5 | BaseContract, 6 | BigNumber, 7 | BigNumberish, 8 | BytesLike, 9 | CallOverrides, 10 | ContractTransaction, 11 | Overrides, 12 | PopulatedTransaction, 13 | Signer, 14 | utils, 15 | } from "ethers"; 16 | import type { 17 | FunctionFragment, 18 | Result, 19 | EventFragment, 20 | } from "@ethersproject/abi"; 21 | import type { Listener, Provider } from "@ethersproject/providers"; 22 | import type { 23 | TypedEventFilter, 24 | TypedEvent, 25 | TypedListener, 26 | OnEvent, 27 | PromiseOrValue, 28 | } from "../../../../common"; 29 | 30 | export interface IERC20Interface extends utils.Interface { 31 | functions: { 32 | "allowance(address,address)": FunctionFragment; 33 | "approve(address,uint256)": FunctionFragment; 34 | "balanceOf(address)": FunctionFragment; 35 | "totalSupply()": FunctionFragment; 36 | "transfer(address,uint256)": FunctionFragment; 37 | "transferFrom(address,address,uint256)": FunctionFragment; 38 | }; 39 | 40 | getFunction( 41 | nameOrSignatureOrTopic: 42 | | "allowance" 43 | | "approve" 44 | | "balanceOf" 45 | | "totalSupply" 46 | | "transfer" 47 | | "transferFrom" 48 | ): FunctionFragment; 49 | 50 | encodeFunctionData( 51 | functionFragment: "allowance", 52 | values: [PromiseOrValue, PromiseOrValue] 53 | ): string; 54 | encodeFunctionData( 55 | functionFragment: "approve", 56 | values: [PromiseOrValue, PromiseOrValue] 57 | ): string; 58 | encodeFunctionData( 59 | functionFragment: "balanceOf", 60 | values: [PromiseOrValue] 61 | ): string; 62 | encodeFunctionData( 63 | functionFragment: "totalSupply", 64 | values?: undefined 65 | ): string; 66 | encodeFunctionData( 67 | functionFragment: "transfer", 68 | values: [PromiseOrValue, PromiseOrValue] 69 | ): string; 70 | encodeFunctionData( 71 | functionFragment: "transferFrom", 72 | values: [ 73 | PromiseOrValue, 74 | PromiseOrValue, 75 | PromiseOrValue 76 | ] 77 | ): string; 78 | 79 | decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result; 80 | decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; 81 | decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; 82 | decodeFunctionResult( 83 | functionFragment: "totalSupply", 84 | data: BytesLike 85 | ): Result; 86 | decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; 87 | decodeFunctionResult( 88 | functionFragment: "transferFrom", 89 | data: BytesLike 90 | ): Result; 91 | 92 | events: { 93 | "Approval(address,address,uint256)": EventFragment; 94 | "Transfer(address,address,uint256)": EventFragment; 95 | }; 96 | 97 | getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment; 98 | getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment; 99 | } 100 | 101 | export interface ApprovalEventObject { 102 | owner: string; 103 | spender: string; 104 | value: BigNumber; 105 | } 106 | export type ApprovalEvent = TypedEvent< 107 | [string, string, BigNumber], 108 | ApprovalEventObject 109 | >; 110 | 111 | export type ApprovalEventFilter = TypedEventFilter; 112 | 113 | export interface TransferEventObject { 114 | from: string; 115 | to: string; 116 | value: BigNumber; 117 | } 118 | export type TransferEvent = TypedEvent< 119 | [string, string, BigNumber], 120 | TransferEventObject 121 | >; 122 | 123 | export type TransferEventFilter = TypedEventFilter; 124 | 125 | export interface IERC20 extends BaseContract { 126 | connect(signerOrProvider: Signer | Provider | string): this; 127 | attach(addressOrName: string): this; 128 | deployed(): Promise; 129 | 130 | interface: IERC20Interface; 131 | 132 | queryFilter( 133 | event: TypedEventFilter, 134 | fromBlockOrBlockhash?: string | number | undefined, 135 | toBlock?: string | number | undefined 136 | ): Promise>; 137 | 138 | listeners( 139 | eventFilter?: TypedEventFilter 140 | ): Array>; 141 | listeners(eventName?: string): Array; 142 | removeAllListeners( 143 | eventFilter: TypedEventFilter 144 | ): this; 145 | removeAllListeners(eventName?: string): this; 146 | off: OnEvent; 147 | on: OnEvent; 148 | once: OnEvent; 149 | removeListener: OnEvent; 150 | 151 | functions: { 152 | allowance( 153 | owner: PromiseOrValue, 154 | spender: PromiseOrValue, 155 | overrides?: CallOverrides 156 | ): Promise<[BigNumber]>; 157 | 158 | approve( 159 | spender: PromiseOrValue, 160 | amount: PromiseOrValue, 161 | overrides?: Overrides & { from?: PromiseOrValue } 162 | ): Promise; 163 | 164 | balanceOf( 165 | account: PromiseOrValue, 166 | overrides?: CallOverrides 167 | ): Promise<[BigNumber]>; 168 | 169 | totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; 170 | 171 | transfer( 172 | to: PromiseOrValue, 173 | amount: PromiseOrValue, 174 | overrides?: Overrides & { from?: PromiseOrValue } 175 | ): Promise; 176 | 177 | transferFrom( 178 | from: PromiseOrValue, 179 | to: PromiseOrValue, 180 | amount: PromiseOrValue, 181 | overrides?: Overrides & { from?: PromiseOrValue } 182 | ): Promise; 183 | }; 184 | 185 | allowance( 186 | owner: PromiseOrValue, 187 | spender: PromiseOrValue, 188 | overrides?: CallOverrides 189 | ): Promise; 190 | 191 | approve( 192 | spender: PromiseOrValue, 193 | amount: PromiseOrValue, 194 | overrides?: Overrides & { from?: PromiseOrValue } 195 | ): Promise; 196 | 197 | balanceOf( 198 | account: PromiseOrValue, 199 | overrides?: CallOverrides 200 | ): Promise; 201 | 202 | totalSupply(overrides?: CallOverrides): Promise; 203 | 204 | transfer( 205 | to: PromiseOrValue, 206 | amount: PromiseOrValue, 207 | overrides?: Overrides & { from?: PromiseOrValue } 208 | ): Promise; 209 | 210 | transferFrom( 211 | from: PromiseOrValue, 212 | to: PromiseOrValue, 213 | amount: PromiseOrValue, 214 | overrides?: Overrides & { from?: PromiseOrValue } 215 | ): Promise; 216 | 217 | callStatic: { 218 | allowance( 219 | owner: PromiseOrValue, 220 | spender: PromiseOrValue, 221 | overrides?: CallOverrides 222 | ): Promise; 223 | 224 | approve( 225 | spender: PromiseOrValue, 226 | amount: PromiseOrValue, 227 | overrides?: CallOverrides 228 | ): Promise; 229 | 230 | balanceOf( 231 | account: PromiseOrValue, 232 | overrides?: CallOverrides 233 | ): Promise; 234 | 235 | totalSupply(overrides?: CallOverrides): Promise; 236 | 237 | transfer( 238 | to: PromiseOrValue, 239 | amount: PromiseOrValue, 240 | overrides?: CallOverrides 241 | ): Promise; 242 | 243 | transferFrom( 244 | from: PromiseOrValue, 245 | to: PromiseOrValue, 246 | amount: PromiseOrValue, 247 | overrides?: CallOverrides 248 | ): Promise; 249 | }; 250 | 251 | filters: { 252 | "Approval(address,address,uint256)"( 253 | owner?: PromiseOrValue | null, 254 | spender?: PromiseOrValue | null, 255 | value?: null 256 | ): ApprovalEventFilter; 257 | Approval( 258 | owner?: PromiseOrValue | null, 259 | spender?: PromiseOrValue | null, 260 | value?: null 261 | ): ApprovalEventFilter; 262 | 263 | "Transfer(address,address,uint256)"( 264 | from?: PromiseOrValue | null, 265 | to?: PromiseOrValue | null, 266 | value?: null 267 | ): TransferEventFilter; 268 | Transfer( 269 | from?: PromiseOrValue | null, 270 | to?: PromiseOrValue | null, 271 | value?: null 272 | ): TransferEventFilter; 273 | }; 274 | 275 | estimateGas: { 276 | allowance( 277 | owner: PromiseOrValue, 278 | spender: PromiseOrValue, 279 | overrides?: CallOverrides 280 | ): Promise; 281 | 282 | approve( 283 | spender: PromiseOrValue, 284 | amount: PromiseOrValue, 285 | overrides?: Overrides & { from?: PromiseOrValue } 286 | ): Promise; 287 | 288 | balanceOf( 289 | account: PromiseOrValue, 290 | overrides?: CallOverrides 291 | ): Promise; 292 | 293 | totalSupply(overrides?: CallOverrides): Promise; 294 | 295 | transfer( 296 | to: PromiseOrValue, 297 | amount: PromiseOrValue, 298 | overrides?: Overrides & { from?: PromiseOrValue } 299 | ): Promise; 300 | 301 | transferFrom( 302 | from: PromiseOrValue, 303 | to: PromiseOrValue, 304 | amount: PromiseOrValue, 305 | overrides?: Overrides & { from?: PromiseOrValue } 306 | ): Promise; 307 | }; 308 | 309 | populateTransaction: { 310 | allowance( 311 | owner: PromiseOrValue, 312 | spender: PromiseOrValue, 313 | overrides?: CallOverrides 314 | ): Promise; 315 | 316 | approve( 317 | spender: PromiseOrValue, 318 | amount: PromiseOrValue, 319 | overrides?: Overrides & { from?: PromiseOrValue } 320 | ): Promise; 321 | 322 | balanceOf( 323 | account: PromiseOrValue, 324 | overrides?: CallOverrides 325 | ): Promise; 326 | 327 | totalSupply(overrides?: CallOverrides): Promise; 328 | 329 | transfer( 330 | to: PromiseOrValue, 331 | amount: PromiseOrValue, 332 | overrides?: Overrides & { from?: PromiseOrValue } 333 | ): Promise; 334 | 335 | transferFrom( 336 | from: PromiseOrValue, 337 | to: PromiseOrValue, 338 | amount: PromiseOrValue, 339 | overrides?: Overrides & { from?: PromiseOrValue } 340 | ): Promise; 341 | }; 342 | } 343 | -------------------------------------------------------------------------------- /typechain-types/openzeppelin-solidity/contracts/token/ERC20/extensions/IERC20Metadata.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | import type { 5 | BaseContract, 6 | BigNumber, 7 | BigNumberish, 8 | BytesLike, 9 | CallOverrides, 10 | ContractTransaction, 11 | Overrides, 12 | PopulatedTransaction, 13 | Signer, 14 | utils, 15 | } from "ethers"; 16 | import type { 17 | FunctionFragment, 18 | Result, 19 | EventFragment, 20 | } from "@ethersproject/abi"; 21 | import type { Listener, Provider } from "@ethersproject/providers"; 22 | import type { 23 | TypedEventFilter, 24 | TypedEvent, 25 | TypedListener, 26 | OnEvent, 27 | PromiseOrValue, 28 | } from "../../../../../common"; 29 | 30 | export interface IERC20MetadataInterface extends utils.Interface { 31 | functions: { 32 | "allowance(address,address)": FunctionFragment; 33 | "approve(address,uint256)": FunctionFragment; 34 | "balanceOf(address)": FunctionFragment; 35 | "decimals()": FunctionFragment; 36 | "name()": FunctionFragment; 37 | "symbol()": FunctionFragment; 38 | "totalSupply()": FunctionFragment; 39 | "transfer(address,uint256)": FunctionFragment; 40 | "transferFrom(address,address,uint256)": FunctionFragment; 41 | }; 42 | 43 | getFunction( 44 | nameOrSignatureOrTopic: 45 | | "allowance" 46 | | "approve" 47 | | "balanceOf" 48 | | "decimals" 49 | | "name" 50 | | "symbol" 51 | | "totalSupply" 52 | | "transfer" 53 | | "transferFrom" 54 | ): FunctionFragment; 55 | 56 | encodeFunctionData( 57 | functionFragment: "allowance", 58 | values: [PromiseOrValue, PromiseOrValue] 59 | ): string; 60 | encodeFunctionData( 61 | functionFragment: "approve", 62 | values: [PromiseOrValue, PromiseOrValue] 63 | ): string; 64 | encodeFunctionData( 65 | functionFragment: "balanceOf", 66 | values: [PromiseOrValue] 67 | ): string; 68 | encodeFunctionData(functionFragment: "decimals", values?: undefined): string; 69 | encodeFunctionData(functionFragment: "name", values?: undefined): string; 70 | encodeFunctionData(functionFragment: "symbol", values?: undefined): string; 71 | encodeFunctionData( 72 | functionFragment: "totalSupply", 73 | values?: undefined 74 | ): string; 75 | encodeFunctionData( 76 | functionFragment: "transfer", 77 | values: [PromiseOrValue, PromiseOrValue] 78 | ): string; 79 | encodeFunctionData( 80 | functionFragment: "transferFrom", 81 | values: [ 82 | PromiseOrValue, 83 | PromiseOrValue, 84 | PromiseOrValue 85 | ] 86 | ): string; 87 | 88 | decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result; 89 | decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; 90 | decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; 91 | decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result; 92 | decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; 93 | decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result; 94 | decodeFunctionResult( 95 | functionFragment: "totalSupply", 96 | data: BytesLike 97 | ): Result; 98 | decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; 99 | decodeFunctionResult( 100 | functionFragment: "transferFrom", 101 | data: BytesLike 102 | ): Result; 103 | 104 | events: { 105 | "Approval(address,address,uint256)": EventFragment; 106 | "Transfer(address,address,uint256)": EventFragment; 107 | }; 108 | 109 | getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment; 110 | getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment; 111 | } 112 | 113 | export interface ApprovalEventObject { 114 | owner: string; 115 | spender: string; 116 | value: BigNumber; 117 | } 118 | export type ApprovalEvent = TypedEvent< 119 | [string, string, BigNumber], 120 | ApprovalEventObject 121 | >; 122 | 123 | export type ApprovalEventFilter = TypedEventFilter; 124 | 125 | export interface TransferEventObject { 126 | from: string; 127 | to: string; 128 | value: BigNumber; 129 | } 130 | export type TransferEvent = TypedEvent< 131 | [string, string, BigNumber], 132 | TransferEventObject 133 | >; 134 | 135 | export type TransferEventFilter = TypedEventFilter; 136 | 137 | export interface IERC20Metadata extends BaseContract { 138 | connect(signerOrProvider: Signer | Provider | string): this; 139 | attach(addressOrName: string): this; 140 | deployed(): Promise; 141 | 142 | interface: IERC20MetadataInterface; 143 | 144 | queryFilter( 145 | event: TypedEventFilter, 146 | fromBlockOrBlockhash?: string | number | undefined, 147 | toBlock?: string | number | undefined 148 | ): Promise>; 149 | 150 | listeners( 151 | eventFilter?: TypedEventFilter 152 | ): Array>; 153 | listeners(eventName?: string): Array; 154 | removeAllListeners( 155 | eventFilter: TypedEventFilter 156 | ): this; 157 | removeAllListeners(eventName?: string): this; 158 | off: OnEvent; 159 | on: OnEvent; 160 | once: OnEvent; 161 | removeListener: OnEvent; 162 | 163 | functions: { 164 | allowance( 165 | owner: PromiseOrValue, 166 | spender: PromiseOrValue, 167 | overrides?: CallOverrides 168 | ): Promise<[BigNumber]>; 169 | 170 | approve( 171 | spender: PromiseOrValue, 172 | amount: PromiseOrValue, 173 | overrides?: Overrides & { from?: PromiseOrValue } 174 | ): Promise; 175 | 176 | balanceOf( 177 | account: PromiseOrValue, 178 | overrides?: CallOverrides 179 | ): Promise<[BigNumber]>; 180 | 181 | decimals(overrides?: CallOverrides): Promise<[number]>; 182 | 183 | name(overrides?: CallOverrides): Promise<[string]>; 184 | 185 | symbol(overrides?: CallOverrides): Promise<[string]>; 186 | 187 | totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; 188 | 189 | transfer( 190 | to: PromiseOrValue, 191 | amount: PromiseOrValue, 192 | overrides?: Overrides & { from?: PromiseOrValue } 193 | ): Promise; 194 | 195 | transferFrom( 196 | from: PromiseOrValue, 197 | to: PromiseOrValue, 198 | amount: PromiseOrValue, 199 | overrides?: Overrides & { from?: PromiseOrValue } 200 | ): Promise; 201 | }; 202 | 203 | allowance( 204 | owner: PromiseOrValue, 205 | spender: PromiseOrValue, 206 | overrides?: CallOverrides 207 | ): Promise; 208 | 209 | approve( 210 | spender: PromiseOrValue, 211 | amount: PromiseOrValue, 212 | overrides?: Overrides & { from?: PromiseOrValue } 213 | ): Promise; 214 | 215 | balanceOf( 216 | account: PromiseOrValue, 217 | overrides?: CallOverrides 218 | ): Promise; 219 | 220 | decimals(overrides?: CallOverrides): Promise; 221 | 222 | name(overrides?: CallOverrides): Promise; 223 | 224 | symbol(overrides?: CallOverrides): Promise; 225 | 226 | totalSupply(overrides?: CallOverrides): Promise; 227 | 228 | transfer( 229 | to: PromiseOrValue, 230 | amount: PromiseOrValue, 231 | overrides?: Overrides & { from?: PromiseOrValue } 232 | ): Promise; 233 | 234 | transferFrom( 235 | from: PromiseOrValue, 236 | to: PromiseOrValue, 237 | amount: PromiseOrValue, 238 | overrides?: Overrides & { from?: PromiseOrValue } 239 | ): Promise; 240 | 241 | callStatic: { 242 | allowance( 243 | owner: PromiseOrValue, 244 | spender: PromiseOrValue, 245 | overrides?: CallOverrides 246 | ): Promise; 247 | 248 | approve( 249 | spender: PromiseOrValue, 250 | amount: PromiseOrValue, 251 | overrides?: CallOverrides 252 | ): Promise; 253 | 254 | balanceOf( 255 | account: PromiseOrValue, 256 | overrides?: CallOverrides 257 | ): Promise; 258 | 259 | decimals(overrides?: CallOverrides): Promise; 260 | 261 | name(overrides?: CallOverrides): Promise; 262 | 263 | symbol(overrides?: CallOverrides): Promise; 264 | 265 | totalSupply(overrides?: CallOverrides): Promise; 266 | 267 | transfer( 268 | to: PromiseOrValue, 269 | amount: PromiseOrValue, 270 | overrides?: CallOverrides 271 | ): Promise; 272 | 273 | transferFrom( 274 | from: PromiseOrValue, 275 | to: PromiseOrValue, 276 | amount: PromiseOrValue, 277 | overrides?: CallOverrides 278 | ): Promise; 279 | }; 280 | 281 | filters: { 282 | "Approval(address,address,uint256)"( 283 | owner?: PromiseOrValue | null, 284 | spender?: PromiseOrValue | null, 285 | value?: null 286 | ): ApprovalEventFilter; 287 | Approval( 288 | owner?: PromiseOrValue | null, 289 | spender?: PromiseOrValue | null, 290 | value?: null 291 | ): ApprovalEventFilter; 292 | 293 | "Transfer(address,address,uint256)"( 294 | from?: PromiseOrValue | null, 295 | to?: PromiseOrValue | null, 296 | value?: null 297 | ): TransferEventFilter; 298 | Transfer( 299 | from?: PromiseOrValue | null, 300 | to?: PromiseOrValue | null, 301 | value?: null 302 | ): TransferEventFilter; 303 | }; 304 | 305 | estimateGas: { 306 | allowance( 307 | owner: PromiseOrValue, 308 | spender: PromiseOrValue, 309 | overrides?: CallOverrides 310 | ): Promise; 311 | 312 | approve( 313 | spender: PromiseOrValue, 314 | amount: PromiseOrValue, 315 | overrides?: Overrides & { from?: PromiseOrValue } 316 | ): Promise; 317 | 318 | balanceOf( 319 | account: PromiseOrValue, 320 | overrides?: CallOverrides 321 | ): Promise; 322 | 323 | decimals(overrides?: CallOverrides): Promise; 324 | 325 | name(overrides?: CallOverrides): Promise; 326 | 327 | symbol(overrides?: CallOverrides): Promise; 328 | 329 | totalSupply(overrides?: CallOverrides): Promise; 330 | 331 | transfer( 332 | to: PromiseOrValue, 333 | amount: PromiseOrValue, 334 | overrides?: Overrides & { from?: PromiseOrValue } 335 | ): Promise; 336 | 337 | transferFrom( 338 | from: PromiseOrValue, 339 | to: PromiseOrValue, 340 | amount: PromiseOrValue, 341 | overrides?: Overrides & { from?: PromiseOrValue } 342 | ): Promise; 343 | }; 344 | 345 | populateTransaction: { 346 | allowance( 347 | owner: PromiseOrValue, 348 | spender: PromiseOrValue, 349 | overrides?: CallOverrides 350 | ): Promise; 351 | 352 | approve( 353 | spender: PromiseOrValue, 354 | amount: PromiseOrValue, 355 | overrides?: Overrides & { from?: PromiseOrValue } 356 | ): Promise; 357 | 358 | balanceOf( 359 | account: PromiseOrValue, 360 | overrides?: CallOverrides 361 | ): Promise; 362 | 363 | decimals(overrides?: CallOverrides): Promise; 364 | 365 | name(overrides?: CallOverrides): Promise; 366 | 367 | symbol(overrides?: CallOverrides): Promise; 368 | 369 | totalSupply(overrides?: CallOverrides): Promise; 370 | 371 | transfer( 372 | to: PromiseOrValue, 373 | amount: PromiseOrValue, 374 | overrides?: Overrides & { from?: PromiseOrValue } 375 | ): Promise; 376 | 377 | transferFrom( 378 | from: PromiseOrValue, 379 | to: PromiseOrValue, 380 | amount: PromiseOrValue, 381 | overrides?: Overrides & { from?: PromiseOrValue } 382 | ): Promise; 383 | }; 384 | } 385 | -------------------------------------------------------------------------------- /typechain-types/openzeppelin-solidity/contracts/token/ERC20/extensions/index.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | export type { ERC20Burnable } from "./ERC20Burnable"; 5 | export type { IERC20Metadata } from "./IERC20Metadata"; 6 | -------------------------------------------------------------------------------- /typechain-types/openzeppelin-solidity/contracts/token/ERC20/index.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | import type * as extensions from "./extensions"; 5 | export type { extensions }; 6 | export type { ERC20 } from "./ERC20"; 7 | export type { IERC20 } from "./IERC20"; 8 | -------------------------------------------------------------------------------- /typechain-types/openzeppelin-solidity/contracts/token/ERC721/IERC721Receiver.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | import type { 5 | BaseContract, 6 | BigNumber, 7 | BigNumberish, 8 | BytesLike, 9 | CallOverrides, 10 | ContractTransaction, 11 | Overrides, 12 | PopulatedTransaction, 13 | Signer, 14 | utils, 15 | } from "ethers"; 16 | import type { FunctionFragment, Result } from "@ethersproject/abi"; 17 | import type { Listener, Provider } from "@ethersproject/providers"; 18 | import type { 19 | TypedEventFilter, 20 | TypedEvent, 21 | TypedListener, 22 | OnEvent, 23 | PromiseOrValue, 24 | } from "../../../../common"; 25 | 26 | export interface IERC721ReceiverInterface extends utils.Interface { 27 | functions: { 28 | "onERC721Received(address,address,uint256,bytes)": FunctionFragment; 29 | }; 30 | 31 | getFunction(nameOrSignatureOrTopic: "onERC721Received"): FunctionFragment; 32 | 33 | encodeFunctionData( 34 | functionFragment: "onERC721Received", 35 | values: [ 36 | PromiseOrValue, 37 | PromiseOrValue, 38 | PromiseOrValue, 39 | PromiseOrValue 40 | ] 41 | ): string; 42 | 43 | decodeFunctionResult( 44 | functionFragment: "onERC721Received", 45 | data: BytesLike 46 | ): Result; 47 | 48 | events: {}; 49 | } 50 | 51 | export interface IERC721Receiver extends BaseContract { 52 | connect(signerOrProvider: Signer | Provider | string): this; 53 | attach(addressOrName: string): this; 54 | deployed(): Promise; 55 | 56 | interface: IERC721ReceiverInterface; 57 | 58 | queryFilter( 59 | event: TypedEventFilter, 60 | fromBlockOrBlockhash?: string | number | undefined, 61 | toBlock?: string | number | undefined 62 | ): Promise>; 63 | 64 | listeners( 65 | eventFilter?: TypedEventFilter 66 | ): Array>; 67 | listeners(eventName?: string): Array; 68 | removeAllListeners( 69 | eventFilter: TypedEventFilter 70 | ): this; 71 | removeAllListeners(eventName?: string): this; 72 | off: OnEvent; 73 | on: OnEvent; 74 | once: OnEvent; 75 | removeListener: OnEvent; 76 | 77 | functions: { 78 | onERC721Received( 79 | operator: PromiseOrValue, 80 | from: PromiseOrValue, 81 | tokenId: PromiseOrValue, 82 | data: PromiseOrValue, 83 | overrides?: Overrides & { from?: PromiseOrValue } 84 | ): Promise; 85 | }; 86 | 87 | onERC721Received( 88 | operator: PromiseOrValue, 89 | from: PromiseOrValue, 90 | tokenId: PromiseOrValue, 91 | data: PromiseOrValue, 92 | overrides?: Overrides & { from?: PromiseOrValue } 93 | ): Promise; 94 | 95 | callStatic: { 96 | onERC721Received( 97 | operator: PromiseOrValue, 98 | from: PromiseOrValue, 99 | tokenId: PromiseOrValue, 100 | data: PromiseOrValue, 101 | overrides?: CallOverrides 102 | ): Promise; 103 | }; 104 | 105 | filters: {}; 106 | 107 | estimateGas: { 108 | onERC721Received( 109 | operator: PromiseOrValue, 110 | from: PromiseOrValue, 111 | tokenId: PromiseOrValue, 112 | data: PromiseOrValue, 113 | overrides?: Overrides & { from?: PromiseOrValue } 114 | ): Promise; 115 | }; 116 | 117 | populateTransaction: { 118 | onERC721Received( 119 | operator: PromiseOrValue, 120 | from: PromiseOrValue, 121 | tokenId: PromiseOrValue, 122 | data: PromiseOrValue, 123 | overrides?: Overrides & { from?: PromiseOrValue } 124 | ): Promise; 125 | }; 126 | } 127 | -------------------------------------------------------------------------------- /typechain-types/openzeppelin-solidity/contracts/token/ERC721/extensions/index.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | export type { ERC721Enumerable } from "./ERC721Enumerable"; 5 | export type { IERC721Enumerable } from "./IERC721Enumerable"; 6 | export type { IERC721Metadata } from "./IERC721Metadata"; 7 | -------------------------------------------------------------------------------- /typechain-types/openzeppelin-solidity/contracts/token/ERC721/index.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | import type * as extensions from "./extensions"; 5 | export type { extensions }; 6 | export type { ERC721 } from "./ERC721"; 7 | export type { IERC721 } from "./IERC721"; 8 | export type { IERC721Receiver } from "./IERC721Receiver"; 9 | -------------------------------------------------------------------------------- /typechain-types/openzeppelin-solidity/contracts/token/index.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | import type * as erc20 from "./ERC20"; 5 | export type { erc20 }; 6 | import type * as erc721 from "./ERC721"; 7 | export type { erc721 }; 8 | -------------------------------------------------------------------------------- /typechain-types/openzeppelin-solidity/contracts/utils/index.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | import type * as introspection from "./introspection"; 5 | export type { introspection }; 6 | -------------------------------------------------------------------------------- /typechain-types/openzeppelin-solidity/contracts/utils/introspection/ERC165.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | import type { 5 | BaseContract, 6 | BigNumber, 7 | BytesLike, 8 | CallOverrides, 9 | PopulatedTransaction, 10 | Signer, 11 | utils, 12 | } from "ethers"; 13 | import type { FunctionFragment, Result } from "@ethersproject/abi"; 14 | import type { Listener, Provider } from "@ethersproject/providers"; 15 | import type { 16 | TypedEventFilter, 17 | TypedEvent, 18 | TypedListener, 19 | OnEvent, 20 | PromiseOrValue, 21 | } from "../../../../common"; 22 | 23 | export interface ERC165Interface extends utils.Interface { 24 | functions: { 25 | "supportsInterface(bytes4)": FunctionFragment; 26 | }; 27 | 28 | getFunction(nameOrSignatureOrTopic: "supportsInterface"): FunctionFragment; 29 | 30 | encodeFunctionData( 31 | functionFragment: "supportsInterface", 32 | values: [PromiseOrValue] 33 | ): string; 34 | 35 | decodeFunctionResult( 36 | functionFragment: "supportsInterface", 37 | data: BytesLike 38 | ): Result; 39 | 40 | events: {}; 41 | } 42 | 43 | export interface ERC165 extends BaseContract { 44 | connect(signerOrProvider: Signer | Provider | string): this; 45 | attach(addressOrName: string): this; 46 | deployed(): Promise; 47 | 48 | interface: ERC165Interface; 49 | 50 | queryFilter( 51 | event: TypedEventFilter, 52 | fromBlockOrBlockhash?: string | number | undefined, 53 | toBlock?: string | number | undefined 54 | ): Promise>; 55 | 56 | listeners( 57 | eventFilter?: TypedEventFilter 58 | ): Array>; 59 | listeners(eventName?: string): Array; 60 | removeAllListeners( 61 | eventFilter: TypedEventFilter 62 | ): this; 63 | removeAllListeners(eventName?: string): this; 64 | off: OnEvent; 65 | on: OnEvent; 66 | once: OnEvent; 67 | removeListener: OnEvent; 68 | 69 | functions: { 70 | supportsInterface( 71 | interfaceId: PromiseOrValue, 72 | overrides?: CallOverrides 73 | ): Promise<[boolean]>; 74 | }; 75 | 76 | supportsInterface( 77 | interfaceId: PromiseOrValue, 78 | overrides?: CallOverrides 79 | ): Promise; 80 | 81 | callStatic: { 82 | supportsInterface( 83 | interfaceId: PromiseOrValue, 84 | overrides?: CallOverrides 85 | ): Promise; 86 | }; 87 | 88 | filters: {}; 89 | 90 | estimateGas: { 91 | supportsInterface( 92 | interfaceId: PromiseOrValue, 93 | overrides?: CallOverrides 94 | ): Promise; 95 | }; 96 | 97 | populateTransaction: { 98 | supportsInterface( 99 | interfaceId: PromiseOrValue, 100 | overrides?: CallOverrides 101 | ): Promise; 102 | }; 103 | } 104 | -------------------------------------------------------------------------------- /typechain-types/openzeppelin-solidity/contracts/utils/introspection/IERC165.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | import type { 5 | BaseContract, 6 | BigNumber, 7 | BytesLike, 8 | CallOverrides, 9 | PopulatedTransaction, 10 | Signer, 11 | utils, 12 | } from "ethers"; 13 | import type { FunctionFragment, Result } from "@ethersproject/abi"; 14 | import type { Listener, Provider } from "@ethersproject/providers"; 15 | import type { 16 | TypedEventFilter, 17 | TypedEvent, 18 | TypedListener, 19 | OnEvent, 20 | PromiseOrValue, 21 | } from "../../../../common"; 22 | 23 | export interface IERC165Interface extends utils.Interface { 24 | functions: { 25 | "supportsInterface(bytes4)": FunctionFragment; 26 | }; 27 | 28 | getFunction(nameOrSignatureOrTopic: "supportsInterface"): FunctionFragment; 29 | 30 | encodeFunctionData( 31 | functionFragment: "supportsInterface", 32 | values: [PromiseOrValue] 33 | ): string; 34 | 35 | decodeFunctionResult( 36 | functionFragment: "supportsInterface", 37 | data: BytesLike 38 | ): Result; 39 | 40 | events: {}; 41 | } 42 | 43 | export interface IERC165 extends BaseContract { 44 | connect(signerOrProvider: Signer | Provider | string): this; 45 | attach(addressOrName: string): this; 46 | deployed(): Promise; 47 | 48 | interface: IERC165Interface; 49 | 50 | queryFilter( 51 | event: TypedEventFilter, 52 | fromBlockOrBlockhash?: string | number | undefined, 53 | toBlock?: string | number | undefined 54 | ): Promise>; 55 | 56 | listeners( 57 | eventFilter?: TypedEventFilter 58 | ): Array>; 59 | listeners(eventName?: string): Array; 60 | removeAllListeners( 61 | eventFilter: TypedEventFilter 62 | ): this; 63 | removeAllListeners(eventName?: string): this; 64 | off: OnEvent; 65 | on: OnEvent; 66 | once: OnEvent; 67 | removeListener: OnEvent; 68 | 69 | functions: { 70 | supportsInterface( 71 | interfaceId: PromiseOrValue, 72 | overrides?: CallOverrides 73 | ): Promise<[boolean]>; 74 | }; 75 | 76 | supportsInterface( 77 | interfaceId: PromiseOrValue, 78 | overrides?: CallOverrides 79 | ): Promise; 80 | 81 | callStatic: { 82 | supportsInterface( 83 | interfaceId: PromiseOrValue, 84 | overrides?: CallOverrides 85 | ): Promise; 86 | }; 87 | 88 | filters: {}; 89 | 90 | estimateGas: { 91 | supportsInterface( 92 | interfaceId: PromiseOrValue, 93 | overrides?: CallOverrides 94 | ): Promise; 95 | }; 96 | 97 | populateTransaction: { 98 | supportsInterface( 99 | interfaceId: PromiseOrValue, 100 | overrides?: CallOverrides 101 | ): Promise; 102 | }; 103 | } 104 | -------------------------------------------------------------------------------- /typechain-types/openzeppelin-solidity/contracts/utils/introspection/index.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | export type { ERC165 } from "./ERC165"; 5 | export type { IERC165 } from "./IERC165"; 6 | -------------------------------------------------------------------------------- /typechain-types/openzeppelin-solidity/index.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | import type * as contracts from "./contracts"; 5 | export type { contracts }; 6 | --------------------------------------------------------------------------------