Class foundation.omni.test.rpc.misc.DecodePacketSpec

15

tests

0

failures

0

ignored

0.322s

duration

100%

successful

Tests

Test Duration Result
decodepacket_MP: creates no error for valid input 0.070s passed
decodepacket_MP: decodes reference: type 0, version 0 - simple send 0.018s passed
decodepacket_MP: decodes reference: type 20, version 0 - sell tokens for bitcoin 0.015s passed
decodepacket_MP: decodes reference: type 20, version 1 - sell tokens for bitcoin 0.027s passed
decodepacket_MP: decodes reference: type 21, version 0 - sell tokens for tokens 0.011s passed
decodepacket_MP: decodes reference: type 22, version 0 - purchase tokens with bitcoin 0.007s passed
decodepacket_MP: decodes reference: type 3, version 0 - send to owners 0.009s passed
decodepacket_MP: decodes reference: type 50, version 0 - create property 0.018s passed
decodepacket_MP: decodes reference: type 51, version 0 - create crowdsale 0.027s passed
decodepacket_MP: decodes reference: type 51, version 1 - create crowdsale 0.011s passed
decodepacket_MP: decodes reference: type 53, version 0 - close crowdsale 0.009s passed
decodepacket_MP: decodes reference: type 54, version 0 - create managed property 0.035s passed
decodepacket_MP: decodes reference: type 55, version 0 - grant token 0.030s passed
decodepacket_MP: decodes reference: type 56, version 0 - revoke token 0.011s passed
decodepacket_MP: throws an exception for invalid hex 0.024s passed

Standard output

Waiting for server RPC ready...

RPC Ready.
{
    "hex": "00000000000000010000000006dac2c0",
    "version": 0,
    "type": 0,
    "property": 1,
    "amount": 115000000
}
{
    "hex": "00000000000000010000000006dac2c0",
    "version": 0,
    "type": 0,
    "property": 1,
    "amount": 115000000
}
{
    "hex": "0000000300000006000000174876e800",
    "version": 0,
    "type": 3,
    "property": 6,
    "amount": 100000000000
}
{
    "hex": "00000014000000010000000008f0d180000000174876e8000a0000000000989680",
    "version": 0,
    "type": 20,
    "property": 1,
    "amount_for_sale": 150000000,
    "amount_desired": 100000000000,
    "block_time_limit": 10,
    "commitment_fee": 10000000
}
{
    "hex": "00010014000000010000000008f0d180000000174876e8000a000000000098968001",
    "version": 1,
    "type": 20,
    "property": 1,
    "amount_for_sale": 150000000,
    "amount_desired": 100000000000,
    "block_time_limit": 10,
    "commitment_fee": 10000000,
    "subaction": 1
}
{
    "hex": "0000001500000001000000000ee6b28000000003000000012a05f20001",
    "version": 0,
    "type": 21,
    "property": 1,
    "amount_for_sale": 250000000,
    "property_desired": 3,
    "amount_desired": 5000000000,
    "subaction": 1
}
{
    "hex": "00000016000000010000000007bfa480",
    "version": 0,
    "type": 22,
    "property": 1,
    "amount": 130000000
}
{
    "hex": "0000003201000100000000436f6d70616e69657300426974636f696e204d696e696e67005175616e74756d204d696e6572006275696c6465722e62697477617463682e636f000000000000000f4240",
    "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
}
{
    "hex": "0000003301000100000000436f6d70616e69657300426974636f696e204d696e696e67005175616e74756d204d696e6572006275696c6465722e62697477617463682e636f000000000001000000000000006400000001ccd403f00a0c",
    "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
}
{
    "hex": "0001003301000100000000436f6d70616e69657300426974636f696e204d696e696e67005175616e74756d204d696e6572006275696c6465722e62697477617463682e636f000000000001000000000000006400000001ccd403f00a0c",
    "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
}
{
    "hex": "0000003500000009",
    "version": 0,
    "type": 53,
    "property": 9
}
{
    "hex": "0000003601000100000000436f6d70616e69657300426974636f696e204d696e696e67005175616e74756d204d696e6572006275696c6465722e62697477617463682e636f0000",
    "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": ""
}
{
    "hex": "000000370000000800000000000003e84669727374204d696c6573746f6e6520526561636865642100",
    "version": 0,
    "type": 55,
    "property": 8,
    "amount": 1000,
    "memo": "First Milestone Reached!"
}
{
    "hex": "000000380000000800000000000003e8526564656d7074696f6e206f6620746f6b656e7320666f7220426f622c205468616e6b7320426f622100",
    "version": 0,
    "type": 56,
    "property": 8,
    "amount": 1000,
    "memo": "Redemption of tokens for Bob, Thanks Bob!"
}

Standard error

Waiting for server...