-
-
Save kolya-t/9ad17ca99a249c14745ea715afb2ed15 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kolya-t@kolyat-WA50SRQ:~/IdeaProjects/navi-token$ node -v | |
v8.9.4 | |
kolya-t@kolyat-WA50SRQ:~/IdeaProjects/navi-token$ truffle version | |
Truffle v4.0.6 (core: 4.0.6) | |
Solidity v0.4.19 (solc-js) | |
kolya-t@kolyat-WA50SRQ:~/IdeaProjects/navi-token$ truffle compile | |
Compiling ./contracts/Migrations.sol... | |
Compiling ./contracts/NaviToken.sol... | |
Compiling zeppelin-solidity/contracts/math/SafeMath.sol... | |
Compiling zeppelin-solidity/contracts/ownership/Ownable.sol... | |
Compiling zeppelin-solidity/contracts/token/BasicToken.sol... | |
Compiling zeppelin-solidity/contracts/token/ERC20.sol... | |
Compiling zeppelin-solidity/contracts/token/ERC20Basic.sol... | |
Compiling zeppelin-solidity/contracts/token/StandardToken.sol... | |
Compilation warnings encountered: | |
/home/kolya-t/IdeaProjects/navi-token/contracts/Migrations.sol:11:3: Warning: No visibility specified. Defaulting to "public". | |
function Migrations() { | |
^ | |
Spanning multiple lines. | |
,/home/kolya-t/IdeaProjects/navi-token/contracts/Migrations.sol:15:3: Warning: No visibility specified. Defaulting to "public". | |
function setCompleted(uint completed) restricted { | |
^ | |
Spanning multiple lines. | |
,/home/kolya-t/IdeaProjects/navi-token/contracts/Migrations.sol:19:3: Warning: No visibility specified. Defaulting to "public". | |
function upgrade(address new_address) restricted { | |
^ | |
Spanning multiple lines. | |
,/home/kolya-t/IdeaProjects/navi-token/contracts/NaviToken.sol:40:2: Warning: No visibility specified. Defaulting to "public". | |
function NaviToken() { | |
^ | |
Spanning multiple lines. | |
,/home/kolya-t/IdeaProjects/navi-token/contracts/NaviToken.sol:58:2: Warning: No visibility specified. Defaulting to "public". | |
function batchAssignTokens(address[] _addr, uint[] _amounts, uint[] _defrostClass ) onlyOwner { | |
^ | |
Spanning multiple lines. | |
,/home/kolya-t/IdeaProjects/navi-token/contracts/NaviToken.sol:87:2: Warning: No visibility specified. Defaulting to "public". | |
function getBlockTimestamp() constant returns (uint256) { | |
^ | |
Spanning multiple lines. | |
,/home/kolya-t/IdeaProjects/navi-token/contracts/NaviToken.sol:91:2: Warning: No visibility specified. Defaulting to "public". | |
function elapsedMonthsFromICOStart() constant returns (int elapsed) { | |
^ | |
Spanning multiple lines. | |
,/home/kolya-t/IdeaProjects/navi-token/contracts/NaviToken.sol:95:2: Warning: No visibility specified. Defaulting to "public". | |
function getReserveAndTeamDefrostFactor() constant returns (uint) { | |
^ | |
Spanning multiple lines. | |
,/home/kolya-t/IdeaProjects/navi-token/contracts/NaviToken.sol:99:2: Warning: No visibility specified. Defaulting to "public". | |
function lagReserveAndTeamDefrost() constant returns (int) { | |
^ | |
Spanning multiple lines. | |
,/home/kolya-t/IdeaProjects/navi-token/contracts/NaviToken.sol:103:2: Warning: No visibility specified. Defaulting to "public". | |
function lagAdvisorsDefrost() constant returns (int) { | |
^ | |
Spanning multiple lines. | |
,/home/kolya-t/IdeaProjects/navi-token/contracts/NaviToken.sol:107:2: Warning: No visibility specified. Defaulting to "public". | |
function canDefrostReserveAndTeam() constant returns (bool) { | |
^ | |
Spanning multiple lines. | |
,/home/kolya-t/IdeaProjects/navi-token/contracts/NaviToken.sol:113:2: Warning: No visibility specified. Defaulting to "public". | |
function defrostReserveAndTeamTokens() onlyOwner { | |
^ | |
Spanning multiple lines. | |
,/home/kolya-t/IdeaProjects/navi-token/contracts/NaviToken.sol:139:2: Warning: No visibility specified. Defaulting to "public". | |
function canDefrostAdvisors() constant returns (bool) { | |
^ | |
Spanning multiple lines. | |
,/home/kolya-t/IdeaProjects/navi-token/contracts/NaviToken.sol:143:2: Warning: No visibility specified. Defaulting to "public". | |
function defrostAdvisorsTokens() onlyOwner { | |
^ | |
Spanning multiple lines. | |
,/home/kolya-t/IdeaProjects/navi-token/contracts/NaviToken.sol:164:2: Warning: No visibility specified. Defaulting to "public". | |
function getStartIcoTimestamp() constant returns (uint) { | |
^ | |
Spanning multiple lines. | |
,/home/kolya-t/IdeaProjects/navi-token/contracts/NaviToken.sol:168:2: Warning: No visibility specified. Defaulting to "public". | |
function stopBatchAssign() onlyOwner { | |
^ | |
Spanning multiple lines. | |
,/home/kolya-t/IdeaProjects/navi-token/contracts/NaviToken.sol:173:2: Warning: No visibility specified. Defaulting to "public". | |
function getAddressBalance(address addr) constant returns (uint256 balance) { | |
^ | |
Spanning multiple lines. | |
,/home/kolya-t/IdeaProjects/navi-token/contracts/NaviToken.sol:177:2: Warning: No visibility specified. Defaulting to "public". | |
function getAddressAndBalance(address addr) constant returns (address _address, uint256 _amount) { | |
^ | |
Spanning multiple lines. | |
,/home/kolya-t/IdeaProjects/navi-token/contracts/NaviToken.sol:182:2: Warning: No visibility specified. Defaulting to "public". | |
function setStopDefrost() onlyOwner { | |
^ | |
Spanning multiple lines. | |
,/home/kolya-t/IdeaProjects/navi-token/contracts/NaviToken.sol:95:2: Warning: Function state mutability can be restricted to pure | |
function getReserveAndTeamDefrostFactor() constant returns (uint) { | |
^ | |
Spanning multiple lines. | |
,/home/kolya-t/IdeaProjects/navi-token/contracts/NaviToken.sol:99:2: Warning: Function state mutability can be restricted to pure | |
function lagReserveAndTeamDefrost() constant returns (int) { | |
^ | |
Spanning multiple lines. | |
,/home/kolya-t/IdeaProjects/navi-token/contracts/NaviToken.sol:103:2: Warning: Function state mutability can be restricted to pure | |
function lagAdvisorsDefrost() constant returns (int) { | |
^ | |
Spanning multiple lines. | |
Writing artifacts to ./build/contracts | |
kolya-t@kolyat-WA50SRQ:~/IdeaProjects/navi-token$ truffle migrate | |
Using network 'development'. | |
Running migration: 1_initial_migration.js | |
Deploying Migrations... | |
... 0x3f56a3f0af42d6211754f601c8adbfe350b0f8abc34c4593f5df46cd845e59a5 | |
Migrations: 0x87ac60d436bf81c516bc07546e7ca307b0b9c2dd | |
Saving successful migration to network... | |
... 0x2db6f785d8a5415f058ebb5497711b41f2d430c37fe30fce1a5604d6b86a7aee | |
Saving artifacts... | |
Running migration: 2_deploy_contracts.js | |
Deploying NaviToken... | |
... 0xb4370044c77257664ed862f88e0f1a11c866470ed669ceea14ab0183ada638b1 | |
NaviToken: 0x7d6921af7c862ecf743ae29850dc485d8732a6b9 | |
NaviToken.address = 0x7d6921af7c862ecf743ae29850dc485d8732a6b9 | |
Saving successful migration to network... | |
The file /home/kolya-t/IdeaProjects/navi-token/migrations/../OUTPUTS/smart-contract-address.txt was saved! | |
... 0xde54491dbc402d65fce0aa032a3c6f9515a371f224b79aee314a743672a18d92 | |
Saving artifacts... | |
kolya-t@kolyat-WA50SRQ:~/IdeaProjects/navi-token$ node generateAssignAccounts.js | |
urlEthereumNode = http://localhost:8545 | |
numAccounts2Create = 15 | |
Web3 OK | |
check num accounts... | |
...num accounts OK | |
creating account 1 | |
1 - true account: 0xebd5aedd2516f0e56dbf05c043e15f2f0fa3cffb | |
creating account 2 | |
2 - true account: 0x201fba0cee1c5ad7b8d2e23405d0665860221968 | |
creating account 3 | |
3 - true account: 0xc938280e2fd59e3282b3abb752ef63830c1e36e6 | |
creating account 4 | |
4 - true account: 0x1e089d33a03546c4326e8e6f4a51e96776b02899 | |
creating account 5 | |
5 - true account: 0x6aaacd91355bb4ec829644ffaf58cd9eeb8aad32 | |
creating account 6 | |
6 - true account: 0x753917dd92e00045bde20102ead4999c6b7ba86e | |
creating account 7 | |
7 - true account: 0x68eb1ed307cd892062af8ed6c1f8cf0bb1aab5dd | |
creating account 8 | |
8 - true account: 0xa4b95008bb1bf9121103a9aa2ea51073fa768b0e | |
creating account 9 | |
9 - true account: 0xc445c3fc10f5ec826ba010cf206330ae9d0f9c15 | |
0 - fake account: 0x2d0c80fe63ccc7692ae00bf644de47efb9e9a046 | |
1 - fake account: 0x68cc9cab5baded508bf2d990ca4bb84d1aa019f8 | |
2 - fake account: 0x690f3d72f7ae06fd2b1d4aa87bf2c49527776fe3 | |
3 - fake account: 0x857b3a794313fea50617fdadcb9d5889bb28e92d | |
4 - fake account: 0xd2fd3abd23e01385e770e4a70bd1741d45153adc | |
5 - fake account: 0x4cc46b7d351738404fa5336276338602de306b53 | |
sumAmounts = 906447 | |
kolya-t@kolyat-WA50SRQ:~/IdeaProjects/navi-token$ node AssignTokensScheduler.js | |
----------------------------------------------------- | |
urlEthereumNode = http://localhost:8545 | |
ownerPwd = passwordhere | |
chunkSize = 20 | |
filePathAccountsAmounts = /home/kolya-t/IdeaProjects/navi-token/OUTPUTS/generated_input_accounts_amounts.txt | |
assignIntervalSec = 20000 | |
contractAddress = 0x7d6921af7c862ecf743ae29850dc485d8732a6b9 | |
----------------------------------------------------- | |
contractaddress = 0x7d6921af7c862ecf743ae29850dc485d8732a6b9 owner pwd = passwordhere | |
naviContract = [object Object] | |
abi = [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object] | |
NUM ACCOUNTS = 16 | |
intervalSec = 20000 | |
OWNER: getAddressBalance worked : 2e+26 | |
timerAssignFunction scheduler call ............................. cntTimer = 0 | |
from = 0 - to = 20 | |
timer stopped ////////////////////////////////// | |
numToSend = 15 - vaddr.length = 15 - vamounts.length = 15 | |
calling timerAssignFunction ....... | |
param = 0x7d6921af7c862ecf743ae29850dc485d8732a6b9 passwordhere 15 | |
Unlocking coinbase account (if not testrpc) | |
unlockAccount OK | |
estimating gas... | |
estimate = 82267 | |
gasLimit = 6721975 | |
gasOk = 1660340 | |
...END -> cntTimer = 0 | |
....................................................................... | |
batchAssignTokens OK:0x1a687cc006386bce0127d92da9ac5154bea574da7c5f819595846a6d323b715c | |
kolya-t@kolyat-WA50SRQ:~/IdeaProjects/navi-token$ node verifyBatchAssignNormalInvestor.js | |
urlEthereumNode = http://localhost:8545 | |
ownerPwd = passwordhere | |
filePathAccountsAmounts = /home/kolya-t/IdeaProjects/navi-token/OUTPUTS/generated_input_accounts_amounts.txt | |
contractAddress = 0x7d6921af7c862ecf743ae29850dc485d8732a6b9 | |
Web3 OK | |
unlockAccount OK | |
0xebd5aedd2516f0e56dbf05c043e15f2f0fa3cffb - classInvestor = 2 | |
0x201fba0cee1c5ad7b8d2e23405d0665860221968 - classInvestor = 2 | |
0xc938280e2fd59e3282b3abb752ef63830c1e36e6 - classInvestor = 2 | |
0x1e089d33a03546c4326e8e6f4a51e96776b02899 - classInvestor = 1 | |
0x6aaacd91355bb4ec829644ffaf58cd9eeb8aad32 - classInvestor = 1 | |
0x753917dd92e00045bde20102ead4999c6b7ba86e - classInvestor = 1 | |
0x68eb1ed307cd892062af8ed6c1f8cf0bb1aab5dd - classInvestor = 0 | |
0xa4b95008bb1bf9121103a9aa2ea51073fa768b0e - classInvestor = 0 | |
0xc445c3fc10f5ec826ba010cf206330ae9d0f9c15 - classInvestor = 0 | |
0x2d0c80fe63ccc7692ae00bf644de47efb9e9a046 - classInvestor = 0 | |
0x68cc9cab5baded508bf2d990ca4bb84d1aa019f8 - classInvestor = 0 | |
0x690f3d72f7ae06fd2b1d4aa87bf2c49527776fe3 - classInvestor = 0 | |
0x857b3a794313fea50617fdadcb9d5889bb28e92d - classInvestor = 0 | |
0xd2fd3abd23e01385e770e4a70bd1741d45153adc - classInvestor = 0 | |
0x4cc46b7d351738404fa5336276338602de306b53 - classInvestor = 0 | |
getAddressBalance called : 7.5474e+22 tokens found for 0x68eb1ed307cd892062af8ed6c1f8cf0bb1aab5dd ---- good = 7.5474e+22 | |
getAddressBalance called : 8.2641e+22 tokens found for 0xa4b95008bb1bf9121103a9aa2ea51073fa768b0e ---- good = 8.2641e+22 | |
getAddressBalance called : 5.888e+22 tokens found for 0xc445c3fc10f5ec826ba010cf206330ae9d0f9c15 ---- good = 5.888e+22 | |
getAddressBalance called : 7.856e+21 tokens found for 0x2d0c80fe63ccc7692ae00bf644de47efb9e9a046 ---- good = 7.856e+21 | |
getAddressBalance called : 4.584e+21 tokens found for 0x68cc9cab5baded508bf2d990ca4bb84d1aa019f8 ---- good = 4.584e+21 | |
getAddressBalance called : 4.0642e+22 tokens found for 0x690f3d72f7ae06fd2b1d4aa87bf2c49527776fe3 ---- good = 4.0642e+22 | |
getAddressBalance called : 9.5584e+22 tokens found for 0x857b3a794313fea50617fdadcb9d5889bb28e92d ---- good = 9.5584e+22 | |
getAddressBalance called : 9.3089e+22 tokens found for 0xd2fd3abd23e01385e770e4a70bd1741d45153adc ---- good = 9.3089e+22 | |
getAddressBalance called : 7.422e+22 tokens found for 0x4cc46b7d351738404fa5336276338602de306b53 ---- good = 7.422e+22 | |
CHECK OK : all tokens were correctly assigned | |
0x68eb1ed307cd892062af8ed6c1f8cf0bb1aab5dd - AMOUNT MATCHING OK = 7.5474e+22 -> numTokensAssigned = 0 | |
0xa4b95008bb1bf9121103a9aa2ea51073fa768b0e - AMOUNT MATCHING OK = 8.2641e+22 -> numTokensAssigned = 0 | |
0xc445c3fc10f5ec826ba010cf206330ae9d0f9c15 - AMOUNT MATCHING OK = 5.888e+22 -> numTokensAssigned = 0 | |
0x2d0c80fe63ccc7692ae00bf644de47efb9e9a046 - AMOUNT MATCHING OK = 7.856e+21 -> numTokensAssigned = 0 | |
0x68cc9cab5baded508bf2d990ca4bb84d1aa019f8 - AMOUNT MATCHING OK = 4.584e+21 -> numTokensAssigned = 0 | |
0x690f3d72f7ae06fd2b1d4aa87bf2c49527776fe3 - AMOUNT MATCHING OK = 4.0642e+22 -> numTokensAssigned = 0 | |
0x857b3a794313fea50617fdadcb9d5889bb28e92d - AMOUNT MATCHING OK = 9.5584e+22 -> numTokensAssigned = 0 | |
0xd2fd3abd23e01385e770e4a70bd1741d45153adc - AMOUNT MATCHING OK = 9.3089e+22 -> numTokensAssigned = 0 | |
0x4cc46b7d351738404fa5336276338602de306b53 - AMOUNT MATCHING OK = 7.422e+22 -> numTokensAssigned = 0 | |
CHECK NUMBER of TOKEN OK: SENT = 532970 - READ in blockchain = 532970 | |
END ----------------------------------------------- | |
kolya-t@kolyat-WA50SRQ:~/IdeaProjects/navi-token$ node TryDefrostAdvisors.js | |
urlEthereumNode = http://localhost:8545 | |
ownerPwd = passwordhere | |
filePathAccountsAmounts = /home/kolya-t/IdeaProjects/navi-token/OUTPUTS/generated_input_accounts_amounts.txt | |
contractAddress = 0x7d6921af7c862ecf743ae29850dc485d8732a6b9 | |
------------------->> startico = 1518279365 | |
------------------->> rightnow = 1518279402 | |
------------------->> elapsed months from ICO Start = 0 | |
------------------->> canDefrost = false | |
------------------->> lagAdvisorsDefrost = 6 | |
kolya-t@kolyat-WA50SRQ:~/IdeaProjects/navi-token$ node increaseTime.js 6 | |
time increased | |
kolya-t@kolyat-WA50SRQ:~/IdeaProjects/navi-token$ node TryDefrostAdvisors.js | |
urlEthereumNode = http://localhost:8545 | |
ownerPwd = passwordhere | |
filePathAccountsAmounts = /home/kolya-t/IdeaProjects/navi-token/OUTPUTS/generated_input_accounts_amounts.txt | |
contractAddress = 0x7d6921af7c862ecf743ae29850dc485d8732a6b9 | |
------------------->> startico = 1518279365 | |
------------------->> rightnow = 1533831750 | |
------------------->> elapsed months from ICO Start = 6 | |
------------------->> canDefrost = true | |
------------------->> lagAdvisorsDefrost = 6 | |
unlockAccount OK | |
NUM ACCOUNTS = 16 | |
_____________________________________________________________________________ | |
into tryDefrostAdvisors() | |
defrostAdvisorsTokens OK:0x7fedb71016e56479f508f10fbfca7c4bf7abe69b9eb48a2e264f06cdc2a4f56e | |
ADVISORS => 0xebd5aedd2516f0e56dbf05c043e15f2f0fa3cffb => amount defrosted: 1.838e+21 | |
ADVISORS => 0x201fba0cee1c5ad7b8d2e23405d0665860221968 => amount defrosted: 9.4282e+22 | |
ADVISORS => 0xc938280e2fd59e3282b3abb752ef63830c1e36e6 => amount defrosted: 3.9257e+22 | |
Defrost END Defrost END Defrost END Defrost END -------------------------- | |
ADVISORS OK => 0xebd5aedd2516f0e56dbf05c043e15f2f0fa3cffb => amount to defrost: 1838 => amount defrosted:1838 | |
ADVISORS OK => 0x201fba0cee1c5ad7b8d2e23405d0665860221968 => amount to defrost: 94282 => amount defrosted:94282 | |
ADVISORS OK => 0xc938280e2fd59e3282b3abb752ef63830c1e36e6 => amount to defrost: 39257 => amount defrosted:39257 | |
kolya-t@kolyat-WA50SRQ:~/IdeaProjects/navi-token$ node TryDefrostReserveAndTeam.js | |
urlEthereumNode = http://localhost:8545 | |
ownerPwd = passwordhere | |
filePathAccountsAmounts = /home/kolya-t/IdeaProjects/navi-token/OUTPUTS/generated_input_accounts_amounts.txt | |
contractAddress = 0x7d6921af7c862ecf743ae29850dc485d8732a6b9 | |
------------------->> startico = 1518279365 | |
------------------->> rightnow = 1533831767 | |
------------------->> elapsed months from ICO Start = 6 | |
------------------->> canDefrost = true | |
------------------->> lagReserveAndTeamDefrost = 6 | |
------------------->> lagAdvisorsDefrost = 6 | |
------------------->> reserveAndTeamDefrostFactor = 30 | |
unlockAccount OK | |
NUM ACCOUNTS = 16 | |
_____________________________________________________________________________ | |
into tryDefrostReserveAndTeam() | |
Error: calling defrostReserveAndTeamTokens => Error: VM Exception while processing transaction: revert | |
kolya-t@kolyat-WA50SRQ:~/IdeaProjects/navi-token$ node increaseTime.js 1 | |
time increased | |
kolya-t@kolyat-WA50SRQ:~/IdeaProjects/navi-token$ node TryDefrostReserveAndTeam.js | |
urlEthereumNode = http://localhost:8545 | |
ownerPwd = passwordhere | |
filePathAccountsAmounts = /home/kolya-t/IdeaProjects/navi-token/OUTPUTS/generated_input_accounts_amounts.txt | |
contractAddress = 0x7d6921af7c862ecf743ae29850dc485d8732a6b9 | |
------------------->> startico = 1518279365 | |
------------------->> rightnow = 1536424260 | |
------------------->> elapsed months from ICO Start = 7 | |
------------------->> canDefrost = true | |
------------------->> lagReserveAndTeamDefrost = 6 | |
------------------->> lagAdvisorsDefrost = 6 | |
------------------->> reserveAndTeamDefrostFactor = 30 | |
unlockAccount OK | |
NUM ACCOUNTS = 16 | |
_____________________________________________________________________________ | |
into tryDefrostReserveAndTeam() | |
defrostReserveAndTeamTokens OK:0xeebb769460c3b21bf47a81af2d059ae96a593c769d130593ec3a088a857259e9 | |
RESERVEandTEAM => 0x1e089d33a03546c4326e8e6f4a51e96776b02899 => amount defrosted: 2.468766666666666666666e+21 | |
RESERVEandTEAM => 0x6aaacd91355bb4ec829644ffaf58cd9eeb8aad32 => amount defrosted: 2.380366666666666666666e+21 | |
RESERVEandTEAM => 0x753917dd92e00045bde20102ead4999c6b7ba86e => amount defrosted: 3.087533333333333333333e+21 | |
Defrost END Defrost END Defrost END Defrost END -------------------------- | |
RESERVEandTEAM OK => 0x1e089d33a03546c4326e8e6f4a51e96776b02899 => amount to defrost: 2468.766666666667 => amount defrosted:2469 | |
RESERVEandTEAM OK => 0x6aaacd91355bb4ec829644ffaf58cd9eeb8aad32 => amount to defrost: 2380.366666666667 => amount defrosted:2380 | |
RESERVEandTEAM OK => 0x753917dd92e00045bde20102ead4999c6b7ba86e => amount to defrost: 3087.5333333333333 => amount defrosted:3088 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment