diff --git a/tests/data/__init__.py b/tests/data/__init__.py index 5ba5e91..8b13789 100644 --- a/tests/data/__init__.py +++ b/tests/data/__init__.py @@ -1,66 +1 @@ -""" -// SPDX-License-Identifier: GPL-3.0 -pragma solidity >=0.7.0 <0.9.0; - -contract Storage { - uint256 number; - bool enable; - string s; - address[] addrs; - - constructor(uint256 num, bool _enable, string memory _s, address[] memory _addrs) { - number = num; - enable = _enable; - s = _s; - addrs = _addrs; - } -} -""" - -EXAMPLE_CONTRACT_ABI = """ -[ - { - "inputs": [ - { - "internalType": "uint256", - "name": "num", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "_enable", - "type": "bool" - }, - { - "internalType": "string", - "name": "_s", - "type": "string" - }, - { - "internalType": "address[]", - "name": "_addrs", - "type": "address[]" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - } -] -""" - -EXAMPLE_CONSTRUCTOR_CALL_INPUT = "0x608060405234801561001057600080fd5b506040516103b53803806103b583398101604081905261002f916101f6565b60008490556001805460ff19168415151790558151610055906002906020850190610073565b5080516100699060039060208401906100f7565b5050505050610368565b82805461007f90610317565b90600052602060002090601f0160209004810192826100a157600085556100e7565b82601f106100ba57805160ff19168380011785556100e7565b828001600101855582156100e7579182015b828111156100e75782518255916020019190600101906100cc565b506100f392915061014c565b5090565b8280548282559060005260206000209081019282156100e7579160200282015b828111156100e757825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190610117565b5b808211156100f3576000815560010161014d565b600082601f830112610171578081fd5b815160206001600160401b0382111561018c5761018c610352565b80820261019a8282016102e7565b8381528281019086840183880185018910156101b4578687fd5b8693505b858410156101ea5780516001600160a01b03811681146101d6578788fd5b8352600193909301929184019184016101b8565b50979650505050505050565b6000806000806080858703121561020b578384fd5b845193506020808601518015158114610222578485fd5b60408701519094506001600160401b038082111561023e578485fd5b818801915088601f830112610251578485fd5b81518181111561026357610263610352565b610275601f8201601f191685016102e7565b8181528a85838601011115610288578687fd5b865b828110156102a557848101860151828201870152850161028a565b828111156102b557878684840101525b5060608a0151909650935050808311156102cd578384fd5b50506102db87828801610161565b91505092959194509250565b604051601f8201601f191681016001600160401b038111828210171561030f5761030f610352565b604052919050565b60028104600182168061032b57607f821691505b6020821081141561034c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b603f806103766000396000f3fe6080604052600080fdfea2646970667358221220851fcc0cb4c7ff3a2c4a1e4181556e4d599c439d3998769d816bb4e1c3d421da64736f6c6343000801003300000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000036161610000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001" - -EXAMPLE_CONSTRUCTOR_CALL_ARGUMENT = [ - ("uint256", "num", 1), - ("bool", "_enable", False), - ("string", "_s", "aaa"), - ( - "address[]", - "_addrs", - [ - "0x0000000000000000000000000000000000000000", - "0x0000000000000000000000000000000000000001", - ], - ), -]