mirror of
https://github.com/vacp2p/minime.git
synced 2026-01-09 13:38:07 -05:00
lint
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
| contracts/MiniMeToken.sol:MiniMeToken contract | | | | | |
|
| contracts/MiniMeToken.sol:MiniMeToken contract | | | | | |
|
||||||
|------------------------------------------------|-----------------|--------|--------|---------|---------|
|
|------------------------------------------------|-----------------|--------|--------|---------|---------|
|
||||||
| Deployment Cost | Deployment Size | | | | |
|
| Deployment Cost | Deployment Size | | | | |
|
||||||
| 1711400 | 10009 | | | | |
|
| 1804309 | 10009 | | | | |
|
||||||
| Function Name | min | avg | median | max | # calls |
|
| Function Name | min | avg | median | max | # calls |
|
||||||
| allowance | 0 | 62 | 0 | 808 | 13 |
|
| allowance | 0 | 62 | 0 | 808 | 13 |
|
||||||
| approve | 0 | 15018 | 14715 | 31708 | 10 |
|
| approve | 0 | 15018 | 14715 | 31708 | 10 |
|
||||||
| approveAndCall | 0 | 31201 | 0 | 93603 | 3 |
|
| approveAndCall | 0 | 31201 | 0 | 93603 | 3 |
|
||||||
| balanceOf | 0 | 406 | 0 | 2753 | 59 |
|
| balanceOf | 0 | 555 | 0 | 2753 | 63 |
|
||||||
| balanceOfAt | 0 | 1308 | 377 | 4027 | 54 |
|
| balanceOfAt | 0 | 1308 | 377 | 4027 | 54 |
|
||||||
| changeController | 0 | 507 | 0 | 3558 | 10 |
|
| changeController | 0 | 507 | 0 | 3558 | 10 |
|
||||||
| claimTokens | 9537 | 41281 | 57154 | 57154 | 3 |
|
| claimTokens | 9537 | 41281 | 57154 | 57154 | 3 |
|
||||||
@@ -15,13 +15,13 @@
|
|||||||
| decimals | 0 | 0 | 0 | 0 | 9 |
|
| decimals | 0 | 0 | 0 | 0 | 9 |
|
||||||
| destroyTokens | 2308 | 5206 | 4310 | 9001 | 3 |
|
| destroyTokens | 2308 | 5206 | 4310 | 9001 | 3 |
|
||||||
| enableTransfers | 0 | 0 | 0 | 0 | 3 |
|
| enableTransfers | 0 | 0 | 0 | 0 | 3 |
|
||||||
| generateTokens | 0 | 16254 | 0 | 95808 | 54 |
|
| generateTokens | 0 | 16069 | 0 | 95808 | 54 |
|
||||||
| name | 0 | 0 | 0 | 0 | 9 |
|
| name | 0 | 0 | 0 | 0 | 9 |
|
||||||
| parentSnapShotBlock | 0 | 0 | 0 | 0 | 10 |
|
| parentSnapShotBlock | 0 | 0 | 0 | 0 | 10 |
|
||||||
| parentToken | 0 | 0 | 0 | 0 | 10 |
|
| parentToken | 0 | 0 | 0 | 0 | 10 |
|
||||||
| receive | 7960 | 7979 | 7979 | 7998 | 2 |
|
| receive | 7960 | 7979 | 7979 | 7998 | 2 |
|
||||||
| symbol | 0 | 0 | 0 | 0 | 9 |
|
| symbol | 0 | 0 | 0 | 0 | 9 |
|
||||||
| totalSupply | 0 | 201 | 0 | 1911 | 19 |
|
| totalSupply | 0 | 315 | 0 | 2480 | 20 |
|
||||||
| totalSupplyAt | 0 | 1349 | 0 | 3659 | 11 |
|
| totalSupplyAt | 0 | 1349 | 0 | 3659 | 11 |
|
||||||
| transfer | 526 | 39282 | 50395 | 93084 | 20 |
|
| transfer | 526 | 39282 | 50395 | 93084 | 20 |
|
||||||
| transferFrom | 0 | 16837 | 3495 | 66596 | 7 |
|
| transferFrom | 0 | 16837 | 3495 | 66596 | 7 |
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ ReceiveTest:testDeployment() (gas: 26595)
|
|||||||
ReceiveTest:testRejectingEther() (gas: 18691)
|
ReceiveTest:testRejectingEther() (gas: 18691)
|
||||||
ReentrancyTest:testAttack() (gas: 229394)
|
ReentrancyTest:testAttack() (gas: 229394)
|
||||||
TestSnapshotReads:testDeployment() (gas: 26550)
|
TestSnapshotReads:testDeployment() (gas: 26550)
|
||||||
TestSnapshotReads:testSnapshotReads() (gas: 747396)
|
TestSnapshotReads:testSnapshotReads() (gas: 755601)
|
||||||
TransferTest:testDeployment() (gas: 26617)
|
TransferTest:testDeployment() (gas: 26617)
|
||||||
TransferTest:testDoubleTransfer() (gas: 92425)
|
TransferTest:testDoubleTransfer() (gas: 92425)
|
||||||
TransferTest:testDoubleTransfer2() (gas: 70578)
|
TransferTest:testDoubleTransfer2() (gas: 70578)
|
||||||
|
|||||||
@@ -922,13 +922,12 @@ contract TestSnapshotReads is MiniMeTokenTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function testSnapshotReads() public {
|
function testSnapshotReads() public {
|
||||||
|
|
||||||
assertEq(minimeToken.totalSupply(), 0, "initial total supply should be correct");
|
assertEq(minimeToken.totalSupply(), 0, "initial total supply should be correct");
|
||||||
assertEq(minimeToken.balanceOf(accounts[0]), 0, "initial balance of account 0 should be correct");
|
assertEq(minimeToken.balanceOf(accounts[0]), 0, "initial balance of account 0 should be correct");
|
||||||
assertEq(minimeToken.balanceOf(accounts[1]), 0, "initial balance of account 1 should be correct");
|
assertEq(minimeToken.balanceOf(accounts[1]), 0, "initial balance of account 1 should be correct");
|
||||||
assertEq(minimeToken.balanceOf(accounts[2]), 0, "initial balance of account 2 should be correct");
|
assertEq(minimeToken.balanceOf(accounts[2]), 0, "initial balance of account 2 should be correct");
|
||||||
assertEq(minimeToken.balanceOf(accounts[3]), 0, "initial balance of account 3 should be correct");
|
assertEq(minimeToken.balanceOf(accounts[3]), 0, "initial balance of account 3 should be correct");
|
||||||
|
|
||||||
_generateTokens(accounts[0], 10);
|
_generateTokens(accounts[0], 10);
|
||||||
_generateTokens(accounts[1], 5);
|
_generateTokens(accounts[1], 5);
|
||||||
_generateTokens(accounts[2], 3);
|
_generateTokens(accounts[2], 3);
|
||||||
|
|||||||
Reference in New Issue
Block a user