24 $x =
new EthD(
'0x4f1116b6e1a6e963efffa30c0a8541075cc51c45');
25 $this->assertSame($x->val(),
'4f1116b6e1a6e963efffa30c0a8541075cc51c45');
26 $this->assertSame($x->hexVal(),
'0x4f1116b6e1a6e963efffa30c0a8541075cc51c45');
27 $this->assertSame($x->getSchemaType(),
"D");
38 '0000000000000000000000000000000000000000000000000000000000000009' 39 .
'6761766f66796f726b0000000000000000000000000000000000000000000000' 42 '0x6761766f66796f726b',
47 '0000000000000000000000000000000000000000000000000000000000000020' 48 .
'731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b' 51 '0x731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b',
56 '0000000000000000000000000000000000000000000000000000000000000060' 57 .
'131a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b' 58 .
'231a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b' 59 .
'331a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b' 62 '0x131a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b231a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b331a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b',
67 '0000000000000000000000000000000000000000000000000000000000000040' 68 .
'731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b' 69 .
'731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b' 72 '0x731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b' 73 .
'731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b',
78 '000000000000000000000000000000000000000000000000000000000000009f' 79 .
'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff' 80 .
'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff' 81 .
'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff' 82 .
'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff' 83 .
'fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff100' 86 '0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff' 87 .
'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff' 88 .
'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff' 89 .
'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff' 90 .
'fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1',
95 '0000000000000000000000000000000000000000000000000000000000000006' 96 .
'c3a40000c3a40000000000000000000000000000000000000000000000000000',
103 '000000000000000000000000000000000000000000000000000000000000000b' 104 .
'68656c6c6f20776f726c64000000000000000000000000000000000000000000',
106 '0x68656c6c6f20776f726c64',
126 '0000000000000000000000000000000000000000000000000000000000000009' 127 .
'6761766f66796f726b0000000000000000000000000000000000000000000000' 130 '0x6761766f66796f726b',
150 $expClass =
"\\Ethereum\DataType\\$expClass";
151 $x = $expClass::cretateFromRLP(EthereumStatic::ensureHexPrefix($rawValue));
152 $this->assertEquals($expVal, $x->hexVal());
160 $class =
"\\Ethereum\DataType\\" . $expClass;
161 $x =
new $class($expVal);
162 $this->assertEquals($expClass, $x->getClassName());
171 $class =
"\\Ethereum\DataType\\" . $expClass;
172 $x =
new $class($expVal, [
'abi' =>
$abi]);
173 $this->assertEquals($expClass, $x->getClassName());
181 $x =
new EthD($expVal);
182 $y = $x->convertByAbi(
$abi);
183 $this->assertEquals(EthereumStatic::removeHexPrefix($expVal), $y->val());
191 $x =
new EthD($expVal);
192 $y = $x->convertByAbi(
$abi);
193 $this->assertEquals($expClass, $y->getClassName());
testEthBytesTest__createTypeWithAbi($abi, $rawValue, $expClass, $expVal)
testEthBytesTest__createType($abi, $rawValue, $expClass, $expVal)
testEthBytesTest__converter($abi, $rawValue, $expClass, $expVal)
testEthBytesTest__converterType($abi, $rawValue, $expClass, $expVal)
testEthBytesTest__createVal($abi, $rawValue, $expClass, $expVal)