parent
b5644efc8b
commit
b39bc5d25f
@ -1,2 +1,3 @@ |
||||
@import "blocks"; |
||||
@import "header"; |
||||
@import "transactions"; |
||||
|
@ -0,0 +1,9 @@ |
||||
.transactions { |
||||
&__title { |
||||
@extend h2; |
||||
} |
||||
|
||||
&__table { |
||||
@extend .table; |
||||
} |
||||
} |
@ -0,0 +1,9 @@ |
||||
defmodule Explorer.Repo.Migrations.AddValueToTransactions do |
||||
use Ecto.Migration |
||||
|
||||
def change do |
||||
alter table(:transactions) do |
||||
add :value, :numeric, precision: 100, null: false |
||||
end |
||||
end |
||||
end |
@ -0,0 +1,13 @@ |
||||
defmodule Explorer.TransactionFactory do |
||||
defmacro __using__(_opts) do |
||||
quote do |
||||
def transaction_factory do |
||||
%Explorer.Transaction{ |
||||
block: build(:block), |
||||
hash: sequence("0x"), |
||||
value: Enum.random(1..100_000), |
||||
} |
||||
end |
||||
end |
||||
end |
||||
end |
@ -1,4 +1,5 @@ |
||||
defmodule Explorer.Factory do |
||||
use ExMachina.Ecto, repo: Explorer.Repo |
||||
use Explorer.BlockFactory |
||||
use Explorer.TransactionFactory |
||||
end |
||||
|
@ -0,0 +1,30 @@ |
||||
[ |
||||
{ |
||||
"request": { |
||||
"body": "{\"params\":[\"0x918c1\",true],\"method\":\"eth_getBlockByNumber\",\"jsonrpc\":\"2.0\",\"id\":0}", |
||||
"headers": { |
||||
"Content-Type": "application/json" |
||||
}, |
||||
"method": "post", |
||||
"options": [], |
||||
"request_body": "", |
||||
"url": "https://sokol.poa.network:443" |
||||
}, |
||||
"response": { |
||||
"binary": false, |
||||
"body": "{\"jsonrpc\":\"2.0\",\"result\":{\"author\":\"0xe8ddc5c7a2d2f0d7a9798459c0104fdf5e987aca\",\"difficulty\":\"0xfffffffffffffffffffffffffffffffd\",\"extraData\":\"0xd5830108048650617269747986312e32322e31826c69\",\"gasLimit\":\"0x7a1200\",\"gasUsed\":\"0x7a1200\",\"hash\":\"0xadbdb56ed4646f087ba33526397ab627d0f4a6a9a3b167e2ad5a34858ca56912\",\"logsBloom\":\"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\",\"miner\":\"0xe8ddc5c7a2d2f0d7a9798459c0104fdf5e987aca\",\"number\":\"0x918c1\",\"parentHash\":\"0x0ee8ca9dbc473df053c317b8b44ef3210ce6dd43ce95a9ef5c3855daccff2edc\",\"receiptsRoot\":\"0x1e7ea64145066ff4ffc94fc343a77ba4aafe1bf752870c6c37a66c38cf8dd624\",\"sealFields\":[\"0x841215030c\",\"0xb841eea7f72fba66fe7e2c673f45e0700d99e992572575b54f6cf22bdd73936d57a54afc0d1f5d5a752a9cd88687c463a3f29af0c5cd51d27138a7f5ec9b2ba1dc5f00\"],\"sha3Uncles\":\"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347\",\"signature\":\"eea7f72fba66fe7e2c673f45e0700d99e992572575b54f6cf22bdd73936d57a54afc0d1f5d5a752a9cd88687c463a3f29af0c5cd51d27138a7f5ec9b2ba1dc5f00\",\"size\":\"0x2d4\",\"stateRoot\":\"0x3904497f0fa277effc1aa7c322c6d85a2b23c5564eae3fe4d3eb895bcff773ea\",\"step\":\"303366924\",\"timestamp\":\"0x5a690f3c\",\"totalDifficulty\":\"0x918c0ffffffffffffffffffffffffede3e433\",\"transactions\":[{\"blockHash\":\"0xadbdb56ed4646f087ba33526397ab627d0f4a6a9a3b167e2ad5a34858ca56912\",\"blockNumber\":\"0x918c1\",\"chainId\":\"0x4d\",\"condition\":null,\"creates\":null,\"from\":\"0x82e4e61e7f5139ff0a4157a5bc687ef42294c248\",\"gas\":\"0x7a1200\",\"gasPrice\":\"0x3b9aca00\",\"hash\":\"0x1383ccbe8f74c1f0ee74e0558cb4776cfaf35bc9fbe951a6db08335026243a7c\",\"input\":\"0x1003e2d2000000000000000000000000000000000000000000000000000000000000060e\",\"nonce\":\"0x17c\",\"publicKey\":\"0x750f765a7790aa361dde0ff1d4c9dadd0e1c62fe79dee9c3d6b953abe99ce79755568215a2524d0efe0d5a48d8082e86f317434b62964b0c2e3e3446ebe08099\",\"r\":\"0x661d8ed2c9045286d8ef683f7192ae4158dcb1f92572ef6ff65efe2b9b318f97\",\"raw\":\"0xf88b82017c843b9aca00837a120094fdf0769242684f48894b1d0ff68d54c136018e3980a41003e2d2000000000000000000000000000000000000000000000000000000000000060e81bda0661d8ed2c9045286d8ef683f7192ae4158dcb1f92572ef6ff65efe2b9b318f97a07f9977d48f2d8a0294b0e1bd65acc11f84a6d6cf0df3fa74fbd793133274e585\",\"s\":\"0x7f9977d48f2d8a0294b0e1bd65acc11f84a6d6cf0df3fa74fbd793133274e585\",\"standardV\":\"0x0\",\"to\":\"0xfdf0769242684f48894b1d0ff68d54c136018e39\",\"transactionIndex\":\"0x0\",\"v\":\"0xbd\",\"value\":\"0x0\"}],\"transactionsRoot\":\"0x6b90d094d219d6f415ce8a490e13a56f13f5f0501cc0e018150dc64eaceb1b24\",\"uncles\":[]},\"id\":0}\n", |
||||
"headers": { |
||||
"Date": "Thu, 25 Jan 2018 19:07:43 GMT", |
||||
"Content-Type": "application/json", |
||||
"Transfer-Encoding": "chunked", |
||||
"Connection": "keep-alive", |
||||
"Set-Cookie": "__cfduid=d4c42fb0033c832349c1ca857034595f01516907262; expires=Fri, 25-Jan-19 19:07:42 GMT; path=/; domain=.poa.network; HttpOnly; Secure", |
||||
"Expect-CT": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", |
||||
"Server": "cloudflare", |
||||
"CF-RAY": "3e2d84597f3828be-SJC" |
||||
}, |
||||
"status_code": 200, |
||||
"type": "ok" |
||||
} |
||||
} |
||||
] |
@ -0,0 +1,30 @@ |
||||
[ |
||||
{ |
||||
"request": { |
||||
"body": "{\"params\":[\"0x8d2a8\",true],\"method\":\"eth_getBlockByNumber\",\"jsonrpc\":\"2.0\",\"id\":3}", |
||||
"headers": { |
||||
"Content-Type": "application/json" |
||||
}, |
||||
"method": "post", |
||||
"options": [], |
||||
"request_body": "", |
||||
"url": "https://sokol.poa.network:443" |
||||
}, |
||||
"response": { |
||||
"binary": false, |
||||
"body": "{\"jsonrpc\":\"2.0\",\"result\":{\"author\":\"0x82e4e61e7f5139ff0a4157a5bc687ef42294c248\",\"difficulty\":\"0xfffffffffffffffffffffffffffffffe\",\"extraData\":\"0xd5830108048650617269747986312e32322e31826c69\",\"gasLimit\":\"0x7a1200\",\"gasUsed\":\"0x5208\",\"hash\":\"0x9a57007d79c7643278f990e00ead1438c1435b0af5754f6c1f5c8a91c3235b74\",\"logsBloom\":\"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\",\"miner\":\"0x82e4e61e7f5139ff0a4157a5bc687ef42294c248\",\"number\":\"0x8d2a8\",\"parentHash\":\"0xe6735536514c7b05246f79db85b7b815bb031fc09d9533720294ce5916a41466\",\"receiptsRoot\":\"0x056b23fbba480696b65fe5a59b8f2148a1299103c4f57df839233af2cf4ca2d2\",\"sealFields\":[\"0x841214b221\",\"0xb8412b4764ad025dcfdd5bf213960c60b9494ade6d3e7290f4b53ef9625c30f1f8c30cac231ec8125a9ca94a80c75552c8f0463b5e7e3cf10d443749cdd17354477c00\"],\"sha3Uncles\":\"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347\",\"signature\":\"2b4764ad025dcfdd5bf213960c60b9494ade6d3e7290f4b53ef9625c30f1f8c30cac231ec8125a9ca94a80c75552c8f0463b5e7e3cf10d443749cdd17354477c00\",\"size\":\"0x2b4\",\"stateRoot\":\"0x90415320006f67d8bddf7d56c93318934dae56024afcdfb8e10b3ce80a1da9d7\",\"step\":\"303346209\",\"timestamp\":\"0x5a677aa5\",\"totalDifficulty\":\"0x8d2a7ffffffffffffffffffffffffede47b37\",\"transactions\":[{\"blockHash\":\"0x9a57007d79c7643278f990e00ead1438c1435b0af5754f6c1f5c8a91c3235b74\",\"blockNumber\":\"0x8d2a8\",\"chainId\":\"0x4d\",\"condition\":null,\"creates\":null,\"from\":\"0x9a4a90e2732f3fa4087b0bb4bf85c76d14833df1\",\"gas\":\"0x7b0c\",\"gasPrice\":\"0x77359400\",\"hash\":\"0x8cea0c5ffdd96a4dada74066f7416a0957dca278d45a1caec439ba68cbf3f4d6\",\"input\":\"0x\",\"nonce\":\"0x9\",\"publicKey\":\"0x7a2899627b1802d1f71e0e5a06416c85b6b96a6fb8d5f574cbcbc3963212a1e2b48a435461e6d2a4f9930e6a92988164e02a5e7f0b4763ca7d524461fcec67dc\",\"r\":\"0xc012855f7e8b552716ca1af2eaaeaee09a3b860179b56bbf7a68ccd31e43f92\",\"raw\":\"0xf86c098477359400827b0c94b7cffe2ac19b9d5705a24cbe14fef5663af905a6880de0b6b3a76400008081bea00c012855f7e8b552716ca1af2eaaeaee09a3b860179b56bbf7a68ccd31e43f92a03b6dcd71513064384b481a339e042236ef50655e96ba6d8354c7f800ebab0c42\",\"s\":\"0x3b6dcd71513064384b481a339e042236ef50655e96ba6d8354c7f800ebab0c42\",\"standardV\":\"0x1\",\"to\":\"0xb7cffe2ac19b9d5705a24cbe14fef5663af905a6\",\"transactionIndex\":\"0x0\",\"v\":\"0xbe\",\"value\":\"0xde0b6b3a7640000\"}],\"transactionsRoot\":\"0x58c9f8e81202d2212ed1a75fb714820ac5f2756d8408ad2750f5cf7450b8204e\",\"uncles\":[]},\"id\":3}\n", |
||||
"headers": { |
||||
"Date": "Tue, 23 Jan 2018 22:46:24 GMT", |
||||
"Content-Type": "application/json", |
||||
"Transfer-Encoding": "chunked", |
||||
"Connection": "keep-alive", |
||||
"Set-Cookie": "__cfduid=d678a1812702d81f56f94de246d58bd931516747584; expires=Wed, 23-Jan-19 22:46:24 GMT; path=/; domain=.poa.network; HttpOnly; Secure", |
||||
"Expect-CT": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", |
||||
"Server": "cloudflare", |
||||
"CF-RAY": "3e1e49f49fcb933c-SJC" |
||||
}, |
||||
"status_code": 200, |
||||
"type": "ok" |
||||
} |
||||
} |
||||
] |
@ -1,30 +0,0 @@ |
||||
[ |
||||
{ |
||||
"request": { |
||||
"body": "{\"params\":[\"0x89923\",true],\"method\":\"eth_getBlockByNumber\",\"jsonrpc\":\"2.0\",\"id\":0}", |
||||
"headers": { |
||||
"Content-Type": "application/json" |
||||
}, |
||||
"method": "post", |
||||
"options": [], |
||||
"request_body": "", |
||||
"url": "https://sokol.poa.network:443" |
||||
}, |
||||
"response": { |
||||
"binary": false, |
||||
"body": "{\"jsonrpc\":\"2.0\",\"result\":{\"author\":\"0xdb1207770e0a4258d7a4ce49ab037f92564fea85\",\"difficulty\":\"0xfffffffffffffffffffffffffffffffe\",\"extraData\":\"0xd5830108048650617269747986312e32322e31826c69\",\"gasLimit\":\"0x7a1200\",\"gasUsed\":\"0x0\",\"hash\":\"0x342878f5a2c06bc6146f9440910bab9c5ddae5dbd13c9a01d8adaf51ff5593ae\",\"logsBloom\":\"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\",\"miner\":\"0xdb1207770e0a4258d7a4ce49ab037f92564fea85\",\"number\":\"0x89923\",\"parentHash\":\"0x70029f66ea5a3b2b1ede95079d95a2ab74b649b5b17cdcf6f29b6317e7c7efa6\",\"receiptsRoot\":\"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421\",\"sealFields\":[\"0x8412147192\",\"0xb841db669d5b8d22ef69c849a914682c242cde9492cbf1de381d0d4f1857d871963767470f38b1f63031fe47614175609989552ac5e8a6c2844f2d48dfdc48e9df4001\"],\"sha3Uncles\":\"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347\",\"signature\":\"db669d5b8d22ef69c849a914682c242cde9492cbf1de381d0d4f1857d871963767470f38b1f63031fe47614175609989552ac5e8a6c2844f2d48dfdc48e9df4001\",\"size\":\"0x243\",\"stateRoot\":\"0x1ce8bea4dc0a87b99af15a65bb79980cb337e5bf4d1f5ad7d2d263572d177f1a\",\"step\":\"303329682\",\"timestamp\":\"0x5a6637da\",\"totalDifficulty\":\"0x89922ffffffffffffffffffffffffede4f54b\",\"transactions\":[],\"transactionsRoot\":\"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421\",\"uncles\":[]},\"id\":0}\n", |
||||
"headers": { |
||||
"Date": "Mon, 22 Jan 2018 19:14:51 GMT", |
||||
"Content-Type": "application/json", |
||||
"Transfer-Encoding": "chunked", |
||||
"Connection": "keep-alive", |
||||
"Set-Cookie": "__cfduid=d6d7bf13bce28ec88dc130f482acb91ab1516648491; expires=Tue, 22-Jan-19 19:14:51 GMT; path=/; domain=.poa.network; HttpOnly; Secure", |
||||
"Expect-CT": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", |
||||
"Server": "cloudflare", |
||||
"CF-RAY": "3e14d6ad693128be-SJC" |
||||
}, |
||||
"status_code": 200, |
||||
"type": "ok" |
||||
} |
||||
} |
||||
] |
Loading…
Reference in new issue