Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lightsing/spectre
https://github.com/lightsing/spectre
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/lightsing/spectre
- Owner: lightsing
- Created: 2024-11-02T14:43:41.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2024-11-02T15:02:45.000Z (2 months ago)
- Last Synced: 2024-11-02T16:20:03.244Z (2 months ago)
- Language: Rust
- Size: 244 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spectre π»
A scroll trace builder tool. (WIP: GUI)
## Getting Started
```bash
cargo install --locked --git https://github.com/lightsing/spectre spectre-cli
```## Usage
```
~ spectre --help [Β±master ββ]
Usage: spectre [OPTIONS] [BUILDER] [OUT]Arguments:
[BUILDER] [default: spectre.toml]
[OUT] [default: trace.json]Options:
--new Create a new builder file
-h, --help Print help
-V, --version Print version
~ spectre --new # create a new builder
~ vim spectre.toml # edit the builder
~ spectre
Loaded Spectre π»
- π Chain ID: 1
- π L1 Queue Index: 0
- π History Hashes: π«
- π΅ Default Balance: 100.000000000000000000 Ether
- πΈ Default Gas Price: 1.000000000 GWei
- π’οΈDefault Gas Limit: 1000000
- π Coinbase: 0x0000000000000000000000000000000000000000
- π Timestamp: 1730505095
- π’ Number: 51966
- π Difficulty: 0
- π’οΈGas Limit: 10000000
- πΈ Base Fee: 0π³ 5 accounts:
- π€ 0x000000000000000000000000000000000CAfe111: π΅100.000000000000000000 Ether | π’ 10 | ποΈEmpty | > Empty
- π€ 0x000000000000000000000000000000000caFE222: π΅100.000000000000000000 Ether | π’ 0 | ποΈEmpty | > 3 bytes
- π€ 0x000000000000000000000000000000000cafe333: π΅100.000000000000000000 Ether | π’ 0 | ποΈEmpty | > 8 bytes
- π€ 0x000000000000000000000000000000000cAfE444: π΅100.000000000000000000 Ether | π’ 1 | ποΈ 2 | > 9 bytes
- π 0xCafE13B757E6f4E1781CD790cb392Fc796674E10: π΅100.000000000000000000 Ether | π’ 0 | ποΈEmpty | > EmptyπΈ 3 transactions:
- Eip155 | 0xCafE13B757E6f4E1781CD790cb392Fc796674E10 -> 0x000000000000000000000000000000000caFE222 | 0.0 wei
- Eip1559 | 0xCafE13B757E6f4E1781CD790cb392Fc796674E10 -> 0x000000000000000000000000000000000cAfE444 | 0.0 wei
- Eip2930 | 0xCafE13B757E6f4E1781CD790cb392Fc796674E10 -> 0x000000000000000000000000000000000cAfE444 | 0.0 wei⨠traced in 37.187834ms
~ cat trace.json
cat trace.json [Β±master ββ]
{
"chainID": 1,
"coinbase": {
"address": "0x0000000000000000000000000000000000000000",
"nonce": 0,
"balance": "0x2d8bed01e794",
"keccakCodeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"poseidonCodeHash": "0x2098f5fb9e239eab3ceac3f27b81e481dc3124d55ffed523a839ee8446b64864",
"codeSize": 0
},
"header": {
"hash": "0x1b4f12c2cd7dcc919ccd4f3415bdbaa51c6f4620e96eb581ffd11af718c61634",
"miner": "0x0000000000000000000000000000000000000000",
"stateRoot": "0x134ca9639a738e47e56e8d8829eb190ded2a5cf64f0f00822a42b0b25d87460b",
"number": "0xcafe",
"gasUsed": "0x0",
"gasLimit": "0x989680",
"timestamp": "0x67256987",
"difficulty": "0x0",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x0",
"baseFeePerGas": "0x0"
},
"transactions": [
{
"txHash": "0x38baae8f96894fb540f91749480aed353d1998b19bc9c1e02bbcce5112e9126e",
"type": 0,
"nonce": 0,
"gas": 1000000,
"gasPrice": "0x3b9aca00",
"gasTipCap": "0x3b9aca00",
"gasFeeCap": "0x3b9aca00",
"from": "0xcafe13b757e6f4e1781cd790cb392fc796674e10",
"to": "0x000000000000000000000000000000000cafe222",
"chainId": "0x1",
"value": "0x0",
"data": "0x",
"isCreate": false,
"accessList": null,
"v": "0x25",
"r": "0x6b7b127f683491535e274f31ceff5a8fadf0752e3cfcdcada095a54373aa673c",
"s": "0x465ca37034caca77706efa5439e54a49613c9fb5aea5e67b744be476235698d9"
},
{
"txHash": "0x855009ee16afc9c75936b70df3e352d88d22e3c9a3c56996994ca780681480f4",
"type": 2,
"nonce": 1,
"gas": 1000000,
"gasPrice": "0x1",
"gasTipCap": "0x1",
"gasFeeCap": "0x1",
"from": "0xcafe13b757e6f4e1781cd790cb392fc796674e10",
"to": "0x000000000000000000000000000000000cafe444",
"chainId": "0x1",
"value": "0x0",
"data": "0x0000000000000000000000000000000000000000000000000000000000000000",
"isCreate": false,
"accessList": [
{
"address": "0x000000000000000000000000000000000cafe444",
"storageKeys": [
"0x0000000000000000000000000000000000000000000000000000000000000000"
]
}
],
"v": "0x0",
"r": "0xac7af11c92e28aea805bccabd5a774f810c1fe0d0a66ee484fd53fee6839fd3b",
"s": "0x37d57d0ebd61d0f700aaf772cf6ede34f434dc2a5127cc664bfc810d3ad6647c"
},
{
"txHash": "0xc8b41cf7d26a2e2f86a678d6058f49b8763b1e442af1c01c43039d52bf731266",
"type": 1,
"nonce": 2,
"gas": 1000000,
"gasPrice": "0x3b9aca00",
"gasTipCap": "0x3b9aca00",
"gasFeeCap": "0x3b9aca00",
"from": "0xcafe13b757e6f4e1781cd790cb392fc796674e10",
"to": "0x000000000000000000000000000000000cafe444",
"chainId": "0x1",
"value": "0x0",
"data": "0x0000000000000000000000000000000000000000000000000000000000000000",
"isCreate": false,
"accessList": [
{
"address": "0x000000000000000000000000000000000cafe444",
"storageKeys": [
"0x0000000000000000000000000000000000000000000000000000000000000000"
]
}
],
"v": "0x0",
"r": "0x1cb6b18cd98dad3a839332d428665459ab96e24af55dd664777a623d2fdd9afe",
"s": "0x63598a73c03454c6419cc50dd76109c91ad7912567eeeca6cbcb4abc68deeb4e"
}
],
"codes": [
{
"hash": "0x2098f5fb9e239eab3ceac3f27b81e481dc3124d55ffed523a839ee8446b64864",
"code": "0x"
},
{
"hash": "0x20bd99d7f7dca9a64e378a5737f3d03ba67c8ef23f51c55e8a1894d58d650e9a",
"code": "0x601000"
},
{
"hash": "0x003f8f90161ab9a379a9f02244eb58a36548231777ede611bbd72c31c10a5b24",
"code": "0x6035546052613260f3"
}
],
"storageTrace": {
"rootBefore": "0x0bcb1b0ee40406cf14951f015673e10f144fef372f3b30b356918f1c51c96a4b",
"rootAfter": "0x134ca9639a738e47e56e8d8829eb190ded2a5cf64f0f00822a42b0b25d87460b",
"proofs": {
"0x0000000000000000000000000000000000000000": [
"0x0909ba955111c7bc1dad6f5490b496610171353d21b99d87f7564545fa1649d2320bb3e4f9d20224a874aa12c01ac4fe78daa4448d8c3e2db868b0250cf7a8cce6",
"0x072317056ee56e306d87ba65db7896afbdc57aa17d8d314688d153dec2592ab2c2057a37d2720aa191fe6ccb1102a35f8bbc8426d7af544b0bf67db44fe4a1ff02",
"0x0700000000000000000000000000000000000000000000000000000000000000002737620bb0342b05b2e1b9fc0af04fb408fe042b92e7683629a18157ba368239",
"0x05",
"0x5448495320495320534f4d45204d4147494320425954455320464f5220534d54206d3172525867503278704449"
],
"0x000000000000000000000000000000000cafe222": [
"0x0909ba955111c7bc1dad6f5490b496610171353d21b99d87f7564545fa1649d2320bb3e4f9d20224a874aa12c01ac4fe78daa4448d8c3e2db868b0250cf7a8cce6",
"0x072317056ee56e306d87ba65db7896afbdc57aa17d8d314688d153dec2592ab2c2057a37d2720aa191fe6ccb1102a35f8bbc8426d7af544b0bf67db44fe4a1ff02",
"0x0700000000000000000000000000000000000000000000000000000000000000002737620bb0342b05b2e1b9fc0af04fb408fe042b92e7683629a18157ba368239",
"0x07000000000000000000000000000000000000000000000000000000000000000000350104ddb329ffaad1c2c14bc62568886bbdfbfd17673a8ca99816bb2ec54c",
"0x0700000000000000000000000000000000000000000000000000000000000000000b8edf40984e568bd8f1ff16b90e5d1ebab574f5d2483c27bc22c48551315483",
"0x060d27db1f30a0b7defd24f6447673445fb4e3c8cd51aca3c9c61d15036b1e67f928ead620f240eabf1d53951ec7690f437c97bd598dddd0aebfa6944ac3edc58a",
"0x041ae08ee8c9cace68e6625c54427d1f11821e9b014d3db18cbf9190188b5dcd7e0508000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000056bc75e2d631000000000000000000000000000000000000000000000000000000000000000000000855fdacf6be15178ae17c411081652c7b1a34a0f23e8dbf27e705d4cf44fe6f820bd99d7f7dca9a64e378a5737f3d03ba67c8ef23f51c55e8a1894d58d650e9a00",
"0x5448495320495320534f4d45204d4147494320425954455320464f5220534d54206d3172525867503278704449"
],
"0x000000000000000000000000000000000cafe444": [
"0x0909ba955111c7bc1dad6f5490b496610171353d21b99d87f7564545fa1649d2320bb3e4f9d20224a874aa12c01ac4fe78daa4448d8c3e2db868b0250cf7a8cce6",
"0x060d49b5b8a9e02afcb75916a4a298a36666aa72ed3cd944739c28fed43e9a25aa2c9520f7a5a7899c5b9e6534b21a852ae4458d9377d8e13376d71308989a6ec5",
"0x04305d4a567058c2fd4885ad58ed93968eb61dcd22ebba3b98f9bed6a5dca8e8550508000000000000000000000000000000000000000000000000000900000000000000010000000000000000000000000000000000000000000000056bc75e2d6310000014f79ca2a40bc6060e5f4fda10850d716cd59128065404200d3a104a2cb081b4415c2616a7907a25c2951367b8ef12df9a9319438af45f3d26c34d7837945f6f003f8f90161ab9a379a9f02244eb58a36548231777ede611bbd72c31c10a5b2400",
"0x5448495320495320534f4d45204d4147494320425954455320464f5220534d54206d3172525867503278704449"
],
"0x5300000000000000000000000000000000000000": [
"0x0909ba955111c7bc1dad6f5490b496610171353d21b99d87f7564545fa1649d2320bb3e4f9d20224a874aa12c01ac4fe78daa4448d8c3e2db868b0250cf7a8cce6",
"0x072317056ee56e306d87ba65db7896afbdc57aa17d8d314688d153dec2592ab2c2057a37d2720aa191fe6ccb1102a35f8bbc8426d7af544b0bf67db44fe4a1ff02",
"0x0700000000000000000000000000000000000000000000000000000000000000002737620bb0342b05b2e1b9fc0af04fb408fe042b92e7683629a18157ba368239",
"0x07000000000000000000000000000000000000000000000000000000000000000000350104ddb329ffaad1c2c14bc62568886bbdfbfd17673a8ca99816bb2ec54c",
"0x0700000000000000000000000000000000000000000000000000000000000000000b8edf40984e568bd8f1ff16b90e5d1ebab574f5d2483c27bc22c48551315483",
"0x05",
"0x5448495320495320534f4d45204d4147494320425954455320464f5220534d54206d3172525867503278704449"
],
"0x5300000000000000000000000000000000000002": [
"0x0909ba955111c7bc1dad6f5490b496610171353d21b99d87f7564545fa1649d2320bb3e4f9d20224a874aa12c01ac4fe78daa4448d8c3e2db868b0250cf7a8cce6",
"0x060d49b5b8a9e02afcb75916a4a298a36666aa72ed3cd944739c28fed43e9a25aa2c9520f7a5a7899c5b9e6534b21a852ae4458d9377d8e13376d71308989a6ec5",
"0x04305d4a567058c2fd4885ad58ed93968eb61dcd22ebba3b98f9bed6a5dca8e8550508000000000000000000000000000000000000000000000000000900000000000000010000000000000000000000000000000000000000000000056bc75e2d6310000014f79ca2a40bc6060e5f4fda10850d716cd59128065404200d3a104a2cb081b4415c2616a7907a25c2951367b8ef12df9a9319438af45f3d26c34d7837945f6f003f8f90161ab9a379a9f02244eb58a36548231777ede611bbd72c31c10a5b2400",
"0x5448495320495320534f4d45204d4147494320425954455320464f5220534d54206d3172525867503278704449"
],
"0xcafe13b757e6f4e1781cd790cb392fc796674e10": [
"0x0909ba955111c7bc1dad6f5490b496610171353d21b99d87f7564545fa1649d2320bb3e4f9d20224a874aa12c01ac4fe78daa4448d8c3e2db868b0250cf7a8cce6",
"0x072317056ee56e306d87ba65db7896afbdc57aa17d8d314688d153dec2592ab2c2057a37d2720aa191fe6ccb1102a35f8bbc8426d7af544b0bf67db44fe4a1ff02",
"0x0700000000000000000000000000000000000000000000000000000000000000002737620bb0342b05b2e1b9fc0af04fb408fe042b92e7683629a18157ba368239",
"0x07000000000000000000000000000000000000000000000000000000000000000000350104ddb329ffaad1c2c14bc62568886bbdfbfd17673a8ca99816bb2ec54c",
"0x0700000000000000000000000000000000000000000000000000000000000000000b8edf40984e568bd8f1ff16b90e5d1ebab574f5d2483c27bc22c48551315483",
"0x060d27db1f30a0b7defd24f6447673445fb4e3c8cd51aca3c9c61d15036b1e67f928ead620f240eabf1d53951ec7690f437c97bd598dddd0aebfa6944ac3edc58a",
"0x04084c92c444334bd0b9a0cded689f0eaa1bee01c899a6b0e7c268229b8db910de0508000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000056bc75e2d631000000000000000000000000000000000000000000000000000000000000000000000c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4702098f5fb9e239eab3ceac3f27b81e481dc3124d55ffed523a839ee8446b6486400",
"0x5448495320495320534f4d45204d4147494320425954455320464f5220534d54206d3172525867503278704449"
]
},
"storageProofs": {
"0x000000000000000000000000000000000cafe444": {
"0x0000000000000000000000000000000000000000000000000000000000000035": [
"0x08016225f079309c42e3a92545a1df52685014270c38cca56b1a90e0a86db2aeaf0000000000000000000000000000000000000000000000000000000000000000",
"0x062ff42065b891422a5697689e65043e300b6154a64021266f1a7350045fc7f7fa1edd4bb8b55c063eed9a5162b582043fab356c2ae2f7d71c2bb68bab1d3b7a80",
"0x041d3c5f8c36e5da873d45bfa1d2399a572ac77493ec089cbf88a37b9e9442842201010000000000000000000000000000000000000000000000000000000000000000000100",
"0x5448495320495320534f4d45204d4147494320425954455320464f5220534d54206d3172525867503278704449"
]
},
"0x5300000000000000000000000000000000000000": {
"0x0000000000000000000000000000000000000000000000000000000000000000": [
"0x05",
"0x5448495320495320534f4d45204d4147494320425954455320464f5220534d54206d3172525867503278704449"
]
},
"0x5300000000000000000000000000000000000002": {
"0x0000000000000000000000000000000000000000000000000000000000000001": [
"0x05",
"0x5448495320495320534f4d45204d4147494320425954455320464f5220534d54206d3172525867503278704449"
],
"0x0000000000000000000000000000000000000000000000000000000000000002": [
"0x05",
"0x5448495320495320534f4d45204d4147494320425954455320464f5220534d54206d3172525867503278704449"
],
"0x0000000000000000000000000000000000000000000000000000000000000003": [
"0x05",
"0x5448495320495320534f4d45204d4147494320425954455320464f5220534d54206d3172525867503278704449"
],
"0x0000000000000000000000000000000000000000000000000000000000000005": [
"0x05",
"0x5448495320495320534f4d45204d4147494320425954455320464f5220534d54206d3172525867503278704449"
],
"0x0000000000000000000000000000000000000000000000000000000000000006": [
"0x05",
"0x5448495320495320534f4d45204d4147494320425954455320464f5220534d54206d3172525867503278704449"
],
"0x0000000000000000000000000000000000000000000000000000000000000007": [
"0x05",
"0x5448495320495320534f4d45204d4147494320425954455320464f5220534d54206d3172525867503278704449"
],
"0x0000000000000000000000000000000000000000000000000000000000000008": [
"0x05",
"0x5448495320495320534f4d45204d4147494320425954455320464f5220534d54206d3172525867503278704449"
]
}
},
"deletionProofs": [],
"flattenProofs": {}
},
"startL1QueueIndex": 0,
"withdraw_trie_root": "0x0000000000000000000000000000000000000000000000000000000000000000"
}
```