github.com/n1ghtfa1l/go-vnt@v0.6.4-alpha.6/core/wavm/tests/convert.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": "convert/Convert.compress", 34 "abi": "convert/abi.json", 35 "initcase": { 36 "needinit": true, 37 "input": [] 38 }, 39 "tests": [{ 40 "function": "addressToStringWithInput", 41 "input": [{ 42 "data": "0x02", 43 "type": "address" 44 }], 45 "wanted": { 46 "data": "0x0000000000000000000000000000000000000002", 47 "type": "string" 48 } 49 }, { 50 "function": "uint256ToStringWithInput", 51 "input": [{ 52 "data": "1000000000", 53 "type": "uint256" 54 }], 55 "wanted": { 56 "data": "1000000000", 57 "type": "string" 58 } 59 }] 60 }] 61 }