You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
2.1 KiB
Solidity
73 lines
2.1 KiB
Solidity
// SPDX-License-Identifier: MIT
|
|
// ERC721A Contracts v4.2.3
|
|
// Creators: Chiru Labs
|
|
|
|
pragma solidity ^0.8.4;
|
|
|
|
import '../ERC721A.sol';
|
|
|
|
contract ERC721AGasReporterMock is ERC721A {
|
|
constructor(string memory name_, string memory symbol_) ERC721A(name_, symbol_) {}
|
|
|
|
function safeMintOne(address to) public {
|
|
_safeMint(to, 1);
|
|
}
|
|
|
|
function mintOne(address to) public {
|
|
_mint(to, 1);
|
|
}
|
|
|
|
function safeMintTen(address to) public {
|
|
_safeMint(to, 10);
|
|
}
|
|
|
|
function mintTen(address to) public {
|
|
_mint(to, 10);
|
|
}
|
|
|
|
function transferTenAsc(address to) public {
|
|
unchecked {
|
|
transferFrom(msg.sender, to, 0);
|
|
transferFrom(msg.sender, to, 1);
|
|
transferFrom(msg.sender, to, 2);
|
|
transferFrom(msg.sender, to, 3);
|
|
transferFrom(msg.sender, to, 4);
|
|
transferFrom(msg.sender, to, 5);
|
|
transferFrom(msg.sender, to, 6);
|
|
transferFrom(msg.sender, to, 7);
|
|
transferFrom(msg.sender, to, 8);
|
|
transferFrom(msg.sender, to, 9);
|
|
}
|
|
}
|
|
|
|
function transferTenDesc(address to) public {
|
|
unchecked {
|
|
transferFrom(msg.sender, to, 9);
|
|
transferFrom(msg.sender, to, 8);
|
|
transferFrom(msg.sender, to, 7);
|
|
transferFrom(msg.sender, to, 6);
|
|
transferFrom(msg.sender, to, 5);
|
|
transferFrom(msg.sender, to, 4);
|
|
transferFrom(msg.sender, to, 3);
|
|
transferFrom(msg.sender, to, 2);
|
|
transferFrom(msg.sender, to, 1);
|
|
transferFrom(msg.sender, to, 0);
|
|
}
|
|
}
|
|
|
|
function transferTenAvg(address to) public {
|
|
unchecked {
|
|
transferFrom(msg.sender, to, 4);
|
|
transferFrom(msg.sender, to, 5);
|
|
transferFrom(msg.sender, to, 3);
|
|
transferFrom(msg.sender, to, 6);
|
|
transferFrom(msg.sender, to, 2);
|
|
transferFrom(msg.sender, to, 7);
|
|
transferFrom(msg.sender, to, 1);
|
|
transferFrom(msg.sender, to, 8);
|
|
transferFrom(msg.sender, to, 0);
|
|
transferFrom(msg.sender, to, 9);
|
|
}
|
|
}
|
|
}
|