github.com/n1ghtfa1l/go-vnt@v0.6.4-alpha.6/core/wavm/tests/initializeVariables.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": "initializeVariables/initializeVariables.compress", 34 "abi": "initializeVariables/abi.json", 35 "initcase": { 36 "needinit": true, 37 "input": [] 38 }, 39 "tests": [{ 40 "function": "getU256", 41 "input": [], 42 "wanted": { 43 "data": "100000000000", 44 "type": "uint256" 45 } 46 }, { 47 "function": "getAddr", 48 "input": [], 49 "wanted": { 50 "data": "0xaaaaaa", 51 "type": "address" 52 } 53 }, { 54 "function": "getStr", 55 "input": [], 56 "wanted": { 57 "data": "teststring", 58 "type": "string" 59 } 60 }, { 61 "function": "getU64", 62 "input": [], 63 "wanted": { 64 "data": "100000", 65 "type": "uint64" 66 } 67 }, { 68 "function": "getStrInS1", 69 "input": [], 70 "wanted": { 71 "data": "teststringinstruct", 72 "type": "string" 73 } 74 }, { 75 "function": "getU256InS1", 76 "input": [], 77 "wanted": { 78 "data": "10000000000011", 79 "type": "uint256" 80 } 81 }, { 82 "function": "getAddrInS1", 83 "input": [], 84 "wanted": { 85 "data": "0xaaaaaa11", 86 "type": "address" 87 } 88 }, { 89 "function": "getU64InS1", 90 "input": [], 91 "wanted": { 92 "data": "1000001", 93 "type": "uint64" 94 } 95 }, { 96 "function": "getStr1InS2", 97 "input": [], 98 "wanted": { 99 "data": "teststringinstruct", 100 "type": "string" 101 } 102 }, { 103 "function": "getU2561InS2", 104 "input": [], 105 "wanted": { 106 "data": "10000000000011", 107 "type": "uint256" 108 } 109 }, { 110 "function": "getAddr1InS2", 111 "input": [], 112 "wanted": { 113 "data": "0xaaaaaa11", 114 "type": "address" 115 } 116 }, { 117 "function": "getU641InS2", 118 "input": [], 119 "wanted": { 120 "data": "1000001", 121 "type": "uint64" 122 } 123 }, { 124 "function": "getStr2InS2", 125 "input": [], 126 "wanted": { 127 "data": "teststringinstructstruct", 128 "type": "string" 129 } 130 }, { 131 "function": "getU2562InS2", 132 "input": [], 133 "wanted": { 134 "data": "1000000000001122", 135 "type": "uint256" 136 } 137 }, { 138 "function": "getAddr2InS2", 139 "input": [], 140 "wanted": { 141 "data": "0xaaaaaa1122", 142 "type": "address" 143 } 144 }, { 145 "function": "getU642InS2", 146 "input": [], 147 "wanted": { 148 "data": "10000012", 149 "type": "uint64" 150 } 151 }] 152 }] 153 }