Search is not available for this dataset
chain_id
uint64 1
1
| block_number
uint64 19.5M
20M
| block_hash
stringlengths 64
64
| transaction_hash
stringlengths 64
64
| deployer_address
stringlengths 40
40
| factory_address
stringlengths 40
40
| contract_address
stringlengths 40
40
| creation_bytecode
stringlengths 0
98.3k
| runtime_bytecode
stringlengths 0
49.2k
| creation_sourcecode
stringlengths 0
976k
|
---|---|---|---|---|---|---|---|---|---|
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
61fa9f8fc93ccef4bd6f9db7bc2ea03f83b0873ff22f07a6ce90908ef89d97d2
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
56d1507818c3f590337507fec10f6faa86564609
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
2e3f5e2fce758ab743e102adc709b726e1c9290b1937309c476e8398ebda24b7
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
90d5d432d243abc55986fef928cb026988699e17
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
6e0ec0dfc9e01e172e66c863eaeb624dd05a65414cd30e7085b30f1eb61554bb
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
34a95e0616f52915b23338c4094b93ebef1df5c7
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
e9afd8c467b778a21b287679e5ea897dae82c8327713102ddfe883bc9fc2f05f
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
3a6c145188e40bef5650cc465080020d2f23a117
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
25f4022296e38a18b1b75ca67ebd7bdc41af78c8b09f1fab95cacef33d53fdb0
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
370c6105ebc6667e91cf38dd0f2399200608ea32
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
1a15f6a0aa881d286b633991fe16ead9933828232276534d59198fb4239a31a9
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
7edeae0eecd4f2e7d43821699c445bc9b2779b87
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
4603aa49bcec6d1e59863aad4022622cc921f4e79537de91e5fcbd329e37cce1
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
b372d0a3e19286a460ba8d8787858c905fd7d599
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
b9ab9b150a9e1b3e7cca587b44140879ad2aeeaf7e663a723254d59db95e4a2e
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
29720f850d56114f967c4484acdef7eda622a6ed
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
49a7295d75917cb5aad3b5b353167bd0292ba43e939e1e8336ef54b32c76fb62
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
599305dd0e4c8997082b712e3c221d6415c9e5e7
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
737438ebeac005f0119fb22ac1560d89b94d420822333e02477b7b3848113577
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
844d1061a350d8e5245dcc76cb7234406303571e
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
596bea985014e4944526c166b48b923b8f5696724de79cbfbc9b35b135cdc9ad
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
f09ba454be5c37ca6ca4490cd07e9ee6b654b845
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
e1db126b03dbe9c816c27331d7256259ba0e38e9763883268e595379518a9c72
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
f6477833061a472046af3c4b4d77e8890f81ace9
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
d6b24da11a0ea609c4c9bf1c5317929f299426c36700667bd7183b4d846ef32f
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
8294f251288a789662bf6de1c62a7e154e212329
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
da87b9f028f238dde14852ecea0491e2675b2abc8631c0c7ed1835e64bcb8d65
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
b89355d9517f61d43a0072b497bf8903fcbb3cb4
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
b1835d287cfc83a48c3cd2a7e0ca9c0173ef49fa5ce3af7052f44192f4766d2f
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
46c2e9ff1f5b37291b535c429a2a0e4a0eace6e3
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
b62e6f950bd53c595c4cd5b166650610822f1f19c24b8ed8760c2b27473f1869
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
e65b92636040b7bd5640b376469ab0cd5ddab4f5
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
05ba6b56e7f76ecbc1271622bee45f4cd761fa3dadb56e8d1a775028eb45b1eb
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
3571d68122c5c6f9bf64fa8fef7b357495658654
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
5d785c7d94e4fb768743a7a77d72492f4182a9633aa62615c439ce8fd4ac49b3
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
b249ba0d08973c1992857f431dbbf0be8fe523ab
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
f68cfd382349e235f8d6d1e8be7508ce86dcf70b374632ad77bac70a272399b4
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
3491293458686e38da2740c089deb6e1a2261863
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
e8e8d387acbc3863432fd29396156168c3615783e9332051dd692ac43bce0f75
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
9b73c83079111970b665f1d9148bb3d0c50f1143
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
5cfd21f189db642862522a0cde4a7a50f36bcf4ae118d68c89d4e968531862f8
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
d826c69d13116e61f09b2a7ebe3c5fe53e805b2c
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
3bc8534a72a48d1913b18c04e868bfba08f86be74a68efdb710394b4b1bc9c12
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
2821fb97ff28848991541517755167b8f32a9dbd
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
40148b27bf329b6e645acdd9ee6ad90190cdd6e26c23b15388218b31e040c192
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
4ab3f8feb588b38f9fd507c154c6fcbe2fbc75af
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
bba19130e41d47cd5c8a0606142772accb85ba3d22bfe1eb87a2e8a3be261271
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
96a5e1543e31ef03df32d309c7d8e953f0b69027
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
6d04cb2f2b05e94242c55c77a9f0aa785f69d03679e3862b568616935e93bca3
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
653d6d7a0656a325aa9720f7b95a2e9526228afa
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
7a7ab1931d6baf33e744edf5c3391fe10a18f5bb6f908fe2257427cc42d5d47d
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
583d6d8cc4fd612b88aca1c02922a8127a2d424d
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
64779402bed7e62d9612e713a5db72aadc88dd208ef43c5ded77943fecbc50f6
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
dc8e4a7859996c798d8183ea926aed24edae8396
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
9cf1f7c9b042280293b61385a60914d1a45b105a61b4216db640232d6eb70937
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
7ac0e59cc8a72bb35b66ccc69c64305c48d07467
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
6afa668e6ef3a45d3c71c46285e0b6ecc0be5059a28321902467d38ca7e5beb1
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
3713bae0043a353b702003651ed8bf39ba4d1b1c
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
609a287038988b2a62e9dfb4924aa52eb2ae6d6c4c1290cc20600ed04b7e894b
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
238b90211a09638a05e666e3744fc071937caaf3
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
e77b31af1685546278b765a6c8046a3abe8ee63e1ee53d71d9d670d246b1fd65
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
be0e74702711a3da8786e237e23483abe82e1025
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
fef8a386b70c80469f83c34fa1b81e612c865b225bf75d228a94faf86d3b92ea
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
886e5f2cadf350f2a6f3fd015ea1b4b26feecc45
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
63544696e717c510e3840f3b64ee54abf052dd780d936ed264d933d00a91e237
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
4e7b760e9f07ece4ced7b72a65354458d20df89e
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
64f5977c584f3ebdf80b9af90ff7973c5e3da0d72956cd9a5fda7a271660e953
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
9f15369bd539a612048862c9f30917930606e395
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
43e675d28a0f36ed1e8abbb0ebbf4214fbc97fe4a569d9ba6ecbd0bd9436550d
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
c641122a51f253538e60a293eeaf23d3858f0097
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
fa5759c7420b369c4db748fa04b338abe4dd4f6e64910f29d91611ae72ccaf85
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
e6a48613ee113eb272501825d6ba488dfc5c20f9
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
3289c8c1a0dd119d8d3a85fce5caca93af8ae194e417177285054659879fa6be
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
bb910d54df1dfa93d625d3ddbeae491e54b6c420
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
19960de6e13d7d6245dc9328f04b4a7c41b0178616b49016124458bc4f5ca81f
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
e3fa41e341d94a11dbae3fcb4456ba1ccb8e5d47
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
bc10605723b50fac8dd9d11a5383901bf060502a9643b6805a32ee592226937c
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
dbcd109bd9d718be34457ce92cf00cdf049962fd
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
bda1124f3c532d7a48e0bd8b4ace371ad9f6d2efee1fa7eceaacca33a03ecca1
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
12eda283c64e21181ee71a5b7a7c9ac8238a6ddc
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
258545a2cb8bbb0a7e793a980aa8c095030c4ef30cf569a081e8cf20feb3684d
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
2787df56a9ee47aa0c474def4538cd92219938d5
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
501d521d10e2996a23c65562cca9bd598c5a40ef2c8061f6c8169f31273b3f31
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
62cdf1bf9b438aa743aa67e3510a5e4d930c1651
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
ea5aac853bb5f4102acf90d8e6e4617245f75a1be6db12e72cd90b399f62c2d0
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
14b5cb2f8b433de5f68579ffabc4595c3f22a986
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
da297fc065768f6245f53698319e49d6285d2987e6bda700ca3374eb78d9a679
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
7eb03de5bce055dc7d0ede79c5411674883221b4
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
b339d632a756170f42cd257f57296e4444cec7d315cd44c1e9b94bf9a6b7543e
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
e9c4810f54aa2289d2978598e42a76a723141211
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,893 |
475ee77d5a7e40030c4f40d24fac6b8d890b74d43079bc21eb180bd778ba03f1
|
fe501bd4b56bedd4a38d04740b147f26f17e5a0a7306b1a645a7e9e61235b536
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
543cddcd5138ad020dc578ec32f4fb2a883edcc8
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,894 |
f58ca53a08913ad8262b45ed52f6613ce4d41a16e0b8cccbc6c08d1ea0705997
|
374930ec3cd60bf8b46e4a1222ab526a3a78e5f455ba56a693936765dfa56c54
|
42c89aa66c9d73c665dafe60f84018bf66dcb206
|
5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f
|
f505f1b61c51cf916dece9bc35aa7a9783227917
|
60806040526001600c5534801561001557600080fd5b506040514690806052612d228239604080519182900360520182208282018252600a8352692ab734b9bbb0b8102b1960b11b6020938401528151808301835260018152603160f81b908401528151808401919091527fbfcc8ef98ffbf7b6c3fec7bf5185b566b9863e35a9d83acd49ad6824b5969738818301527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606082015260808101949094523060a0808601919091528151808603909101815260c09094019052825192019190912060035550600580546001600160a01b03191633179055612c1d806101056000396000f3fe608060405234801561001057600080fd5b50600436106101b95760003560e01c80636a627842116100f9578063ba9a7a5611610097578063d21220a711610071578063d21220a7146105da578063d505accf146105e2578063dd62ed3e14610640578063fff6cae91461067b576101b9565b8063ba9a7a5614610597578063bc25cf771461059f578063c45a0155146105d2576101b9565b80637ecebe00116100d35780637ecebe00146104d757806389afcb441461050a57806395d89b4114610556578063a9059cbb1461055e576101b9565b80636a6278421461046957806370a082311461049c5780637464fc3d146104cf576101b9565b806323b872dd116101665780633644e515116101405780633644e51514610416578063485cc9551461041e5780635909c0d5146104595780635a3d549314610461576101b9565b806323b872dd146103ad57806330adf81f146103f0578063313ce567146103f8576101b9565b8063095ea7b311610197578063095ea7b3146103155780630dfe16811461036257806318160ddd14610393576101b9565b8063022c0d9f146101be57806306fdde03146102595780630902f1ac146102d6575b600080fd5b610257600480360360808110156101d457600080fd5b81359160208101359173ffffffffffffffffffffffffffffffffffffffff604083013516919081019060808101606082013564010000000081111561021857600080fd5b82018360208201111561022a57600080fd5b8035906020019184600183028401116401000000008311171561024c57600080fd5b509092509050610683565b005b610261610d57565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561029b578181015183820152602001610283565b50505050905090810190601f1680156102c85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102de610d90565b604080516dffffffffffffffffffffffffffff948516815292909316602083015263ffffffff168183015290519081900360600190f35b61034e6004803603604081101561032b57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610de5565b604080519115158252519081900360200190f35b61036a610dfc565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61039b610e18565b60408051918252519081900360200190f35b61034e600480360360608110156103c357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610e1e565b61039b610efd565b610400610f21565b6040805160ff9092168252519081900360200190f35b61039b610f26565b6102576004803603604081101561043457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610f2c565b61039b611005565b61039b61100b565b61039b6004803603602081101561047f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611011565b61039b600480360360208110156104b257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166113cb565b61039b6113dd565b61039b600480360360208110156104ed57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166113e3565b61053d6004803603602081101561052057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166113f5565b6040805192835260208301919091528051918290030190f35b610261611892565b61034e6004803603604081101561057457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356118cb565b61039b6118d8565b610257600480360360208110156105b557600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166118de565b61036a611ad4565b61036a611af0565b610257600480360360e08110156105f857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135611b0c565b61039b6004803603604081101561065657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516611dd8565b610257611df5565b600c546001146106f457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c55841515806107075750600084115b61075c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612b2f6025913960400191505060405180910390fd5b600080610767610d90565b5091509150816dffffffffffffffffffffffffffff168710801561079a5750806dffffffffffffffffffffffffffff1686105b6107ef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612b786021913960400191505060405180910390fd5b600654600754600091829173ffffffffffffffffffffffffffffffffffffffff91821691908116908916821480159061085457508073ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff1614155b6108bf57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f556e697377617056323a20494e56414c49445f544f0000000000000000000000604482015290519081900360640190fd5b8a156108d0576108d0828a8d611fdb565b89156108e1576108e1818a8c611fdb565b86156109c3578873ffffffffffffffffffffffffffffffffffffffff166310d1e85c338d8d8c8c6040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f8201169050808301925050509650505050505050600060405180830381600087803b1580156109aa57600080fd5b505af11580156109be573d6000803e3d6000fd5b505050505b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff8416916370a08231916024808301926020929190829003018186803b158015610a2f57600080fd5b505afa158015610a43573d6000803e3d6000fd5b505050506040513d6020811015610a5957600080fd5b5051604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905191955073ffffffffffffffffffffffffffffffffffffffff8316916370a0823191602480820192602092909190829003018186803b158015610acb57600080fd5b505afa158015610adf573d6000803e3d6000fd5b505050506040513d6020811015610af557600080fd5b5051925060009150506dffffffffffffffffffffffffffff85168a90038311610b1f576000610b35565b89856dffffffffffffffffffffffffffff160383035b9050600089856dffffffffffffffffffffffffffff16038311610b59576000610b6f565b89856dffffffffffffffffffffffffffff160383035b90506000821180610b805750600081115b610bd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180612b546024913960400191505060405180910390fd5b6000610c09610beb84600363ffffffff6121e816565b610bfd876103e863ffffffff6121e816565b9063ffffffff61226e16565b90506000610c21610beb84600363ffffffff6121e816565b9050610c59620f4240610c4d6dffffffffffffffffffffffffffff8b8116908b1663ffffffff6121e816565b9063ffffffff6121e816565b610c69838363ffffffff6121e816565b1015610cd657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f556e697377617056323a204b0000000000000000000000000000000000000000604482015290519081900360640190fd5b5050610ce4848488886122e0565b60408051838152602081018390528082018d9052606081018c9052905173ffffffffffffffffffffffffffffffffffffffff8b169133917fd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d8229181900360800190a350506001600c55505050505050505050565b6040518060400160405280600a81526020017f556e69737761702056320000000000000000000000000000000000000000000081525081565b6008546dffffffffffffffffffffffffffff808216926e0100000000000000000000000000008304909116917c0100000000000000000000000000000000000000000000000000000000900463ffffffff1690565b6000610df233848461259c565b5060015b92915050565b60065473ffffffffffffffffffffffffffffffffffffffff1681565b60005481565b73ffffffffffffffffffffffffffffffffffffffff831660009081526002602090815260408083203384529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff14610ee85773ffffffffffffffffffffffffffffffffffffffff84166000908152600260209081526040808320338452909152902054610eb6908363ffffffff61226e16565b73ffffffffffffffffffffffffffffffffffffffff851660009081526002602090815260408083203384529091529020555b610ef384848461260b565b5060019392505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b601281565b60035481565b60055473ffffffffffffffffffffffffffffffffffffffff163314610fb257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f556e697377617056323a20464f5242494444454e000000000000000000000000604482015290519081900360640190fd5b6006805473ffffffffffffffffffffffffffffffffffffffff9384167fffffffffffffffffffffffff00000000000000000000000000000000000000009182161790915560078054929093169116179055565b60095481565b600a5481565b6000600c5460011461108457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c81905580611094610d90565b50600654604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905193955091935060009273ffffffffffffffffffffffffffffffffffffffff909116916370a08231916024808301926020929190829003018186803b15801561110e57600080fd5b505afa158015611122573d6000803e3d6000fd5b505050506040513d602081101561113857600080fd5b5051600754604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905192935060009273ffffffffffffffffffffffffffffffffffffffff909216916370a0823191602480820192602092909190829003018186803b1580156111b157600080fd5b505afa1580156111c5573d6000803e3d6000fd5b505050506040513d60208110156111db57600080fd5b505190506000611201836dffffffffffffffffffffffffffff871663ffffffff61226e16565b90506000611225836dffffffffffffffffffffffffffff871663ffffffff61226e16565b9050600061123387876126ec565b600054909150806112705761125c6103e8610bfd611257878763ffffffff6121e816565b612878565b985061126b60006103e86128ca565b6112cd565b6112ca6dffffffffffffffffffffffffffff8916611294868463ffffffff6121e816565b8161129b57fe5b046dffffffffffffffffffffffffffff89166112bd868563ffffffff6121e816565b816112c457fe5b0461297a565b98505b60008911611326576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180612bc16028913960400191505060405180910390fd5b6113308a8a6128ca565b61133c86868a8a6122e0565b811561137e5760085461137a906dffffffffffffffffffffffffffff808216916e01000000000000000000000000000090041663ffffffff6121e816565b600b555b6040805185815260208101859052815133927f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f928290030190a250506001600c5550949695505050505050565b60016020526000908152604090205481565b600b5481565b60046020526000908152604090205481565b600080600c5460011461146957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c81905580611479610d90565b50600654600754604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905194965092945073ffffffffffffffffffffffffffffffffffffffff9182169391169160009184916370a08231916024808301926020929190829003018186803b1580156114fb57600080fd5b505afa15801561150f573d6000803e3d6000fd5b505050506040513d602081101561152557600080fd5b5051604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905191925060009173ffffffffffffffffffffffffffffffffffffffff8516916370a08231916024808301926020929190829003018186803b15801561159957600080fd5b505afa1580156115ad573d6000803e3d6000fd5b505050506040513d60208110156115c357600080fd5b5051306000908152600160205260408120549192506115e288886126ec565b600054909150806115f9848763ffffffff6121e816565b8161160057fe5b049a5080611614848663ffffffff6121e816565b8161161b57fe5b04995060008b11801561162e575060008a115b611683576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180612b996028913960400191505060405180910390fd5b61168d3084612992565b611698878d8d611fdb565b6116a3868d8c611fdb565b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff8916916370a08231916024808301926020929190829003018186803b15801561170f57600080fd5b505afa158015611723573d6000803e3d6000fd5b505050506040513d602081101561173957600080fd5b5051604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905191965073ffffffffffffffffffffffffffffffffffffffff8816916370a0823191602480820192602092909190829003018186803b1580156117ab57600080fd5b505afa1580156117bf573d6000803e3d6000fd5b505050506040513d60208110156117d557600080fd5b505193506117e585858b8b6122e0565b811561182757600854611823906dffffffffffffffffffffffffffff808216916e01000000000000000000000000000090041663ffffffff6121e816565b600b555b604080518c8152602081018c9052815173ffffffffffffffffffffffffffffffffffffffff8f169233927fdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496929081900390910190a35050505050505050506001600c81905550915091565b6040518060400160405280600681526020017f554e492d5632000000000000000000000000000000000000000000000000000081525081565b6000610df233848461260b565b6103e881565b600c5460011461194f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c55600654600754600854604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff9485169490931692611a2b9285928792611a26926dffffffffffffffffffffffffffff169185916370a0823191602480820192602092909190829003018186803b1580156119ee57600080fd5b505afa158015611a02573d6000803e3d6000fd5b505050506040513d6020811015611a1857600080fd5b50519063ffffffff61226e16565b611fdb565b600854604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051611aca9284928792611a26926e01000000000000000000000000000090046dffffffffffffffffffffffffffff169173ffffffffffffffffffffffffffffffffffffffff8616916370a0823191602480820192602092909190829003018186803b1580156119ee57600080fd5b50506001600c5550565b60055473ffffffffffffffffffffffffffffffffffffffff1681565b60075473ffffffffffffffffffffffffffffffffffffffff1681565b42841015611b7b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f556e697377617056323a20455850495245440000000000000000000000000000604482015290519081900360640190fd5b60035473ffffffffffffffffffffffffffffffffffffffff80891660008181526004602090815260408083208054600180820190925582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98186015280840196909652958d166060860152608085018c905260a085019590955260c08085018b90528151808603909101815260e0850182528051908301207f19010000000000000000000000000000000000000000000000000000000000006101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff89166101828501526101a284018890526101c28401879052519193926101e2808201937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081019281900390910190855afa158015611cdc573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811615801590611d5757508873ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b611dc257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f556e697377617056323a20494e56414c49445f5349474e415455524500000000604482015290519081900360640190fd5b611dcd89898961259c565b505050505050505050565b600260209081526000928352604080842090915290825290205481565b600c54600114611e6657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c55600654604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051611fd49273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b158015611edd57600080fd5b505afa158015611ef1573d6000803e3d6000fd5b505050506040513d6020811015611f0757600080fd5b5051600754604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff909216916370a0823191602480820192602092909190829003018186803b158015611f7a57600080fd5b505afa158015611f8e573d6000803e3d6000fd5b505050506040513d6020811015611fa457600080fd5b50516008546dffffffffffffffffffffffffffff808216916e0100000000000000000000000000009004166122e0565b6001600c55565b604080518082018252601981527f7472616e7366657228616464726573732c75696e743235362900000000000000602091820152815173ffffffffffffffffffffffffffffffffffffffff85811660248301526044808301869052845180840390910181526064909201845291810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001781529251815160009460609489169392918291908083835b602083106120e157805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016120a4565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612143576040519150601f19603f3d011682016040523d82523d6000602084013e612148565b606091505b5091509150818015612176575080511580612176575080806020019051602081101561217357600080fd5b50515b6121e157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f556e697377617056323a205452414e534645525f4641494c4544000000000000604482015290519081900360640190fd5b5050505050565b60008115806122035750508082028282828161220057fe5b04145b610df657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6d756c2d6f766572666c6f77000000000000000000000000604482015290519081900360640190fd5b80820382811115610df657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f64732d6d6174682d7375622d756e646572666c6f770000000000000000000000604482015290519081900360640190fd5b6dffffffffffffffffffffffffffff841180159061230c57506dffffffffffffffffffffffffffff8311155b61237757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f556e697377617056323a204f564552464c4f5700000000000000000000000000604482015290519081900360640190fd5b60085463ffffffff428116917c0100000000000000000000000000000000000000000000000000000000900481168203908116158015906123c757506dffffffffffffffffffffffffffff841615155b80156123e257506dffffffffffffffffffffffffffff831615155b15612492578063ffffffff16612425856123fb86612a57565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169063ffffffff612a7b16565b600980547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff929092169290920201905563ffffffff8116612465846123fb87612a57565b600a80547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff92909216929092020190555b600880547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff888116919091177fffffffff0000000000000000000000000000ffffffffffffffffffffffffffff166e0100000000000000000000000000008883168102919091177bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167c010000000000000000000000000000000000000000000000000000000063ffffffff871602179283905560408051848416815291909304909116602082015281517f1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1929181900390910190a1505050505050565b73ffffffffffffffffffffffffffffffffffffffff808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260016020526040902054612641908263ffffffff61226e16565b73ffffffffffffffffffffffffffffffffffffffff8085166000908152600160205260408082209390935590841681522054612683908263ffffffff612abc16565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600080600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663017e7e586040518163ffffffff1660e01b815260040160206040518083038186803b15801561275757600080fd5b505afa15801561276b573d6000803e3d6000fd5b505050506040513d602081101561278157600080fd5b5051600b5473ffffffffffffffffffffffffffffffffffffffff821615801594509192509061286457801561285f5760006127d86112576dffffffffffffffffffffffffffff88811690881663ffffffff6121e816565b905060006127e583612878565b90508082111561285c576000612813612804848463ffffffff61226e16565b6000549063ffffffff6121e816565b905060006128388361282c86600563ffffffff6121e816565b9063ffffffff612abc16565b9050600081838161284557fe5b04905080156128585761285887826128ca565b5050505b50505b612870565b8015612870576000600b555b505092915050565b600060038211156128bb575080600160028204015b818110156128b5578091506002818285816128a457fe5b0401816128ad57fe5b04905061288d565b506128c5565b81156128c5575060015b919050565b6000546128dd908263ffffffff612abc16565b600090815573ffffffffffffffffffffffffffffffffffffffff8316815260016020526040902054612915908263ffffffff612abc16565b73ffffffffffffffffffffffffffffffffffffffff831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000818310612989578161298b565b825b9392505050565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600160205260409020546129c8908263ffffffff61226e16565b73ffffffffffffffffffffffffffffffffffffffff831660009081526001602052604081209190915554612a02908263ffffffff61226e16565b600090815560408051838152905173ffffffffffffffffffffffffffffffffffffffff8516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef919081900360200190a35050565b6dffffffffffffffffffffffffffff166e0100000000000000000000000000000290565b60006dffffffffffffffffffffffffffff82167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff841681612ab457fe5b049392505050565b80820182811015610df657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6164642d6f766572666c6f77000000000000000000000000604482015290519081900360640190fdfe556e697377617056323a20494e53554646494349454e545f4f55545055545f414d4f554e54556e697377617056323a20494e53554646494349454e545f494e5055545f414d4f554e54556e697377617056323a20494e53554646494349454e545f4c4951554944495459556e697377617056323a20494e53554646494349454e545f4c49515549444954595f4255524e4544556e697377617056323a20494e53554646494349454e545f4c49515549444954595f4d494e544544a265627a7a723158207dca18479e58487606bf70c79e44d8dee62353c9ee6d01f9a9d70885b8765f2264736f6c63430005100032454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429
|
608060405234801561001057600080fd5b50600436106101b95760003560e01c80636a627842116100f9578063ba9a7a5611610097578063d21220a711610071578063d21220a7146105da578063d505accf146105e2578063dd62ed3e14610640578063fff6cae91461067b576101b9565b8063ba9a7a5614610597578063bc25cf771461059f578063c45a0155146105d2576101b9565b80637ecebe00116100d35780637ecebe00146104d757806389afcb441461050a57806395d89b4114610556578063a9059cbb1461055e576101b9565b80636a6278421461046957806370a082311461049c5780637464fc3d146104cf576101b9565b806323b872dd116101665780633644e515116101405780633644e51514610416578063485cc9551461041e5780635909c0d5146104595780635a3d549314610461576101b9565b806323b872dd146103ad57806330adf81f146103f0578063313ce567146103f8576101b9565b8063095ea7b311610197578063095ea7b3146103155780630dfe16811461036257806318160ddd14610393576101b9565b8063022c0d9f146101be57806306fdde03146102595780630902f1ac146102d6575b600080fd5b610257600480360360808110156101d457600080fd5b81359160208101359173ffffffffffffffffffffffffffffffffffffffff604083013516919081019060808101606082013564010000000081111561021857600080fd5b82018360208201111561022a57600080fd5b8035906020019184600183028401116401000000008311171561024c57600080fd5b509092509050610683565b005b610261610d57565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561029b578181015183820152602001610283565b50505050905090810190601f1680156102c85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102de610d90565b604080516dffffffffffffffffffffffffffff948516815292909316602083015263ffffffff168183015290519081900360600190f35b61034e6004803603604081101561032b57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610de5565b604080519115158252519081900360200190f35b61036a610dfc565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61039b610e18565b60408051918252519081900360200190f35b61034e600480360360608110156103c357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610e1e565b61039b610efd565b610400610f21565b6040805160ff9092168252519081900360200190f35b61039b610f26565b6102576004803603604081101561043457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610f2c565b61039b611005565b61039b61100b565b61039b6004803603602081101561047f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611011565b61039b600480360360208110156104b257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166113cb565b61039b6113dd565b61039b600480360360208110156104ed57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166113e3565b61053d6004803603602081101561052057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166113f5565b6040805192835260208301919091528051918290030190f35b610261611892565b61034e6004803603604081101561057457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356118cb565b61039b6118d8565b610257600480360360208110156105b557600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166118de565b61036a611ad4565b61036a611af0565b610257600480360360e08110156105f857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135611b0c565b61039b6004803603604081101561065657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516611dd8565b610257611df5565b600c546001146106f457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c55841515806107075750600084115b61075c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612b2f6025913960400191505060405180910390fd5b600080610767610d90565b5091509150816dffffffffffffffffffffffffffff168710801561079a5750806dffffffffffffffffffffffffffff1686105b6107ef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612b786021913960400191505060405180910390fd5b600654600754600091829173ffffffffffffffffffffffffffffffffffffffff91821691908116908916821480159061085457508073ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff1614155b6108bf57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f556e697377617056323a20494e56414c49445f544f0000000000000000000000604482015290519081900360640190fd5b8a156108d0576108d0828a8d611fdb565b89156108e1576108e1818a8c611fdb565b86156109c3578873ffffffffffffffffffffffffffffffffffffffff166310d1e85c338d8d8c8c6040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f8201169050808301925050509650505050505050600060405180830381600087803b1580156109aa57600080fd5b505af11580156109be573d6000803e3d6000fd5b505050505b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff8416916370a08231916024808301926020929190829003018186803b158015610a2f57600080fd5b505afa158015610a43573d6000803e3d6000fd5b505050506040513d6020811015610a5957600080fd5b5051604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905191955073ffffffffffffffffffffffffffffffffffffffff8316916370a0823191602480820192602092909190829003018186803b158015610acb57600080fd5b505afa158015610adf573d6000803e3d6000fd5b505050506040513d6020811015610af557600080fd5b5051925060009150506dffffffffffffffffffffffffffff85168a90038311610b1f576000610b35565b89856dffffffffffffffffffffffffffff160383035b9050600089856dffffffffffffffffffffffffffff16038311610b59576000610b6f565b89856dffffffffffffffffffffffffffff160383035b90506000821180610b805750600081115b610bd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180612b546024913960400191505060405180910390fd5b6000610c09610beb84600363ffffffff6121e816565b610bfd876103e863ffffffff6121e816565b9063ffffffff61226e16565b90506000610c21610beb84600363ffffffff6121e816565b9050610c59620f4240610c4d6dffffffffffffffffffffffffffff8b8116908b1663ffffffff6121e816565b9063ffffffff6121e816565b610c69838363ffffffff6121e816565b1015610cd657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f556e697377617056323a204b0000000000000000000000000000000000000000604482015290519081900360640190fd5b5050610ce4848488886122e0565b60408051838152602081018390528082018d9052606081018c9052905173ffffffffffffffffffffffffffffffffffffffff8b169133917fd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d8229181900360800190a350506001600c55505050505050505050565b6040518060400160405280600a81526020017f556e69737761702056320000000000000000000000000000000000000000000081525081565b6008546dffffffffffffffffffffffffffff808216926e0100000000000000000000000000008304909116917c0100000000000000000000000000000000000000000000000000000000900463ffffffff1690565b6000610df233848461259c565b5060015b92915050565b60065473ffffffffffffffffffffffffffffffffffffffff1681565b60005481565b73ffffffffffffffffffffffffffffffffffffffff831660009081526002602090815260408083203384529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff14610ee85773ffffffffffffffffffffffffffffffffffffffff84166000908152600260209081526040808320338452909152902054610eb6908363ffffffff61226e16565b73ffffffffffffffffffffffffffffffffffffffff851660009081526002602090815260408083203384529091529020555b610ef384848461260b565b5060019392505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b601281565b60035481565b60055473ffffffffffffffffffffffffffffffffffffffff163314610fb257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f556e697377617056323a20464f5242494444454e000000000000000000000000604482015290519081900360640190fd5b6006805473ffffffffffffffffffffffffffffffffffffffff9384167fffffffffffffffffffffffff00000000000000000000000000000000000000009182161790915560078054929093169116179055565b60095481565b600a5481565b6000600c5460011461108457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c81905580611094610d90565b50600654604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905193955091935060009273ffffffffffffffffffffffffffffffffffffffff909116916370a08231916024808301926020929190829003018186803b15801561110e57600080fd5b505afa158015611122573d6000803e3d6000fd5b505050506040513d602081101561113857600080fd5b5051600754604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905192935060009273ffffffffffffffffffffffffffffffffffffffff909216916370a0823191602480820192602092909190829003018186803b1580156111b157600080fd5b505afa1580156111c5573d6000803e3d6000fd5b505050506040513d60208110156111db57600080fd5b505190506000611201836dffffffffffffffffffffffffffff871663ffffffff61226e16565b90506000611225836dffffffffffffffffffffffffffff871663ffffffff61226e16565b9050600061123387876126ec565b600054909150806112705761125c6103e8610bfd611257878763ffffffff6121e816565b612878565b985061126b60006103e86128ca565b6112cd565b6112ca6dffffffffffffffffffffffffffff8916611294868463ffffffff6121e816565b8161129b57fe5b046dffffffffffffffffffffffffffff89166112bd868563ffffffff6121e816565b816112c457fe5b0461297a565b98505b60008911611326576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180612bc16028913960400191505060405180910390fd5b6113308a8a6128ca565b61133c86868a8a6122e0565b811561137e5760085461137a906dffffffffffffffffffffffffffff808216916e01000000000000000000000000000090041663ffffffff6121e816565b600b555b6040805185815260208101859052815133927f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f928290030190a250506001600c5550949695505050505050565b60016020526000908152604090205481565b600b5481565b60046020526000908152604090205481565b600080600c5460011461146957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c81905580611479610d90565b50600654600754604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905194965092945073ffffffffffffffffffffffffffffffffffffffff9182169391169160009184916370a08231916024808301926020929190829003018186803b1580156114fb57600080fd5b505afa15801561150f573d6000803e3d6000fd5b505050506040513d602081101561152557600080fd5b5051604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905191925060009173ffffffffffffffffffffffffffffffffffffffff8516916370a08231916024808301926020929190829003018186803b15801561159957600080fd5b505afa1580156115ad573d6000803e3d6000fd5b505050506040513d60208110156115c357600080fd5b5051306000908152600160205260408120549192506115e288886126ec565b600054909150806115f9848763ffffffff6121e816565b8161160057fe5b049a5080611614848663ffffffff6121e816565b8161161b57fe5b04995060008b11801561162e575060008a115b611683576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180612b996028913960400191505060405180910390fd5b61168d3084612992565b611698878d8d611fdb565b6116a3868d8c611fdb565b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff8916916370a08231916024808301926020929190829003018186803b15801561170f57600080fd5b505afa158015611723573d6000803e3d6000fd5b505050506040513d602081101561173957600080fd5b5051604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905191965073ffffffffffffffffffffffffffffffffffffffff8816916370a0823191602480820192602092909190829003018186803b1580156117ab57600080fd5b505afa1580156117bf573d6000803e3d6000fd5b505050506040513d60208110156117d557600080fd5b505193506117e585858b8b6122e0565b811561182757600854611823906dffffffffffffffffffffffffffff808216916e01000000000000000000000000000090041663ffffffff6121e816565b600b555b604080518c8152602081018c9052815173ffffffffffffffffffffffffffffffffffffffff8f169233927fdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496929081900390910190a35050505050505050506001600c81905550915091565b6040518060400160405280600681526020017f554e492d5632000000000000000000000000000000000000000000000000000081525081565b6000610df233848461260b565b6103e881565b600c5460011461194f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c55600654600754600854604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff9485169490931692611a2b9285928792611a26926dffffffffffffffffffffffffffff169185916370a0823191602480820192602092909190829003018186803b1580156119ee57600080fd5b505afa158015611a02573d6000803e3d6000fd5b505050506040513d6020811015611a1857600080fd5b50519063ffffffff61226e16565b611fdb565b600854604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051611aca9284928792611a26926e01000000000000000000000000000090046dffffffffffffffffffffffffffff169173ffffffffffffffffffffffffffffffffffffffff8616916370a0823191602480820192602092909190829003018186803b1580156119ee57600080fd5b50506001600c5550565b60055473ffffffffffffffffffffffffffffffffffffffff1681565b60075473ffffffffffffffffffffffffffffffffffffffff1681565b42841015611b7b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f556e697377617056323a20455850495245440000000000000000000000000000604482015290519081900360640190fd5b60035473ffffffffffffffffffffffffffffffffffffffff80891660008181526004602090815260408083208054600180820190925582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98186015280840196909652958d166060860152608085018c905260a085019590955260c08085018b90528151808603909101815260e0850182528051908301207f19010000000000000000000000000000000000000000000000000000000000006101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff89166101828501526101a284018890526101c28401879052519193926101e2808201937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081019281900390910190855afa158015611cdc573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811615801590611d5757508873ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b611dc257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f556e697377617056323a20494e56414c49445f5349474e415455524500000000604482015290519081900360640190fd5b611dcd89898961259c565b505050505050505050565b600260209081526000928352604080842090915290825290205481565b600c54600114611e6657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c55600654604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051611fd49273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b158015611edd57600080fd5b505afa158015611ef1573d6000803e3d6000fd5b505050506040513d6020811015611f0757600080fd5b5051600754604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff909216916370a0823191602480820192602092909190829003018186803b158015611f7a57600080fd5b505afa158015611f8e573d6000803e3d6000fd5b505050506040513d6020811015611fa457600080fd5b50516008546dffffffffffffffffffffffffffff808216916e0100000000000000000000000000009004166122e0565b6001600c55565b604080518082018252601981527f7472616e7366657228616464726573732c75696e743235362900000000000000602091820152815173ffffffffffffffffffffffffffffffffffffffff85811660248301526044808301869052845180840390910181526064909201845291810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001781529251815160009460609489169392918291908083835b602083106120e157805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016120a4565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612143576040519150601f19603f3d011682016040523d82523d6000602084013e612148565b606091505b5091509150818015612176575080511580612176575080806020019051602081101561217357600080fd5b50515b6121e157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f556e697377617056323a205452414e534645525f4641494c4544000000000000604482015290519081900360640190fd5b5050505050565b60008115806122035750508082028282828161220057fe5b04145b610df657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6d756c2d6f766572666c6f77000000000000000000000000604482015290519081900360640190fd5b80820382811115610df657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f64732d6d6174682d7375622d756e646572666c6f770000000000000000000000604482015290519081900360640190fd5b6dffffffffffffffffffffffffffff841180159061230c57506dffffffffffffffffffffffffffff8311155b61237757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f556e697377617056323a204f564552464c4f5700000000000000000000000000604482015290519081900360640190fd5b60085463ffffffff428116917c0100000000000000000000000000000000000000000000000000000000900481168203908116158015906123c757506dffffffffffffffffffffffffffff841615155b80156123e257506dffffffffffffffffffffffffffff831615155b15612492578063ffffffff16612425856123fb86612a57565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169063ffffffff612a7b16565b600980547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff929092169290920201905563ffffffff8116612465846123fb87612a57565b600a80547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff92909216929092020190555b600880547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff888116919091177fffffffff0000000000000000000000000000ffffffffffffffffffffffffffff166e0100000000000000000000000000008883168102919091177bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167c010000000000000000000000000000000000000000000000000000000063ffffffff871602179283905560408051848416815291909304909116602082015281517f1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1929181900390910190a1505050505050565b73ffffffffffffffffffffffffffffffffffffffff808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260016020526040902054612641908263ffffffff61226e16565b73ffffffffffffffffffffffffffffffffffffffff8085166000908152600160205260408082209390935590841681522054612683908263ffffffff612abc16565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600080600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663017e7e586040518163ffffffff1660e01b815260040160206040518083038186803b15801561275757600080fd5b505afa15801561276b573d6000803e3d6000fd5b505050506040513d602081101561278157600080fd5b5051600b5473ffffffffffffffffffffffffffffffffffffffff821615801594509192509061286457801561285f5760006127d86112576dffffffffffffffffffffffffffff88811690881663ffffffff6121e816565b905060006127e583612878565b90508082111561285c576000612813612804848463ffffffff61226e16565b6000549063ffffffff6121e816565b905060006128388361282c86600563ffffffff6121e816565b9063ffffffff612abc16565b9050600081838161284557fe5b04905080156128585761285887826128ca565b5050505b50505b612870565b8015612870576000600b555b505092915050565b600060038211156128bb575080600160028204015b818110156128b5578091506002818285816128a457fe5b0401816128ad57fe5b04905061288d565b506128c5565b81156128c5575060015b919050565b6000546128dd908263ffffffff612abc16565b600090815573ffffffffffffffffffffffffffffffffffffffff8316815260016020526040902054612915908263ffffffff612abc16565b73ffffffffffffffffffffffffffffffffffffffff831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000818310612989578161298b565b825b9392505050565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600160205260409020546129c8908263ffffffff61226e16565b73ffffffffffffffffffffffffffffffffffffffff831660009081526001602052604081209190915554612a02908263ffffffff61226e16565b600090815560408051838152905173ffffffffffffffffffffffffffffffffffffffff8516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef919081900360200190a35050565b6dffffffffffffffffffffffffffff166e0100000000000000000000000000000290565b60006dffffffffffffffffffffffffffff82167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff841681612ab457fe5b049392505050565b80820182811015610df657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6164642d6f766572666c6f77000000000000000000000000604482015290519081900360640190fdfe556e697377617056323a20494e53554646494349454e545f4f55545055545f414d4f554e54556e697377617056323a20494e53554646494349454e545f494e5055545f414d4f554e54556e697377617056323a20494e53554646494349454e545f4c4951554944495459556e697377617056323a20494e53554646494349454e545f4c49515549444954595f4255524e4544556e697377617056323a20494e53554646494349454e545f4c49515549444954595f4d494e544544a265627a7a723158207dca18479e58487606bf70c79e44d8dee62353c9ee6d01f9a9d70885b8765f2264736f6c63430005100032
|
// File: contracts/interfaces/IUniswapV2Pair.sol
pragma solidity >=0.5.0;
interface IUniswapV2Pair {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
function name() external pure returns (string memory);
function symbol() external pure returns (string memory);
function decimals() external pure returns (uint8);
function totalSupply() external view returns (uint);
function balanceOf(address owner) external view returns (uint);
function allowance(address owner, address spender) external view returns (uint);
function approve(address spender, uint value) external returns (bool);
function transfer(address to, uint value) external returns (bool);
function transferFrom(address from, address to, uint value) external returns (bool);
function DOMAIN_SEPARATOR() external view returns (bytes32);
function PERMIT_TYPEHASH() external pure returns (bytes32);
function nonces(address owner) external view returns (uint);
function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
event Mint(address indexed sender, uint amount0, uint amount1);
event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
event Swap(
address indexed sender,
uint amount0In,
uint amount1In,
uint amount0Out,
uint amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
function MINIMUM_LIQUIDITY() external pure returns (uint);
function factory() external view returns (address);
function token0() external view returns (address);
function token1() external view returns (address);
function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
function price0CumulativeLast() external view returns (uint);
function price1CumulativeLast() external view returns (uint);
function kLast() external view returns (uint);
function mint(address to) external returns (uint liquidity);
function burn(address to) external returns (uint amount0, uint amount1);
function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
function skim(address to) external;
function sync() external;
function initialize(address, address) external;
}
// File: contracts/interfaces/IUniswapV2ERC20.sol
pragma solidity >=0.5.0;
interface IUniswapV2ERC20 {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
function name() external pure returns (string memory);
function symbol() external pure returns (string memory);
function decimals() external pure returns (uint8);
function totalSupply() external view returns (uint);
function balanceOf(address owner) external view returns (uint);
function allowance(address owner, address spender) external view returns (uint);
function approve(address spender, uint value) external returns (bool);
function transfer(address to, uint value) external returns (bool);
function transferFrom(address from, address to, uint value) external returns (bool);
function DOMAIN_SEPARATOR() external view returns (bytes32);
function PERMIT_TYPEHASH() external pure returns (bytes32);
function nonces(address owner) external view returns (uint);
function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
}
// File: contracts/libraries/SafeMath.sol
pragma solidity =0.5.16;
// a library for performing overflow-safe math, courtesy of DappHub (https://github.com/dapphub/ds-math)
library SafeMath {
function add(uint x, uint y) internal pure returns (uint z) {
require((z = x + y) >= x, 'ds-math-add-overflow');
}
function sub(uint x, uint y) internal pure returns (uint z) {
require((z = x - y) <= x, 'ds-math-sub-underflow');
}
function mul(uint x, uint y) internal pure returns (uint z) {
require(y == 0 || (z = x * y) / y == x, 'ds-math-mul-overflow');
}
}
// File: contracts/UniswapV2ERC20.sol
pragma solidity =0.5.16;
contract UniswapV2ERC20 is IUniswapV2ERC20 {
using SafeMath for uint;
string public constant name = 'Uniswap V2';
string public constant symbol = 'UNI-V2';
uint8 public constant decimals = 18;
uint public totalSupply;
mapping(address => uint) public balanceOf;
mapping(address => mapping(address => uint)) public allowance;
bytes32 public DOMAIN_SEPARATOR;
// keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
bytes32 public constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9;
mapping(address => uint) public nonces;
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
constructor() public {
uint chainId;
assembly {
chainId := chainid
}
DOMAIN_SEPARATOR = keccak256(
abi.encode(
keccak256('EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)'),
keccak256(bytes(name)),
keccak256(bytes('1')),
chainId,
address(this)
)
);
}
function _mint(address to, uint value) internal {
totalSupply = totalSupply.add(value);
balanceOf[to] = balanceOf[to].add(value);
emit Transfer(address(0), to, value);
}
function _burn(address from, uint value) internal {
balanceOf[from] = balanceOf[from].sub(value);
totalSupply = totalSupply.sub(value);
emit Transfer(from, address(0), value);
}
function _approve(address owner, address spender, uint value) private {
allowance[owner][spender] = value;
emit Approval(owner, spender, value);
}
function _transfer(address from, address to, uint value) private {
balanceOf[from] = balanceOf[from].sub(value);
balanceOf[to] = balanceOf[to].add(value);
emit Transfer(from, to, value);
}
function approve(address spender, uint value) external returns (bool) {
_approve(msg.sender, spender, value);
return true;
}
function transfer(address to, uint value) external returns (bool) {
_transfer(msg.sender, to, value);
return true;
}
function transferFrom(address from, address to, uint value) external returns (bool) {
if (allowance[from][msg.sender] != uint(-1)) {
allowance[from][msg.sender] = allowance[from][msg.sender].sub(value);
}
_transfer(from, to, value);
return true;
}
function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external {
require(deadline >= block.timestamp, 'UniswapV2: EXPIRED');
bytes32 digest = keccak256(
abi.encodePacked(
'\x19\x01',
DOMAIN_SEPARATOR,
keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, nonces[owner]++, deadline))
)
);
address recoveredAddress = ecrecover(digest, v, r, s);
require(recoveredAddress != address(0) && recoveredAddress == owner, 'UniswapV2: INVALID_SIGNATURE');
_approve(owner, spender, value);
}
}
// File: contracts/libraries/Math.sol
pragma solidity =0.5.16;
// a library for performing various math operations
library Math {
function min(uint x, uint y) internal pure returns (uint z) {
z = x < y ? x : y;
}
// babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
function sqrt(uint y) internal pure returns (uint z) {
if (y > 3) {
z = y;
uint x = y / 2 + 1;
while (x < z) {
z = x;
x = (y / x + x) / 2;
}
} else if (y != 0) {
z = 1;
}
}
}
// File: contracts/libraries/UQ112x112.sol
pragma solidity =0.5.16;
// a library for handling binary fixed point numbers (https://en.wikipedia.org/wiki/Q_(number_format))
// range: [0, 2**112 - 1]
// resolution: 1 / 2**112
library UQ112x112 {
uint224 constant Q112 = 2**112;
// encode a uint112 as a UQ112x112
function encode(uint112 y) internal pure returns (uint224 z) {
z = uint224(y) * Q112; // never overflows
}
// divide a UQ112x112 by a uint112, returning a UQ112x112
function uqdiv(uint224 x, uint112 y) internal pure returns (uint224 z) {
z = x / uint224(y);
}
}
// File: contracts/interfaces/IERC20.sol
pragma solidity >=0.5.0;
interface IERC20 {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
function totalSupply() external view returns (uint);
function balanceOf(address owner) external view returns (uint);
function allowance(address owner, address spender) external view returns (uint);
function approve(address spender, uint value) external returns (bool);
function transfer(address to, uint value) external returns (bool);
function transferFrom(address from, address to, uint value) external returns (bool);
}
// File: contracts/interfaces/IUniswapV2Factory.sol
pragma solidity >=0.5.0;
interface IUniswapV2Factory {
event PairCreated(address indexed token0, address indexed token1, address pair, uint);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function getPair(address tokenA, address tokenB) external view returns (address pair);
function allPairs(uint) external view returns (address pair);
function allPairsLength() external view returns (uint);
function createPair(address tokenA, address tokenB) external returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) external;
}
// File: contracts/interfaces/IUniswapV2Callee.sol
pragma solidity >=0.5.0;
interface IUniswapV2Callee {
function uniswapV2Call(address sender, uint amount0, uint amount1, bytes calldata data) external;
}
// File: contracts/UniswapV2Pair.sol
pragma solidity =0.5.16;
contract UniswapV2Pair is IUniswapV2Pair, UniswapV2ERC20 {
using SafeMath for uint;
using UQ112x112 for uint224;
uint public constant MINIMUM_LIQUIDITY = 10**3;
bytes4 private constant SELECTOR = bytes4(keccak256(bytes('transfer(address,uint256)')));
address public factory;
address public token0;
address public token1;
uint112 private reserve0; // uses single storage slot, accessible via getReserves
uint112 private reserve1; // uses single storage slot, accessible via getReserves
uint32 private blockTimestampLast; // uses single storage slot, accessible via getReserves
uint public price0CumulativeLast;
uint public price1CumulativeLast;
uint public kLast; // reserve0 * reserve1, as of immediately after the most recent liquidity event
uint private unlocked = 1;
modifier lock() {
require(unlocked == 1, 'UniswapV2: LOCKED');
unlocked = 0;
_;
unlocked = 1;
}
function getReserves() public view returns (uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast) {
_reserve0 = reserve0;
_reserve1 = reserve1;
_blockTimestampLast = blockTimestampLast;
}
function _safeTransfer(address token, address to, uint value) private {
(bool success, bytes memory data) = token.call(abi.encodeWithSelector(SELECTOR, to, value));
require(success && (data.length == 0 || abi.decode(data, (bool))), 'UniswapV2: TRANSFER_FAILED');
}
event Mint(address indexed sender, uint amount0, uint amount1);
event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
event Swap(
address indexed sender,
uint amount0In,
uint amount1In,
uint amount0Out,
uint amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
constructor() public {
factory = msg.sender;
}
// called once by the factory at time of deployment
function initialize(address _token0, address _token1) external {
require(msg.sender == factory, 'UniswapV2: FORBIDDEN'); // sufficient check
token0 = _token0;
token1 = _token1;
}
// update reserves and, on the first call per block, price accumulators
function _update(uint balance0, uint balance1, uint112 _reserve0, uint112 _reserve1) private {
require(balance0 <= uint112(-1) && balance1 <= uint112(-1), 'UniswapV2: OVERFLOW');
uint32 blockTimestamp = uint32(block.timestamp % 2**32);
uint32 timeElapsed = blockTimestamp - blockTimestampLast; // overflow is desired
if (timeElapsed > 0 && _reserve0 != 0 && _reserve1 != 0) {
// * never overflows, and + overflow is desired
price0CumulativeLast += uint(UQ112x112.encode(_reserve1).uqdiv(_reserve0)) * timeElapsed;
price1CumulativeLast += uint(UQ112x112.encode(_reserve0).uqdiv(_reserve1)) * timeElapsed;
}
reserve0 = uint112(balance0);
reserve1 = uint112(balance1);
blockTimestampLast = blockTimestamp;
emit Sync(reserve0, reserve1);
}
// if fee is on, mint liquidity equivalent to 1/6th of the growth in sqrt(k)
function _mintFee(uint112 _reserve0, uint112 _reserve1) private returns (bool feeOn) {
address feeTo = IUniswapV2Factory(factory).feeTo();
feeOn = feeTo != address(0);
uint _kLast = kLast; // gas savings
if (feeOn) {
if (_kLast != 0) {
uint rootK = Math.sqrt(uint(_reserve0).mul(_reserve1));
uint rootKLast = Math.sqrt(_kLast);
if (rootK > rootKLast) {
uint numerator = totalSupply.mul(rootK.sub(rootKLast));
uint denominator = rootK.mul(5).add(rootKLast);
uint liquidity = numerator / denominator;
if (liquidity > 0) _mint(feeTo, liquidity);
}
}
} else if (_kLast != 0) {
kLast = 0;
}
}
// this low-level function should be called from a contract which performs important safety checks
function mint(address to) external lock returns (uint liquidity) {
(uint112 _reserve0, uint112 _reserve1,) = getReserves(); // gas savings
uint balance0 = IERC20(token0).balanceOf(address(this));
uint balance1 = IERC20(token1).balanceOf(address(this));
uint amount0 = balance0.sub(_reserve0);
uint amount1 = balance1.sub(_reserve1);
bool feeOn = _mintFee(_reserve0, _reserve1);
uint _totalSupply = totalSupply; // gas savings, must be defined here since totalSupply can update in _mintFee
if (_totalSupply == 0) {
liquidity = Math.sqrt(amount0.mul(amount1)).sub(MINIMUM_LIQUIDITY);
_mint(address(0), MINIMUM_LIQUIDITY); // permanently lock the first MINIMUM_LIQUIDITY tokens
} else {
liquidity = Math.min(amount0.mul(_totalSupply) / _reserve0, amount1.mul(_totalSupply) / _reserve1);
}
require(liquidity > 0, 'UniswapV2: INSUFFICIENT_LIQUIDITY_MINTED');
_mint(to, liquidity);
_update(balance0, balance1, _reserve0, _reserve1);
if (feeOn) kLast = uint(reserve0).mul(reserve1); // reserve0 and reserve1 are up-to-date
emit Mint(msg.sender, amount0, amount1);
}
// this low-level function should be called from a contract which performs important safety checks
function burn(address to) external lock returns (uint amount0, uint amount1) {
(uint112 _reserve0, uint112 _reserve1,) = getReserves(); // gas savings
address _token0 = token0; // gas savings
address _token1 = token1; // gas savings
uint balance0 = IERC20(_token0).balanceOf(address(this));
uint balance1 = IERC20(_token1).balanceOf(address(this));
uint liquidity = balanceOf[address(this)];
bool feeOn = _mintFee(_reserve0, _reserve1);
uint _totalSupply = totalSupply; // gas savings, must be defined here since totalSupply can update in _mintFee
amount0 = liquidity.mul(balance0) / _totalSupply; // using balances ensures pro-rata distribution
amount1 = liquidity.mul(balance1) / _totalSupply; // using balances ensures pro-rata distribution
require(amount0 > 0 && amount1 > 0, 'UniswapV2: INSUFFICIENT_LIQUIDITY_BURNED');
_burn(address(this), liquidity);
_safeTransfer(_token0, to, amount0);
_safeTransfer(_token1, to, amount1);
balance0 = IERC20(_token0).balanceOf(address(this));
balance1 = IERC20(_token1).balanceOf(address(this));
_update(balance0, balance1, _reserve0, _reserve1);
if (feeOn) kLast = uint(reserve0).mul(reserve1); // reserve0 and reserve1 are up-to-date
emit Burn(msg.sender, amount0, amount1, to);
}
// this low-level function should be called from a contract which performs important safety checks
function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external lock {
require(amount0Out > 0 || amount1Out > 0, 'UniswapV2: INSUFFICIENT_OUTPUT_AMOUNT');
(uint112 _reserve0, uint112 _reserve1,) = getReserves(); // gas savings
require(amount0Out < _reserve0 && amount1Out < _reserve1, 'UniswapV2: INSUFFICIENT_LIQUIDITY');
uint balance0;
uint balance1;
{ // scope for _token{0,1}, avoids stack too deep errors
address _token0 = token0;
address _token1 = token1;
require(to != _token0 && to != _token1, 'UniswapV2: INVALID_TO');
if (amount0Out > 0) _safeTransfer(_token0, to, amount0Out); // optimistically transfer tokens
if (amount1Out > 0) _safeTransfer(_token1, to, amount1Out); // optimistically transfer tokens
if (data.length > 0) IUniswapV2Callee(to).uniswapV2Call(msg.sender, amount0Out, amount1Out, data);
balance0 = IERC20(_token0).balanceOf(address(this));
balance1 = IERC20(_token1).balanceOf(address(this));
}
uint amount0In = balance0 > _reserve0 - amount0Out ? balance0 - (_reserve0 - amount0Out) : 0;
uint amount1In = balance1 > _reserve1 - amount1Out ? balance1 - (_reserve1 - amount1Out) : 0;
require(amount0In > 0 || amount1In > 0, 'UniswapV2: INSUFFICIENT_INPUT_AMOUNT');
{ // scope for reserve{0,1}Adjusted, avoids stack too deep errors
uint balance0Adjusted = balance0.mul(1000).sub(amount0In.mul(3));
uint balance1Adjusted = balance1.mul(1000).sub(amount1In.mul(3));
require(balance0Adjusted.mul(balance1Adjusted) >= uint(_reserve0).mul(_reserve1).mul(1000**2), 'UniswapV2: K');
}
_update(balance0, balance1, _reserve0, _reserve1);
emit Swap(msg.sender, amount0In, amount1In, amount0Out, amount1Out, to);
}
// force balances to match reserves
function skim(address to) external lock {
address _token0 = token0; // gas savings
address _token1 = token1; // gas savings
_safeTransfer(_token0, to, IERC20(_token0).balanceOf(address(this)).sub(reserve0));
_safeTransfer(_token1, to, IERC20(_token1).balanceOf(address(this)).sub(reserve1));
}
// force reserves to match balances
function sync() external lock {
_update(IERC20(token0).balanceOf(address(this)), IERC20(token1).balanceOf(address(this)), reserve0, reserve1);
}
}
|
1 | 19,501,897 |
d68685a0fca39bfa927977cf759d20bfa0e37cd37775e9d6da95449cd6f9790a
|
c04ad8f1d84d5a304ca56aaa99af8e604a6fbd8b320739235a0ce22db91621af
|
6da0f7c6ef27abbfa9aef7ad5871153eea6cb776
|
6da0f7c6ef27abbfa9aef7ad5871153eea6cb776
|
347e4c83ea6b5a1df7f55b1f2da0a65911ea5265
|
6080604052600467ffffffffffffffff811115620000225762000021620004a6565b5b604051908082528060200260200182016040528015620000515781602001602082028036833780820191505090505b506004908051906020019062000069929190620003d3565b503480156200007757600080fd5b50604051620043303803806200433083398181016040528101906200009d91906200053f565b620000ae336200030f60201b60201c565b6001839080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506002829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506003819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060646004600081548110620001f157620001f06200059b565b5b90600052602060002090600a91828204019190066003026101000a81548162ffffff021916908362ffffff1602179055506101f460046001815481106200023d576200023c6200059b565b5b90600052602060002090600a91828204019190066003026101000a81548162ffffff021916908362ffffff160217905550610bb860046002815481106200028957620002886200059b565b5b90600052602060002090600a91828204019190066003026101000a81548162ffffff021916908362ffffff1602179055506127106004600381548110620002d557620002d46200059b565b5b90600052602060002090600a91828204019190066003026101000a81548162ffffff021916908362ffffff160217905550505050620005ca565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b82805482825590600052602060002090600901600a90048101928215620004745791602002820160005b838211156200044157835183826101000a81548162ffffff021916908362ffffff1602179055509260200192600301602081600201049283019260010302620003fd565b8015620004725782816101000a81549062ffffff021916905560030160208160020104928301926001030262000441565b505b50905062000483919062000487565b5090565b5b80821115620004a257600081600090555060010162000488565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200050782620004da565b9050919050565b6200051981620004fa565b81146200052557600080fd5b50565b60008151905062000539816200050e565b92915050565b6000806000606084860312156200055b576200055a620004d5565b5b60006200056b8682870162000528565b93505060206200057e8682870162000528565b9250506040620005918682870162000528565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b613d5680620005da6000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c80638926c6e9116100b8578063df4186891161007c578063df41868914610398578063f1ea59df146103c8578063f2340acc146103e4578063f2fde38b14610414578063f6d1c27114610430578063fc9dab531461046057610137565b80638926c6e9146102cd5780638da5cb5b146102fe578063bc07f05f1461031c578063ce1ca8dc1461034c578063d13d71971461037c57610137565b806332749461116100ff57806332749461146101f157806338856e1b146102215780634acc79ed146102515780636202e86e146102815780637f42f7831461029d57610137565b8063162790551461013c5780631673e9ea1461016c578063178377641461018857806326abc96b146101a45780632fab0e55146101d5575b600080fd5b61015660048036038101906101519190612b83565b610490565b6040516101639190612bcb565b60405180910390f35b61018660048036038101906101819190612d3f565b6104b3565b005b6101a2600480360381019061019d9190612d3f565b61055b565b005b6101be60048036038101906101b99190612d3f565b610603565b6040516101cc929190612e6c565b60405180910390f35b6101ef60048036038101906101ea9190612d3f565b6106d2565b005b61020b60048036038101906102069190612e9c565b6108a2565b6040516102189190612eef565b60405180910390f35b61023b60048036038101906102369190612f11565b610a3d565b60405161024891906130f2565b60405180910390f35b61026b60048036038101906102669190613140565b610ff3565b604051610278919061318b565b60405180910390f35b61029b60048036038101906102969190612d3f565b61102c565b005b6102b760048036038101906102b29190612f11565b6111fe565b6040516102c4919061336c565b60405180910390f35b6102e760048036038101906102e2919061338e565b611552565b6040516102f5929190612e6c565b60405180910390f35b6103066116fe565b60405161031391906133f9565b60405180910390f35b61033660048036038101906103319190612b83565b611727565b604051610343919061336c565b60405180910390f35b61036660048036038101906103619190613140565b611af2565b60405161037391906133f9565b60405180910390f35b61039660048036038101906103919190612d3f565b611b31565b005b6103b260048036038101906103ad9190613414565b611bd9565b6040516103bf91906130f2565b60405180910390f35b6103e260048036038101906103dd9190612d3f565b61224c565b005b6103fe60048036038101906103f99190613140565b61245b565b60405161040b91906133f9565b60405180910390f35b61042e60048036038101906104299190612b83565b61249a565b005b61044a60048036038101906104459190613140565b612520565b60405161045791906133f9565b60405180910390f35b61047a60048036038101906104759190612d3f565b61255f565b6040516104879190613516565b60405180910390f35b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6104bb61262c565b60005b81518110156105575760028282815181106104dc576104db613538565b5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808061054f90613596565b9150506104be565b5050565b61056361262c565b60005b81518110156105ff57600182828151811061058457610583613538565b5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080806105f790613596565b915050610566565b5050565b6060600080835167ffffffffffffffff81111561062357610622612bfc565b5b6040519080825280602002602001820160405280156106515781602001602082028036833780820191505090505b50905060005b84518110156106c45784818151811061067357610672613538565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff16318282815181106106a5576106a4613538565b5b60200260200101818152505080806106bc90613596565b915050610657565b508060129250925050915091565b6106da61262c565b60005b815181101561089e5760005b60018054905081101561088a5782828151811061070957610708613538565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff166001828154811061073b5761073a613538565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361087757600180808054905061079391906135de565b815481106107a4576107a3613538565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600182815481106107e3576107e2613538565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600180548061083d5761083c613612565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055905561088a565b808061088290613596565b9150506106e9565b50808061089690613596565b9150506106dd565b5050565b6060600083905060008390506000600267ffffffffffffffff8111156108cb576108ca612bfc565b5b6040519080825280602002602001820160405280156108f95781602001602082028036833780820191505090505b5090508273ffffffffffffffffffffffffffffffffffffffff166370a08231886040518263ffffffff1660e01b815260040161093591906133f9565b602060405180830381865afa158015610952573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109769190613656565b8160008151811061098a57610989613538565b5b6020026020010181815250508173ffffffffffffffffffffffffffffffffffffffff166370a08231886040518263ffffffff1660e01b81526004016109cf91906133f9565b602060405180830381865afa1580156109ec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a109190613656565b81600181518110610a2457610a23613538565b5b6020026020010181815250508093505050509392505050565b610a45612a6c565b610a4d612a6c565b600084905084826000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060008173ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ad7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610afb9190613698565b905060008273ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6e9190613698565b90506000829050600082905060008273ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bc7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610beb91906136f1565b60ff16905060008273ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6191906136f1565b60ff1690506000808873ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015610cb4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd891906137a0565b506dffffffffffffffffffffffffffff1691506dffffffffffffffffffffffffffff1691508b73ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1603610e7b57600084600a610d3f9190613926565b9050610d4c8282856126b3565b8b6020018181525050838b6040018181525050888b6060019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050848b610100018181525050828b60c0018181525050878b6080019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050818b60e0018181525050838b6101200181815250508573ffffffffffffffffffffffffffffffffffffffff166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015610e44573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610e6d9190613a17565b8b60a0018190525050610fc2565b600083600a610e8a9190613926565b9050610e978382846126b3565b8b6020018181525050848b6040018181525050878b6060019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050838b610100018181525050818b60c0018181525050888b6080019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050828b60e0018181525050848b6101200181815250508673ffffffffffffffffffffffffffffffffffffffff166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015610f8f573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610fb89190613a17565b8b60a00181905250505b60008a61014001901515908115158152505060008a610160018181525050899a505050505050505050505092915050565b6004818154811061100357600080fd5b90600052602060002090600a9182820401919006600302915054906101000a900462ffffff1681565b61103461262c565b60005b81518110156111fa5760005b6002805490508110156111e65782828151811061106357611062613538565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff166002828154811061109557611094613538565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036111d357600260016002805490506110ef91906135de565b81548110611100576110ff613538565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166002828154811061113f5761113e613538565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600280548061119957611198613612565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905590556111e6565b80806111de90613596565b915050611043565b5080806111f290613596565b915050611037565b5050565b606060006002805490506001805490506112189190613a60565b60036112249190613a94565b67ffffffffffffffff81111561123d5761123c612bfc565b5b60405190808252806020026020018201604052801561127657816020015b611263612a6c565b81526020019060019003908161125b5790505b5090506000805b6001805490508110156113565760006112d5600183815481106112a3576112a2613538565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168888612853565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611342576113158188610a3d565b84848151811061132857611327613538565b5b6020026020010181905250828061133e90613596565b9350505b50808061134e90613596565b91505061127d565b5060005b6002805490508110156115465760006002828154811061137d5761137c613538565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060005b6004805490508110156115315760008273ffffffffffffffffffffffffffffffffffffffff16631698ee828a8a600486815481106113ee576113ed613538565b5b90600052602060002090600a91828204019190066003029054906101000a900462ffffff166040518463ffffffff1660e01b815260040161143193929190613ad6565b602060405180830381865afa15801561144e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114729190613698565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461151d576114f0818a600485815481106114c1576114c0613538565b5b90600052602060002090600a91828204019190066003029054906101000a900462ffffff1662ffffff16611bd9565b86868151811061150357611502613538565b5b6020026020010181905250848061151990613596565b9550505b50808061152990613596565b9150506113ad565b5050808061153e90613596565b91505061135a565b50819250505092915050565b606060008083905060008173ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156115a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115cb91906136f1565b90506000865167ffffffffffffffff8111156115ea576115e9612bfc565b5b6040519080825280602002602001820160405280156116185781602001602082028036833780820191505090505b50905060005b87518110156116ed578373ffffffffffffffffffffffffffffffffffffffff166370a0823189838151811061165657611655613538565b5b60200260200101516040518263ffffffff1660e01b815260040161167a91906133f9565b602060405180830381865afa158015611697573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116bb9190613656565b8282815181106116ce576116cd613538565b5b60200260200101818152505080806116e590613596565b91505061161e565b508082945094505050509250929050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060006003805490506002805490506001805490506117479190613a60565b60036117539190613a94565b61175d9190613a94565b67ffffffffffffffff81111561177657611775612bfc565b5b6040519080825280602002602001820160405280156117af57816020015b61179c612a6c565b8152602001906001900390816117945790505b5090506000805b600380549050811015611ae7576000600382815481106117d9576117d8613538565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060005b6001805490508110156118e25760006118616001838154811061182f5761182e613538565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168985612853565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146118ce576118a18189610a3d565b8686815181106118b4576118b3613538565b5b602002602001018190525084806118ca90613596565b9550505b5080806118da90613596565b915050611809565b5060005b600280549050811015611ad25760006002828154811061190957611908613538565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060005b600480549050811015611abd5760008273ffffffffffffffffffffffffffffffffffffffff16631698ee828b876004868154811061197a57611979613538565b5b90600052602060002090600a91828204019190066003029054906101000a900462ffffff166040518463ffffffff1660e01b81526004016119bd93929190613ad6565b602060405180830381865afa1580156119da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119fe9190613698565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611aa957611a7c818b60048581548110611a4d57611a4c613538565b5b90600052602060002090600a91828204019190066003029054906101000a900462ffffff1662ffffff16611bd9565b888881518110611a8f57611a8e613538565b5b60200260200101819052508680611aa590613596565b9750505b508080611ab590613596565b915050611939565b50508080611aca90613596565b9150506118e6565b50508080611adf90613596565b9150506117b6565b508192505050919050565b60018181548110611b0257600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611b3961262c565b60005b8151811015611bd5576003828281518110611b5a57611b59613538565b5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508080611bcd90613596565b915050611b3c565b5050565b611be1612a6c565b611be9612a6c565b600085905085826000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060008173ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015611c73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c979190613698565b905060008273ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ce6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d0a9190613698565b90506000829050600082905060008273ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015611d63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d8791906136f1565b60ff16905060008273ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015611dd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dfd91906136f1565b60ff16905060008473ffffffffffffffffffffffffffffffffffffffff166370a082318e6040518263ffffffff1660e01b8152600401611e3d91906133f9565b602060405180830381865afa158015611e5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e7e9190613656565b905060008473ffffffffffffffffffffffffffffffffffffffff166370a082318f6040518263ffffffff1660e01b8152600401611ebb91906133f9565b602060405180830381865afa158015611ed8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611efc9190613656565b905060008973ffffffffffffffffffffffffffffffffffffffff16633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015611f4b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f6f9190613bd8565b50505050505090508d73ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff16036120e457611fb6818660006128ef565b8b6020018181525050838b6040018181525050888b6060019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050848b610100018181525050828b60c0018181525050878b6080019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050818b60e0018181525050838b6101200181815250508573ffffffffffffffffffffffffffffffffffffffff166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa1580156120ae573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906120d79190613a17565b8b60a0018190525061221a565b6120f0818560016128ef565b8b6020018181525050848b6040018181525050878b6060019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050838b610100018181525050818b60c0018181525050888b6080019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050828b60e0018181525050848b6101200181815250508673ffffffffffffffffffffffffffffffffffffffff166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa1580156121e8573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906122119190613a17565b8b60a001819052505b60018b6101400190151590811515815250508c8b6101600181815250508a9b5050505050505050505050509392505050565b61225461262c565b60005b815181101561241c5760005b6003805490508110156124085782828151811061228357612282613538565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff16600382815481106122b5576122b4613538565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036123f5576003600160038054905061230f91906135de565b815481106123205761231f613538565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166003828154811061235f5761235e613538565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060038054806123b9576123b8613612565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905590555050612458565b808061240090613596565b915050612263565b50808061241490613596565b915050612257565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244f90613cd7565b60405180910390fd5b50565b6002818154811061246b57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6124a261262c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036125145760006040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161250b91906133f9565b60405180910390fd5b61251d816129a0565b50565b6003818154811061253057600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606000600183516125719190613a60565b67ffffffffffffffff81111561258a57612589612bfc565b5b6040519080825280602002602001820160405280156125b85781602001602082028036833780820191505090505b50905060005b8351811015612622576125ea8482815181106125dd576125dc613538565b5b6020026020010151610490565b8282815181106125fd576125fc613538565b5b602002602001019015159081151581525050808061261a90613596565b9150506125be565b5080915050919050565b612634612a64565b73ffffffffffffffffffffffffffffffffffffffff166126526116fe565b73ffffffffffffffffffffffffffffffffffffffff16146126b157612675612a64565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016126a891906133f9565b60405180910390fd5b565b60008060008019858709858702925082811083820303915050600081036126ed57600084116126e157600080fd5b8382049250505061284c565b8084116126f957600080fd5b600084868809905082811182039150808303925060006001861961271d9190613a60565b8616905080860495508084049350600181826000030401905080836127429190613a94565b84179350600060028760036127579190613a94565b18905080876127669190613a94565b600261277291906135de565b8161277d9190613a94565b9050808761278b9190613a94565b600261279791906135de565b816127a29190613a94565b905080876127b09190613a94565b60026127bc91906135de565b816127c79190613a94565b905080876127d59190613a94565b60026127e191906135de565b816127ec9190613a94565b905080876127fa9190613a94565b600261280691906135de565b816128119190613a94565b9050808761281f9190613a94565b600261282b91906135de565b816128369190613a94565b905080856128449190613a94565b955050505050505b9392505050565b60008060008573ffffffffffffffffffffffffffffffffffffffff1663e6a4390586866040518363ffffffff1660e01b8152600401612893929190613cf7565b602060405180830381865afa9250505080156128cd57506040513d601f19601f820116820180604052508101906128ca9190613698565b60015b6128da57600090506128e3565b80925060019150505b81925050509392505050565b6000808473ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1661292a9190613a94565b9050600084600a61293b9190613926565b9050831561297057612967780100000000000000000000000000000000000000000000000082846126b3565b92505050612999565b612994828278010000000000000000000000000000000000000000000000006126b3565b925050505b9392505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b604051806101800160405280600073ffffffffffffffffffffffffffffffffffffffff1681526020016000815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff1681526020016060815260200160008152602001600081526020016000815260200160008152602001600015158152602001600081525090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612b5082612b25565b9050919050565b612b6081612b45565b8114612b6b57600080fd5b50565b600081359050612b7d81612b57565b92915050565b600060208284031215612b9957612b98612b1b565b5b6000612ba784828501612b6e565b91505092915050565b60008115159050919050565b612bc581612bb0565b82525050565b6000602082019050612be06000830184612bbc565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612c3482612beb565b810181811067ffffffffffffffff82111715612c5357612c52612bfc565b5b80604052505050565b6000612c66612b11565b9050612c728282612c2b565b919050565b600067ffffffffffffffff821115612c9257612c91612bfc565b5b602082029050602081019050919050565b600080fd5b6000612cbb612cb684612c77565b612c5c565b90508083825260208201905060208402830185811115612cde57612cdd612ca3565b5b835b81811015612d075780612cf38882612b6e565b845260208401935050602081019050612ce0565b5050509392505050565b600082601f830112612d2657612d25612be6565b5b8135612d36848260208601612ca8565b91505092915050565b600060208284031215612d5557612d54612b1b565b5b600082013567ffffffffffffffff811115612d7357612d72612b20565b5b612d7f84828501612d11565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000819050919050565b612dc781612db4565b82525050565b6000612dd98383612dbe565b60208301905092915050565b6000602082019050919050565b6000612dfd82612d88565b612e078185612d93565b9350612e1283612da4565b8060005b83811015612e43578151612e2a8882612dcd565b9750612e3583612de5565b925050600181019050612e16565b5085935050505092915050565b600060ff82169050919050565b612e6681612e50565b82525050565b60006040820190508181036000830152612e868185612df2565b9050612e956020830184612e5d565b9392505050565b600080600060608486031215612eb557612eb4612b1b565b5b6000612ec386828701612b6e565b9350506020612ed486828701612b6e565b9250506040612ee586828701612b6e565b9150509250925092565b60006020820190508181036000830152612f098184612df2565b905092915050565b60008060408385031215612f2857612f27612b1b565b5b6000612f3685828601612b6e565b9250506020612f4785828601612b6e565b9150509250929050565b612f5a81612b45565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612f9a578082015181840152602081019050612f7f565b60008484015250505050565b6000612fb182612f60565b612fbb8185612f6b565b9350612fcb818560208601612f7c565b612fd481612beb565b840191505092915050565b612fe881612bb0565b82525050565b6000610180830160008301516130076000860182612f51565b50602083015161301a6020860182612dbe565b50604083015161302d6040860182612dbe565b5060608301516130406060860182612f51565b5060808301516130536080860182612f51565b5060a083015184820360a086015261306b8282612fa6565b91505060c083015161308060c0860182612dbe565b5060e083015161309360e0860182612dbe565b506101008301516130a8610100860182612dbe565b506101208301516130bd610120860182612dbe565b506101408301516130d2610140860182612fdf565b506101608301516130e7610160860182612dbe565b508091505092915050565b6000602082019050818103600083015261310c8184612fee565b905092915050565b61311d81612db4565b811461312857600080fd5b50565b60008135905061313a81613114565b92915050565b60006020828403121561315657613155612b1b565b5b60006131648482850161312b565b91505092915050565b600062ffffff82169050919050565b6131858161316d565b82525050565b60006020820190506131a0600083018461317c565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610180830160008301516131eb6000860182612f51565b5060208301516131fe6020860182612dbe565b5060408301516132116040860182612dbe565b5060608301516132246060860182612f51565b5060808301516132376080860182612f51565b5060a083015184820360a086015261324f8282612fa6565b91505060c083015161326460c0860182612dbe565b5060e083015161327760e0860182612dbe565b5061010083015161328c610100860182612dbe565b506101208301516132a1610120860182612dbe565b506101408301516132b6610140860182612fdf565b506101608301516132cb610160860182612dbe565b508091505092915050565b60006132e283836131d2565b905092915050565b6000602082019050919050565b6000613302826131a6565b61330c81856131b1565b93508360208202850161331e856131c2565b8060005b8581101561335a578484038952815161333b85826132d6565b9450613346836132ea565b925060208a01995050600181019050613322565b50829750879550505050505092915050565b6000602082019050818103600083015261338681846132f7565b905092915050565b600080604083850312156133a5576133a4612b1b565b5b600083013567ffffffffffffffff8111156133c3576133c2612b20565b5b6133cf85828601612d11565b92505060206133e085828601612b6e565b9150509250929050565b6133f381612b45565b82525050565b600060208201905061340e60008301846133ea565b92915050565b60008060006060848603121561342d5761342c612b1b565b5b600061343b86828701612b6e565b935050602061344c86828701612b6e565b925050604061345d8682870161312b565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600061349f8383612fdf565b60208301905092915050565b6000602082019050919050565b60006134c382613467565b6134cd8185613472565b93506134d883613483565b8060005b838110156135095781516134f08882613493565b97506134fb836134ab565b9250506001810190506134dc565b5085935050505092915050565b6000602082019050818103600083015261353081846134b8565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006135a182612db4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036135d3576135d2613567565b5b600182019050919050565b60006135e982612db4565b91506135f483612db4565b925082820390508181111561360c5761360b613567565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60008151905061365081613114565b92915050565b60006020828403121561366c5761366b612b1b565b5b600061367a84828501613641565b91505092915050565b60008151905061369281612b57565b92915050565b6000602082840312156136ae576136ad612b1b565b5b60006136bc84828501613683565b91505092915050565b6136ce81612e50565b81146136d957600080fd5b50565b6000815190506136eb816136c5565b92915050565b60006020828403121561370757613706612b1b565b5b6000613715848285016136dc565b91505092915050565b60006dffffffffffffffffffffffffffff82169050919050565b6137418161371e565b811461374c57600080fd5b50565b60008151905061375e81613738565b92915050565b600063ffffffff82169050919050565b61377d81613764565b811461378857600080fd5b50565b60008151905061379a81613774565b92915050565b6000806000606084860312156137b9576137b8612b1b565b5b60006137c78682870161374f565b93505060206137d88682870161374f565b92505060406137e98682870161378b565b9150509250925092565b60008160011c9050919050565b6000808291508390505b600185111561384a5780860481111561382657613825613567565b5b60018516156138355780820291505b8081029050613843856137f3565b945061380a565b94509492505050565b600082613863576001905061391f565b81613871576000905061391f565b81600181146138875760028114613891576138c0565b600191505061391f565b60ff8411156138a3576138a2613567565b5b8360020a9150848211156138ba576138b9613567565b5b5061391f565b5060208310610133831016604e8410600b84101617156138f55782820a9050838111156138f0576138ef613567565b5b61391f565b6139028484846001613800565b9250905081840481111561391957613918613567565b5b81810290505b9392505050565b600061393182612db4565b915061393c83612db4565b92506139697fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484613853565b905092915050565b600080fd5b600067ffffffffffffffff82111561399157613990612bfc565b5b61399a82612beb565b9050602081019050919050565b60006139ba6139b584613976565b612c5c565b9050828152602081018484840111156139d6576139d5613971565b5b6139e1848285612f7c565b509392505050565b600082601f8301126139fe576139fd612be6565b5b8151613a0e8482602086016139a7565b91505092915050565b600060208284031215613a2d57613a2c612b1b565b5b600082015167ffffffffffffffff811115613a4b57613a4a612b20565b5b613a57848285016139e9565b91505092915050565b6000613a6b82612db4565b9150613a7683612db4565b9250828201905080821115613a8e57613a8d613567565b5b92915050565b6000613a9f82612db4565b9150613aaa83612db4565b9250828202613ab881612db4565b91508282048414831517613acf57613ace613567565b5b5092915050565b6000606082019050613aeb60008301866133ea565b613af860208301856133ea565b613b05604083018461317c565b949350505050565b613b1681612b25565b8114613b2157600080fd5b50565b600081519050613b3381613b0d565b92915050565b60008160020b9050919050565b613b4f81613b39565b8114613b5a57600080fd5b50565b600081519050613b6c81613b46565b92915050565b600061ffff82169050919050565b613b8981613b72565b8114613b9457600080fd5b50565b600081519050613ba681613b80565b92915050565b613bb581612bb0565b8114613bc057600080fd5b50565b600081519050613bd281613bac565b92915050565b600080600080600080600060e0888a031215613bf757613bf6612b1b565b5b6000613c058a828b01613b24565b9750506020613c168a828b01613b5d565b9650506040613c278a828b01613b97565b9550506060613c388a828b01613b97565b9450506080613c498a828b01613b97565b93505060a0613c5a8a828b016136dc565b92505060c0613c6b8a828b01613bc3565b91505092959891949750929550565b600082825260208201905092915050565b7f43757272656e63792061646472657373206e6f7420666f756e64000000000000600082015250565b6000613cc1601a83613c7a565b9150613ccc82613c8b565b602082019050919050565b60006020820190508181036000830152613cf081613cb4565b9050919050565b6000604082019050613d0c60008301856133ea565b613d1960208301846133ea565b939250505056fea264697066735822122028a85f259f72594cd9e0b11cb09d1e2f91ae3782a31f8453d693e4f48f2707fb64736f6c634300081200330000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f0000000000000000000000001f98431c8ad98523631ae4a59f267346ea31f984000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
|
608060405234801561001057600080fd5b50600436106101375760003560e01c80638926c6e9116100b8578063df4186891161007c578063df41868914610398578063f1ea59df146103c8578063f2340acc146103e4578063f2fde38b14610414578063f6d1c27114610430578063fc9dab531461046057610137565b80638926c6e9146102cd5780638da5cb5b146102fe578063bc07f05f1461031c578063ce1ca8dc1461034c578063d13d71971461037c57610137565b806332749461116100ff57806332749461146101f157806338856e1b146102215780634acc79ed146102515780636202e86e146102815780637f42f7831461029d57610137565b8063162790551461013c5780631673e9ea1461016c578063178377641461018857806326abc96b146101a45780632fab0e55146101d5575b600080fd5b61015660048036038101906101519190612b83565b610490565b6040516101639190612bcb565b60405180910390f35b61018660048036038101906101819190612d3f565b6104b3565b005b6101a2600480360381019061019d9190612d3f565b61055b565b005b6101be60048036038101906101b99190612d3f565b610603565b6040516101cc929190612e6c565b60405180910390f35b6101ef60048036038101906101ea9190612d3f565b6106d2565b005b61020b60048036038101906102069190612e9c565b6108a2565b6040516102189190612eef565b60405180910390f35b61023b60048036038101906102369190612f11565b610a3d565b60405161024891906130f2565b60405180910390f35b61026b60048036038101906102669190613140565b610ff3565b604051610278919061318b565b60405180910390f35b61029b60048036038101906102969190612d3f565b61102c565b005b6102b760048036038101906102b29190612f11565b6111fe565b6040516102c4919061336c565b60405180910390f35b6102e760048036038101906102e2919061338e565b611552565b6040516102f5929190612e6c565b60405180910390f35b6103066116fe565b60405161031391906133f9565b60405180910390f35b61033660048036038101906103319190612b83565b611727565b604051610343919061336c565b60405180910390f35b61036660048036038101906103619190613140565b611af2565b60405161037391906133f9565b60405180910390f35b61039660048036038101906103919190612d3f565b611b31565b005b6103b260048036038101906103ad9190613414565b611bd9565b6040516103bf91906130f2565b60405180910390f35b6103e260048036038101906103dd9190612d3f565b61224c565b005b6103fe60048036038101906103f99190613140565b61245b565b60405161040b91906133f9565b60405180910390f35b61042e60048036038101906104299190612b83565b61249a565b005b61044a60048036038101906104459190613140565b612520565b60405161045791906133f9565b60405180910390f35b61047a60048036038101906104759190612d3f565b61255f565b6040516104879190613516565b60405180910390f35b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6104bb61262c565b60005b81518110156105575760028282815181106104dc576104db613538565b5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808061054f90613596565b9150506104be565b5050565b61056361262c565b60005b81518110156105ff57600182828151811061058457610583613538565b5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080806105f790613596565b915050610566565b5050565b6060600080835167ffffffffffffffff81111561062357610622612bfc565b5b6040519080825280602002602001820160405280156106515781602001602082028036833780820191505090505b50905060005b84518110156106c45784818151811061067357610672613538565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff16318282815181106106a5576106a4613538565b5b60200260200101818152505080806106bc90613596565b915050610657565b508060129250925050915091565b6106da61262c565b60005b815181101561089e5760005b60018054905081101561088a5782828151811061070957610708613538565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff166001828154811061073b5761073a613538565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361087757600180808054905061079391906135de565b815481106107a4576107a3613538565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600182815481106107e3576107e2613538565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600180548061083d5761083c613612565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055905561088a565b808061088290613596565b9150506106e9565b50808061089690613596565b9150506106dd565b5050565b6060600083905060008390506000600267ffffffffffffffff8111156108cb576108ca612bfc565b5b6040519080825280602002602001820160405280156108f95781602001602082028036833780820191505090505b5090508273ffffffffffffffffffffffffffffffffffffffff166370a08231886040518263ffffffff1660e01b815260040161093591906133f9565b602060405180830381865afa158015610952573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109769190613656565b8160008151811061098a57610989613538565b5b6020026020010181815250508173ffffffffffffffffffffffffffffffffffffffff166370a08231886040518263ffffffff1660e01b81526004016109cf91906133f9565b602060405180830381865afa1580156109ec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a109190613656565b81600181518110610a2457610a23613538565b5b6020026020010181815250508093505050509392505050565b610a45612a6c565b610a4d612a6c565b600084905084826000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060008173ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ad7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610afb9190613698565b905060008273ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6e9190613698565b90506000829050600082905060008273ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bc7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610beb91906136f1565b60ff16905060008273ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6191906136f1565b60ff1690506000808873ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015610cb4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd891906137a0565b506dffffffffffffffffffffffffffff1691506dffffffffffffffffffffffffffff1691508b73ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1603610e7b57600084600a610d3f9190613926565b9050610d4c8282856126b3565b8b6020018181525050838b6040018181525050888b6060019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050848b610100018181525050828b60c0018181525050878b6080019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050818b60e0018181525050838b6101200181815250508573ffffffffffffffffffffffffffffffffffffffff166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015610e44573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610e6d9190613a17565b8b60a0018190525050610fc2565b600083600a610e8a9190613926565b9050610e978382846126b3565b8b6020018181525050848b6040018181525050878b6060019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050838b610100018181525050818b60c0018181525050888b6080019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050828b60e0018181525050848b6101200181815250508673ffffffffffffffffffffffffffffffffffffffff166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015610f8f573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610fb89190613a17565b8b60a00181905250505b60008a61014001901515908115158152505060008a610160018181525050899a505050505050505050505092915050565b6004818154811061100357600080fd5b90600052602060002090600a9182820401919006600302915054906101000a900462ffffff1681565b61103461262c565b60005b81518110156111fa5760005b6002805490508110156111e65782828151811061106357611062613538565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff166002828154811061109557611094613538565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036111d357600260016002805490506110ef91906135de565b81548110611100576110ff613538565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166002828154811061113f5761113e613538565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600280548061119957611198613612565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905590556111e6565b80806111de90613596565b915050611043565b5080806111f290613596565b915050611037565b5050565b606060006002805490506001805490506112189190613a60565b60036112249190613a94565b67ffffffffffffffff81111561123d5761123c612bfc565b5b60405190808252806020026020018201604052801561127657816020015b611263612a6c565b81526020019060019003908161125b5790505b5090506000805b6001805490508110156113565760006112d5600183815481106112a3576112a2613538565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168888612853565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611342576113158188610a3d565b84848151811061132857611327613538565b5b6020026020010181905250828061133e90613596565b9350505b50808061134e90613596565b91505061127d565b5060005b6002805490508110156115465760006002828154811061137d5761137c613538565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060005b6004805490508110156115315760008273ffffffffffffffffffffffffffffffffffffffff16631698ee828a8a600486815481106113ee576113ed613538565b5b90600052602060002090600a91828204019190066003029054906101000a900462ffffff166040518463ffffffff1660e01b815260040161143193929190613ad6565b602060405180830381865afa15801561144e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114729190613698565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461151d576114f0818a600485815481106114c1576114c0613538565b5b90600052602060002090600a91828204019190066003029054906101000a900462ffffff1662ffffff16611bd9565b86868151811061150357611502613538565b5b6020026020010181905250848061151990613596565b9550505b50808061152990613596565b9150506113ad565b5050808061153e90613596565b91505061135a565b50819250505092915050565b606060008083905060008173ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156115a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115cb91906136f1565b90506000865167ffffffffffffffff8111156115ea576115e9612bfc565b5b6040519080825280602002602001820160405280156116185781602001602082028036833780820191505090505b50905060005b87518110156116ed578373ffffffffffffffffffffffffffffffffffffffff166370a0823189838151811061165657611655613538565b5b60200260200101516040518263ffffffff1660e01b815260040161167a91906133f9565b602060405180830381865afa158015611697573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116bb9190613656565b8282815181106116ce576116cd613538565b5b60200260200101818152505080806116e590613596565b91505061161e565b508082945094505050509250929050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060006003805490506002805490506001805490506117479190613a60565b60036117539190613a94565b61175d9190613a94565b67ffffffffffffffff81111561177657611775612bfc565b5b6040519080825280602002602001820160405280156117af57816020015b61179c612a6c565b8152602001906001900390816117945790505b5090506000805b600380549050811015611ae7576000600382815481106117d9576117d8613538565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060005b6001805490508110156118e25760006118616001838154811061182f5761182e613538565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168985612853565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146118ce576118a18189610a3d565b8686815181106118b4576118b3613538565b5b602002602001018190525084806118ca90613596565b9550505b5080806118da90613596565b915050611809565b5060005b600280549050811015611ad25760006002828154811061190957611908613538565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060005b600480549050811015611abd5760008273ffffffffffffffffffffffffffffffffffffffff16631698ee828b876004868154811061197a57611979613538565b5b90600052602060002090600a91828204019190066003029054906101000a900462ffffff166040518463ffffffff1660e01b81526004016119bd93929190613ad6565b602060405180830381865afa1580156119da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119fe9190613698565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611aa957611a7c818b60048581548110611a4d57611a4c613538565b5b90600052602060002090600a91828204019190066003029054906101000a900462ffffff1662ffffff16611bd9565b888881518110611a8f57611a8e613538565b5b60200260200101819052508680611aa590613596565b9750505b508080611ab590613596565b915050611939565b50508080611aca90613596565b9150506118e6565b50508080611adf90613596565b9150506117b6565b508192505050919050565b60018181548110611b0257600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611b3961262c565b60005b8151811015611bd5576003828281518110611b5a57611b59613538565b5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508080611bcd90613596565b915050611b3c565b5050565b611be1612a6c565b611be9612a6c565b600085905085826000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060008173ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015611c73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c979190613698565b905060008273ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ce6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d0a9190613698565b90506000829050600082905060008273ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015611d63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d8791906136f1565b60ff16905060008273ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015611dd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dfd91906136f1565b60ff16905060008473ffffffffffffffffffffffffffffffffffffffff166370a082318e6040518263ffffffff1660e01b8152600401611e3d91906133f9565b602060405180830381865afa158015611e5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e7e9190613656565b905060008473ffffffffffffffffffffffffffffffffffffffff166370a082318f6040518263ffffffff1660e01b8152600401611ebb91906133f9565b602060405180830381865afa158015611ed8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611efc9190613656565b905060008973ffffffffffffffffffffffffffffffffffffffff16633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015611f4b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f6f9190613bd8565b50505050505090508d73ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff16036120e457611fb6818660006128ef565b8b6020018181525050838b6040018181525050888b6060019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050848b610100018181525050828b60c0018181525050878b6080019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050818b60e0018181525050838b6101200181815250508573ffffffffffffffffffffffffffffffffffffffff166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa1580156120ae573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906120d79190613a17565b8b60a0018190525061221a565b6120f0818560016128ef565b8b6020018181525050848b6040018181525050878b6060019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050838b610100018181525050818b60c0018181525050888b6080019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050828b60e0018181525050848b6101200181815250508673ffffffffffffffffffffffffffffffffffffffff166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa1580156121e8573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906122119190613a17565b8b60a001819052505b60018b6101400190151590811515815250508c8b6101600181815250508a9b5050505050505050505050509392505050565b61225461262c565b60005b815181101561241c5760005b6003805490508110156124085782828151811061228357612282613538565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff16600382815481106122b5576122b4613538565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036123f5576003600160038054905061230f91906135de565b815481106123205761231f613538565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166003828154811061235f5761235e613538565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060038054806123b9576123b8613612565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905590555050612458565b808061240090613596565b915050612263565b50808061241490613596565b915050612257565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244f90613cd7565b60405180910390fd5b50565b6002818154811061246b57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6124a261262c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036125145760006040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161250b91906133f9565b60405180910390fd5b61251d816129a0565b50565b6003818154811061253057600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606000600183516125719190613a60565b67ffffffffffffffff81111561258a57612589612bfc565b5b6040519080825280602002602001820160405280156125b85781602001602082028036833780820191505090505b50905060005b8351811015612622576125ea8482815181106125dd576125dc613538565b5b6020026020010151610490565b8282815181106125fd576125fc613538565b5b602002602001019015159081151581525050808061261a90613596565b9150506125be565b5080915050919050565b612634612a64565b73ffffffffffffffffffffffffffffffffffffffff166126526116fe565b73ffffffffffffffffffffffffffffffffffffffff16146126b157612675612a64565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016126a891906133f9565b60405180910390fd5b565b60008060008019858709858702925082811083820303915050600081036126ed57600084116126e157600080fd5b8382049250505061284c565b8084116126f957600080fd5b600084868809905082811182039150808303925060006001861961271d9190613a60565b8616905080860495508084049350600181826000030401905080836127429190613a94565b84179350600060028760036127579190613a94565b18905080876127669190613a94565b600261277291906135de565b8161277d9190613a94565b9050808761278b9190613a94565b600261279791906135de565b816127a29190613a94565b905080876127b09190613a94565b60026127bc91906135de565b816127c79190613a94565b905080876127d59190613a94565b60026127e191906135de565b816127ec9190613a94565b905080876127fa9190613a94565b600261280691906135de565b816128119190613a94565b9050808761281f9190613a94565b600261282b91906135de565b816128369190613a94565b905080856128449190613a94565b955050505050505b9392505050565b60008060008573ffffffffffffffffffffffffffffffffffffffff1663e6a4390586866040518363ffffffff1660e01b8152600401612893929190613cf7565b602060405180830381865afa9250505080156128cd57506040513d601f19601f820116820180604052508101906128ca9190613698565b60015b6128da57600090506128e3565b80925060019150505b81925050509392505050565b6000808473ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1661292a9190613a94565b9050600084600a61293b9190613926565b9050831561297057612967780100000000000000000000000000000000000000000000000082846126b3565b92505050612999565b612994828278010000000000000000000000000000000000000000000000006126b3565b925050505b9392505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b604051806101800160405280600073ffffffffffffffffffffffffffffffffffffffff1681526020016000815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff1681526020016060815260200160008152602001600081526020016000815260200160008152602001600015158152602001600081525090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612b5082612b25565b9050919050565b612b6081612b45565b8114612b6b57600080fd5b50565b600081359050612b7d81612b57565b92915050565b600060208284031215612b9957612b98612b1b565b5b6000612ba784828501612b6e565b91505092915050565b60008115159050919050565b612bc581612bb0565b82525050565b6000602082019050612be06000830184612bbc565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612c3482612beb565b810181811067ffffffffffffffff82111715612c5357612c52612bfc565b5b80604052505050565b6000612c66612b11565b9050612c728282612c2b565b919050565b600067ffffffffffffffff821115612c9257612c91612bfc565b5b602082029050602081019050919050565b600080fd5b6000612cbb612cb684612c77565b612c5c565b90508083825260208201905060208402830185811115612cde57612cdd612ca3565b5b835b81811015612d075780612cf38882612b6e565b845260208401935050602081019050612ce0565b5050509392505050565b600082601f830112612d2657612d25612be6565b5b8135612d36848260208601612ca8565b91505092915050565b600060208284031215612d5557612d54612b1b565b5b600082013567ffffffffffffffff811115612d7357612d72612b20565b5b612d7f84828501612d11565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000819050919050565b612dc781612db4565b82525050565b6000612dd98383612dbe565b60208301905092915050565b6000602082019050919050565b6000612dfd82612d88565b612e078185612d93565b9350612e1283612da4565b8060005b83811015612e43578151612e2a8882612dcd565b9750612e3583612de5565b925050600181019050612e16565b5085935050505092915050565b600060ff82169050919050565b612e6681612e50565b82525050565b60006040820190508181036000830152612e868185612df2565b9050612e956020830184612e5d565b9392505050565b600080600060608486031215612eb557612eb4612b1b565b5b6000612ec386828701612b6e565b9350506020612ed486828701612b6e565b9250506040612ee586828701612b6e565b9150509250925092565b60006020820190508181036000830152612f098184612df2565b905092915050565b60008060408385031215612f2857612f27612b1b565b5b6000612f3685828601612b6e565b9250506020612f4785828601612b6e565b9150509250929050565b612f5a81612b45565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612f9a578082015181840152602081019050612f7f565b60008484015250505050565b6000612fb182612f60565b612fbb8185612f6b565b9350612fcb818560208601612f7c565b612fd481612beb565b840191505092915050565b612fe881612bb0565b82525050565b6000610180830160008301516130076000860182612f51565b50602083015161301a6020860182612dbe565b50604083015161302d6040860182612dbe565b5060608301516130406060860182612f51565b5060808301516130536080860182612f51565b5060a083015184820360a086015261306b8282612fa6565b91505060c083015161308060c0860182612dbe565b5060e083015161309360e0860182612dbe565b506101008301516130a8610100860182612dbe565b506101208301516130bd610120860182612dbe565b506101408301516130d2610140860182612fdf565b506101608301516130e7610160860182612dbe565b508091505092915050565b6000602082019050818103600083015261310c8184612fee565b905092915050565b61311d81612db4565b811461312857600080fd5b50565b60008135905061313a81613114565b92915050565b60006020828403121561315657613155612b1b565b5b60006131648482850161312b565b91505092915050565b600062ffffff82169050919050565b6131858161316d565b82525050565b60006020820190506131a0600083018461317c565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610180830160008301516131eb6000860182612f51565b5060208301516131fe6020860182612dbe565b5060408301516132116040860182612dbe565b5060608301516132246060860182612f51565b5060808301516132376080860182612f51565b5060a083015184820360a086015261324f8282612fa6565b91505060c083015161326460c0860182612dbe565b5060e083015161327760e0860182612dbe565b5061010083015161328c610100860182612dbe565b506101208301516132a1610120860182612dbe565b506101408301516132b6610140860182612fdf565b506101608301516132cb610160860182612dbe565b508091505092915050565b60006132e283836131d2565b905092915050565b6000602082019050919050565b6000613302826131a6565b61330c81856131b1565b93508360208202850161331e856131c2565b8060005b8581101561335a578484038952815161333b85826132d6565b9450613346836132ea565b925060208a01995050600181019050613322565b50829750879550505050505092915050565b6000602082019050818103600083015261338681846132f7565b905092915050565b600080604083850312156133a5576133a4612b1b565b5b600083013567ffffffffffffffff8111156133c3576133c2612b20565b5b6133cf85828601612d11565b92505060206133e085828601612b6e565b9150509250929050565b6133f381612b45565b82525050565b600060208201905061340e60008301846133ea565b92915050565b60008060006060848603121561342d5761342c612b1b565b5b600061343b86828701612b6e565b935050602061344c86828701612b6e565b925050604061345d8682870161312b565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600061349f8383612fdf565b60208301905092915050565b6000602082019050919050565b60006134c382613467565b6134cd8185613472565b93506134d883613483565b8060005b838110156135095781516134f08882613493565b97506134fb836134ab565b9250506001810190506134dc565b5085935050505092915050565b6000602082019050818103600083015261353081846134b8565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006135a182612db4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036135d3576135d2613567565b5b600182019050919050565b60006135e982612db4565b91506135f483612db4565b925082820390508181111561360c5761360b613567565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60008151905061365081613114565b92915050565b60006020828403121561366c5761366b612b1b565b5b600061367a84828501613641565b91505092915050565b60008151905061369281612b57565b92915050565b6000602082840312156136ae576136ad612b1b565b5b60006136bc84828501613683565b91505092915050565b6136ce81612e50565b81146136d957600080fd5b50565b6000815190506136eb816136c5565b92915050565b60006020828403121561370757613706612b1b565b5b6000613715848285016136dc565b91505092915050565b60006dffffffffffffffffffffffffffff82169050919050565b6137418161371e565b811461374c57600080fd5b50565b60008151905061375e81613738565b92915050565b600063ffffffff82169050919050565b61377d81613764565b811461378857600080fd5b50565b60008151905061379a81613774565b92915050565b6000806000606084860312156137b9576137b8612b1b565b5b60006137c78682870161374f565b93505060206137d88682870161374f565b92505060406137e98682870161378b565b9150509250925092565b60008160011c9050919050565b6000808291508390505b600185111561384a5780860481111561382657613825613567565b5b60018516156138355780820291505b8081029050613843856137f3565b945061380a565b94509492505050565b600082613863576001905061391f565b81613871576000905061391f565b81600181146138875760028114613891576138c0565b600191505061391f565b60ff8411156138a3576138a2613567565b5b8360020a9150848211156138ba576138b9613567565b5b5061391f565b5060208310610133831016604e8410600b84101617156138f55782820a9050838111156138f0576138ef613567565b5b61391f565b6139028484846001613800565b9250905081840481111561391957613918613567565b5b81810290505b9392505050565b600061393182612db4565b915061393c83612db4565b92506139697fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484613853565b905092915050565b600080fd5b600067ffffffffffffffff82111561399157613990612bfc565b5b61399a82612beb565b9050602081019050919050565b60006139ba6139b584613976565b612c5c565b9050828152602081018484840111156139d6576139d5613971565b5b6139e1848285612f7c565b509392505050565b600082601f8301126139fe576139fd612be6565b5b8151613a0e8482602086016139a7565b91505092915050565b600060208284031215613a2d57613a2c612b1b565b5b600082015167ffffffffffffffff811115613a4b57613a4a612b20565b5b613a57848285016139e9565b91505092915050565b6000613a6b82612db4565b9150613a7683612db4565b9250828201905080821115613a8e57613a8d613567565b5b92915050565b6000613a9f82612db4565b9150613aaa83612db4565b9250828202613ab881612db4565b91508282048414831517613acf57613ace613567565b5b5092915050565b6000606082019050613aeb60008301866133ea565b613af860208301856133ea565b613b05604083018461317c565b949350505050565b613b1681612b25565b8114613b2157600080fd5b50565b600081519050613b3381613b0d565b92915050565b60008160020b9050919050565b613b4f81613b39565b8114613b5a57600080fd5b50565b600081519050613b6c81613b46565b92915050565b600061ffff82169050919050565b613b8981613b72565b8114613b9457600080fd5b50565b600081519050613ba681613b80565b92915050565b613bb581612bb0565b8114613bc057600080fd5b50565b600081519050613bd281613bac565b92915050565b600080600080600080600060e0888a031215613bf757613bf6612b1b565b5b6000613c058a828b01613b24565b9750506020613c168a828b01613b5d565b9650506040613c278a828b01613b97565b9550506060613c388a828b01613b97565b9450506080613c498a828b01613b97565b93505060a0613c5a8a828b016136dc565b92505060c0613c6b8a828b01613bc3565b91505092959891949750929550565b600082825260208201905092915050565b7f43757272656e63792061646472657373206e6f7420666f756e64000000000000600082015250565b6000613cc1601a83613c7a565b9150613ccc82613c8b565b602082019050919050565b60006020820190508181036000830152613cf081613cb4565b9050919050565b6000604082019050613d0c60008301856133ea565b613d1960208301846133ea565b939250505056fea264697066735822122028a85f259f72594cd9e0b11cb09d1e2f91ae3782a31f8453d693e4f48f2707fb64736f6c63430008120033
| |
1 | 19,501,897 |
d68685a0fca39bfa927977cf759d20bfa0e37cd37775e9d6da95449cd6f9790a
|
f3e89ca6a7b81d94a8cd2e51b70ad140f8e5f96176aeabbccff9da415a174f22
|
9a083dd094c0809e90e13984dbce05d69f21a060
|
a6b71e26c5e0845f74c812102ca7114b6a896ab2
|
fd9f47849c74da07f53124792e9600a0b2df0c51
|
608060405234801561001057600080fd5b506040516101e63803806101e68339818101604052602081101561003357600080fd5b8101908080519060200190929190505050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156100ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806101c46022913960400191505060405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505060ab806101196000396000f3fe608060405273ffffffffffffffffffffffffffffffffffffffff600054167fa619486e0000000000000000000000000000000000000000000000000000000060003514156050578060005260206000f35b3660008037600080366000845af43d6000803e60008114156070573d6000fd5b3d6000f3fea2646970667358221220d1429297349653a4918076d650332de1a1068c5f3e07c5c82360c277770b955264736f6c63430007060033496e76616c69642073696e676c65746f6e20616464726573732070726f7669646564000000000000000000000000d9db270c1b5e3bd161e8c8503c55ceabee709552
|
608060405273ffffffffffffffffffffffffffffffffffffffff600054167fa619486e0000000000000000000000000000000000000000000000000000000060003514156050578060005260206000f35b3660008037600080366000845af43d6000803e60008114156070573d6000fd5b3d6000f3fea2646970667358221220d1429297349653a4918076d650332de1a1068c5f3e07c5c82360c277770b955264736f6c63430007060033
|
// SPDX-License-Identifier: LGPL-3.0-only
pragma solidity >=0.7.0 <0.9.0;
/// @title IProxy - Helper interface to access masterCopy of the Proxy on-chain
/// @author Richard Meissner - <richard@gnosis.io>
interface IProxy {
function masterCopy() external view returns (address);
}
/// @title GnosisSafeProxy - Generic proxy contract allows to execute all transactions applying the code of a master contract.
/// @author Stefan George - <stefan@gnosis.io>
/// @author Richard Meissner - <richard@gnosis.io>
contract GnosisSafeProxy {
// singleton always needs to be first declared variable, to ensure that it is at the same location in the contracts to which calls are delegated.
// To reduce deployment costs this variable is internal and needs to be retrieved via `getStorageAt`
address internal singleton;
/// @dev Constructor function sets address of singleton contract.
/// @param _singleton Singleton address.
constructor(address _singleton) {
require(_singleton != address(0), "Invalid singleton address provided");
singleton = _singleton;
}
/// @dev Fallback function forwards all transactions and returns all received return data.
fallback() external payable {
// solhint-disable-next-line no-inline-assembly
assembly {
let _singleton := and(sload(0), 0xffffffffffffffffffffffffffffffffffffffff)
// 0xa619486e == keccak("masterCopy()"). The value is right padded to 32-bytes with 0s
if eq(calldataload(0), 0xa619486e00000000000000000000000000000000000000000000000000000000) {
mstore(0, _singleton)
return(0, 0x20)
}
calldatacopy(0, 0, calldatasize())
let success := delegatecall(gas(), _singleton, 0, calldatasize(), 0, 0)
returndatacopy(0, 0, returndatasize())
if eq(success, 0) {
revert(0, returndatasize())
}
return(0, returndatasize())
}
}
}
/// @title Proxy Factory - Allows to create new proxy contact and execute a message call to the new proxy within one transaction.
/// @author Stefan George - <stefan@gnosis.pm>
contract GnosisSafeProxyFactory {
event ProxyCreation(GnosisSafeProxy proxy, address singleton);
/// @dev Allows to create new proxy contact and execute a message call to the new proxy within one transaction.
/// @param singleton Address of singleton contract.
/// @param data Payload for message call sent to new proxy contract.
function createProxy(address singleton, bytes memory data) public returns (GnosisSafeProxy proxy) {
proxy = new GnosisSafeProxy(singleton);
if (data.length > 0)
// solhint-disable-next-line no-inline-assembly
assembly {
if eq(call(gas(), proxy, 0, add(data, 0x20), mload(data), 0, 0), 0) {
revert(0, 0)
}
}
emit ProxyCreation(proxy, singleton);
}
/// @dev Allows to retrieve the runtime code of a deployed Proxy. This can be used to check that the expected Proxy was deployed.
function proxyRuntimeCode() public pure returns (bytes memory) {
return type(GnosisSafeProxy).runtimeCode;
}
/// @dev Allows to retrieve the creation code used for the Proxy deployment. With this it is easily possible to calculate predicted address.
function proxyCreationCode() public pure returns (bytes memory) {
return type(GnosisSafeProxy).creationCode;
}
/// @dev Allows to create new proxy contact using CREATE2 but it doesn't run the initializer.
/// This method is only meant as an utility to be called from other methods
/// @param _singleton Address of singleton contract.
/// @param initializer Payload for message call sent to new proxy contract.
/// @param saltNonce Nonce that will be used to generate the salt to calculate the address of the new proxy contract.
function deployProxyWithNonce(
address _singleton,
bytes memory initializer,
uint256 saltNonce
) internal returns (GnosisSafeProxy proxy) {
// If the initializer changes the proxy address should change too. Hashing the initializer data is cheaper than just concatinating it
bytes32 salt = keccak256(abi.encodePacked(keccak256(initializer), saltNonce));
bytes memory deploymentData = abi.encodePacked(type(GnosisSafeProxy).creationCode, uint256(uint160(_singleton)));
// solhint-disable-next-line no-inline-assembly
assembly {
proxy := create2(0x0, add(0x20, deploymentData), mload(deploymentData), salt)
}
require(address(proxy) != address(0), "Create2 call failed");
}
/// @dev Allows to create new proxy contact and execute a message call to the new proxy within one transaction.
/// @param _singleton Address of singleton contract.
/// @param initializer Payload for message call sent to new proxy contract.
/// @param saltNonce Nonce that will be used to generate the salt to calculate the address of the new proxy contract.
function createProxyWithNonce(
address _singleton,
bytes memory initializer,
uint256 saltNonce
) public returns (GnosisSafeProxy proxy) {
proxy = deployProxyWithNonce(_singleton, initializer, saltNonce);
if (initializer.length > 0)
// solhint-disable-next-line no-inline-assembly
assembly {
if eq(call(gas(), proxy, 0, add(initializer, 0x20), mload(initializer), 0, 0), 0) {
revert(0, 0)
}
}
emit ProxyCreation(proxy, _singleton);
}
/// @dev Allows to create new proxy contact, execute a message call to the new proxy and call a specified callback within one transaction
/// @param _singleton Address of singleton contract.
/// @param initializer Payload for message call sent to new proxy contract.
/// @param saltNonce Nonce that will be used to generate the salt to calculate the address of the new proxy contract.
/// @param callback Callback that will be invoced after the new proxy contract has been successfully deployed and initialized.
function createProxyWithCallback(
address _singleton,
bytes memory initializer,
uint256 saltNonce,
IProxyCreationCallback callback
) public returns (GnosisSafeProxy proxy) {
uint256 saltNonceWithCallback = uint256(keccak256(abi.encodePacked(saltNonce, callback)));
proxy = createProxyWithNonce(_singleton, initializer, saltNonceWithCallback);
if (address(callback) != address(0)) callback.proxyCreated(proxy, _singleton, initializer, saltNonce);
}
/// @dev Allows to get the address for a new proxy contact created via `createProxyWithNonce`
/// This method is only meant for address calculation purpose when you use an initializer that would revert,
/// therefore the response is returned with a revert. When calling this method set `from` to the address of the proxy factory.
/// @param _singleton Address of singleton contract.
/// @param initializer Payload for message call sent to new proxy contract.
/// @param saltNonce Nonce that will be used to generate the salt to calculate the address of the new proxy contract.
function calculateCreateProxyWithNonceAddress(
address _singleton,
bytes calldata initializer,
uint256 saltNonce
) external returns (GnosisSafeProxy proxy) {
proxy = deployProxyWithNonce(_singleton, initializer, saltNonce);
revert(string(abi.encodePacked(proxy)));
}
}
interface IProxyCreationCallback {
function proxyCreated(
GnosisSafeProxy proxy,
address _singleton,
bytes calldata initializer,
uint256 saltNonce
) external;
}
|
1 | 19,501,897 |
d68685a0fca39bfa927977cf759d20bfa0e37cd37775e9d6da95449cd6f9790a
|
acefe6cdc2cc96df8c546d91ef3cf9f850a8ad51dfbcd9c2f63c511c53da4bb6
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
a05515f3fe767e41ba56f86d622c5811a288f506
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,897 |
d68685a0fca39bfa927977cf759d20bfa0e37cd37775e9d6da95449cd6f9790a
|
3564ec7431b3c147122f3b2756a8b9bab7d19e34a5f76111ad2dd825bd50bdae
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
2601681526662291c755b22e7495bbd4f81ed30c
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,897 |
d68685a0fca39bfa927977cf759d20bfa0e37cd37775e9d6da95449cd6f9790a
|
de3f3c481b8e251120d1e745b1779e84215c746f79cd725136cac92ef71d5b7b
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
bf1d700c5cfc89c2d6a2466fb549f15893645c05
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,897 |
d68685a0fca39bfa927977cf759d20bfa0e37cd37775e9d6da95449cd6f9790a
|
0cc1852d9dea3e67cc040c3c94159b35b200f8baf6bfe403dd370a971bdb7f37
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
a9339c7dda8583976e946e2276a87976a388c284
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,897 |
d68685a0fca39bfa927977cf759d20bfa0e37cd37775e9d6da95449cd6f9790a
|
15959087bd18b7507d33d0b74f83b06476c0966e6d3ca90261e6ce692c134034
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
e9a4bcbd38317d0d3ef3f3f13ef3b2c5175dd1dd
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,897 |
d68685a0fca39bfa927977cf759d20bfa0e37cd37775e9d6da95449cd6f9790a
|
3f080e928d85f5bd41b40772b17ec146fcfdcbbbe6496cddc38c08821bf42a31
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
e83efedc648249cc3daa36cbd71af99c26a1fade
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,897 |
d68685a0fca39bfa927977cf759d20bfa0e37cd37775e9d6da95449cd6f9790a
|
cb2ac5e333f0520b6ca8aaf8321367cbd9410447fcc7310af84368bd85584de2
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
166215ba45c3b81497755f5af0a29da4d5569ecb
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,897 |
d68685a0fca39bfa927977cf759d20bfa0e37cd37775e9d6da95449cd6f9790a
|
cd141b5cbd9a77075e17da88064349c98198e9dac4afb2c09ed49c342402a121
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
a7f563b00685ef90add5355adf8e215a379d605c
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,897 |
d68685a0fca39bfa927977cf759d20bfa0e37cd37775e9d6da95449cd6f9790a
|
dbb8518e4d323f277311ebf77c6744f2c2addb08440f9450f82bb46588b68b64
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
46f996e2f37aad62281d630de0391f51e3232a71
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,897 |
d68685a0fca39bfa927977cf759d20bfa0e37cd37775e9d6da95449cd6f9790a
|
f6634b935ef21655dd3a6e9eea41f740fd4d1a87ed68e94558bd2c51c9c2fb26
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
f0712eee377bb0529674961333eda69454ec138e
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,897 |
d68685a0fca39bfa927977cf759d20bfa0e37cd37775e9d6da95449cd6f9790a
|
14aa0f9a18ff63f2bf1d46d9bfcdf062083866f8a25be0af6b55104ff7e28510
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
cde144cc42c912ab956cff02fac82157291d36a0
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,897 |
d68685a0fca39bfa927977cf759d20bfa0e37cd37775e9d6da95449cd6f9790a
|
1df273864ce42d252a9ed18c9abb16e31bdd9ef7a91764b2ccd3a015f72d7c6e
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
12b4857011473b7a2052ff6eeb38138d915b3b74
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,897 |
d68685a0fca39bfa927977cf759d20bfa0e37cd37775e9d6da95449cd6f9790a
|
80af8fd50c41e2fad0e82f23f895e2533de97a1f09e659ad5f16cbe19135369c
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
9a454dc18ba164b5ae970832094ad89eb3728160
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,897 |
d68685a0fca39bfa927977cf759d20bfa0e37cd37775e9d6da95449cd6f9790a
|
81108106db81935d1556a3a33956a5aecb14cf959b8f78ef74737e54fa1a2800
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
3b09e9827031938fdda2a639c0088be191b011b2
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,897 |
d68685a0fca39bfa927977cf759d20bfa0e37cd37775e9d6da95449cd6f9790a
|
b1981b9088353535b9fa2cbf601d908cfb5874e08b49fd86660779a24174d837
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
a43a0d28c7ac5c535a73814afe94ef0ebf52d2d6
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,897 |
d68685a0fca39bfa927977cf759d20bfa0e37cd37775e9d6da95449cd6f9790a
|
00a12ca2af7313f021645a8a2033fd313ace9ce8c4cec5f7e827940617f9c8e7
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
0888631336540f337dddafd823672012c49d4845
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,898 |
eb8529403d0ce0e32818f97bf751ffa1f5546cbb4485739a4417a4f3984da9fd
|
1740ee15c4363efe95cd993aa0547161319478e6ab1720e61464eba999bd3f04
|
c7d430d97b86fad363139f98874ffc2eeb582fdd
|
a6b71e26c5e0845f74c812102ca7114b6a896ab2
|
80ac2633928f2237c1a44b3ab45c6d9f3df3239b
|
608060405234801561001057600080fd5b506040516101e63803806101e68339818101604052602081101561003357600080fd5b8101908080519060200190929190505050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156100ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806101c46022913960400191505060405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505060ab806101196000396000f3fe608060405273ffffffffffffffffffffffffffffffffffffffff600054167fa619486e0000000000000000000000000000000000000000000000000000000060003514156050578060005260206000f35b3660008037600080366000845af43d6000803e60008114156070573d6000fd5b3d6000f3fea2646970667358221220d1429297349653a4918076d650332de1a1068c5f3e07c5c82360c277770b955264736f6c63430007060033496e76616c69642073696e676c65746f6e20616464726573732070726f7669646564000000000000000000000000d9db270c1b5e3bd161e8c8503c55ceabee709552
|
608060405273ffffffffffffffffffffffffffffffffffffffff600054167fa619486e0000000000000000000000000000000000000000000000000000000060003514156050578060005260206000f35b3660008037600080366000845af43d6000803e60008114156070573d6000fd5b3d6000f3fea2646970667358221220d1429297349653a4918076d650332de1a1068c5f3e07c5c82360c277770b955264736f6c63430007060033
|
// SPDX-License-Identifier: LGPL-3.0-only
pragma solidity >=0.7.0 <0.9.0;
/// @title IProxy - Helper interface to access masterCopy of the Proxy on-chain
/// @author Richard Meissner - <richard@gnosis.io>
interface IProxy {
function masterCopy() external view returns (address);
}
/// @title GnosisSafeProxy - Generic proxy contract allows to execute all transactions applying the code of a master contract.
/// @author Stefan George - <stefan@gnosis.io>
/// @author Richard Meissner - <richard@gnosis.io>
contract GnosisSafeProxy {
// singleton always needs to be first declared variable, to ensure that it is at the same location in the contracts to which calls are delegated.
// To reduce deployment costs this variable is internal and needs to be retrieved via `getStorageAt`
address internal singleton;
/// @dev Constructor function sets address of singleton contract.
/// @param _singleton Singleton address.
constructor(address _singleton) {
require(_singleton != address(0), "Invalid singleton address provided");
singleton = _singleton;
}
/// @dev Fallback function forwards all transactions and returns all received return data.
fallback() external payable {
// solhint-disable-next-line no-inline-assembly
assembly {
let _singleton := and(sload(0), 0xffffffffffffffffffffffffffffffffffffffff)
// 0xa619486e == keccak("masterCopy()"). The value is right padded to 32-bytes with 0s
if eq(calldataload(0), 0xa619486e00000000000000000000000000000000000000000000000000000000) {
mstore(0, _singleton)
return(0, 0x20)
}
calldatacopy(0, 0, calldatasize())
let success := delegatecall(gas(), _singleton, 0, calldatasize(), 0, 0)
returndatacopy(0, 0, returndatasize())
if eq(success, 0) {
revert(0, returndatasize())
}
return(0, returndatasize())
}
}
}
/// @title Proxy Factory - Allows to create new proxy contact and execute a message call to the new proxy within one transaction.
/// @author Stefan George - <stefan@gnosis.pm>
contract GnosisSafeProxyFactory {
event ProxyCreation(GnosisSafeProxy proxy, address singleton);
/// @dev Allows to create new proxy contact and execute a message call to the new proxy within one transaction.
/// @param singleton Address of singleton contract.
/// @param data Payload for message call sent to new proxy contract.
function createProxy(address singleton, bytes memory data) public returns (GnosisSafeProxy proxy) {
proxy = new GnosisSafeProxy(singleton);
if (data.length > 0)
// solhint-disable-next-line no-inline-assembly
assembly {
if eq(call(gas(), proxy, 0, add(data, 0x20), mload(data), 0, 0), 0) {
revert(0, 0)
}
}
emit ProxyCreation(proxy, singleton);
}
/// @dev Allows to retrieve the runtime code of a deployed Proxy. This can be used to check that the expected Proxy was deployed.
function proxyRuntimeCode() public pure returns (bytes memory) {
return type(GnosisSafeProxy).runtimeCode;
}
/// @dev Allows to retrieve the creation code used for the Proxy deployment. With this it is easily possible to calculate predicted address.
function proxyCreationCode() public pure returns (bytes memory) {
return type(GnosisSafeProxy).creationCode;
}
/// @dev Allows to create new proxy contact using CREATE2 but it doesn't run the initializer.
/// This method is only meant as an utility to be called from other methods
/// @param _singleton Address of singleton contract.
/// @param initializer Payload for message call sent to new proxy contract.
/// @param saltNonce Nonce that will be used to generate the salt to calculate the address of the new proxy contract.
function deployProxyWithNonce(
address _singleton,
bytes memory initializer,
uint256 saltNonce
) internal returns (GnosisSafeProxy proxy) {
// If the initializer changes the proxy address should change too. Hashing the initializer data is cheaper than just concatinating it
bytes32 salt = keccak256(abi.encodePacked(keccak256(initializer), saltNonce));
bytes memory deploymentData = abi.encodePacked(type(GnosisSafeProxy).creationCode, uint256(uint160(_singleton)));
// solhint-disable-next-line no-inline-assembly
assembly {
proxy := create2(0x0, add(0x20, deploymentData), mload(deploymentData), salt)
}
require(address(proxy) != address(0), "Create2 call failed");
}
/// @dev Allows to create new proxy contact and execute a message call to the new proxy within one transaction.
/// @param _singleton Address of singleton contract.
/// @param initializer Payload for message call sent to new proxy contract.
/// @param saltNonce Nonce that will be used to generate the salt to calculate the address of the new proxy contract.
function createProxyWithNonce(
address _singleton,
bytes memory initializer,
uint256 saltNonce
) public returns (GnosisSafeProxy proxy) {
proxy = deployProxyWithNonce(_singleton, initializer, saltNonce);
if (initializer.length > 0)
// solhint-disable-next-line no-inline-assembly
assembly {
if eq(call(gas(), proxy, 0, add(initializer, 0x20), mload(initializer), 0, 0), 0) {
revert(0, 0)
}
}
emit ProxyCreation(proxy, _singleton);
}
/// @dev Allows to create new proxy contact, execute a message call to the new proxy and call a specified callback within one transaction
/// @param _singleton Address of singleton contract.
/// @param initializer Payload for message call sent to new proxy contract.
/// @param saltNonce Nonce that will be used to generate the salt to calculate the address of the new proxy contract.
/// @param callback Callback that will be invoced after the new proxy contract has been successfully deployed and initialized.
function createProxyWithCallback(
address _singleton,
bytes memory initializer,
uint256 saltNonce,
IProxyCreationCallback callback
) public returns (GnosisSafeProxy proxy) {
uint256 saltNonceWithCallback = uint256(keccak256(abi.encodePacked(saltNonce, callback)));
proxy = createProxyWithNonce(_singleton, initializer, saltNonceWithCallback);
if (address(callback) != address(0)) callback.proxyCreated(proxy, _singleton, initializer, saltNonce);
}
/// @dev Allows to get the address for a new proxy contact created via `createProxyWithNonce`
/// This method is only meant for address calculation purpose when you use an initializer that would revert,
/// therefore the response is returned with a revert. When calling this method set `from` to the address of the proxy factory.
/// @param _singleton Address of singleton contract.
/// @param initializer Payload for message call sent to new proxy contract.
/// @param saltNonce Nonce that will be used to generate the salt to calculate the address of the new proxy contract.
function calculateCreateProxyWithNonceAddress(
address _singleton,
bytes calldata initializer,
uint256 saltNonce
) external returns (GnosisSafeProxy proxy) {
proxy = deployProxyWithNonce(_singleton, initializer, saltNonce);
revert(string(abi.encodePacked(proxy)));
}
}
interface IProxyCreationCallback {
function proxyCreated(
GnosisSafeProxy proxy,
address _singleton,
bytes calldata initializer,
uint256 saltNonce
) external;
}
|
1 | 19,501,899 |
48c2a6203cc4db270d3786e1b3920877644172b209aeeffdf1f4006ea7ef577c
|
ce3488b43a0fa2d48b509f88245b281a81814ef54303d08704fe68eaabe9c157
|
a9a0b8a5e1adca0caccc63a168f053cd3be30808
|
01cd62ed13d0b666e2a10d13879a763dfd1dab99
|
a4cc60e220dc08af729e4afc24619fcf3b95adf6
|
3d602d80600a3d3981f3363d3d373d3d3d363d7308656072fee78f1d07e38c189de56daa9863597a5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7308656072fee78f1d07e38c189de56daa9863597a5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,899 |
48c2a6203cc4db270d3786e1b3920877644172b209aeeffdf1f4006ea7ef577c
|
0a6aa98845640b128e25a111b04fc72240f11a5cd269767a8a052ed5b527a2c9
|
a7fb5ca286fc3fd67525629048a4de3ba24cba2e
|
c77ad0a71008d7094a62cfbd250a2eb2afdf2776
|
4d080b8bca06f3b976aee887c49ca53eb6851427
|
608060408190526319b400eb60e21b8152339060009082906366d003ac9060849060209060048186803b15801561003557600080fd5b505afa158015610049573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061006d9190610271565b90506000826001600160a01b031663fc0c546a6040518163ffffffff1660e01b815260040160206040518083038186803b1580156100aa57600080fd5b505afa1580156100be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100e29190610271565b90506001600160a01b0381161561018d576040516370a0823160e01b815230600482015261018d9083906001600160a01b038416906370a082319060240160206040518083038186803b15801561013857600080fd5b505afa15801561014c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061017091906102bf565b836001600160a01b031661019960201b610009179092919060201c565b816001600160a01b0316ff5b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b17905291516000928392908716916101f591906102d7565b6000604051808303816000865af19150503d8060008114610232576040519150601f19603f3d011682016040523d82523d6000602084013e610237565b606091505b5091509150818015610261575080511580610261575080806020019051810190610261919061029f565b61026a57600080fd5b5050505050565b600060208284031215610282578081fd5b81516001600160a01b0381168114610298578182fd5b9392505050565b6000602082840312156102b0578081fd5b81518015158114610298578182fd5b6000602082840312156102d0578081fd5b5051919050565b60008251815b818110156102f757602081860181015185830152016102dd565b818111156103055782828501525b50919091019291505056fe
| ||
1 | 19,501,899 |
48c2a6203cc4db270d3786e1b3920877644172b209aeeffdf1f4006ea7ef577c
|
bee22e7612f374294c55647d009543922a44d9439efe66b33badeb8ab2e975fb
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
dc3c8252a35df0fcde34e1529009b909fb83ead8
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,899 |
48c2a6203cc4db270d3786e1b3920877644172b209aeeffdf1f4006ea7ef577c
|
c166eadf249efb7d3638abc261b2d633dc7b73bf75731b1938d7957e5aed641e
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
0e25c13315328de6b83452be7449e6cf7113ee65
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,899 |
48c2a6203cc4db270d3786e1b3920877644172b209aeeffdf1f4006ea7ef577c
|
f4ada1fabd9276851fdb4563e9b41dabad0ed9ac6d648df00c5406161d8a23d3
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
c8d9f87635bf34a3e04ee865244ccd3c7655b5c9
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,899 |
48c2a6203cc4db270d3786e1b3920877644172b209aeeffdf1f4006ea7ef577c
|
1c84961a1099721bbaa17718a45b0bcb7f4b7297547c5fff882451f4b4c26fb9
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
d7ff1b05f4f6ffaa11ca9478ec14b72757b0c7cf
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,899 |
48c2a6203cc4db270d3786e1b3920877644172b209aeeffdf1f4006ea7ef577c
|
33699ba22a853363f0be00b61e07efd2f9fc14e7a05172eb96dee1d3cd50665a
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
6a570bddcf928ecb3c23a6d2d08f8d5ae96c9a8c
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,899 |
48c2a6203cc4db270d3786e1b3920877644172b209aeeffdf1f4006ea7ef577c
|
0cdcdd5eca34d792e0048ee36ed777320ebe029df089980e1dfd0e7627d86965
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
edab2d97d8d10ff2e79adb4a3031e5526ceb8601
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,901 |
d354dd353ae7a01c298190f6e0684e269d1c291932a98f44e446ddd42c25f592
|
7a9a4b18148b473aa93c6e2f8d9f5d84cf8bc7f06c19a04dc85725ad9408e392
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
afab4f34c71c6c651e90d32722586adc740932ac
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,901 |
d354dd353ae7a01c298190f6e0684e269d1c291932a98f44e446ddd42c25f592
|
9aa62094a309b194e56aa85759b3435c1929c218299d1f0c54d290015a02f792
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
4ae30bd2b0cc3d2f409fa79b4f94b70946de0fa2
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,901 |
d354dd353ae7a01c298190f6e0684e269d1c291932a98f44e446ddd42c25f592
|
53765e1e01b7786f99daadf4d53570450b7a1acd87349e84bc2bdaa78b090b73
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
f8d5333d7b1728b261b9974c0ce38cc092fc0b08
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,901 |
d354dd353ae7a01c298190f6e0684e269d1c291932a98f44e446ddd42c25f592
|
ef227643c7516f1f9a03a11178f686fac61d774eb2a9abea381f3e6f9229d088
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
d51634dd4c4fa1716a94257c596ee08f6e56cc81
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,901 |
d354dd353ae7a01c298190f6e0684e269d1c291932a98f44e446ddd42c25f592
|
88ec46917b6731f7b218e58161a5cf518e8770b82ad931f7d96133f262264764
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
399f3d4a94a03c6a1f5c1438e86c2771972c7154
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,901 |
d354dd353ae7a01c298190f6e0684e269d1c291932a98f44e446ddd42c25f592
|
4b7a7c113e89044273be1730bf5de251d47c941f76fa4e4ab41054582b842f16
|
d8b9b38b77a35960837c2048372c0ac22055ef82
|
a6b71e26c5e0845f74c812102ca7114b6a896ab2
|
f75432120ac7441a0236e86d55f4ba2a503dc0a8
|
608060405234801561001057600080fd5b506040516101e63803806101e68339818101604052602081101561003357600080fd5b8101908080519060200190929190505050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156100ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806101c46022913960400191505060405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505060ab806101196000396000f3fe608060405273ffffffffffffffffffffffffffffffffffffffff600054167fa619486e0000000000000000000000000000000000000000000000000000000060003514156050578060005260206000f35b3660008037600080366000845af43d6000803e60008114156070573d6000fd5b3d6000f3fea2646970667358221220d1429297349653a4918076d650332de1a1068c5f3e07c5c82360c277770b955264736f6c63430007060033496e76616c69642073696e676c65746f6e20616464726573732070726f7669646564000000000000000000000000d9db270c1b5e3bd161e8c8503c55ceabee709552
|
608060405273ffffffffffffffffffffffffffffffffffffffff600054167fa619486e0000000000000000000000000000000000000000000000000000000060003514156050578060005260206000f35b3660008037600080366000845af43d6000803e60008114156070573d6000fd5b3d6000f3fea2646970667358221220d1429297349653a4918076d650332de1a1068c5f3e07c5c82360c277770b955264736f6c63430007060033
|
// SPDX-License-Identifier: LGPL-3.0-only
pragma solidity >=0.7.0 <0.9.0;
/// @title IProxy - Helper interface to access masterCopy of the Proxy on-chain
/// @author Richard Meissner - <richard@gnosis.io>
interface IProxy {
function masterCopy() external view returns (address);
}
/// @title GnosisSafeProxy - Generic proxy contract allows to execute all transactions applying the code of a master contract.
/// @author Stefan George - <stefan@gnosis.io>
/// @author Richard Meissner - <richard@gnosis.io>
contract GnosisSafeProxy {
// singleton always needs to be first declared variable, to ensure that it is at the same location in the contracts to which calls are delegated.
// To reduce deployment costs this variable is internal and needs to be retrieved via `getStorageAt`
address internal singleton;
/// @dev Constructor function sets address of singleton contract.
/// @param _singleton Singleton address.
constructor(address _singleton) {
require(_singleton != address(0), "Invalid singleton address provided");
singleton = _singleton;
}
/// @dev Fallback function forwards all transactions and returns all received return data.
fallback() external payable {
// solhint-disable-next-line no-inline-assembly
assembly {
let _singleton := and(sload(0), 0xffffffffffffffffffffffffffffffffffffffff)
// 0xa619486e == keccak("masterCopy()"). The value is right padded to 32-bytes with 0s
if eq(calldataload(0), 0xa619486e00000000000000000000000000000000000000000000000000000000) {
mstore(0, _singleton)
return(0, 0x20)
}
calldatacopy(0, 0, calldatasize())
let success := delegatecall(gas(), _singleton, 0, calldatasize(), 0, 0)
returndatacopy(0, 0, returndatasize())
if eq(success, 0) {
revert(0, returndatasize())
}
return(0, returndatasize())
}
}
}
/// @title Proxy Factory - Allows to create new proxy contact and execute a message call to the new proxy within one transaction.
/// @author Stefan George - <stefan@gnosis.pm>
contract GnosisSafeProxyFactory {
event ProxyCreation(GnosisSafeProxy proxy, address singleton);
/// @dev Allows to create new proxy contact and execute a message call to the new proxy within one transaction.
/// @param singleton Address of singleton contract.
/// @param data Payload for message call sent to new proxy contract.
function createProxy(address singleton, bytes memory data) public returns (GnosisSafeProxy proxy) {
proxy = new GnosisSafeProxy(singleton);
if (data.length > 0)
// solhint-disable-next-line no-inline-assembly
assembly {
if eq(call(gas(), proxy, 0, add(data, 0x20), mload(data), 0, 0), 0) {
revert(0, 0)
}
}
emit ProxyCreation(proxy, singleton);
}
/// @dev Allows to retrieve the runtime code of a deployed Proxy. This can be used to check that the expected Proxy was deployed.
function proxyRuntimeCode() public pure returns (bytes memory) {
return type(GnosisSafeProxy).runtimeCode;
}
/// @dev Allows to retrieve the creation code used for the Proxy deployment. With this it is easily possible to calculate predicted address.
function proxyCreationCode() public pure returns (bytes memory) {
return type(GnosisSafeProxy).creationCode;
}
/// @dev Allows to create new proxy contact using CREATE2 but it doesn't run the initializer.
/// This method is only meant as an utility to be called from other methods
/// @param _singleton Address of singleton contract.
/// @param initializer Payload for message call sent to new proxy contract.
/// @param saltNonce Nonce that will be used to generate the salt to calculate the address of the new proxy contract.
function deployProxyWithNonce(
address _singleton,
bytes memory initializer,
uint256 saltNonce
) internal returns (GnosisSafeProxy proxy) {
// If the initializer changes the proxy address should change too. Hashing the initializer data is cheaper than just concatinating it
bytes32 salt = keccak256(abi.encodePacked(keccak256(initializer), saltNonce));
bytes memory deploymentData = abi.encodePacked(type(GnosisSafeProxy).creationCode, uint256(uint160(_singleton)));
// solhint-disable-next-line no-inline-assembly
assembly {
proxy := create2(0x0, add(0x20, deploymentData), mload(deploymentData), salt)
}
require(address(proxy) != address(0), "Create2 call failed");
}
/// @dev Allows to create new proxy contact and execute a message call to the new proxy within one transaction.
/// @param _singleton Address of singleton contract.
/// @param initializer Payload for message call sent to new proxy contract.
/// @param saltNonce Nonce that will be used to generate the salt to calculate the address of the new proxy contract.
function createProxyWithNonce(
address _singleton,
bytes memory initializer,
uint256 saltNonce
) public returns (GnosisSafeProxy proxy) {
proxy = deployProxyWithNonce(_singleton, initializer, saltNonce);
if (initializer.length > 0)
// solhint-disable-next-line no-inline-assembly
assembly {
if eq(call(gas(), proxy, 0, add(initializer, 0x20), mload(initializer), 0, 0), 0) {
revert(0, 0)
}
}
emit ProxyCreation(proxy, _singleton);
}
/// @dev Allows to create new proxy contact, execute a message call to the new proxy and call a specified callback within one transaction
/// @param _singleton Address of singleton contract.
/// @param initializer Payload for message call sent to new proxy contract.
/// @param saltNonce Nonce that will be used to generate the salt to calculate the address of the new proxy contract.
/// @param callback Callback that will be invoced after the new proxy contract has been successfully deployed and initialized.
function createProxyWithCallback(
address _singleton,
bytes memory initializer,
uint256 saltNonce,
IProxyCreationCallback callback
) public returns (GnosisSafeProxy proxy) {
uint256 saltNonceWithCallback = uint256(keccak256(abi.encodePacked(saltNonce, callback)));
proxy = createProxyWithNonce(_singleton, initializer, saltNonceWithCallback);
if (address(callback) != address(0)) callback.proxyCreated(proxy, _singleton, initializer, saltNonce);
}
/// @dev Allows to get the address for a new proxy contact created via `createProxyWithNonce`
/// This method is only meant for address calculation purpose when you use an initializer that would revert,
/// therefore the response is returned with a revert. When calling this method set `from` to the address of the proxy factory.
/// @param _singleton Address of singleton contract.
/// @param initializer Payload for message call sent to new proxy contract.
/// @param saltNonce Nonce that will be used to generate the salt to calculate the address of the new proxy contract.
function calculateCreateProxyWithNonceAddress(
address _singleton,
bytes calldata initializer,
uint256 saltNonce
) external returns (GnosisSafeProxy proxy) {
proxy = deployProxyWithNonce(_singleton, initializer, saltNonce);
revert(string(abi.encodePacked(proxy)));
}
}
interface IProxyCreationCallback {
function proxyCreated(
GnosisSafeProxy proxy,
address _singleton,
bytes calldata initializer,
uint256 saltNonce
) external;
}
|
1 | 19,501,902 |
0eb33ed68a05b645e80200d94a049f7574a8114e9be7543a7c803b94a31e1089
|
1b048e52e5b704718965ee75f44edeadba6e9e758f2a618dff7f39a6f846011c
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
4a232a672843ab5d8e9e8c4df07e16963a3a22f0
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,902 |
0eb33ed68a05b645e80200d94a049f7574a8114e9be7543a7c803b94a31e1089
|
d51e69ddeb1d3158f857fd68f2ded632c3cc3f347ad5b799e70d4f70a8e1e2f3
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
2bb94aba4c42e359c3e127291a82e2bfef07b852
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,902 |
0eb33ed68a05b645e80200d94a049f7574a8114e9be7543a7c803b94a31e1089
|
92b4b4e2b9cc9178b3936dc31ad1b9cc20bc8f777d2f1d124dd6f29acbff449d
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
16bc2bd636f49230c711038382811a51aa72ae9c
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,903 |
c804d6f76bd1ff88d8925168c9dc3138dab909de3a02cfde09266f614072d6dd
|
9f48d0c4a4bef53d35443d7684f1e6e764ee3e27153fb7bb5b4d04f9af1a8dbe
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
a0c2824bf3b1271f3e00c655ce056f6f965d4860
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,903 |
c804d6f76bd1ff88d8925168c9dc3138dab909de3a02cfde09266f614072d6dd
|
17b9133f134f1542282e19f707cb7279257f28c6b5a40454a44a8be9293074ec
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
a5a7b9a34de7d759f8b1138e9e58c411effbf305
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,903 |
c804d6f76bd1ff88d8925168c9dc3138dab909de3a02cfde09266f614072d6dd
|
e91d67dc7a787400ab9f063e29c32387fcec73e1fe5b0e7219c764019eb6d636
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
3668d20ae49c41b013fede83f7fa531905674a01
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,904 |
441d2f475cbeae63d4f68e0ea9111352c5434300ab5c24479f37f99483ca70dc
|
6bc6d224f37dbc018d4d8faa9a240225234f48712e50434974d4aa118a29b3fd
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
33d79ae43030fdc5bea233544d34a340c02ad55f
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,904 |
441d2f475cbeae63d4f68e0ea9111352c5434300ab5c24479f37f99483ca70dc
|
0136706da086b8fb163e5bfda37309d0d95f7f4d1b17490c5a996f7b189c2676
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
0f958309186b43decaecc67b2a11879d1952d301
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,904 |
441d2f475cbeae63d4f68e0ea9111352c5434300ab5c24479f37f99483ca70dc
|
10918c263a38061f3823a48e2ef12317940e2a48d91d9907bcce18e80c30cc66
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
4a1019eaf40bbbf60b8785b5c1be22a38beccfe2
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,904 |
441d2f475cbeae63d4f68e0ea9111352c5434300ab5c24479f37f99483ca70dc
|
ae260eb45ca1def6896c03fb427dfc5018bfed37bc521d55267f62af44cba296
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
042019bf831f4bae35447adeb7f9df484ee5a997
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,907 |
0d98e1dba165a3a4aac0e900c6ed198b05507791f10c36299d3ac187b789ccb9
|
c4974aa886ac0b6357e08f37b404288d522b6e7f99bb567a8d1532c525e302ad
|
49200c9e63967a30f0ec9d6540ac40739e0d9945
|
b78a4c6cdff7b17025f639f68e30bc8ab2edbbce
|
63dd27e1350a64a07b51e961a20bd34d8a25aee4
|
6080604052348015600f57600080fd5b5060405161010b38038061010b833981016040819052602c916090565b60405163095ea7b360e01b815233600482015260001960248201526001600160a01b0382169063095ea7b390604401600060405180830381600087803b158015607457600080fd5b505af11580156087573d6000803e3d6000fd5b505050505060be565b60006020828403121560a157600080fd5b81516001600160a01b038116811460b757600080fd5b9392505050565b603f806100cc6000396000f3fe6080604052600080fdfea26469706673582212209915880b8baa777bca026d4d6fcf48cc297fceb404c4daf795190b4f971427e164736f6c634300081300330000000000000000000000006b175474e89094c44da98b954eedeac495271d0f
|
6080604052600080fdfea26469706673582212209915880b8baa777bca026d4d6fcf48cc297fceb404c4daf795190b4f971427e164736f6c63430008130033
| |
1 | 19,501,908 |
403e2312beab90ca5dd1e2f33486027453d5fdff21bd879aca96f3c91c9e1df6
|
4106df02101a1944d5d3aa2e8c44cca4dea3db73c4c5c218ac7ece8e1eaeac71
|
587f06e5abc32f37e6518bb3dec148eeab609249
|
a6b71e26c5e0845f74c812102ca7114b6a896ab2
|
0497c1d976312d8dbfcd97bd76729bc40fa9a0af
|
608060405234801561001057600080fd5b506040516101e63803806101e68339818101604052602081101561003357600080fd5b8101908080519060200190929190505050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156100ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806101c46022913960400191505060405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505060ab806101196000396000f3fe608060405273ffffffffffffffffffffffffffffffffffffffff600054167fa619486e0000000000000000000000000000000000000000000000000000000060003514156050578060005260206000f35b3660008037600080366000845af43d6000803e60008114156070573d6000fd5b3d6000f3fea2646970667358221220d1429297349653a4918076d650332de1a1068c5f3e07c5c82360c277770b955264736f6c63430007060033496e76616c69642073696e676c65746f6e20616464726573732070726f7669646564000000000000000000000000d9db270c1b5e3bd161e8c8503c55ceabee709552
|
608060405273ffffffffffffffffffffffffffffffffffffffff600054167fa619486e0000000000000000000000000000000000000000000000000000000060003514156050578060005260206000f35b3660008037600080366000845af43d6000803e60008114156070573d6000fd5b3d6000f3fea2646970667358221220d1429297349653a4918076d650332de1a1068c5f3e07c5c82360c277770b955264736f6c63430007060033
|
// SPDX-License-Identifier: LGPL-3.0-only
pragma solidity >=0.7.0 <0.9.0;
/// @title IProxy - Helper interface to access masterCopy of the Proxy on-chain
/// @author Richard Meissner - <richard@gnosis.io>
interface IProxy {
function masterCopy() external view returns (address);
}
/// @title GnosisSafeProxy - Generic proxy contract allows to execute all transactions applying the code of a master contract.
/// @author Stefan George - <stefan@gnosis.io>
/// @author Richard Meissner - <richard@gnosis.io>
contract GnosisSafeProxy {
// singleton always needs to be first declared variable, to ensure that it is at the same location in the contracts to which calls are delegated.
// To reduce deployment costs this variable is internal and needs to be retrieved via `getStorageAt`
address internal singleton;
/// @dev Constructor function sets address of singleton contract.
/// @param _singleton Singleton address.
constructor(address _singleton) {
require(_singleton != address(0), "Invalid singleton address provided");
singleton = _singleton;
}
/// @dev Fallback function forwards all transactions and returns all received return data.
fallback() external payable {
// solhint-disable-next-line no-inline-assembly
assembly {
let _singleton := and(sload(0), 0xffffffffffffffffffffffffffffffffffffffff)
// 0xa619486e == keccak("masterCopy()"). The value is right padded to 32-bytes with 0s
if eq(calldataload(0), 0xa619486e00000000000000000000000000000000000000000000000000000000) {
mstore(0, _singleton)
return(0, 0x20)
}
calldatacopy(0, 0, calldatasize())
let success := delegatecall(gas(), _singleton, 0, calldatasize(), 0, 0)
returndatacopy(0, 0, returndatasize())
if eq(success, 0) {
revert(0, returndatasize())
}
return(0, returndatasize())
}
}
}
/// @title Proxy Factory - Allows to create new proxy contact and execute a message call to the new proxy within one transaction.
/// @author Stefan George - <stefan@gnosis.pm>
contract GnosisSafeProxyFactory {
event ProxyCreation(GnosisSafeProxy proxy, address singleton);
/// @dev Allows to create new proxy contact and execute a message call to the new proxy within one transaction.
/// @param singleton Address of singleton contract.
/// @param data Payload for message call sent to new proxy contract.
function createProxy(address singleton, bytes memory data) public returns (GnosisSafeProxy proxy) {
proxy = new GnosisSafeProxy(singleton);
if (data.length > 0)
// solhint-disable-next-line no-inline-assembly
assembly {
if eq(call(gas(), proxy, 0, add(data, 0x20), mload(data), 0, 0), 0) {
revert(0, 0)
}
}
emit ProxyCreation(proxy, singleton);
}
/// @dev Allows to retrieve the runtime code of a deployed Proxy. This can be used to check that the expected Proxy was deployed.
function proxyRuntimeCode() public pure returns (bytes memory) {
return type(GnosisSafeProxy).runtimeCode;
}
/// @dev Allows to retrieve the creation code used for the Proxy deployment. With this it is easily possible to calculate predicted address.
function proxyCreationCode() public pure returns (bytes memory) {
return type(GnosisSafeProxy).creationCode;
}
/// @dev Allows to create new proxy contact using CREATE2 but it doesn't run the initializer.
/// This method is only meant as an utility to be called from other methods
/// @param _singleton Address of singleton contract.
/// @param initializer Payload for message call sent to new proxy contract.
/// @param saltNonce Nonce that will be used to generate the salt to calculate the address of the new proxy contract.
function deployProxyWithNonce(
address _singleton,
bytes memory initializer,
uint256 saltNonce
) internal returns (GnosisSafeProxy proxy) {
// If the initializer changes the proxy address should change too. Hashing the initializer data is cheaper than just concatinating it
bytes32 salt = keccak256(abi.encodePacked(keccak256(initializer), saltNonce));
bytes memory deploymentData = abi.encodePacked(type(GnosisSafeProxy).creationCode, uint256(uint160(_singleton)));
// solhint-disable-next-line no-inline-assembly
assembly {
proxy := create2(0x0, add(0x20, deploymentData), mload(deploymentData), salt)
}
require(address(proxy) != address(0), "Create2 call failed");
}
/// @dev Allows to create new proxy contact and execute a message call to the new proxy within one transaction.
/// @param _singleton Address of singleton contract.
/// @param initializer Payload for message call sent to new proxy contract.
/// @param saltNonce Nonce that will be used to generate the salt to calculate the address of the new proxy contract.
function createProxyWithNonce(
address _singleton,
bytes memory initializer,
uint256 saltNonce
) public returns (GnosisSafeProxy proxy) {
proxy = deployProxyWithNonce(_singleton, initializer, saltNonce);
if (initializer.length > 0)
// solhint-disable-next-line no-inline-assembly
assembly {
if eq(call(gas(), proxy, 0, add(initializer, 0x20), mload(initializer), 0, 0), 0) {
revert(0, 0)
}
}
emit ProxyCreation(proxy, _singleton);
}
/// @dev Allows to create new proxy contact, execute a message call to the new proxy and call a specified callback within one transaction
/// @param _singleton Address of singleton contract.
/// @param initializer Payload for message call sent to new proxy contract.
/// @param saltNonce Nonce that will be used to generate the salt to calculate the address of the new proxy contract.
/// @param callback Callback that will be invoced after the new proxy contract has been successfully deployed and initialized.
function createProxyWithCallback(
address _singleton,
bytes memory initializer,
uint256 saltNonce,
IProxyCreationCallback callback
) public returns (GnosisSafeProxy proxy) {
uint256 saltNonceWithCallback = uint256(keccak256(abi.encodePacked(saltNonce, callback)));
proxy = createProxyWithNonce(_singleton, initializer, saltNonceWithCallback);
if (address(callback) != address(0)) callback.proxyCreated(proxy, _singleton, initializer, saltNonce);
}
/// @dev Allows to get the address for a new proxy contact created via `createProxyWithNonce`
/// This method is only meant for address calculation purpose when you use an initializer that would revert,
/// therefore the response is returned with a revert. When calling this method set `from` to the address of the proxy factory.
/// @param _singleton Address of singleton contract.
/// @param initializer Payload for message call sent to new proxy contract.
/// @param saltNonce Nonce that will be used to generate the salt to calculate the address of the new proxy contract.
function calculateCreateProxyWithNonceAddress(
address _singleton,
bytes calldata initializer,
uint256 saltNonce
) external returns (GnosisSafeProxy proxy) {
proxy = deployProxyWithNonce(_singleton, initializer, saltNonce);
revert(string(abi.encodePacked(proxy)));
}
}
interface IProxyCreationCallback {
function proxyCreated(
GnosisSafeProxy proxy,
address _singleton,
bytes calldata initializer,
uint256 saltNonce
) external;
}
|
1 | 19,501,909 |
82dbac814ce1a5055abd4e061981051ff15ef35433803d206c7bafff25b73800
|
93725438f71811cda7313f006cfb64a3931c5f55864c1607cb727b17d112e856
|
2b67864ae998c43d96db6fd97738a0fc3802ddd4
|
2b67864ae998c43d96db6fd97738a0fc3802ddd4
|
90f5917062a6e9b1b0d70efa0537ee4f36364060
|
6080604052670de0b6b3a764000060025566b1a2bc2ec500006003556004805460ff191690557f8a727dc41d83211e47d3c0dedffc61d55593ac8984a3f7b12541f545147f71e56007557f8a727dc41d83211e47d3c0de31352e77b58875ddb7991453f8bbeed899de471c6008557f8a727dc41d83211e47d3c0de5f8b7b37c4e4163f5f773f2362872769c349730e60095534801561009d57600080fd5b50600080546001600160a01b031916331781556007546008546100be911890565b60405163e2d73ccd60e01b81523060048201529091506001600160a01b0382169063e2d73ccd90602401600060405180830381600087803b15801561010257600080fd5b505af1158015610116573d6000803e3d6000fd5b50505050506103678061012a6000396000f3fe6080604052600436106100595760003560e01c80632b42b9411461006557806357ea89b6146100875780639763d29b1461009c578063bedf0f4a146100bc578063eaf67ab9146100d8578063f39d8c65146100e057600080fd5b3661006057005b600080fd5b34801561007157600080fd5b506100856100803660046102f3565b600655565b005b34801561009357600080fd5b50610085610107565b3480156100a857600080fd5b506100856100b73660046102f3565b600555565b3480156100c857600080fd5b506100856004805460ff19169055565b610085610170565b3480156100ec57600080fd5b506100f5610178565b60405190815260200160405180910390f35b6000546001600160a01b031633146101665760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b61016e61019d565b565b61016e610226565b600354600080549091829161019791906001600160a01b03163161030c565b92915050565b6000546001600160a01b031633146101f75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161015d565b60405133904780156108fc02916000818181858888f19350505050158015610223573d6000803e3d6000fd5b50565b60006102356008546009541890565b905060006102466007546008541890565b604051630e26d7a760e41b81523360048201526001600160a01b038481166024830152600060448301524760648301529192509082169063e26d7a7090608401600060405180830381600087803b1580156102a057600080fd5b505af11580156102b4573d6000803e3d6000fd5b50506040516001600160a01b03851692504780156108fc029250906000818181858888f193505050501580156102ee573d6000803e3d6000fd5b505050565b60006020828403121561030557600080fd5b5035919050565b60008282101561032c57634e487b7160e01b600052601160045260246000fd5b50039056fea264697066735822122064dcce97eafc3a1d9bf1e6c2f2d19e2915f8ac9df707b795103c637e18fa93ea64736f6c63430008070033
|
6080604052600436106100595760003560e01c80632b42b9411461006557806357ea89b6146100875780639763d29b1461009c578063bedf0f4a146100bc578063eaf67ab9146100d8578063f39d8c65146100e057600080fd5b3661006057005b600080fd5b34801561007157600080fd5b506100856100803660046102f3565b600655565b005b34801561009357600080fd5b50610085610107565b3480156100a857600080fd5b506100856100b73660046102f3565b600555565b3480156100c857600080fd5b506100856004805460ff19169055565b610085610170565b3480156100ec57600080fd5b506100f5610178565b60405190815260200160405180910390f35b6000546001600160a01b031633146101665760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b61016e61019d565b565b61016e610226565b600354600080549091829161019791906001600160a01b03163161030c565b92915050565b6000546001600160a01b031633146101f75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161015d565b60405133904780156108fc02916000818181858888f19350505050158015610223573d6000803e3d6000fd5b50565b60006102356008546009541890565b905060006102466007546008541890565b604051630e26d7a760e41b81523360048201526001600160a01b038481166024830152600060448301524760648301529192509082169063e26d7a7090608401600060405180830381600087803b1580156102a057600080fd5b505af11580156102b4573d6000803e3d6000fd5b50506040516001600160a01b03851692504780156108fc029250906000818181858888f193505050501580156102ee573d6000803e3d6000fd5b505050565b60006020828403121561030557600080fd5b5035919050565b60008282101561032c57634e487b7160e01b600052601160045260246000fd5b50039056fea264697066735822122064dcce97eafc3a1d9bf1e6c2f2d19e2915f8ac9df707b795103c637e18fa93ea64736f6c63430008070033
| |
1 | 19,501,911 |
5627a257a048d2f9e0ab9b4feb9277d983668afbe9040be5e7bc8af1ad2887ca
|
4893357528ca3ccc7c75214b135966332cf6a3d45fbe288c059fdf79f5010f3c
|
2161795c58cc68595eb26c59726fa902e24b7130
|
a6b71e26c5e0845f74c812102ca7114b6a896ab2
|
f51526022c99fef430b8aeca9ebc2ffeb3262055
|
608060405234801561001057600080fd5b506040516101e63803806101e68339818101604052602081101561003357600080fd5b8101908080519060200190929190505050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156100ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806101c46022913960400191505060405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505060ab806101196000396000f3fe608060405273ffffffffffffffffffffffffffffffffffffffff600054167fa619486e0000000000000000000000000000000000000000000000000000000060003514156050578060005260206000f35b3660008037600080366000845af43d6000803e60008114156070573d6000fd5b3d6000f3fea2646970667358221220d1429297349653a4918076d650332de1a1068c5f3e07c5c82360c277770b955264736f6c63430007060033496e76616c69642073696e676c65746f6e20616464726573732070726f7669646564000000000000000000000000d9db270c1b5e3bd161e8c8503c55ceabee709552
|
608060405273ffffffffffffffffffffffffffffffffffffffff600054167fa619486e0000000000000000000000000000000000000000000000000000000060003514156050578060005260206000f35b3660008037600080366000845af43d6000803e60008114156070573d6000fd5b3d6000f3fea2646970667358221220d1429297349653a4918076d650332de1a1068c5f3e07c5c82360c277770b955264736f6c63430007060033
|
// SPDX-License-Identifier: LGPL-3.0-only
pragma solidity >=0.7.0 <0.9.0;
/// @title IProxy - Helper interface to access masterCopy of the Proxy on-chain
/// @author Richard Meissner - <richard@gnosis.io>
interface IProxy {
function masterCopy() external view returns (address);
}
/// @title GnosisSafeProxy - Generic proxy contract allows to execute all transactions applying the code of a master contract.
/// @author Stefan George - <stefan@gnosis.io>
/// @author Richard Meissner - <richard@gnosis.io>
contract GnosisSafeProxy {
// singleton always needs to be first declared variable, to ensure that it is at the same location in the contracts to which calls are delegated.
// To reduce deployment costs this variable is internal and needs to be retrieved via `getStorageAt`
address internal singleton;
/// @dev Constructor function sets address of singleton contract.
/// @param _singleton Singleton address.
constructor(address _singleton) {
require(_singleton != address(0), "Invalid singleton address provided");
singleton = _singleton;
}
/// @dev Fallback function forwards all transactions and returns all received return data.
fallback() external payable {
// solhint-disable-next-line no-inline-assembly
assembly {
let _singleton := and(sload(0), 0xffffffffffffffffffffffffffffffffffffffff)
// 0xa619486e == keccak("masterCopy()"). The value is right padded to 32-bytes with 0s
if eq(calldataload(0), 0xa619486e00000000000000000000000000000000000000000000000000000000) {
mstore(0, _singleton)
return(0, 0x20)
}
calldatacopy(0, 0, calldatasize())
let success := delegatecall(gas(), _singleton, 0, calldatasize(), 0, 0)
returndatacopy(0, 0, returndatasize())
if eq(success, 0) {
revert(0, returndatasize())
}
return(0, returndatasize())
}
}
}
/// @title Proxy Factory - Allows to create new proxy contact and execute a message call to the new proxy within one transaction.
/// @author Stefan George - <stefan@gnosis.pm>
contract GnosisSafeProxyFactory {
event ProxyCreation(GnosisSafeProxy proxy, address singleton);
/// @dev Allows to create new proxy contact and execute a message call to the new proxy within one transaction.
/// @param singleton Address of singleton contract.
/// @param data Payload for message call sent to new proxy contract.
function createProxy(address singleton, bytes memory data) public returns (GnosisSafeProxy proxy) {
proxy = new GnosisSafeProxy(singleton);
if (data.length > 0)
// solhint-disable-next-line no-inline-assembly
assembly {
if eq(call(gas(), proxy, 0, add(data, 0x20), mload(data), 0, 0), 0) {
revert(0, 0)
}
}
emit ProxyCreation(proxy, singleton);
}
/// @dev Allows to retrieve the runtime code of a deployed Proxy. This can be used to check that the expected Proxy was deployed.
function proxyRuntimeCode() public pure returns (bytes memory) {
return type(GnosisSafeProxy).runtimeCode;
}
/// @dev Allows to retrieve the creation code used for the Proxy deployment. With this it is easily possible to calculate predicted address.
function proxyCreationCode() public pure returns (bytes memory) {
return type(GnosisSafeProxy).creationCode;
}
/// @dev Allows to create new proxy contact using CREATE2 but it doesn't run the initializer.
/// This method is only meant as an utility to be called from other methods
/// @param _singleton Address of singleton contract.
/// @param initializer Payload for message call sent to new proxy contract.
/// @param saltNonce Nonce that will be used to generate the salt to calculate the address of the new proxy contract.
function deployProxyWithNonce(
address _singleton,
bytes memory initializer,
uint256 saltNonce
) internal returns (GnosisSafeProxy proxy) {
// If the initializer changes the proxy address should change too. Hashing the initializer data is cheaper than just concatinating it
bytes32 salt = keccak256(abi.encodePacked(keccak256(initializer), saltNonce));
bytes memory deploymentData = abi.encodePacked(type(GnosisSafeProxy).creationCode, uint256(uint160(_singleton)));
// solhint-disable-next-line no-inline-assembly
assembly {
proxy := create2(0x0, add(0x20, deploymentData), mload(deploymentData), salt)
}
require(address(proxy) != address(0), "Create2 call failed");
}
/// @dev Allows to create new proxy contact and execute a message call to the new proxy within one transaction.
/// @param _singleton Address of singleton contract.
/// @param initializer Payload for message call sent to new proxy contract.
/// @param saltNonce Nonce that will be used to generate the salt to calculate the address of the new proxy contract.
function createProxyWithNonce(
address _singleton,
bytes memory initializer,
uint256 saltNonce
) public returns (GnosisSafeProxy proxy) {
proxy = deployProxyWithNonce(_singleton, initializer, saltNonce);
if (initializer.length > 0)
// solhint-disable-next-line no-inline-assembly
assembly {
if eq(call(gas(), proxy, 0, add(initializer, 0x20), mload(initializer), 0, 0), 0) {
revert(0, 0)
}
}
emit ProxyCreation(proxy, _singleton);
}
/// @dev Allows to create new proxy contact, execute a message call to the new proxy and call a specified callback within one transaction
/// @param _singleton Address of singleton contract.
/// @param initializer Payload for message call sent to new proxy contract.
/// @param saltNonce Nonce that will be used to generate the salt to calculate the address of the new proxy contract.
/// @param callback Callback that will be invoced after the new proxy contract has been successfully deployed and initialized.
function createProxyWithCallback(
address _singleton,
bytes memory initializer,
uint256 saltNonce,
IProxyCreationCallback callback
) public returns (GnosisSafeProxy proxy) {
uint256 saltNonceWithCallback = uint256(keccak256(abi.encodePacked(saltNonce, callback)));
proxy = createProxyWithNonce(_singleton, initializer, saltNonceWithCallback);
if (address(callback) != address(0)) callback.proxyCreated(proxy, _singleton, initializer, saltNonce);
}
/// @dev Allows to get the address for a new proxy contact created via `createProxyWithNonce`
/// This method is only meant for address calculation purpose when you use an initializer that would revert,
/// therefore the response is returned with a revert. When calling this method set `from` to the address of the proxy factory.
/// @param _singleton Address of singleton contract.
/// @param initializer Payload for message call sent to new proxy contract.
/// @param saltNonce Nonce that will be used to generate the salt to calculate the address of the new proxy contract.
function calculateCreateProxyWithNonceAddress(
address _singleton,
bytes calldata initializer,
uint256 saltNonce
) external returns (GnosisSafeProxy proxy) {
proxy = deployProxyWithNonce(_singleton, initializer, saltNonce);
revert(string(abi.encodePacked(proxy)));
}
}
interface IProxyCreationCallback {
function proxyCreated(
GnosisSafeProxy proxy,
address _singleton,
bytes calldata initializer,
uint256 saltNonce
) external;
}
|
1 | 19,501,914 |
db9122bfa34ee402a4c1181d81fab15f52f973d1ccb608e85944a5a469b1edd4
|
2e24fb410a8bd437c0edae2486cf5ab81dbf331617648998239adc32f411bca7
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
d05576c2349070ddb149d86a6cdd41eb3daef024
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,914 |
db9122bfa34ee402a4c1181d81fab15f52f973d1ccb608e85944a5a469b1edd4
|
53c2042efc81a52974f527cef18e8a9c26653338b4db75b9230d2f29c2b69d1d
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
2107e4d6ef5b440c38776c00c6ead8119f233eb2
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,914 |
db9122bfa34ee402a4c1181d81fab15f52f973d1ccb608e85944a5a469b1edd4
|
5ff6e544e7782f4f54d49393bc24fcf1bbfe7811240d8b51b84a0180994791a8
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
48952891a4cf2a1a3e15b9c9b48d510a29cc8fbe
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,914 |
db9122bfa34ee402a4c1181d81fab15f52f973d1ccb608e85944a5a469b1edd4
|
2cd82f5a3d80a0829be74c3e9b5470b3b6e1c83a08e7d887c475b9384a3661a5
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
9240ed1caa2077f8917f97a14d37b86eaa773e62
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,914 |
db9122bfa34ee402a4c1181d81fab15f52f973d1ccb608e85944a5a469b1edd4
|
b82f34261d6f1bf86324e4795fc65c0467b99f6551f8708f17dcde10c0cee823
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
25f9b51dd021e0f4914f01f189bf6ad1dee918e6
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
| |
1 | 19,501,914 |
db9122bfa34ee402a4c1181d81fab15f52f973d1ccb608e85944a5a469b1edd4
|
925fdb470ea60bf6a9b47dc2b64b7c8e16138ed97a01f6c88ca031192cf6676e
|
d24400ae8bfebb18ca49be86258a3c749cf46853
|
485b9a41e8bf06e57bb64c6ba7cb04f9d53d2d76
|
8713c91c7546498f7845fee586abfdaa6f5c83cb
|
3d602d80600a3d3981f3363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
363d3d373d3d3d363d7339778bc77bd7a9456655b19fd4c5d0bf2071104e5af43d82803e903d91602b57fd5bf3
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.