mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Additional type info for ABI.
This commit is contained in:
@@ -9,6 +9,7 @@ contract test {
|
||||
// "inputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "a",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
@@ -17,6 +18,7 @@ contract test {
|
||||
// "outputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "d",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
|
||||
@@ -8,14 +8,17 @@ contract test {
|
||||
// "inputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "param1",
|
||||
// "type": "uint256"
|
||||
// },
|
||||
// {
|
||||
// "internalType": "contract test",
|
||||
// "name": "param2",
|
||||
// "type": "address"
|
||||
// },
|
||||
// {
|
||||
// "internalType": "bool",
|
||||
// "name": "param3",
|
||||
// "type": "bool"
|
||||
// }
|
||||
|
||||
@@ -13,10 +13,12 @@ contract test {
|
||||
// "inputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "",
|
||||
// "type": "uint256"
|
||||
// },
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "k",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
@@ -25,10 +27,12 @@ contract test {
|
||||
// "outputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "ret_k",
|
||||
// "type": "uint256"
|
||||
// },
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "ret_g",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
|
||||
@@ -11,6 +11,7 @@ contract test {
|
||||
// "inputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "k",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
@@ -19,6 +20,7 @@ contract test {
|
||||
// "outputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
|
||||
@@ -15,11 +15,13 @@ contract C {
|
||||
// "components":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256[2]",
|
||||
// "name": "x",
|
||||
// "type": "uint256[2]"
|
||||
// }
|
||||
// ],
|
||||
// "indexed": false,
|
||||
// "internalType": "struct C.T",
|
||||
// "name": "t",
|
||||
// "type": "tuple"
|
||||
// },
|
||||
@@ -27,6 +29,7 @@ contract C {
|
||||
// "components":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "a",
|
||||
// "type": "uint256"
|
||||
// },
|
||||
@@ -34,19 +37,23 @@ contract C {
|
||||
// "components":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256[2]",
|
||||
// "name": "x",
|
||||
// "type": "uint256[2]"
|
||||
// }
|
||||
// ],
|
||||
// "internalType": "struct C.T[]",
|
||||
// "name": "sub",
|
||||
// "type": "tuple[]"
|
||||
// },
|
||||
// {
|
||||
// "internalType": "bytes",
|
||||
// "name": "b",
|
||||
// "type": "bytes"
|
||||
// }
|
||||
// ],
|
||||
// "indexed": false,
|
||||
// "internalType": "struct C.S",
|
||||
// "name": "s",
|
||||
// "type": "tuple"
|
||||
// }
|
||||
|
||||
@@ -13,6 +13,7 @@ contract test {
|
||||
// "inputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "a",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
@@ -21,6 +22,7 @@ contract test {
|
||||
// "outputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "d",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
@@ -35,11 +37,13 @@ contract test {
|
||||
// [
|
||||
// {
|
||||
// "indexed": false,
|
||||
// "internalType": "uint256",
|
||||
// "name": "b",
|
||||
// "type": "uint256"
|
||||
// },
|
||||
// {
|
||||
// "indexed": true,
|
||||
// "internalType": "address",
|
||||
// "name": "c",
|
||||
// "type": "address"
|
||||
// }
|
||||
@@ -59,6 +63,7 @@ contract test {
|
||||
// [
|
||||
// {
|
||||
// "indexed": false,
|
||||
// "internalType": "uint256",
|
||||
// "name": "a",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
|
||||
@@ -9,6 +9,7 @@ contract test {
|
||||
// "inputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "function (uint256) external returns (uint256)",
|
||||
// "name": "x",
|
||||
// "type": "function"
|
||||
// }
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
contract test {
|
||||
function g(function(test) external returns (test[] memory) x) public {}
|
||||
}
|
||||
// ----
|
||||
// :test
|
||||
// [
|
||||
// {
|
||||
// "constant": false,
|
||||
// "inputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "function (contract test) external returns (contract test[])",
|
||||
// "name": "x",
|
||||
// "type": "function"
|
||||
// }
|
||||
// ],
|
||||
// "name": "g",
|
||||
// "outputs": [],
|
||||
// "payable": false,
|
||||
// "stateMutability": "nonpayable",
|
||||
// "type": "function"
|
||||
// }
|
||||
// ]
|
||||
@@ -14,6 +14,7 @@ contract Derived is Base {
|
||||
// "inputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "p",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
@@ -22,6 +23,7 @@ contract Derived is Base {
|
||||
// "outputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "i",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
@@ -36,6 +38,7 @@ contract Derived is Base {
|
||||
// [
|
||||
// {
|
||||
// "indexed": true,
|
||||
// "internalType": "bytes32",
|
||||
// "name": "evtArgBase",
|
||||
// "type": "bytes32"
|
||||
// }
|
||||
@@ -53,6 +56,7 @@ contract Derived is Base {
|
||||
// "inputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "p",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
@@ -61,6 +65,7 @@ contract Derived is Base {
|
||||
// "outputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "i",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
@@ -74,6 +79,7 @@ contract Derived is Base {
|
||||
// "inputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "bytes32",
|
||||
// "name": "p",
|
||||
// "type": "bytes32"
|
||||
// }
|
||||
@@ -82,6 +88,7 @@ contract Derived is Base {
|
||||
// "outputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "bytes32",
|
||||
// "name": "i",
|
||||
// "type": "bytes32"
|
||||
// }
|
||||
@@ -96,6 +103,7 @@ contract Derived is Base {
|
||||
// [
|
||||
// {
|
||||
// "indexed": true,
|
||||
// "internalType": "uint256",
|
||||
// "name": "evtArgDerived",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
@@ -109,6 +117,7 @@ contract Derived is Base {
|
||||
// [
|
||||
// {
|
||||
// "indexed": true,
|
||||
// "internalType": "bytes32",
|
||||
// "name": "evtArgBase",
|
||||
// "type": "bytes32"
|
||||
// }
|
||||
|
||||
@@ -11,10 +11,12 @@ library test {
|
||||
// "inputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256[]",
|
||||
// "name": "c",
|
||||
// "type": "uint256[]"
|
||||
// },
|
||||
// {
|
||||
// "internalType": "library test",
|
||||
// "name": "d",
|
||||
// "type": "test"
|
||||
// }
|
||||
@@ -23,6 +25,7 @@ library test {
|
||||
// "outputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256[]",
|
||||
// "name": "e",
|
||||
// "type": "uint256[]"
|
||||
// }
|
||||
|
||||
@@ -10,6 +10,7 @@ contract test {
|
||||
// "inputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "a",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
@@ -18,6 +19,7 @@ contract test {
|
||||
// "outputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "d",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
@@ -31,6 +33,7 @@ contract test {
|
||||
// "inputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "b",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
@@ -39,6 +42,7 @@ contract test {
|
||||
// "outputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "e",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
|
||||
@@ -11,6 +11,7 @@ contract test {
|
||||
// "inputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "b",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
@@ -19,6 +20,7 @@ contract test {
|
||||
// "outputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "e",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
@@ -32,6 +34,7 @@ contract test {
|
||||
// "inputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "a",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
@@ -40,6 +43,7 @@ contract test {
|
||||
// "outputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "d",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
|
||||
@@ -9,10 +9,12 @@ contract test {
|
||||
// "inputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "a",
|
||||
// "type": "uint256"
|
||||
// },
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "b",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
@@ -21,6 +23,7 @@ contract test {
|
||||
// "outputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "d",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
|
||||
@@ -8,14 +8,17 @@ contract test {
|
||||
// "inputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "param1",
|
||||
// "type": "uint256"
|
||||
// },
|
||||
// {
|
||||
// "internalType": "contract test",
|
||||
// "name": "param2",
|
||||
// "type": "address"
|
||||
// },
|
||||
// {
|
||||
// "internalType": "bool",
|
||||
// "name": "param3",
|
||||
// "type": "bool"
|
||||
// }
|
||||
|
||||
@@ -10,10 +10,12 @@ contract test {
|
||||
// "inputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "a",
|
||||
// "type": "uint256"
|
||||
// },
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "b",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
@@ -22,6 +24,7 @@ contract test {
|
||||
// "outputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "d",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
@@ -35,6 +38,7 @@ contract test {
|
||||
// "inputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint32",
|
||||
// "name": "a",
|
||||
// "type": "uint32"
|
||||
// }
|
||||
@@ -43,6 +47,7 @@ contract test {
|
||||
// "outputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "b",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
|
||||
@@ -17,6 +17,7 @@ contract test {
|
||||
// "outputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "enum test.ActionChoices",
|
||||
// "name": "",
|
||||
// "type": "uint8"
|
||||
// }
|
||||
@@ -29,6 +30,7 @@ contract test {
|
||||
// "inputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "enum test.ActionChoices",
|
||||
// "name": "param",
|
||||
// "type": "uint8"
|
||||
// }
|
||||
|
||||
@@ -15,6 +15,7 @@ contract C {
|
||||
// "outputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "x",
|
||||
// "type": "uint256"
|
||||
// },
|
||||
@@ -22,6 +23,7 @@ contract C {
|
||||
// "components":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "a",
|
||||
// "type": "uint256"
|
||||
// },
|
||||
@@ -29,14 +31,17 @@ contract C {
|
||||
// "components":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256[2]",
|
||||
// "name": "x",
|
||||
// "type": "uint256[2]"
|
||||
// }
|
||||
// ],
|
||||
// "internalType": "struct C.T[]",
|
||||
// "name": "sub",
|
||||
// "type": "tuple[]"
|
||||
// }
|
||||
// ],
|
||||
// "internalType": "struct C.S",
|
||||
// "name": "s",
|
||||
// "type": "tuple"
|
||||
// }
|
||||
|
||||
@@ -17,18 +17,22 @@ contract C {
|
||||
// "components":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "contract C[]",
|
||||
// "name": "x",
|
||||
// "type": "address[]"
|
||||
// },
|
||||
// {
|
||||
// "internalType": "contract C",
|
||||
// "name": "y",
|
||||
// "type": "address"
|
||||
// }
|
||||
// ],
|
||||
// "internalType": "struct C.S",
|
||||
// "name": "s",
|
||||
// "type": "tuple"
|
||||
// },
|
||||
// {
|
||||
// "internalType": "contract C",
|
||||
// "name": "c",
|
||||
// "type": "address"
|
||||
// }
|
||||
|
||||
@@ -10,14 +10,17 @@ contract test {
|
||||
// "inputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "string",
|
||||
// "name": "a",
|
||||
// "type": "string"
|
||||
// },
|
||||
// {
|
||||
// "internalType": "bytes",
|
||||
// "name": "b",
|
||||
// "type": "bytes"
|
||||
// },
|
||||
// {
|
||||
// "internalType": "uint256[]",
|
||||
// "name": "c",
|
||||
// "type": "uint256[]"
|
||||
// }
|
||||
|
||||
@@ -16,6 +16,7 @@ library L {
|
||||
// "components":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "a",
|
||||
// "type": "uint256"
|
||||
// },
|
||||
@@ -23,18 +24,22 @@ library L {
|
||||
// "components":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256[2]",
|
||||
// "name": "x",
|
||||
// "type": "uint256[2]"
|
||||
// }
|
||||
// ],
|
||||
// "internalType": "struct L.T[]",
|
||||
// "name": "sub",
|
||||
// "type": "tuple[]"
|
||||
// },
|
||||
// {
|
||||
// "internalType": "bytes",
|
||||
// "name": "b",
|
||||
// "type": "bytes"
|
||||
// }
|
||||
// ],
|
||||
// "internalType": "struct L.S",
|
||||
// "name": "s",
|
||||
// "type": "tuple"
|
||||
// }
|
||||
|
||||
@@ -10,10 +10,12 @@ contract test {
|
||||
// "inputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "a",
|
||||
// "type": "uint256"
|
||||
// },
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "b",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
@@ -22,6 +24,7 @@ contract test {
|
||||
// "outputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "d",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
@@ -35,6 +38,7 @@ contract test {
|
||||
// "inputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint32",
|
||||
// "name": "a",
|
||||
// "type": "uint32"
|
||||
// }
|
||||
@@ -43,6 +47,7 @@ contract test {
|
||||
// "outputs":
|
||||
// [
|
||||
// {
|
||||
// "internalType": "uint256",
|
||||
// "name": "b",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user