예제 #1
0
    ),

    # Static tuples
    (
        '(uint32)',
        (6,),
        words('6'),
    ),
    (
        '(uint32,uint32)',
        (2 ** 32 - 1, 2 ** 32 - 1),
        words('ffffffff', 'ffffffff'),
    ),
    (
        '(bytes32,bytes32)',
        (zpad32_right(b'a'), zpad32_right(b'b')),
        words('61>0', '62>0'),
    ),
    (
        '(address,uint32,bytes32,int32)',
        (
            '0x82a978b3f5962a5b0957d9ee9eef472ee55b42f1',
            1,
            zpad32_right(b'stupid pink animal'),
            0,
        ),
        words(
            '82a978b3f5962a5b0957d9ee9eef472ee55b42f1',
            '1',
            '7374757069642070696e6b20616e696d616c>0',
            '0',
예제 #2
0
 # Static tuples
 (
     '(uint32)',
     (6,),
     words('6'),
     words('6 (4 wide)'),
 ),
 (
     '(uint32,uint32)',
     (2 ** 32 - 1, 2 ** 32 - 1),
     words('ffffffff', 'ffffffff'),
     words('f<f (4 wide)', 'f<f (4 wide)')
 ),
 (
     '(bytes32,bytes32)',
     (zpad32_right(b'a'), zpad32_right(b'b')),
     words('61>0', '62>0'),
     words('61>0', '62>0'),
 ),
 (
     '(address,uint32,bytes32,int32)',
     (
         '0x82a978b3f5962a5b0957d9ee9eef472ee55b42f1',
         1,
         zpad32_right(b'stupid pink animal'),
         0,
     ),
     words(
         '82a978b3f5962a5b0957d9ee9eef472ee55b42f1',
         '1',
         '7374757069642070696e6b20616e696d616c>0',