Skip to content

Instantly share code, notes, and snippets.

@Daniel-VDM
Last active February 13, 2020 00:44
Show Gist options
  • Select an option

  • Save Daniel-VDM/6a275e3c06147438065282a1ed00f7a6 to your computer and use it in GitHub Desktop.

Select an option

Save Daniel-VDM/6a275e3c06147438065282a1ed00f7a6 to your computer and use it in GitHub Desktop.
CLI Version: Harmony (C) 2020. hmy, version v268-f8dbabe-dirty (danielvdm@harmony.one 2020-02-12T15:16:08-0800)
Waiting for epoch 1 (or later)
Running: load_keys
[123145537851392] 2020-02-13 00:40:11.345161 : {"address": "one103q7qe5t2505lypvltkqtddaef5tzfxwsse4z7", "balances": [{"shard": 0, "amount": 70.38091038095239}, {"shard": 1, "amount": 0.0}], "time-utc": "2020-02-13 00:40:11.345051"}
[123145516830720] 2020-02-13 00:40:11.358061 : {"address": "one1uyshu2jgv8w465yc8kkny36thlt2wvel89tcmg", "balances": [{"shard": 0, "amount": 0.0}, {"shard": 1, "amount": 75.01409671428571}], "time-utc": "2020-02-13 00:40:11.357984"}
[123145543106560] 2020-02-13 00:40:11.360308 : {"address": "one1a0x3d6xpmr6f8wsyaxd9v36pytvp48zckswvv9", "balances": [{"shard": 0, "amount": 0.0}, {"shard": 1, "amount": 75.71424371428571}], "time-utc": "2020-02-13 00:40:11.360227"}
[123145501065216] 2020-02-13 00:40:11.360646 : {"address": "one1r4zyyjqrulf935a479sgqlpa78kz7zlcg2jfen", "balances": [{"shard": 0, "amount": 0.6}, {"shard": 1, "amount": 0.7}], "time-utc": "2020-02-13 00:40:11.360619"}
[123145553616896] 2020-02-13 00:40:11.362599 : {"address": "one1ghkz3frhske7emk79p7v2afmj4a5t0kmjyt4s5", "balances": [{"shard": 0, "amount": 0.0}, {"shard": 1, "amount": 0.0}], "time-utc": "2020-02-13 00:40:11.362444"}
[123145490554880] 2020-02-13 00:40:11.366375 : {"address": "one1m6m0ll3q7ljdqgmth2t5j7dfe6stykucpj2nr5", "balances": [{"shard": 0, "amount": 0.0}, {"shard": 1, "amount": 74.72008171428571}], "time-utc": "2020-02-13 00:40:11.366279"}
[123145506320384] 2020-02-13 00:40:11.369247 : {"address": "one1a50tun737ulcvwy0yvve0pvu5skq0kjargvhwe", "balances": [{"shard": 0, "amount": 69.38088938095238}, {"shard": 1, "amount": 0.0}], "time-utc": "2020-02-13 00:40:11.369182"}
[123145527341056] 2020-02-13 00:40:11.369506 : {"address": "one1d2rngmem4x2c6zxsjjz29dlah0jzkr0k2n88wc", "balances": [{"shard": 0, "amount": 105.04757704761904}, {"shard": 1, "amount": 0.0}], "time-utc": "2020-02-13 00:40:11.369481"}
[123145564127232] 2020-02-13 00:40:11.369696 : {"address": "one1p7ht2d4kl8ve7a8jxw746yfnx4wnfxtp8jqxwe", "balances": [{"shard": 0, "amount": 0.0}, {"shard": 1, "amount": 0.0}], "time-utc": "2020-02-13 00:40:11.369674"}
[123145495810048] 2020-02-13 00:40:11.379710 : {"address": "one1pdv9lrdwl0rg5vglh4xtyrv3wjk3wsqket7zxy", "balances": [{"shard": 0, "amount": 69.38508938095238}, {"shard": 1, "amount": 0.0}], "time-utc": "2020-02-13 00:40:11.379622"}
[123145537851392] 2020-02-13 00:40:11.619766 : {"address": "one1pf75h0t4am90z8uv3y0dgunfqp4lj8wr3t5rsp", "balances": [{"shard": 0, "amount": 70.38091038095239}, {"shard": 1, "amount": 0.0}], "time-utc": "2020-02-13 00:40:11.619684"}
[123145553616896] 2020-02-13 00:40:11.628431 : {"address": "one1z05g55zamqzfw9qs432n33gycdmyvs38xjemyl", "balances": [{"shard": 0, "amount": 10.666666666666666}, {"shard": 1, "amount": 0.0}], "time-utc": "2020-02-13 00:40:11.628396"}
[123145564127232] 2020-02-13 00:40:11.636209 : {"address": "one1d7jfnr6yraxnrycgaemyktkmhmajhp8kl0yahv", "balances": [{"shard": 0, "amount": 0.0}, {"shard": 1, "amount": 0.0}], "time-utc": "2020-02-13 00:40:11.636174"}
[123145490554880] 2020-02-13 00:40:11.638978 : {"address": "one1658znfwf40epvy7e46cqrmzyy54h4n0qa73nep", "balances": [{"shard": 0, "amount": 0.0}, {"shard": 1, "amount": 115.71424371428571}], "time-utc": "2020-02-13 00:40:11.638949"}
[123145506320384] 2020-02-13 00:40:11.640005 : {"address": "one1ljznytjyn269azvszjlcqvpcj6hjm822yrcp2e", "balances": [{"shard": 0, "amount": 0.0}, {"shard": 1, "amount": 16.0}], "time-utc": "2020-02-13 00:40:11.639967"}
[123145495810048] 2020-02-13 00:40:11.644328 : {"address": "one16qsd5ant9v94jrs89mruzx62h7ekcfxmduh2rx", "balances": [{"shard": 0, "amount": 0.0}, {"shard": 1, "amount": 74.71422271428571}], "time-utc": "2020-02-13 00:40:11.644286"}
[123145527341056] 2020-02-13 00:40:11.650649 : {"address": "one1spshr72utf6rwxseaz339j09ed8p6f8ke370zj", "balances": [{"shard": 0, "amount": 69.58074238095239}, {"shard": 1, "amount": 0.0}], "time-utc": "2020-02-13 00:40:11.650558"}
[123145516830720] 2020-02-13 00:40:11.656639 : {"address": "one1est2gxcvavmtnzc7mhd73gzadm3xxcv5zczdtw", "balances": [{"shard": 0, "amount": 0.0}, {"shard": 1, "amount": 75.71424371428571}], "time-utc": "2020-02-13 00:40:11.656615"}
[123145543106560] 2020-02-13 00:40:11.662379 : {"address": "one12fuf7x9rgtdgqg7vgq0962c556m3p7afsxgvll", "balances": [{"shard": 0, "amount": 70.38091038095239}, {"shard": 1, "amount": 0.0}], "time-utc": "2020-02-13 00:40:11.662318"}
[123145501065216] 2020-02-13 00:40:11.671266 : {"address": "one129r9pj3sk0re76f7zs3qz92rggmdgjhtwge62k", "balances": [{"shard": 0, "amount": 0.0}, {"shard": 1, "amount": 75.71424371428571}], "time-utc": "2020-02-13 00:40:11.671244"}
== Running staking integration test ==

== Start test: create_simple_validators ==

Overriding BLS key file at: /tmp/simple_val/_Test_key_bls0.key 
Generated BLS key:
{
    "public-key": "14cc7d40ff62c93ddcfc1f392270fc858736c467bf2fc811e8d46f3615bcf78d880b6c47cf6ed839a37b1b60758a1517",
    "private-key": "878c178a424edab5578d31067ca6cab0b11ac3919199f670998495d0ab0b1c05",
    "encrypted-private-key-path": "/tmp/simple_val/_Test_key_bls0.key"
}
Added account key with name: _Test_key_validator0
Running: fund_account
Response: {
    "transaction-receipt": "0xbf82a58305f08eced55dc2164b0c84b080bf4251e64adab70763c12f295724f8",
    "blockchain-receipt": {
        "blockHash": "0x942c7f54a7a0c78a6cf066a2a8c374c4e09ba3f383d71be33ab5e17cc731512a",
        "blockNumber": "0x24",
        "contractAddress": null,
        "cumulativeGasUsed": "0x5208",
        "from": "one103q7qe5t2505lypvltkqtddaef5tzfxwsse4z7",
        "gasUsed": "0x5208",
        "logs": [],
        "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "shardID": 0,
        "status": "0x1",
        "to": "one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx",
        "transactionHash": "0xbf82a58305f08eced55dc2164b0c84b080bf4251e64adab70763c12f295724f8",
        "transactionIndex": "0x0"
    },
    "time-signed-utc": "2020-02-13 00:40:14.967592"
}
Balances for _Test_key_validator0 (one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx):
[
    {
        "shard": 0,
        "amount": 4.0
    },
    {
        "shard": 1,
        "amount": 0.0
    }
]

Sent create validator for one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx:
{
    "transaction-receipt": "0x5bc4aa747816c41fc08b73df3a05c5d4098ca48701bcac92ed001435119becb5"
}

Reference data for one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx: {
    "time_created": "2020-02-13 00:40:21.954144",
    "last_edit_epoch": 6,
    "pub_bls_keys": [
        "14cc7d40ff62c93ddcfc1f392270fc858736c467bf2fc811e8d46f3615bcf78d880b6c47cf6ed839a37b1b60758a1517"
    ],
    "amount": 3,
    "rate": 0.36783509401067993,
    "max_rate": 0.5797714414917177,
    "max_change_rate": 0.4437864292901269,
    "max_total_delegation": 7,
    "min_self_delegation": 1,
    "keystore_name": "_Test_key_validator0"
}

== Passed test: create_simple_validators ==

Sleeping 30 seconds for finality...

== Start test: check_validators ==

Current validators:
{
    "id": "0",
    "jsonrpc": "2.0",
    "result": [
        "one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx"
    ]
}

Current ACTIVE validators:
{
    "id": "0",
    "jsonrpc": "2.0",
    "result": [
        "one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx"
    ]
}

=====================================================================================

Validator address: one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx
Validator in pool of validators.
Validator in pool of ACTIVE validators.
Validator information:
{
    "id": "0",
    "jsonrpc": "2.0",
    "result": {
        "active": true,
        "bls-public-keys": [
            "14cc7d40ff62c93ddcfc1f392270fc858736c467bf2fc811e8d46f3615bcf78d880b6c47cf6ed839a37b1b60758a1517"
        ],
        "commission": {
            "max-change-rate": "0.443786429290126900",
            "max-rate": "0.579771441491717700",
            "rate": "0.367835094010679930"
        },
        "creation-height": 37,
        "description": {
            "details": "none",
            "identity": "test_account",
            "name": "_Test_key_validator0",
            "security_contact": "Daniel-VDM",
            "website": "harmony.one"
        },
        "max-total-delegation": 7000000000000000000,
        "min-self-delegation": 1000000000000000000,
        "one-address": "one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx"
    }
}
Reference data for one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx: {
    "time_created": "2020-02-13 00:40:21.954144",
    "last_edit_epoch": 6,
    "pub_bls_keys": [
        "14cc7d40ff62c93ddcfc1f392270fc858736c467bf2fc811e8d46f3615bcf78d880b6c47cf6ed839a37b1b60758a1517"
    ],
    "amount": 3,
    "rate": 0.36783509401067993,
    "max_rate": 0.5797714414917177,
    "max_change_rate": 0.4437864292901269,
    "max_total_delegation": 7,
    "min_self_delegation": 1,
    "keystore_name": "_Test_key_validator0"
}
Validator delegation:
{
    "id": "0",
    "jsonrpc": "2.0",
    "result": [
        {
            "Undelegations": [],
            "amount": 3000000000000000000,
            "delegator_address": "one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx",
            "reward": 0,
            "validator_address": "one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx"
        }
    ]
}

Validator edited/created this epoch

=====================================================================================


== Passed test: check_validators ==


== Start test: create_simple_delegators ==

Added account key with name: _Test_key_delegator0
Running: fund_account
Response: {
    "transaction-receipt": "0xca4654f44163e0768c820434190dc5562f6c361cbaae8ce4b30a6df2e1fe4ec9",
    "blockchain-receipt": {
        "blockHash": "0xa8ed6db58157a5a28676e936aceaca2daf791493337160aa8eda83bd0ec72073",
        "blockNumber": "0x29",
        "contractAddress": null,
        "cumulativeGasUsed": "0x5208",
        "from": "one103q7qe5t2505lypvltkqtddaef5tzfxwsse4z7",
        "gasUsed": "0x5208",
        "logs": [],
        "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "shardID": 0,
        "status": "0x1",
        "to": "one1nwp5nmzqxup7rgdvkk5vggvjueqs9dzqt643nm",
        "transactionHash": "0xca4654f44163e0768c820434190dc5562f6c361cbaae8ce4b30a6df2e1fe4ec9",
        "transactionIndex": "0x0"
    },
    "time-signed-utc": "2020-02-13 00:40:55.571983"
}
Balances for _Test_key_delegator0 (one1nwp5nmzqxup7rgdvkk5vggvjueqs9dzqt643nm):
[
    {
        "shard": 0,
        "amount": 2.0
    },
    {
        "shard": 1,
        "amount": 0.0
    }
]

Sent create delegator for one1nwp5nmzqxup7rgdvkk5vggvjueqs9dzqt643nm:
{
    "transaction-receipt": "0x4790696aad79e08056c54c228c544d89cc9e113f29665c6715317113ad7aa085"
}


== Passed test: create_simple_delegators ==

Sleeping 30 seconds for finality...

== Start test: check_delegators ==


=====================================================================================
Delegator address: one1nwp5nmzqxup7rgdvkk5vggvjueqs9dzqt643nm
Delegator delegation:
{
    "id": "0",
    "jsonrpc": "2.0",
    "result": [
        {
            "Undelegations": [],
            "amount": 1000000000000000000,
            "delegator_address": "one1nwp5nmzqxup7rgdvkk5vggvjueqs9dzqt643nm",
            "reward": 0,
            "validator_address": "one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx"
        }
    ]
}
Reference data for one1nwp5nmzqxup7rgdvkk5vggvjueqs9dzqt643nm: {
    "time-created": "2020-02-13 00:41:02.639750",
    "validator_addresses": [
        "one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx"
    ],
    "amounts": [
        1
    ],
    "undelegations": [
        ""
    ],
    "keystore_name": "_Test_key_delegator0"
}
=====================================================================================


== Passed test: check_delegators ==


== Start test: edit_validators ==

Overriding BLS key file at: /tmp/edit_val/_Test_key_bls0.key 
Generated BLS key:
{
    "public-key": "afdd50a3cb5339e271f0f37e28157fb0a8df4b9b0002d740fbf7a911349d826f64ee848043067dc80ee163b4772ffb13",
    "private-key": "1b25bb644ea1832f911c5b70b1de81432d6997e26e6390d907c0a12c0bed5424",
    "encrypted-private-key-path": "/tmp/edit_val/_Test_key_bls0.key"
}
Sent edit validator for one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx:
{
    "transaction-receipt": "0x1e01ee141311ce31ef4068ec149a26c8cd95b5fed10a98082be94bb6b18bd3c7"
}


== Passed test: edit_validators ==

Sleeping 30 seconds for finality...

== Start test: check_validators ==

Current validators:
{
    "id": "0",
    "jsonrpc": "2.0",
    "result": [
        "one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx"
    ]
}

Current ACTIVE validators:
{
    "id": "0",
    "jsonrpc": "2.0",
    "result": [
        "one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx"
    ]
}

=====================================================================================

Validator address: one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx
Validator in pool of validators.
Validator in pool of ACTIVE validators.
Validator information:
{
    "id": "0",
    "jsonrpc": "2.0",
    "result": {
        "active": true,
        "bls-public-keys": [
            "afdd50a3cb5339e271f0f37e28157fb0a8df4b9b0002d740fbf7a911349d826f64ee848043067dc80ee163b4772ffb13"
        ],
        "commission": {
            "max-change-rate": "0.443786429290126900",
            "max-rate": "0.579771441491717700",
            "rate": "0.367835094010679930"
        },
        "creation-height": 37,
        "description": {
            "details": "none",
            "identity": "test_account",
            "name": "_Test_key_validator0",
            "security_contact": "Leo",
            "website": "harmony.one"
        },
        "max-total-delegation": 16000000000000000000,
        "min-self-delegation": 1000000000000000000,
        "one-address": "one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx"
    }
}
Reference data for one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx: {
    "time_created": "2020-02-13 00:40:21.954144",
    "last_edit_epoch": 7,
    "pub_bls_keys": [
        "afdd50a3cb5339e271f0f37e28157fb0a8df4b9b0002d740fbf7a911349d826f64ee848043067dc80ee163b4772ffb13"
    ],
    "amount": 3,
    "rate": 0.36783509401067993,
    "max_rate": 0.5797714414917177,
    "max_change_rate": 0.4437864292901269,
    "max_total_delegation": 16,
    "min_self_delegation": 1,
    "keystore_name": "_Test_key_validator0"
}
Validator delegation:
{
    "id": "0",
    "jsonrpc": "2.0",
    "result": [
        {
            "Undelegations": [],
            "amount": 3000000000000000000,
            "delegator_address": "one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx",
            "reward": 0,
            "validator_address": "one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx"
        },
        {
            "Undelegations": [],
            "amount": 1000000000000000000,
            "delegator_address": "one1nwp5nmzqxup7rgdvkk5vggvjueqs9dzqt643nm",
            "reward": 0,
            "validator_address": "one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx"
        }
    ]
}

=====================================================================================


== Passed test: check_validators ==


== Start test: undelegate ==

Sent undelegate one1nwp5nmzqxup7rgdvkk5vggvjueqs9dzqt643nm from one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx:
{
    "transaction-receipt": "0xeaafcf0bfcf250dbb5ec48c413e43bcaad8748ddea5aee4d402e2b6a5fc798fe"
}

Sleeping 30 seconds for finality...

Verifying undelegations


=====================================================================================
Validator address: one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx
Delegator address: one1nwp5nmzqxup7rgdvkk5vggvjueqs9dzqt643nm
Validator information:
{
    "id": "0",
    "jsonrpc": "2.0",
    "result": [
        {
            "Undelegations": [],
            "amount": 3000000000000000000,
            "delegator_address": "one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx",
            "reward": 0,
            "validator_address": "one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx"
        },
        {
            "Undelegations": [
                {
                    "Amount": 1000000000000000000,
                    "Epoch": 9
                }
            ],
            "amount": 0,
            "delegator_address": "one1nwp5nmzqxup7rgdvkk5vggvjueqs9dzqt643nm",
            "reward": 0,
            "validator_address": "one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx"
        }
    ]
}
Reference data for (validator) one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx: {
    "time_created": "2020-02-13 00:40:21.954144",
    "last_edit_epoch": 7,
    "pub_bls_keys": [
        "afdd50a3cb5339e271f0f37e28157fb0a8df4b9b0002d740fbf7a911349d826f64ee848043067dc80ee163b4772ffb13"
    ],
    "amount": 3,
    "rate": 0.36783509401067993,
    "max_rate": 0.5797714414917177,
    "max_change_rate": 0.4437864292901269,
    "max_total_delegation": 16,
    "min_self_delegation": 1,
    "keystore_name": "_Test_key_validator0"
}
Reference data for (delegator) one1nwp5nmzqxup7rgdvkk5vggvjueqs9dzqt643nm: {
    "time-created": "2020-02-13 00:41:02.639750",
    "validator_addresses": [
        "one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx"
    ],
    "amounts": [
        1
    ],
    "undelegations": [
        ""
    ],
    "keystore_name": "_Test_key_delegator0"
}
WARNING: Undelegation epoch is off by one.
=====================================================================================


== Passed test: undelegate ==


== Start test: check_delegators ==


=====================================================================================
Delegator address: one1nwp5nmzqxup7rgdvkk5vggvjueqs9dzqt643nm
Delegator delegation:
{
    "id": "0",
    "jsonrpc": "2.0",
    "result": [
        {
            "Undelegations": [
                {
                    "Amount": 1000000000000000000,
                    "Epoch": 9
                }
            ],
            "amount": 0,
            "delegator_address": "one1nwp5nmzqxup7rgdvkk5vggvjueqs9dzqt643nm",
            "reward": 0,
            "validator_address": "one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx"
        }
    ]
}
Reference data for one1nwp5nmzqxup7rgdvkk5vggvjueqs9dzqt643nm: {
    "time-created": "2020-02-13 00:41:02.639750",
    "validator_addresses": [
        "one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx"
    ],
    "amounts": [
        0
    ],
    "undelegations": [
        "[{\"Amount\": 1000000000000000000, \"Epoch\": 9}]"
    ],
    "keystore_name": "_Test_key_delegator0"
}
=====================================================================================


== Passed test: check_delegators ==


== Start test: create_single_validator_many_keys ==

Added account key with name: _Test_key_many_keys_validator
Running: fund_account
Response: {
    "transaction-receipt": "0x1f836188a8f7dc7bd50ece5743a81f5f894b620aa2edb211ae43e5acaf3a7f32",
    "blockchain-receipt": {
        "blockHash": "0xeca5bc3e0cd661d181ecd6abbba5bdc1a34e040923f9c6e095eec6f14fdb6e0b",
        "blockNumber": "0x36",
        "contractAddress": null,
        "cumulativeGasUsed": "0x5208",
        "from": "one103q7qe5t2505lypvltkqtddaef5tzfxwsse4z7",
        "gasUsed": "0x5208",
        "logs": [],
        "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "shardID": 0,
        "status": "0x1",
        "to": "one1p83yhuut8385n8jtva9klqnp76fajcya8hqjsr",
        "transactionHash": "0x1f836188a8f7dc7bd50ece5743a81f5f894b620aa2edb211ae43e5acaf3a7f32",
        "transactionIndex": "0x0"
    },
    "time-signed-utc": "2020-02-13 00:42:38.069509"
}
Balances for _Test_key_many_keys_validator (one1p83yhuut8385n8jtva9klqnp76fajcya8hqjsr):
[
    {
        "shard": 0,
        "amount": 7.0
    },
    {
        "shard": 1,
        "amount": 0.0
    }
]

Overriding BLS key file at: /tmp/single_val_many_keys/_Test_key_bls0.key 
Generated BLS key:
{
    "public-key": "3f0323d415ad81cc9f0967990b71dfd20b49b58f344b0a7db7deb3491ffbc4add5832b57ca545d49406aed7ab1b3cb08",
    "private-key": "fb1c35283ec975e20f6a8dff77ea3cc3c0aef8de303c341ca7057ec372a67730",
    "encrypted-private-key-path": "/tmp/single_val_many_keys/_Test_key_bls0.key"
}
Overriding BLS key file at: /tmp/single_val_many_keys/_Test_key_bls1.key 
Generated BLS key:
{
    "public-key": "9643cd48493a7dd1e50f26824a0a18216ba52ac82de4f96583753696a408387cc0e408cbc37e6d1b435857f0a8d68817",
    "private-key": "57820f635444a62a62dac547b526f5f975094e6c0769e6e1c68f0496ed58b367",
    "encrypted-private-key-path": "/tmp/single_val_many_keys/_Test_key_bls1.key"
}
Overriding BLS key file at: /tmp/single_val_many_keys/_Test_key_bls2.key 
Generated BLS key:
{
    "public-key": "fe8ff713e1ea451d5fa5f33626d01fc1bff2838cc90caec046ffb341bc7825a3823629787a2bdd1a6884ed5d8a4a3591",
    "private-key": "4bd7f0140841861a46f8553d3a086bbcfcd7ef7b2ad9df29faa7a0112edb1d41",
    "encrypted-private-key-path": "/tmp/single_val_many_keys/_Test_key_bls2.key"
}
Overriding BLS key file at: /tmp/single_val_many_keys/_Test_key_bls3.key 
Generated BLS key:
{
    "public-key": "324acaf05fb2e661851e642b37d4d2538e8c6162a6e05f2a3ccb105a28f52aa178fe1e88885aada0f82c398428432f19",
    "private-key": "35a68cb946a8c81a13648365800e16c79cae944aefaff7e5fa7cde68246d0a02",
    "encrypted-private-key-path": "/tmp/single_val_many_keys/_Test_key_bls3.key"
}
Overriding BLS key file at: /tmp/single_val_many_keys/_Test_key_bls4.key 
Generated BLS key:
{
    "public-key": "1befad537777a9f34452dcee967b055e770f88c0aaded944d966cc9bc95270f4fb6cb841d535d243d2d173368a2f6b0f",
    "private-key": "d5bf6318e82d280197fe10df07b79d98a91a8b8f29412d748515e48a32c33f02",
    "encrypted-private-key-path": "/tmp/single_val_many_keys/_Test_key_bls4.key"
}
Sent create validator for one1p83yhuut8385n8jtva9klqnp76fajcya8hqjsr:
{
    "transaction-receipt": "0xa93600ccf06124bc2739b8715ad0138b0b04cd924b39beb6d25f8fe6a8de757f"
}

Reference data for one1p83yhuut8385n8jtva9klqnp76fajcya8hqjsr: {
    "time_created": "2020-02-13 00:42:49.477655",
    "last_edit_epoch": 9,
    "pub_bls_keys": [
        "3f0323d415ad81cc9f0967990b71dfd20b49b58f344b0a7db7deb3491ffbc4add5832b57ca545d49406aed7ab1b3cb08",
        "9643cd48493a7dd1e50f26824a0a18216ba52ac82de4f96583753696a408387cc0e408cbc37e6d1b435857f0a8d68817",
        "fe8ff713e1ea451d5fa5f33626d01fc1bff2838cc90caec046ffb341bc7825a3823629787a2bdd1a6884ed5d8a4a3591",
        "324acaf05fb2e661851e642b37d4d2538e8c6162a6e05f2a3ccb105a28f52aa178fe1e88885aada0f82c398428432f19",
        "1befad537777a9f34452dcee967b055e770f88c0aaded944d966cc9bc95270f4fb6cb841d535d243d2d173368a2f6b0f"
    ],
    "amount": 2,
    "rate": 0.005239372925815444,
    "max_rate": 0.5325465617771147,
    "max_change_rate": 0.373512782525228,
    "max_total_delegation": 9,
    "min_self_delegation": 1,
    "keystore_name": "_Test_key_many_keys_validator"
}

== Passed test: create_single_validator_many_keys ==

Sleeping 30 seconds for finality...

== Start test: check_validators ==

Current validators:
{
    "id": "0",
    "jsonrpc": "2.0",
    "result": [
        "one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx",
        "one1p83yhuut8385n8jtva9klqnp76fajcya8hqjsr"
    ]
}

Current ACTIVE validators:
{
    "id": "0",
    "jsonrpc": "2.0",
    "result": [
        "one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx"
    ]
}

=====================================================================================

Validator address: one1p83yhuut8385n8jtva9klqnp76fajcya8hqjsr
Validator in pool of validators.
Validator NOT in pool of ACTIVE validators.
Validator information:
{
    "id": "0",
    "jsonrpc": "2.0",
    "result": {
        "active": true,
        "bls-public-keys": [
            "3f0323d415ad81cc9f0967990b71dfd20b49b58f344b0a7db7deb3491ffbc4add5832b57ca545d49406aed7ab1b3cb08",
            "9643cd48493a7dd1e50f26824a0a18216ba52ac82de4f96583753696a408387cc0e408cbc37e6d1b435857f0a8d68817",
            "fe8ff713e1ea451d5fa5f33626d01fc1bff2838cc90caec046ffb341bc7825a3823629787a2bdd1a6884ed5d8a4a3591",
            "324acaf05fb2e661851e642b37d4d2538e8c6162a6e05f2a3ccb105a28f52aa178fe1e88885aada0f82c398428432f19",
            "1befad537777a9f34452dcee967b055e770f88c0aaded944d966cc9bc95270f4fb6cb841d535d243d2d173368a2f6b0f"
        ],
        "commission": {
            "max-change-rate": "0.373512782525228000",
            "max-rate": "0.532546561777114700",
            "rate": "0.005239372925815444"
        },
        "creation-height": 55,
        "description": {
            "details": "none",
            "identity": "test_account",
            "name": "_Test_key_many_keys_validator",
            "security_contact": "Daniel-VDM",
            "website": "harmony.one"
        },
        "max-total-delegation": 9000000000000000000,
        "min-self-delegation": 1000000000000000000,
        "one-address": "one1p83yhuut8385n8jtva9klqnp76fajcya8hqjsr"
    }
}
Reference data for one1p83yhuut8385n8jtva9klqnp76fajcya8hqjsr: {
    "time_created": "2020-02-13 00:42:49.477655",
    "last_edit_epoch": 9,
    "pub_bls_keys": [
        "3f0323d415ad81cc9f0967990b71dfd20b49b58f344b0a7db7deb3491ffbc4add5832b57ca545d49406aed7ab1b3cb08",
        "9643cd48493a7dd1e50f26824a0a18216ba52ac82de4f96583753696a408387cc0e408cbc37e6d1b435857f0a8d68817",
        "fe8ff713e1ea451d5fa5f33626d01fc1bff2838cc90caec046ffb341bc7825a3823629787a2bdd1a6884ed5d8a4a3591",
        "324acaf05fb2e661851e642b37d4d2538e8c6162a6e05f2a3ccb105a28f52aa178fe1e88885aada0f82c398428432f19",
        "1befad537777a9f34452dcee967b055e770f88c0aaded944d966cc9bc95270f4fb6cb841d535d243d2d173368a2f6b0f"
    ],
    "amount": 2,
    "rate": 0.005239372925815444,
    "max_rate": 0.5325465617771147,
    "max_change_rate": 0.373512782525228,
    "max_total_delegation": 9,
    "min_self_delegation": 1,
    "keystore_name": "_Test_key_many_keys_validator"
}
Validator delegation:
{
    "id": "0",
    "jsonrpc": "2.0",
    "result": [
        {
            "Undelegations": [],
            "amount": 2000000000000000000,
            "delegator_address": "one1p83yhuut8385n8jtva9klqnp76fajcya8hqjsr",
            "reward": 0,
            "validator_address": "one1p83yhuut8385n8jtva9klqnp76fajcya8hqjsr"
        }
    ]
}

=====================================================================================


== Passed test: check_validators ==


== Start test: edit_validators ==

Overriding BLS key file at: /tmp/edit_val/_Test_key_bls0.key 
Generated BLS key:
{
    "public-key": "fc7d667709554416cb75e6e893b00b581bcfc46f739bf3a768114a63a24f720472112df889aeeca503d5f862f946680a",
    "private-key": "360edfc17a0d4d2cda32fe349ebfa40debe50bf879b89e8ac3adad07880cb211",
    "encrypted-private-key-path": "/tmp/edit_val/_Test_key_bls0.key"
}
Sent edit validator for one1p83yhuut8385n8jtva9klqnp76fajcya8hqjsr:
{
    "transaction-receipt": "0xf4c1ced5881ede3fc431e09ea072804276b510f4bc58f76b3cdc5a2ba14177fb"
}


== Passed test: edit_validators ==

Sleeping 30 seconds for finality...

== Start test: check_validators ==

Current validators:
{
    "id": "0",
    "jsonrpc": "2.0",
    "result": [
        "one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx",
        "one1p83yhuut8385n8jtva9klqnp76fajcya8hqjsr"
    ]
}

Current ACTIVE validators:
{
    "id": "0",
    "jsonrpc": "2.0",
    "result": [
        "one1p83yhuut8385n8jtva9klqnp76fajcya8hqjsr",
        "one1p8a52srl8cmela23aaqcyhnpaqev6afjadj0zx"
    ]
}

=====================================================================================

Validator address: one1p83yhuut8385n8jtva9klqnp76fajcya8hqjsr
Validator in pool of validators.
Validator in pool of ACTIVE validators.
Validator information:
{
    "id": "0",
    "jsonrpc": "2.0",
    "result": {
        "active": true,
        "bls-public-keys": [
            "3f0323d415ad81cc9f0967990b71dfd20b49b58f344b0a7db7deb3491ffbc4add5832b57ca545d49406aed7ab1b3cb08",
            "9643cd48493a7dd1e50f26824a0a18216ba52ac82de4f96583753696a408387cc0e408cbc37e6d1b435857f0a8d68817",
            "fe8ff713e1ea451d5fa5f33626d01fc1bff2838cc90caec046ffb341bc7825a3823629787a2bdd1a6884ed5d8a4a3591",
            "324acaf05fb2e661851e642b37d4d2538e8c6162a6e05f2a3ccb105a28f52aa178fe1e88885aada0f82c398428432f19",
            "fc7d667709554416cb75e6e893b00b581bcfc46f739bf3a768114a63a24f720472112df889aeeca503d5f862f946680a"
        ],
        "commission": {
            "max-change-rate": "0.373512782525228000",
            "max-rate": "0.532546561777114700",
            "rate": "0.005239372925815444"
        },
        "creation-height": 55,
        "description": {
            "details": "none",
            "identity": "test_account",
            "name": "_Test_key_many_keys_validator",
            "security_contact": "Leo",
            "website": "harmony.one"
        },
        "max-total-delegation": 17000000000000000000,
        "min-self-delegation": 1000000000000000000,
        "one-address": "one1p83yhuut8385n8jtva9klqnp76fajcya8hqjsr"
    }
}
Reference data for one1p83yhuut8385n8jtva9klqnp76fajcya8hqjsr: {
    "time_created": "2020-02-13 00:42:49.477655",
    "last_edit_epoch": 10,
    "pub_bls_keys": [
        "3f0323d415ad81cc9f0967990b71dfd20b49b58f344b0a7db7deb3491ffbc4add5832b57ca545d49406aed7ab1b3cb08",
        "9643cd48493a7dd1e50f26824a0a18216ba52ac82de4f96583753696a408387cc0e408cbc37e6d1b435857f0a8d68817",
        "fe8ff713e1ea451d5fa5f33626d01fc1bff2838cc90caec046ffb341bc7825a3823629787a2bdd1a6884ed5d8a4a3591",
        "324acaf05fb2e661851e642b37d4d2538e8c6162a6e05f2a3ccb105a28f52aa178fe1e88885aada0f82c398428432f19",
        "fc7d667709554416cb75e6e893b00b581bcfc46f739bf3a768114a63a24f720472112df889aeeca503d5f862f946680a"
    ],
    "amount": 2,
    "rate": 0.005239372925815444,
    "max_rate": 0.5325465617771147,
    "max_change_rate": 0.373512782525228,
    "max_total_delegation": 17,
    "min_self_delegation": 1,
    "keystore_name": "_Test_key_many_keys_validator"
}
Validator delegation:
{
    "id": "0",
    "jsonrpc": "2.0",
    "result": [
        {
            "Undelegations": [],
            "amount": 2000000000000000000,
            "delegator_address": "one1p83yhuut8385n8jtva9klqnp76fajcya8hqjsr",
            "reward": 0,
            "validator_address": "one1p83yhuut8385n8jtva9klqnp76fajcya8hqjsr"
        }
    ]
}

=====================================================================================


== Passed test: check_validators ==


Passed Staking Integration Test

Doing regression test after staking epoch...
== Running regression test ==
Running: setup_newman_no_explorer
Running: get_raw_cx
Raw transaction details:
	Node: http://localhost:9501/
	Transaction for testnet
{
    "transaction": {
        "gas": "0x5208",
        "gasPrice": "0x3b9aca00",
        "hash": "0xa041ad3461070f1772f2ab6267960575fb3908ae5e15ed751b333943c51e1860",
        "input": "0x",
        "nonce": "0x2",
        "r": "0x99ffe658d974c77ebb65b1c4fd76009971f2eb7b6771a66b2b7512eb93a8b94b",
        "s": "0x49b2aafde9f0e7ec21bbe9852938ebbaaaf133ddea9e52620b08b97872ebaf8",
        "shardID": 1,
        "to": "0x1d44424803e7d258d3b5f160807c3df1ec2f0bf8",
        "toShardID": 0,
        "v": "0x27",
        "value": "0x3b9aca00"
    },
    "raw-transaction": "0xf86902843b9aca008252080180941d44424803e7d258d3b5f160807c3df1ec2f0bf8843b9aca008027a099ffe658d974c77ebb65b1c4fd76009971f2eb7b6771a66b2b7512eb93a8b94ba0049b2aafde9f0e7ec21bbe9852938ebbaaaf133ddea9e52620b08b97872ebaf8",
    "time-signed-utc": "2020-02-13 00:43:52.357154"
}

	Iteration 1 out of 5

newman

Harmony API Tests - no-explorer (Env Vars)

→ hmy_latestHeader
  POST http://localhost:9501/ [200 OK, 647B, 39ms]
  ┌
  │ 'Request Body''{"jsonrpc":"2.0", "method":"hmy_latestHeader", "param
  │ s":[], "id":1}'
  │ 
  │ 'Response'
  │ {
  │   jsonrpc: '2.0',
  │   id: 1,
  │   result: {
  │     blockHash: '0x2a83fb25d18f327e8cc03b87d5aa479ab05a
  │ e30f747054fd2fa47ac51464d842',
  │     blockNumber: 62,
  │     shardID: 1,
  │     leader: 'one16pse8pcahr2meyk744rcpcmzgqupwn5g26y4z
  │ a',
  │     viewID: 62,
  │     epoch: 11,
  │     timestamp: '2020-02-13 00:43:51 +0000 UTC',
  │     unixtime: 1581554631,
  │     lastCommitSig: 'f24786579254d6b5c73b0701c796661e30
  │ 0f3d32cb79fca3d98ec870cad8a391281c1708437924378a45dce6
  │ 9c4536053ba22e256d0f73eec4b07bd64fb4221811664e00149018
  │ 1e673706e6a73ff895bad081f89504cbd24471976b72d86408',
  │     lastCommitBitmap: '3f'
  │   }
  │ }
  └
  ✓  Response should not contain errors.
  ✓  Response should have non-null result field.

→ hmy_sendRawTransaction
  POST http://localhost:9501/ [200 OK, 226B, 4ms]
  ┌
  │ 'Request Body''{"jsonrpc":"2.0","method":"hmy_sendRawTransaction","p
  │ arams":["0xf86902843b9aca008252080180941d44424803e7d25
  │ 8d3b5f160807c3df1ec2f0bf8843b9aca008027a099ffe658d974c
  │ 77ebb65b1c4fd76009971f2eb7b6771a66b2b7512eb93a8b94ba00
  │ 49b2aafde9f0e7ec21bbe9852938ebbaaaf133ddea9e52620b08b9
  │ 7872ebaf8"],"id":1}'
  │ 
  │ 'Response'
  │ {
  │   jsonrpc: '2.0',
  │   id: 1,
  │   result: '0xa041ad3461070f1772f2ab6267960575fb3908ae5
  │ e15ed751b333943c51e1860'
  │ }
  └
  ✓  Response should not contain errors.
  ✓  Response should have non-null result field.

→ hmy_getTransactionByHash
  ┌
  │ 'Sleeping 30 seconds for cross-shard transaction final
  │ ity...'
  └
  POST http://localhost:9501/ [200 OK, 758B, 5ms]
  ┌
  │ 'Request Body''{"jsonrpc":"2.0","method":"hmy_getTransactionByHash",
  │ "params":["0xa041ad3461070f1772f2ab6267960575fb3908ae5
  │ e15ed751b333943c51e1860"],"id":1}'
  │ 
  │ 'Response'
  │ {
  │   jsonrpc: '2.0',
  │   id: 1,
  │   result: {
  │     blockHash: '0xa741d9691c0ee6bd7403d4af2b88b399f5cf
  │ b6008a6cfd49ce89e39218a0fa4f',
  │     blockNumber: '0x3f',
  │     from: 'one1a0x3d6xpmr6f8wsyaxd9v36pytvp48zckswvv9'
  │ ,
  │     timestamp: '0x5e449bcf',
  │     gas: '0x5208',
  │     gasPrice: '0x3b9aca00',
  │     hash: '0xa041ad3461070f1772f2ab6267960575fb3908ae5
  │ e15ed751b333943c51e1860',
  │     input: '0x',
  │     nonce: '0x2',
  │     to: 'one1r4zyyjqrulf935a479sgqlpa78kz7zlcg2jfen',
  │     transactionIndex: '0x0',
  │     value: '0x3b9aca00',
  │     shardID: 1,
  │     toShardID: 0,
  │     v: '0x27',
  │     r: '0x99ffe658d974c77ebb65b1c4fd76009971f2eb7b6771
  │ a66b2b7512eb93a8b94b',
  │     s: '0x49b2aafde9f0e7ec21bbe9852938ebbaaaf133ddea9e
  │ 52620b08b97872ebaf8'
  │   }
  │ }
  └
  ✓  Response should not contain errors.
  ✓  Response should have non-null result field.

→ hmy_getCXReceiptByHash
  POST http://localhost:9500/ [200 OK, 486B, 4ms]
  ┌
  │ 'Request Body''{"jsonrpc":"2.0","method":"hmy_getCXReceiptByHash","p
  │ arams":["0xa041ad3461070f1772f2ab6267960575fb3908ae5e1
  │ 5ed751b333943c51e1860"],"id":1}'
  │ 
  │ 'Response'
  │ {
  │   jsonrpc: '2.0',
  │   id: 1,
  │   result: {
  │     blockHash: '0x3174df0dba6366d02e29a2c0623e78df3417
  │ 14ba3cd07f7848ce22e4b323a6be',
  │     blockNumber: '0x40',
  │     hash: '0xa041ad3461070f1772f2ab6267960575fb3908ae5
  │ e15ed751b333943c51e1860',
  │     from: 'one1a0x3d6xpmr6f8wsyaxd9v36pytvp48zckswvv9'
  │ ,
  │     to: 'one1r4zyyjqrulf935a479sgqlpa78kz7zlcg2jfen',
  │     shardID: 1,
  │     toShardID: 0,
  │     value: '0x3b9aca00'
  │   }
  │ }
  └
  ✓  Response should not contain errors.
  ✓  Response should have non-null result field.

→ hmy_resendCx
  POST http://localhost:9501/ [200 OK, 161B, 3ms]
  ┌
  │ 'Request Body''{"jsonrpc":"2.0","method":"hmy_resendCx","params":["0
  │ xa041ad3461070f1772f2ab6267960575fb3908ae5e15ed751b333
  │ 943c51e1860"],"id":1}'
  │ 
  │ 'Response'
  │ {
  │   jsonrpc: '2.0',
  │   id: 1,
  │   result: true
  │ }
  └
  ✓  Response should not contain errors.
  ✓  Response should have non-null result field.

→ hmy_getTransactionCount
  POST http://localhost:9501/ [200 OK, 162B, 2ms]
  ┌
  │ 'Request Body''{\n' +
  │   '    "jsonrpc": "2.0",\n' +
  │   '    "method": "hmy_getTransactionCount",\n' +
  │   '    "params": [\n' +
  │   '        "one1a0x3d6xpmr6f8wsyaxd9v36pytvp48zckswvv9
  │ ",\n' +
  │   '        "latest"\n' +
  │   '    ],\n' +
  │   '    "id": 1\n' +
  │   '}'
  │ 
  │ 'Response'
  │ {
  │   jsonrpc: '2.0',
  │   id: 1,
  │   result: '0x3'
  │ }
  └
  ✓  Response should not contain errors.
  ✓  Response should have non-null result field.

→ hmy_getBlockByHash
  POST http://localhost:9501/ [200 OK, 1.98KB, 5ms]
  ┌
  │ 'Request Body''{ "jsonrpc": "2.0", "method": "hmy_getBlockByHash", "
  │ params": ["0xa741d9691c0ee6bd7403d4af2b88b399f5cfb6008
  │ a6cfd49ce89e39218a0fa4f" , true], "id": 1}'
  │ 
  │ 'Response'
  │ {
  │   jsonrpc: '2.0',
  │   id: 1,
  │   result: {
  │     difficulty: 0,
  │     extraData: '0x',
  │     gasLimit: '0xadd2db',
  │     gasUsed: '0x5208',
  │     hash: '0xa741d9691c0ee6bd7403d4af2b88b399f5cfb6008
  │ a6cfd49ce89e39218a0fa4f',
  │     logsBloom: '0x000000000000000000000000000000000000
  │ 000000000000000000000000000000000000000000000000000000
  │ 000000000000000000000000000000000000000000000000000000
  │ 000000000000000000000000000000000000000000000000000000
  │ 000000000000000000000000000000000000000000000000000000
  │ 000000000000000000000000000000000000000000000000000000
  │ 000000000000000000000000000000000000000000000000000000
  │ 000000000000000000000000000000000000000000000000000000
  │ 000000000000000000000000000000000000000000000000000000
  │ 00000000000000000000000000000000000000000000',
  │     miner: '0xd06193871db8d5bc92dead4780e3624038174e88
',
  │     mixHash: '0x00000000000000000000000000000000000000
  │ 00000000000000000000000000',
  │     nonce: 0,
  │     number: '0x3f',
  │     parentHash: '0x2a83fb25d18f327e8cc03b87d5aa479ab05
  │ ae30f747054fd2fa47ac51464d842',
  │     receiptsRoot: '0x056b23fbba480696b65fe5a59b8f2148a
  │ 1299103c4f57df839233af2cf4ca2d2',
  │     size: '0x30c',
  │     stakingTransactions: [],
  │     stateRoot: '0x5ee6aad502fa9dc01020735e571922fc8cae
  │ 9a5cde7db1722def3d905adb9104',
  │     timestamp: '0x5e449bcf',
  │     transactions: [
  │       {
  │         blockHash: '0xa741d9691c0ee6bd7403d4af2b88b399
  │ f5cfb6008a6cfd49ce89e39218a0fa4f',
  │         blockNumber: '0x3f',
  │         from: 'one1a0x3d6xpmr6f8wsyaxd9v36pytvp48zcksw
  │ vv9',
  │         timestamp: '0x5e449bcf',
  │         gas: '0x5208',
  │         gasPrice: '0x3b9aca00',
  │         hash: '0xa041ad3461070f1772f2ab6267960575fb390
  │ 8ae5e15ed751b333943c51e1860',
  │         input: '0x',
  │         nonce: '0x2',
  │         to: 'one1r4zyyjqrulf935a479sgqlpa78kz7zlcg2jfe
  │ n',
  │         transactionIndex: '0x0',
  │         value: '0x3b9aca00',
  │         shardID: 1,
  │         toShardID: 0,
  │         v: '0x27',
  │         r: '0x99ffe658d974c77ebb65b1c4fd76009971f2eb7b
  │ 6771a66b2b7512eb93a8b94b',
  │         s: '0x49b2aafde9f0e7ec21bbe9852938ebbaaaf133dd
  │ ea9e52620b08b97872ebaf8'
  │       }
  │     ],
  │     transactionsRoot: '0x79b6eb076136482640a5541c642ea
  │ 12d6da56dacfb263dd8e9c7a4ddb93b6be4',
  │     uncles: []
  │   }
  │ }
  └
  ✓  Response should not contain errors.
  ✓  Response should have non-null result field.

→ hmy_getBlockByNumber
  POST http://localhost:9501/ [200 OK, 1.98KB, 2ms]
  ┌
  │ 'Request Body''{"jsonrpc":"2.0","method":"hmy_getBlockByNumber","par
  │ ams":["0x3f", true],"id":1}'
  │ 
  │ 'Response'
  │ {
  │   jsonrpc: '2.0',
  │   id: 1,
  │   result: {
  │     difficulty: 0,
  │     extraData: '0x',
  │     gasLimit: '0xadd2db',
  │     gasUsed: '0x5208',
  │     hash: '0xa741d9691c0ee6bd7403d4af2b88b399f5cfb6008
  │ a6cfd49ce89e39218a0fa4f',
  │     logsBloom: '0x000000000000000000000000000000000000
  │ 000000000000000000000000000000000000000000000000000000
  │ 000000000000000000000000000000000000000000000000000000
  │ 000000000000000000000000000000000000000000000000000000
  │ 000000000000000000000000000000000000000000000000000000
  │ 000000000000000000000000000000000000000000000000000000
  │ 000000000000000000000000000000000000000000000000000000
  │ 000000000000000000000000000000000000000000000000000000
  │ 000000000000000000000000000000000000000000000000000000
  │ 00000000000000000000000000000000000000000000',
  │     miner: '0xd06193871db8d5bc92dead4780e3624038174e88
',
  │     mixHash: '0x00000000000000000000000000000000000000
  │ 00000000000000000000000000',
  │     nonce: 0,
  │     number: '0x3f',
  │     parentHash: '0x2a83fb25d18f327e8cc03b87d5aa479ab05
  │ ae30f747054fd2fa47ac51464d842',
  │     receiptsRoot: '0x056b23fbba480696b65fe5a59b8f2148a
  │ 1299103c4f57df839233af2cf4ca2d2',
  │     size: '0x30c',
  │     stakingTransactions: [],
  │     stateRoot: '0x5ee6aad502fa9dc01020735e571922fc8cae
  │ 9a5cde7db1722def3d905adb9104',
  │     timestamp: '0x5e449bcf',
  │     transactions: [
  │       {
  │         blockHash: '0xa741d9691c0ee6bd7403d4af2b88b399
  │ f5cfb6008a6cfd49ce89e39218a0fa4f',
  │         blockNumber: '0x3f',
  │         from: 'one1a0x3d6xpmr6f8wsyaxd9v36pytvp48zcksw
  │ vv9',
  │         timestamp: '0x5e449bcf',
  │         gas: '0x5208',
  │         gasPrice: '0x3b9aca00',
  │         hash: '0xa041ad3461070f1772f2ab6267960575fb390
  │ 8ae5e15ed751b333943c51e1860',
  │         input: '0x',
  │         nonce: '0x2',
  │         to: 'one1r4zyyjqrulf935a479sgqlpa78kz7zlcg2jfe
  │ n',
  │         transactionIndex: '0x0',
  │         value: '0x3b9aca00',
  │         shardID: 1,
  │         toShardID: 0,
  │         v: '0x27',
  │         r: '0x99ffe658d974c77ebb65b1c4fd76009971f2eb7b
  │ 6771a66b2b7512eb93a8b94b',
  │         s: '0x49b2aafde9f0e7ec21bbe9852938ebbaaaf133dd
  │ ea9e52620b08b97872ebaf8'
  │       }
  │     ],
  │     transactionsRoot: '0x79b6eb076136482640a5541c642ea
  │ 12d6da56dacfb263dd8e9c7a4ddb93b6be4',
  │     uncles: []
  │   }
  │ }
  └
  ✓  Response should not contain errors.
  ✓  Response should have non-null result field.
  ✓  hash in response should match blockHash of transaction block.
  ✓  number in response should match number reported by getBlockByHash.

→ hmy_getBlockTransactionCountByHash
  POST http://localhost:9501/ [200 OK, 162B, 2ms]
  ┌
  │ 'Request Body''{"jsonrpc":"2.0","method":"hmy_getBlockTransactionCou
  │ ntByHash","params":["0xa741d9691c0ee6bd7403d4af2b88b39
  │ 9f5cfb6008a6cfd49ce89e39218a0fa4f"],"id":1}'
  │ 
  │ 'Response'
  │ {
  │   jsonrpc: '2.0',
  │   id: 1,
  │   result: '0x1'
  │ }
  └
  ✓  Response should not contain errors.
  ✓  Response should have non-null result field.

→ hmy_getBlockTransactionCountByNumber
  POST http://localhost:9501/ [200 OK, 162B, 1ms]
  ┌
  │ 'Request Body''{"jsonrpc":"2.0","method":"hmy_getBlockTransactionCou
  │ ntByNumber","params":["0x3f"],"id":1}'
  │ 
  │ 'Response'
  │ {
  │   jsonrpc: '2.0',
  │   id: 1,
  │   result: '0x1'
  │ }
  └
  ✓  Response should not contain errors.
  ✓  Response should have non-null result field.
  ✓  Transaction count in result should match transaction count from result of getBlockTransactionCountByHash

→ hmy_getTransactionReceipt
  POST http://localhost:9501/ [200 OK, 1.09KB, 5ms]
  ┌
  │ 'Request Body''{"jsonrpc":"2.0","method":"hmy_getTransactionReceipt"
  │ ,"params":["0xa041ad3461070f1772f2ab6267960575fb3908ae
  │ 5e15ed751b333943c51e1860"],"id":1}'
  │ 
  │ 'Response'
  │ {
  │   jsonrpc: '2.0',
  │   id: 1,
  │   result: {
  │     blockHash: '0xa741d9691c0ee6bd7403d4af2b88b399f5cf
  │ b6008a6cfd49ce89e39218a0fa4f',
  │     blockNumber: '0x3f',
  │     contractAddress: null,
  │     cumulativeGasUsed: '0x5208',
  │     from: 'one1a0x3d6xpmr6f8wsyaxd9v36pytvp48zckswvv9'
  │ ,
  │     gasUsed: '0x5208',
  │     logs: [],
  │     logsBloom: '0x000000000000000000000000000000000000
  │ 000000000000000000000000000000000000000000000000000000
  │ 000000000000000000000000000000000000000000000000000000
  │ 000000000000000000000000000000000000000000000000000000
  │ 000000000000000000000000000000000000000000000000000000
  │ 000000000000000000000000000000000000000000000000000000
  │ 000000000000000000000000000000000000000000000000000000
  │ 000000000000000000000000000000000000000000000000000000
  │ 000000000000000000000000000000000000000000000000000000
  │ 00000000000000000000000000000000000000000000',
  │     shardID: 1,
  │     status: '0x1',
  │     to: 'one1r4zyyjqrulf935a479sgqlpa78kz7zlcg2jfen',
  │     transactionHash: '0xa041ad3461070f1772f2ab62679605
  │ 75fb3908ae5e15ed751b333943c51e1860',
  │     transactionIndex: '0x0'
  │   }
  │ }
  └
  ✓  Response should not contain errors.
  ✓  Response should have non-null result field.
  ✓  blockHash, blockNumber, transactionHash, and transactionIndex should match with previously saved values.

→ hmy_getBalance
  POST http://localhost:9501/ [200 OK, 178B, 3ms]
  ┌
  │ 'Request Body''{\n' +
  │   '    "jsonrpc": "2.0",\n' +
  │   '    "method": "hmy_getBalance",\n' +
  │   '    "params": [\n' +
  │   '        "one1a0x3d6xpmr6f8wsyaxd9v36pytvp48zckswvv9
  │ ",\n' +
  │   '        "latest"\n' +
  │   '    ],\n' +
  │   '    "id": 1\n' +
  │   '}'
  │ 
  │ 'Response'
  │ {
  │   jsonrpc: '2.0',
  │   id: 1,
  │   result: '0x41abef46816352165'
  │ }
  └
  ✓  Response should not contain errors.
  ✓  Response should have non-null result field.

→ hmy_getShardingStructure
(node:74252) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 drain listeners added to [Socket]. Use emitter.setMaxListeners() to increase limit
  POST http://localhost:9501/ [200 OK, 334B, 3ms]
  ┌
  │ 'Request Body''{\n' +
  │   '    "jsonrpc": "2.0",\n' +
  │   '    "method": "hmy_getShardingStructure",\n' +
  │   '    "params": [\n' +
  │   '        \n' +
  │   '    ],\n' +
  │   '    "id": 1\n' +
  │   '}'
  │ 
  │ 'Response'
  │ {
  │   jsonrpc: '2.0',
  │   id: 1,
  │   result: [
  │     {
  │       current: false,
  │       http: 'http://127.0.0.1:9500',
  │       shardID: 0,
  │       ws: 'ws://127.0.0.1:9800'
  │     },
  │     {
  │       current: true,
  │       http: 'http://127.0.0.1:9501',
  │       shardID: 1,
  │       ws: 'ws://127.0.0.1:9801'
  │     }
  │   ]
  │ }
  └
  ✓  Response should not contain errors.
  ✓  Response should have non-null result field.

→ hmy_getCode
  POST http://localhost:9501/ [200 OK, 161B, 3ms]
  ┌
  │ 'Request Body''{\n' +
  │   '    "jsonrpc": "2.0",\n' +
  │   '    "method": "hmy_getCode",\n' +
  │   '    "params": [\n' +
  │   '        "0x8d0c56C099f2816B6534eB1d74543846EC558357
  │ ",\n' +
  │   '        "latest"\t\n' +
  │   '    ],\n' +
  │   '    "id": 1\n' +
  │   '}'
  │ 
  │ 'Response'
  │ {
  │   jsonrpc: '2.0',
  │   id: 1,
  │   result: '0x'
  │ }
  └
  ✓  Response should not contain errors.
  ✓  Response should have non-null result field.

→ hmy_getTransactionByBlockHashAndIndex
  POST http://localhost:9501/ [200 OK, 758B, 3ms]
  ┌
  │ 'Request Body''{"jsonrpc":"2.0","method":"hmy_getTransactionByBlockH
  │ ashAndIndex","params":["0xa741d9691c0ee6bd7403d4af2b88
  │ b399f5cfb6008a6cfd49ce89e39218a0fa4f", "0x0"],"id":1}'
  │ 
  │ 'Response'
  │ {
  │   jsonrpc: '2.0',
  │   id: 1,
  │   result: {
  │     blockHash: '0xa741d9691c0ee6bd7403d4af2b88b399f5cf
  │ b6008a6cfd49ce89e39218a0fa4f',
  │     blockNumber: '0x3f',
  │     from: 'one1a0x3d6xpmr6f8wsyaxd9v36pytvp48zckswvv9'
  │ ,
  │     timestamp: '0x5e449bcf',
  │     gas: '0x5208',
  │     gasPrice: '0x3b9aca00',
  │     hash: '0xa041ad3461070f1772f2ab6267960575fb3908ae5
  │ e15ed751b333943c51e1860',
  │     input: '0x',
  │     nonce: '0x2',
  │     to: 'one1r4zyyjqrulf935a479sgqlpa78kz7zlcg2jfen',
  │     transactionIndex: '0x0',
  │     value: '0x3b9aca00',
  │     shardID: 1,
  │     toShardID: 0,
  │     v: '0x27',
  │     r: '0x99ffe658d974c77ebb65b1c4fd76009971f2eb7b6771
  │ a66b2b7512eb93a8b94b',
  │     s: '0x49b2aafde9f0e7ec21bbe9852938ebbaaaf133ddea9e
  │ 52620b08b97872ebaf8'
  │   }
  │ }
  └
  ✓  Response should not contain errors.
  ✓  Response should have non-null result field.

→ hmy_getTransactionByBlockNumberAndIndex
  POST http://localhost:9501/ [200 OK, 758B, 3ms]
  ┌
  │ 'Request Body''{"jsonrpc":"2.0","method":"hmy_getTransactionByBlockN
  │ umberAndIndex","params":["0x3f", "0x0"],"id":1}'
  │ 
  │ 'Response'
  │ {
  │   jsonrpc: '2.0',
  │   id: 1,
  │   result: {
  │     blockHash: '0xa741d9691c0ee6bd7403d4af2b88b399f5cf
  │ b6008a6cfd49ce89e39218a0fa4f',
  │     blockNumber: '0x3f',
  │     from: 'one1a0x3d6xpmr6f8wsyaxd9v36pytvp48zckswvv9'
  │ ,
  │     timestamp: '0x5e449bcf',
  │     gas: '0x5208',
  │     gasPrice: '0x3b9aca00',
  │     hash: '0xa041ad3461070f1772f2ab6267960575fb3908ae5
  │ e15ed751b333943c51e1860',
  │     input: '0x',
  │     nonce: '0x2',
  │     to: 'one1r4zyyjqrulf935a479sgqlpa78kz7zlcg2jfen',
  │     transactionIndex: '0x0',
  │     value: '0x3b9aca00',
  │     shardID: 1,
  │     toShardID: 0,
  │     v: '0x27',
  │     r: '0x99ffe658d974c77ebb65b1c4fd76009971f2eb7b6771
  │ a66b2b7512eb93a8b94b',
  │     s: '0x49b2aafde9f0e7ec21bbe9852938ebbaaaf133ddea9e
  │ 52620b08b97872ebaf8'
  │   }
  │ }
  └
  ✓  Response should not contain errors.
  ✓  Response should have non-null result field.

→ hmy_syncing
  POST http://localhost:9501/ [200 OK, 162B, 3ms]
  ┌
  │ 'Request Body''{\n' +
  │   '    "jsonrpc": "2.0",\n' +
  │   '    "method": "hmy_syncing",\n' +
  │   '    "params": [],\n' +
  │   '    "id": 1\n' +
  │   '}'
  │ 
  │ 'Response'
  │ {
  │   jsonrpc: '2.0',
  │   id: 1,
  │   result: false
  │ }
  └
  ✓  Response should not contain errors.
  ✓  Response should have non-null result field.

→ net_peerCount
  POST http://localhost:9501/ [200 OK, 163B, 2ms]
  ┌
  │ 'Request Body''{"jsonrpc":"2.0","method":"net_peerCount","params":[]
  │ ,"id":1}'
  │ 
  │ 'Response'
  │ {
  │   jsonrpc: '2.0',
  │   id: 1,
  │   result: '0x2c'
  │ }
  └
  ✓  Response should not contain errors.
  ✓  Response should have non-null result field.

→ hmy_getStorageAt
  POST http://localhost:9501/ [200 OK, 226B, 21ms]
  ┌
  │ 'Request Body''{"jsonrpc":"2.0","method":"hmy_getStorageAt","params"
  │ :["0x5d1bc8af89a892ec62ca124a4acb535fa67e4c24255269c92
  │ 9d9ac5c91bc2fee", "0", "latest"],"id":1}'
  │ 
  │ 'Response'
  │ {
  │   jsonrpc: '2.0',
  │   id: 1,
  │   result: '0x00000000000000000000000000000000000000000
  │ 00000000000000000000000'
  │ }
  └
  ✓  Response should not contain errors.
  ✓  Response should have non-null result field.

→ hmy_getLogs
  POST http://localhost:9501/ [200 OK, 159B, 2ms]
  ┌
  │ 'Request Body''{\n' +
  │   '    "jsonrpc": "2.0",\n' +
  │   '    "method": "hmy_getLogs",\n' +
  │   '    "params": [\n' +
  │   '        {\n' +
  │   '            "BlockHash": "0xa741d9691c0ee6bd7403d4a
  │ f2b88b399f5cfb6008a6cfd49ce89e39218a0fa4f"\n' +
  │   '        }\n' +
  │   '    ],\n' +
  │   '    "id": 1\n' +
  │   '}'
  │ 
  │ 'Response'
  │ {
  │   jsonrpc: '2.0',
  │   id: 1,
  │   result: []
  │ }
  └

→ hmy_getFilterChanges
  POST http://localhost:9501/ [200 OK, 200B, 3ms]
  ┌
  │ 'Request Body''{"jsonrpc":"2.0", "method":"hmy_getFilterChanges", "p
  │ arams":["0xc480530dc87c1f95489606741dbc7bcc"],"id":1}'
  │ 
  │ 'Response'
  │ {
  │   jsonrpc: '2.0',
  │   id: 1,
  │   error: {
  │     code: -32000,
  │     message: 'filter not found'
  │   }
  │ }
  └

→ hmy_newPendingTransactionFilter
  POST http://localhost:9501/ [200 OK, 193B, 3ms]
  ┌
  │ 'Request Body''{"jsonrpc":"2.0", "method":"hmy_newPendingTransaction
  │ Filter", "params":[],"id":1}'
  │ 
  │ 'Response'
  │ {
  │   jsonrpc: '2.0',
  │   id: 1,
  │   result: '0x58010795a282878ed0d61da72a14b8b0'
  │ }
  └
  ✓  Response should not contain errors.
  ✓  Response should have non-null result field.

→ hmy_newBlockFilter
  POST http://localhost:9501/ [200 OK, 193B, 3ms]
  ┌
  │ 'Request Body''{"jsonrpc":"2.0", "method":"hmy_newBlockFilter", "par
  │ ams":[],"id":1}'
  │ 
  │ 'Response'
  │ {
  │   jsonrpc: '2.0',
  │   id: 1,
  │   result: '0xa0f550f2d9743a813dfa83da979546d5'
  │ }
  └
  ✓  Response should not contain errors.
  ✓  Response should have non-null result field.

→ hmy_newFilter
  POST http://localhost:9501/ [200 OK, 193B, 3ms]
  ┌
  │ 'Request Body''{"jsonrpc":"2.0", "method":"hmy_newFilter", "params":
  │ [{"BlockHash": "0xb855a4a02ae5c658baaa1bb31da4eb596365
  │ 9545d4604d5285cb6965c9137a4f"}],"id":1}'
  │ 
  │ 'Response'
  │ {
  │   jsonrpc: '2.0',
  │   id: 1,
  │   result: '0x547e06b35ba8dcc8674977e11a35cffe'
  │ }
  └
  ✓  Response should not contain errors.
  ✓  Response should have non-null result field.

→ hmy_call
  POST http://localhost:9501/ [200 OK, 161B, 2ms]
  ┌
  │ 'Request Body''{"jsonrpc":"2.0", "method":"hmy_call", "params":[{"to
  │ ": "0x08AE1abFE01aEA60a47663bCe0794eCCD5763c19"}, "lat
  │ est"],"id":1}'
  │ 
  │ 'Response'
  │ {
  │   jsonrpc: '2.0',
  │   id: 1,
  │   result: '0x'
  │ }
  └
  ✓  Response should not contain errors.
  ✓  Response should have non-null result field.

→ hmy_gasPrice
  POST http://localhost:9501/ [200 OK, 162B, 2ms]
  ┌
  │ 'Request Body''{"jsonrpc":"2.0","method":"hmy_gasPrice","params":[],
  │ "id":1}'
  │ 
  │ 'Response'
  │ {
  │   jsonrpc: '2.0',
  │   id: 1,
  │   result: '0x1'
  │ }
  └
  ✓  Response should not contain errors.
  ✓  Response should have non-null result field.

→ hmy_blockNumber
  POST http://localhost:9501/ [200 OK, 163B, 2ms]
  ┌
  │ 'Request Body''{"jsonrpc":"2.0","method":"hmy_blockNumber","params":
  │ [],"id":1}'
  │ 
  │ 'Response'
  │ {
  │   jsonrpc: '2.0',
  │   id: 1,
  │   result: '0x41'
  │ }
  └
  ✓  Response should not contain errors.
  ✓  Response should have non-null result field.

→ net_version
  POST http://localhost:9501/ [200 OK, 160B, 2ms]
  ┌
  │ 'Request Body''{"jsonrpc":"2.0","method":"net_version","params":[],"
  │ id":1}'
  │ 
  │ 'Response'
  │ {
  │   jsonrpc: '2.0',
  │   id: 1,
  │   result: '1'
  │ }
  └
  ✓  Response should not contain errors.
  ✓  Response should have non-null result field.

→ hmy_protocolVersion
  POST http://localhost:9501/ [200 OK, 162B, 2ms]
  ┌
  │ 'Request Body''{\n' +
  │   '    "jsonrpc": "2.0",\n' +
  │   '    "method": "hmy_protocolVersion",\n' +
  │   '    "params": [],\n' +
  │   '    "id": 1\n' +
  │   '}'
  │ 
  │ 'Response'
  │ {
  │   jsonrpc: '2.0',
  │   id: 1,
  │   result: '0x1'
  │ }
  └
  ✓  Response should not contain errors.
  ✓  Response should have non-null result field.

┌─────────────────────────┬─────────────────┬─────────────────┐
│                         │        executed │          failed │
├─────────────────────────┼─────────────────┼─────────────────┤
│              iterations │               1 │               0 │
├─────────────────────────┼─────────────────┼─────────────────┤
│                requests │              29 │               0 │
├─────────────────────────┼─────────────────┼─────────────────┤
│            test-scripts │              58 │               0 │
├─────────────────────────┼─────────────────┼─────────────────┤
│      prerequest-scripts │              30 │               0 │
├─────────────────────────┼─────────────────┼─────────────────┤
│              assertions │              58 │               0 │
├─────────────────────────┴─────────────────┴─────────────────┤
│ total run duration: 30.9s                                   │
├─────────────────────────────────────────────────────────────┤
│ total data received: 8.66KB (approx)                        │
├─────────────────────────────────────────────────────────────┤
│ average response time: 4ms [min: 1ms, max: 39ms, s.d.: 7ms] │
└─────────────────────────────────────────────────────────────┘

Passed Regression Test in 1 attempt(s)

Removing imported keys from CLI's keystore...
Test Results:
{
    "Staking integration test": true,
    "Post-staking epoch regression test": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment