update tests: abijson

This commit is contained in:
Alex Beregszaszi 2022-11-04 00:25:39 +01:00
parent da5f0160d9
commit 824cab5d24
25 changed files with 80 additions and 160 deletions

View File

@ -5,8 +5,7 @@ contract test {
// :test // :test
// [ // [
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "a", // "name": "a",
@ -14,8 +13,7 @@ contract test {
// } // }
// ], // ],
// "name": "f", // "name": "f",
// "outputs": // "outputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "d", // "name": "d",

View File

@ -5,8 +5,7 @@ contract test {
// :test // :test
// [ // [
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "param1", // "name": "param1",

View File

@ -9,8 +9,7 @@ contract test {
// :test // :test
// [ // [
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "", // "name": "",
@ -23,8 +22,7 @@ contract test {
// } // }
// ], // ],
// "name": "f", // "name": "f",
// "outputs": // "outputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "ret_k", // "name": "ret_k",

View File

@ -7,8 +7,7 @@ contract test {
// :test // :test
// [ // [
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "k", // "name": "k",
@ -16,8 +15,7 @@ contract test {
// } // }
// ], // ],
// "name": "f", // "name": "f",
// "outputs": // "outputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "", // "name": "",

View File

@ -13,8 +13,7 @@ contract X {
// :X // :X
// [ // [
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "", // "name": "",
@ -25,8 +24,7 @@ contract X {
// "type": "error" // "type": "error"
// }, // },
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "a", // "name": "a",
@ -42,8 +40,7 @@ contract X {
// "type": "error" // "type": "error"
// }, // },
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "a", // "name": "a",
@ -59,11 +56,9 @@ contract X {
// "type": "error" // "type": "error"
// }, // },
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "components": // "components": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "x", // "name": "x",

View File

@ -34,8 +34,7 @@ contract X is C {
// :D // :D
// [ // [
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "", // "name": "",
@ -61,8 +60,7 @@ contract X is C {
// "type": "error" // "type": "error"
// }, // },
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "", // "name": "",
@ -78,8 +76,7 @@ contract X is C {
// "type": "error" // "type": "error"
// }, // },
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "x", // "name": "x",

View File

@ -9,11 +9,9 @@ contract C {
// [ // [
// { // {
// "anonymous": false, // "anonymous": false,
// "inputs": // "inputs": [
// [
// { // {
// "components": // "components": [
// [
// { // {
// "internalType": "uint256[2]", // "internalType": "uint256[2]",
// "name": "x", // "name": "x",
@ -26,16 +24,14 @@ contract C {
// "type": "tuple" // "type": "tuple"
// }, // },
// { // {
// "components": // "components": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "a", // "name": "a",
// "type": "uint256" // "type": "uint256"
// }, // },
// { // {
// "components": // "components": [
// [
// { // {
// "internalType": "uint256[2]", // "internalType": "uint256[2]",
// "name": "x", // "name": "x",

View File

@ -10,8 +10,7 @@ contract test {
// [ // [
// { // {
// "anonymous": false, // "anonymous": false,
// "inputs": // "inputs": [
// [
// { // {
// "indexed": false, // "indexed": false,
// "internalType": "uint256", // "internalType": "uint256",
@ -36,8 +35,7 @@ contract test {
// }, // },
// { // {
// "anonymous": false, // "anonymous": false,
// "inputs": // "inputs": [
// [
// { // {
// "indexed": false, // "indexed": false,
// "internalType": "uint256", // "internalType": "uint256",
@ -55,8 +53,7 @@ contract test {
// "type": "event" // "type": "event"
// }, // },
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "a", // "name": "a",
@ -64,8 +61,7 @@ contract test {
// } // }
// ], // ],
// "name": "f", // "name": "f",
// "outputs": // "outputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "d", // "name": "d",

View File

@ -5,8 +5,7 @@ contract test {
// :test // :test
// [ // [
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "function (uint256) external returns (uint256)", // "internalType": "function (uint256) external returns (uint256)",
// "name": "x", // "name": "x",

View File

@ -5,8 +5,7 @@ contract test {
// :test // :test
// [ // [
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "function (contract test) external returns (contract test[])", // "internalType": "function (contract test) external returns (contract test[])",
// "name": "x", // "name": "x",

View File

@ -8,11 +8,9 @@ contract C {
// :C // :C
// [ // [
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "components": // "components": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "a", // "name": "a",
@ -30,11 +28,9 @@ contract C {
// "type": "function" // "type": "function"
// }, // },
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "components": // "components": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "a", // "name": "a",

View File

@ -11,8 +11,7 @@ contract Derived is Base {
// [ // [
// { // {
// "anonymous": false, // "anonymous": false,
// "inputs": // "inputs": [
// [
// { // {
// "indexed": true, // "indexed": true,
// "internalType": "bytes32", // "internalType": "bytes32",
@ -24,8 +23,7 @@ contract Derived is Base {
// "type": "event" // "type": "event"
// }, // },
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "p", // "name": "p",
@ -33,8 +31,7 @@ contract Derived is Base {
// } // }
// ], // ],
// "name": "baseFunction", // "name": "baseFunction",
// "outputs": // "outputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "i", // "name": "i",
@ -51,8 +48,7 @@ contract Derived is Base {
// [ // [
// { // {
// "anonymous": false, // "anonymous": false,
// "inputs": // "inputs": [
// [
// { // {
// "indexed": true, // "indexed": true,
// "internalType": "bytes32", // "internalType": "bytes32",
@ -65,8 +61,7 @@ contract Derived is Base {
// }, // },
// { // {
// "anonymous": false, // "anonymous": false,
// "inputs": // "inputs": [
// [
// { // {
// "indexed": true, // "indexed": true,
// "internalType": "uint256", // "internalType": "uint256",
@ -78,8 +73,7 @@ contract Derived is Base {
// "type": "event" // "type": "event"
// }, // },
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "p", // "name": "p",
@ -87,8 +81,7 @@ contract Derived is Base {
// } // }
// ], // ],
// "name": "baseFunction", // "name": "baseFunction",
// "outputs": // "outputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "i", // "name": "i",
@ -99,8 +92,7 @@ contract Derived is Base {
// "type": "function" // "type": "function"
// }, // },
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "bytes32", // "internalType": "bytes32",
// "name": "p", // "name": "p",
@ -108,8 +100,7 @@ contract Derived is Base {
// } // }
// ], // ],
// "name": "derivedFunction", // "name": "derivedFunction",
// "outputs": // "outputs": [
// [
// { // {
// "internalType": "bytes32", // "internalType": "bytes32",
// "name": "i", // "name": "i",

View File

@ -12,8 +12,7 @@ library test {
// :test // :test
// [ // [
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "uint256[]", // "internalType": "uint256[]",
// "name": "c", // "name": "c",
@ -26,8 +25,7 @@ library test {
// } // }
// ], // ],
// "name": "f1", // "name": "f1",
// "outputs": // "outputs": [
// [
// { // {
// "internalType": "uint256[]", // "internalType": "uint256[]",
// "name": "e", // "name": "e",

View File

@ -6,8 +6,7 @@ contract test {
// :test // :test
// [ // [
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "a", // "name": "a",
@ -15,8 +14,7 @@ contract test {
// } // }
// ], // ],
// "name": "f", // "name": "f",
// "outputs": // "outputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "d", // "name": "d",
@ -27,8 +25,7 @@ contract test {
// "type": "function" // "type": "function"
// }, // },
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "b", // "name": "b",
@ -36,8 +33,7 @@ contract test {
// } // }
// ], // ],
// "name": "g", // "name": "g",
// "outputs": // "outputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "e", // "name": "e",

View File

@ -7,8 +7,7 @@ contract test {
// :test // :test
// [ // [
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "b", // "name": "b",
@ -16,8 +15,7 @@ contract test {
// } // }
// ], // ],
// "name": "c", // "name": "c",
// "outputs": // "outputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "e", // "name": "e",
@ -28,8 +26,7 @@ contract test {
// "type": "function" // "type": "function"
// }, // },
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "a", // "name": "a",
@ -37,8 +34,7 @@ contract test {
// } // }
// ], // ],
// "name": "f", // "name": "f",
// "outputs": // "outputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "d", // "name": "d",

View File

@ -5,8 +5,7 @@ contract test {
// :test // :test
// [ // [
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "a", // "name": "a",
@ -19,8 +18,7 @@ contract test {
// } // }
// ], // ],
// "name": "f", // "name": "f",
// "outputs": // "outputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "d", // "name": "d",

View File

@ -5,8 +5,7 @@ contract test {
// :test // :test
// [ // [
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "param1", // "name": "param1",

View File

@ -6,8 +6,7 @@ contract test {
// :test // :test
// [ // [
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "uint32", // "internalType": "uint32",
// "name": "a", // "name": "a",
@ -15,8 +14,7 @@ contract test {
// } // }
// ], // ],
// "name": "boo", // "name": "boo",
// "outputs": // "outputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "b", // "name": "b",
@ -27,8 +25,7 @@ contract test {
// "type": "function" // "type": "function"
// }, // },
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "a", // "name": "a",
@ -41,8 +38,7 @@ contract test {
// } // }
// ], // ],
// "name": "foo", // "name": "foo",
// "outputs": // "outputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "d", // "name": "d",

View File

@ -11,8 +11,7 @@ contract test {
// :test // :test
// [ // [
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "enum test.ActionChoices", // "internalType": "enum test.ActionChoices",
// "name": "param", // "name": "param",
@ -25,8 +24,7 @@ contract test {
// { // {
// "inputs": [], // "inputs": [],
// "name": "ret", // "name": "ret",
// "outputs": // "outputs": [
// [
// { // {
// "internalType": "enum test.ActionChoices", // "internalType": "enum test.ActionChoices",
// "name": "", // "name": "",

View File

@ -11,24 +11,21 @@ contract C {
// { // {
// "inputs": [], // "inputs": [],
// "name": "f", // "name": "f",
// "outputs": // "outputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "x", // "name": "x",
// "type": "uint256" // "type": "uint256"
// }, // },
// { // {
// "components": // "components": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "a", // "name": "a",
// "type": "uint256" // "type": "uint256"
// }, // },
// { // {
// "components": // "components": [
// [
// { // {
// "internalType": "uint256[2]", // "internalType": "uint256[2]",
// "name": "x", // "name": "x",

View File

@ -10,11 +10,9 @@ contract C {
// { // {
// "inputs": [], // "inputs": [],
// "name": "f", // "name": "f",
// "outputs": // "outputs": [
// [
// { // {
// "components": // "components": [
// [
// { // {
// "internalType": "contract C[]", // "internalType": "contract C[]",
// "name": "x", // "name": "x",

View File

@ -6,8 +6,7 @@ contract test {
// :test // :test
// [ // [
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "string", // "internalType": "string",
// "name": "a", // "name": "a",

View File

@ -9,19 +9,16 @@ library L {
// :L // :L
// [ // [
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "components": // "components": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "a", // "name": "a",
// "type": "uint256" // "type": "uint256"
// }, // },
// { // {
// "components": // "components": [
// [
// { // {
// "internalType": "uint256[2]", // "internalType": "uint256[2]",
// "name": "x", // "name": "x",

View File

@ -33,8 +33,7 @@ contract C {
// { // {
// "inputs": [], // "inputs": [],
// "name": "myAddress", // "name": "myAddress",
// "outputs": // "outputs": [
// [
// { // {
// "internalType": "C.MyAddress", // "internalType": "C.MyAddress",
// "name": "", // "name": "",
@ -47,8 +46,7 @@ contract C {
// { // {
// "inputs": [], // "inputs": [],
// "name": "myByte1", // "name": "myByte1",
// "outputs": // "outputs": [
// [
// { // {
// "internalType": "MyByte1", // "internalType": "MyByte1",
// "name": "", // "name": "",
@ -61,8 +59,7 @@ contract C {
// { // {
// "inputs": [], // "inputs": [],
// "name": "myBytes32", // "name": "myBytes32",
// "outputs": // "outputs": [
// [
// { // {
// "internalType": "C.MyBytes32", // "internalType": "C.MyBytes32",
// "name": "", // "name": "",
@ -75,8 +72,7 @@ contract C {
// { // {
// "inputs": [], // "inputs": [],
// "name": "myInt", // "name": "myInt",
// "outputs": // "outputs": [
// [
// { // {
// "internalType": "MyInt", // "internalType": "MyInt",
// "name": "", // "name": "",
@ -89,8 +85,7 @@ contract C {
// { // {
// "inputs": [], // "inputs": [],
// "name": "myUInt8", // "name": "myUInt8",
// "outputs": // "outputs": [
// [
// { // {
// "internalType": "C.MyUInt8", // "internalType": "C.MyUInt8",
// "name": "", // "name": "",
@ -101,8 +96,7 @@ contract C {
// "type": "function" // "type": "function"
// }, // },
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "C.MyAddress", // "internalType": "C.MyAddress",
// "name": "a", // "name": "a",
@ -115,8 +109,7 @@ contract C {
// "type": "function" // "type": "function"
// }, // },
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "MyByte1", // "internalType": "MyByte1",
// "name": "a", // "name": "a",
@ -129,8 +122,7 @@ contract C {
// "type": "function" // "type": "function"
// }, // },
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "C.MyBytes32", // "internalType": "C.MyBytes32",
// "name": "a", // "name": "a",
@ -143,8 +135,7 @@ contract C {
// "type": "function" // "type": "function"
// }, // },
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "MyInt", // "internalType": "MyInt",
// "name": "a", // "name": "a",
@ -157,8 +148,7 @@ contract C {
// "type": "function" // "type": "function"
// }, // },
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "C.MyUInt8", // "internalType": "C.MyUInt8",
// "name": "a", // "name": "a",

View File

@ -6,8 +6,7 @@ contract test {
// :test // :test
// [ // [
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "uint32", // "internalType": "uint32",
// "name": "a", // "name": "a",
@ -15,8 +14,7 @@ contract test {
// } // }
// ], // ],
// "name": "boo", // "name": "boo",
// "outputs": // "outputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "b", // "name": "b",
@ -27,8 +25,7 @@ contract test {
// "type": "function" // "type": "function"
// }, // },
// { // {
// "inputs": // "inputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "a", // "name": "a",
@ -41,8 +38,7 @@ contract test {
// } // }
// ], // ],
// "name": "foo", // "name": "foo",
// "outputs": // "outputs": [
// [
// { // {
// "internalType": "uint256", // "internalType": "uint256",
// "name": "d", // "name": "d",