Class foundation.omni.test.rpc.misc.GetPayloadSpec

19

tests

0

failures

0

ignored

13.328s

duration

100%

successful

Tests

Test Duration Result
getpayload_MP: a payload has at least the fields "version" and "type" 0.717s passed
getpayload_MP: decodes reference: type 0, version 0 - simple send 0.573s passed
getpayload_MP: decodes reference: type 20, version 0 - sell tokens for bitcoin 0.548s passed
getpayload_MP: decodes reference: type 20, version 1 - sell tokens for bitcoin 0.689s passed
getpayload_MP: decodes reference: type 21, version 0 - sell tokens for tokens 0.635s passed
getpayload_MP: decodes reference: type 22, version 0 - purchase tokens with bitcoin 0.549s passed
getpayload_MP: decodes reference: type 3, version 0 - send to owners 1.004s passed
getpayload_MP: decodes reference: type 50, version 0 - create property 0.879s passed
getpayload_MP: decodes reference: type 51, version 0 - create crowdsale 0.638s passed
getpayload_MP: decodes reference: type 51, version 1 - create crowdsale 0.717s passed
getpayload_MP: decodes reference: type 53, version 0 - close crowdsale 0.641s passed
getpayload_MP: decodes reference: type 54, version 0 - create managed property 0.791s passed
getpayload_MP: decodes reference: type 55, version 0 - grant token 0.621s passed
getpayload_MP: decodes reference: type 56, version 0 - revoke token 0.665s passed
getpayload_MP: it creates no error for valid input 0.948s passed
getpayload_MP: only "version" and "type" are returned for unknown transaction types 0.817s passed
getpayload_MP: the payload of an unconfirmed transaction be extracted 0.725s passed
getpayload_MP: throws an exception for a non-existing transaction 0.485s passed
getpayload_MP: throws an exception for a regular transaction without payload 0.686s passed

Standard output

Waiting for server RPC ready...

RPC Ready.
{
    "txid": "babcf7a271abed47f4add60a3d0bd454ce20730ce7a93a32c030b8718c224987",
    "hex": "000000000000000100000000009896800000000000000000000000000000",
    "version": 0,
    "type": 0,
    "property": 1,
    "amount": 10000000,
    "blockhash": "000018d7feac32a5c88963b53b8ed7d0c1578943e12961c8a0c84e67beca4baf",
    "confirmations": 1,
    "time": 1422550371,
    "blocktime": 1422550371
}
{
    "txid": "9f553275467e536d70f92ed4b655586efff0c8fda852c847024d8a545d65bfda",
    "hex": "00000000000000020000000000e4e1c00000000000000000000000000000",
    "version": 0,
    "type": 0,
    "property": 2,
    "amount": 15000000
}
{
    "txid": "19de62931cfdd4792f94bca72ee8c43acac0c041bb5cb3482ffe6fa61d6d0015",
    "hex": "000000070000000000000000000000000000000000000000000000000000",
    "version": 0,
    "type": 7,
    "blockhash": "00000424cc8766d5d280108df66f942fc7d3050494d88ebb6d7782c0f4a4ee36",
    "confirmations": 1,
    "time": 1422550375,
    "blocktime": 1422550375
}
{
    "txid": "a151c1f881a03cb084550061783cfcf0ddea8566aa0005454f48bad52a10b136",
    "hex": "00010005000000030000000005f5e1000000000000000000000000000000",
    "version": 1,
    "type": 5,
    "blockhash": "0000a3a8bcbd00a9cc5dacd223452ac826bcdae83cef84527a7d7f58bc3051ab",
    "confirmations": 1,
    "time": 1422550376,
    "blocktime": 1422550376
}
{
    "txid": "5754d5ae67371337bfa15663e9e705a022dfaed2a339673a5bd0eb6f75fdb84d",
    "hex": "00000000000000010000000006dac2c00000000000000000000000000000",
    "version": 0,
    "type": 0,
    "property": 1,
    "amount": 115000000
}
{
    "txid": "2a92e88e1df1816766d9bef54e99dcfbc20385a1cb5e9a4788d1a4457ff79aa5",
    "hex": "0000000300000006000000174876e8000000000000000000000000000000",
    "version": 0,
    "type": 3,
    "property": 6,
    "amount": 100000000000
}
{
    "txid": "ff3dc7384aff9a27a5a968a0327dd1552d278b4ea1da0b5124e907bf3a68d6d7",
    "hex": "00000014000000010000000008f0d180000000174876e8000a0000000000989680000000000000000000000000000000000000000000000000000000",
    "version": 0,
    "type": 20,
    "property": 1,
    "amount_for_sale": 150000000,
    "amount_desired": 100000000000,
    "block_time_limit": 10,
    "commitment_fee": 10000000
}
{
    "txid": "c7e050d6d32da28e4eaf01e9c1347efd4500857f21f9e7b0a7e1e9425b5ad515",
    "hex": "00010014000000010000000008f0d180000000174876e8000a0000000000989680010000000000000000000000000000000000000000000000000000",
    "version": 1,
    "type": 20,
    "property": 1,
    "amount_for_sale": 150000000,
    "amount_desired": 100000000000,
    "block_time_limit": 10,
    "commitment_fee": 10000000,
    "subaction": 1
}
{
    "txid": "42bac858891f736ece1b66fd7fc3b459e9e713e2b3d4d79083966aa9268462c2",
    "hex": "0000001500000001000000000ee6b28000000003000000012a05f2000100",
    "version": 0,
    "type": 21,
    "property": 1,
    "amount_for_sale": 250000000,
    "property_desired": 3,
    "amount_desired": 5000000000,
    "subaction": 1
}
{
    "txid": "3ce9658401805ada6ff886c1d0cb38c563685687e51d52c18e26e82be1752257",
    "hex": "00000016000000010000000007bfa4800000000000000000000000000000",
    "version": 0,
    "type": 22,
    "property": 1,
    "amount": 130000000
}
{
    "txid": "be0e9649deb8f0f62fcd00c2fb10a9fe367532a6c728424e34b192c4177fa5b4",
    "hex": "0000003201000100000000436f6d70616e69657300426974636f696e204d696e696e67005175616e74756d204d696e6572006275696c6465722e62697477617463682e636f000000000000000f42400000000000000000000000",
    "version": 0,
    "type": 50,
    "ecosystem": 1,
    "property_type": 1,
    "previous_property_id": 0,
    "category": "Companies",
    "subcategory": "Bitcoin Mining",
    "name": "Quantum Miner",
    "url": "builder.bitwatch.co",
    "data": "",
    "amount": 1000000
}
{
    "txid": "b3566c71d379f11c8493ea6e522d4b66a53a2500997fb78819376746f781c75d",
    "hex": "0000003301000100000000436f6d70616e69657300426974636f696e204d696e696e67005175616e74756d204d696e6572006275696c6465722e62697477617463682e636f000000000001000000000000006400000001ccd403f00a0c000000000000000000000000000000000000000000000000000000",
    "version": 0,
    "type": 51,
    "ecosystem": 1,
    "property_type": 1,
    "previous_property_id": 0,
    "category": "Companies",
    "subcategory": "Bitcoin Mining",
    "name": "Quantum Miner",
    "url": "builder.bitwatch.co",
    "data": "",
    "property_desired": 1,
    "token_per_unit_vested": 100,
    "deadline": 7731414000,
    "early_bird_bonus": 10,
    "issuer_bonus": 12
}
{
    "txid": "ef5e93b6ab02fd36f208d9860facbbd93249b1a5ec4a5159165a1f0f1d1dc738",
    "hex": "0001003301000100000000436f6d70616e69657300426974636f696e204d696e696e67005175616e74756d204d696e6572006275696c6465722e62697477617463682e636f000000000001000000000000006400000001ccd403f00a0c000000000000000000000000000000000000000000000000000000",
    "version": 1,
    "type": 51,
    "ecosystem": 1,
    "property_type": 1,
    "previous_property_id": 0,
    "category": "Companies",
    "subcategory": "Bitcoin Mining",
    "name": "Quantum Miner",
    "url": "builder.bitwatch.co",
    "data": "",
    "property_desired": 1,
    "token_per_unit_vested": 100,
    "deadline": 7731414000,
    "early_bird_bonus": 10,
    "issuer_bonus": 12
}
{
    "txid": "5c0729670e356656186b7546db744a079a7a91e2d773fb273af8d3e2ea1878b5",
    "hex": "000000350000000900000000000000000000000000000000000000000000",
    "version": 0,
    "type": 53,
    "property": 9
}
{
    "txid": "104327216ae4d4e472323cf5e4d2933464c4be42fd60a960263244e700e208ab",
    "hex": "0000003601000100000000436f6d70616e69657300426974636f696e204d696e696e67005175616e74756d204d696e6572006275696c6465722e62697477617463682e636f000000000000000000000000000000000000000000",
    "version": 0,
    "type": 54,
    "ecosystem": 1,
    "property_type": 1,
    "previous_property_id": 0,
    "category": "Companies",
    "subcategory": "Bitcoin Mining",
    "name": "Quantum Miner",
    "url": "builder.bitwatch.co",
    "data": ""
}
{
    "txid": "346087754112eaff143bee8c3d696441e383bfbff6cd991684ad3fdc246789ab",
    "hex": "000000370000000800000000000003e84669727374204d696c6573746f6e652052656163686564210000000000000000000000000000000000000000",
    "version": 0,
    "type": 55,
    "property": 8,
    "amount": 1000,
    "memo": "First Milestone Reached!"
}
{
    "txid": "c39508983634db4a795bea3e9616aa67dc808aa05b07fb00c3a6bd536f18c91e",
    "hex": "000000380000000800000000000003e8526564656d7074696f6e206f6620746f6b656e7320666f7220426f622c205468616e6b7320426f6221000000",
    "version": 0,
    "type": 56,
    "property": 8,
    "amount": 1000,
    "memo": "Redemption of tokens for Bob, Thanks Bob!"
}

Standard error

Waiting for server...