github.com/n1ghtfa1l/go-vnt@v0.6.4-alpha.6/core/wavm/tests/concat.json (about)

     1  {
     2       "env": {
     3            "previousHash": "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6",
     4            "currentNumber": 257,
     5            "currentGasLimit": 4000000,
     6            "currentDifficulty": 256,
     7            "currentTimestamp": 1546273000,
     8            "currentCoinbase": "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
     9       },
    10       "exec": {
    11            "address": "0xcccccccccccccccccccccccccccccccccccccccc",
    12            "value": 0,
    13            "gas": 4000000,
    14            "caller": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    15            "origin": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    16            "gasPrice": 1000000
    17       },
    18       "pre": {
    19            "0xcccccccccccccccccccccccccccccccccccccccc": {
    20                 "balance": "0xDE0B6B3A7640000",
    21                 "code": "",
    22                 "nonce": "0x00",
    23                 "storage": {}
    24            },
    25            "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa": {
    26                 "balance": "0xDE0B6B3A7640000",
    27                 "code": "",
    28                 "nonce": "0x00",
    29                 "storage": {}
    30            }
    31       },
    32       "testcase": [{
    33            "code": "concat/testConcat.compress",
    34            "abi": "concat/abi.json",
    35            "initcase": {
    36                 "needinit": true,
    37                 "input": []
    38            },
    39            "tests": [{
    40                 "function": "Test_Concat",
    41                 "rawinput": "0x0efc11a200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000076578616d706c6500000000000000000000000000000000000000000000000000",
    42                 "wanted": {
    43                      "data": "example",
    44                      "type": "string"
    45                 }
    46            }, {
    47                 "function": "Test_Concat",
    48                 "input": [{
    49                      "data": "",
    50                      "type": "string"
    51                 }, {
    52                      "data": "example",
    53                      "type": "string"
    54                 }],
    55                 "wanted": {
    56                      "data": "example",
    57                      "type": "string"
    58                 }
    59            }, {
    60                 "function": "Test_Concat",
    61                 "input": [{
    62                      "data": "",
    63                      "type": "string"
    64                 }, {
    65                      "data": "example",
    66                      "type": "string"
    67                 }],
    68                 "wanted": {
    69                      "data": "example",
    70                      "type": "string"
    71                 }
    72            }, {
    73                 "function": "Test_Equal",
    74                 "input": [{
    75                      "data": "",
    76                      "type": "string"
    77                 }, {
    78                      "data": "example",
    79                      "type": "string"
    80                 }],
    81                 "wanted": {
    82                      "data": "false",
    83                      "type": "bool"
    84                 }
    85            }, {
    86                 "function": "Test_Equal",
    87                 "input": [{
    88                      "data": "example",
    89                      "type": "string"
    90                 }, {
    91                      "data": "example",
    92                      "type": "string"
    93                 }],
    94                 "wanted": {
    95                      "data": "true",
    96                      "type": "bool"
    97                 }
    98            }]
    99       }]
   100  }