Giter Club home page Giter Club logo

edge-grpc-mock-server's Introduction

sunset

edge-grpc-mock-server's People

Contributors

bgluth avatar dependabot[bot] avatar leovct avatar

Watchers

 avatar

Forkers

bgluth

edge-grpc-mock-server's Issues

Add flags

Use Viper to add flags to the mock server.

  • gRPC server port
  • HTTP server port
  • HTTP server behaviour: save proofs to filesystem or display proof content and terminate
  • starting block height
  • etc.

The server should return dynamic block data

At the moment, the mock server always returns the same block number, metadata and trace. It would be great to implement some kind of counter mechanism that returns a new block data (number, metadata and trace) after some time or after the zero-prover leader made x requests to the mock server. This would help us testing the zero-prover behaviour against a range of blocks.

We could introduce a new flag called mode with two options, static (default) and dynamic.

Leader panics when trying to deserialise the dummy trace data sent by the mock server

Description

The whole setup is running well at the moment. I don't have errors with the worker facing underflow issues or the leader not able to connect to the worker. The leader even manages to connect to the mock gRPC server. It's able to make requests such as GetStatus or GetTrace. There's one last problem though, when trying to deserialise the encoded trace data by the gRPC server, the leader is facing a panic.

thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: Error { path: Path { segments: [Map { key: "transactionTraces" }, Seq { index: 0 }, Map { key: "txn" }] }, original: Error("Invalid character 'Y' at position 1", line: 1, column: 1598) }', leader/src/full_node_adapter/edge/edge_node_adapter.rs:88:89
 INFO  zero_prover_leader::full_node_adapter::edge::edge_node_adapter > Received new block for height 85754

I double-checked and was able to deserialise the encoded data the same way it's done in the edge client. I'll probably need to investigate a little bit more...

Logs

Open/Close logs
go run main.go                                                                                                              at 18:51:03
Tue Aug  1 18:52:00 CEST 2023 INF http/http.go:32 > HTTP server is starting on port 8080
Tue Aug  1 18:52:00 CEST 2023 INF grpc/grpc.go:61 > gRPC server is starting on port 8546
Tue Aug  1 18:52:00 CEST 2023 INF grpc/grpc.go:84 > gRPC /GetTrace request received
Tue Aug  1 18:52:00 CEST 2023 INF grpc/grpc.go:91 > TraceResponse encoded trace: [123 34 97 99 99 111 117 110 116 84 114 105 101 34 58 123 34 48 120 49 98 98 53 52 54 50 98 50 100 50 99 53 51 56 53 50 53 54 101 97 97 97 56 50 54 52 50 54 48 98 56 48 101 50 100 100 97 52 55 52 50 51 97 55 100 97 55 51 52 48 98 98 55 49 97 97 54 50 56 54 53 54 51 34 58 34 48 120 48 54 53 102 56 100 100 99 52 48 101 53 48 51 99 56 49 102 55 57 51 55 98 57 101 97 97 48 101 97 57 101 51 102 57 102 100 54 100 55 98 49 52 99 97 100 55 55 51 99 53 55 101 57 50 100 100 53 50 54 50 101 51 48 34 44 34 48 120 54 98 49 51 52 52 56 51 52 99 48 55 102 51 98 52 98 50 55 52 49 99 53 55 49 56 54 97 48 54 53 101 56 48 57 54 56 53 98 52 55 52 101 51 99 57 49 57 55 102 100 55 98 53 51 54 53 102 51 53 54 102 102 48 34 58 34 48 120 50 55 98 99 57 50 49 97 98 49 102 52 51 50 102 54 97 97 50 54 101 99 51 98 53 51 54 55 55 52 52 54 48 50 57 48 56 102 100 99 101 51 50 53 101 50 98 49 50 101 53 51 52 57 56 98 49 56 55 48 48 99 56 53 34 44 34 48 120 54 99 101 100 54 97 52 99 54 55 101 49 50 97 97 52 98 97 100 52 54 99 54 49 57 57 97 55 51 50 99 55 48 101 101 56 98 102 97 52 57 51 56 99 102 100 53 55 100 55 53 54 51 101 98 50 97 56 57 49 98 54 99 99 34 58 34 48 120 49 54 55 50 102 55 57 100 55 48 97 100 101 56 99 57 53 51 56 102 53 54 98 97 56 98 102 98 99 98 98 50 53 48 55 56 57 49 49 48 57 48 102 100 101 49 55 102 51 52 49 100 101 101 101 51 53 100 55 54 98 98 57 98 34 44 34 48 120 55 54 51 54 102 99 56 56 51 48 101 102 57 98 97 99 52 52 100 52 49 48 101 54 102 102 54 54 100 48 98 55 52 48 97 55 97 56 55 98 98 48 98 48 101 51 99 54 53 57 102 53 99 54 51 55 54 99 100 51 98 48 100 57 34 58 34 48 120 49 102 101 51 54 100 97 51 51 53 102 57 53 57 102 100 53 56 100 50 98 97 102 49 54 97 55 97 57 52 49 100 55 97 49 55 48 100 52 52 97 52 53 102 57 55 100 102 51 98 52 56 50 97 98 55 102 48 48 53 57 49 48 48 34 44 34 48 120 102 100 52 56 52 98 56 50 53 98 99 98 102 55 52 54 101 48 97 101 51 98 50 52 55 53 54 54 101 48 99 55 53 57 53 55 97 51 99 56 100 49 55 53 51 99 50 50 52 51 56 49 100 56 56 99 54 50 101 53 56 98 50 53 34 58 34 48 120 51 100 56 97 55 49 48 55 101 99 53 54 101 97 51 50 52 56 53 100 98 57 48 57 52 102 52 102 100 55 55 53 100 98 100 49 55 48 54 49 48 57 98 54 102 48 54 101 48 57 97 52 56 101 97 49 54 56 101 100 54 101 52 49 34 125 44 34 115 116 111 114 97 103 101 84 114 105 101 34 58 123 34 48 120 50 49 100 52 54 50 51 56 99 48 99 97 101 52 55 49 53 51 57 57 57 49 55 101 50 51 99 49 101 55 55 56 50 50 50 50 102 52 57 102 57 49 102 54 56 99 50 52 48 97 52 57 102 100 54 50 51 99 98 56 57 99 53 50 34 58 34 48 120 52 54 57 100 51 56 54 52 50 52 53 102 101 100 101 49 55 101 53 97 98 100 50 55 100 52 51 49 98 99 51 48 53 50 53 56 55 50 100 52 102 98 48 102 101 48 52 102 100 49 98 101 100 100 101 49 56 52 102 97 101 56 98 54 34 44 34 48 120 53 97 99 51 55 57 98 51 54 56 98 55 54 50 55 56 56 100 54 48 99 98 100 55 50 97 57 99 99 49 102 99 53 99 56 97 49 54 97 49 49 100 100 55 49 102 97 52 49 55 51 56 48 55 97 97 48 55 54 53 52 101 56 54 34 58 34 48 120 56 99 99 101 54 52 50 55 50 48 50 52 56 52 50 57 101 49 56 55 101 52 50 98 50 101 102 51 53 55 100 55 97 53 54 49 97 98 98 57 97 49 51 52 52 98 53 49 100 57 102 57 100 100 54 98 101 100 54 97 50 51 97 49 34 44 34 48 120 57 50 48 102 51 102 98 100 52 56 54 53 100 102 100 50 56 56 51 50 56 101 51 98 100 53 98 52 48 53 56 53 100 98 101 54 49 48 53 54 99 55 102 51 50 50 98 51 48 99 52 97 52 102 50 98 48 53 55 51 100 98 56 100 34 58 34 48 120 102 48 53 49 49 100 98 51 99 101 51 97 50 50 57 48 100 52 53 54 57 51 98 57 52 48 57 49 50 48 52 48 53 50 48 57 48 52 48 98 49 101 101 54 52 102 54 101 54 99 48 50 101 101 57 48 52 54 54 102 55 97 54 55 34 44 34 48 120 99 53 56 53 53 100 48 49 49 51 49 98 51 54 53 56 51 51 57 49 57 48 54 99 99 102 53 51 101 53 49 52 48 100 51 100 54 57 101 54 51 56 51 53 51 99 57 50 51 51 49 100 56 51 49 55 57 97 54 53 52 102 99 52 34 58 34 48 120 102 54 102 98 100 97 50 98 51 52 97 55 52 98 50 49 98 48 99 54 99 99 57 57 55 49 98 55 52 53 99 99 57 51 98 53 100 102 97 100 98 99 51 49 52 51 98 100 56 53 48 99 102 52 102 100 56 101 54 98 51 48 49 51 34 44 34 48 120 99 57 50 52 48 55 97 53 97 55 99 97 54 56 56 99 99 54 101 98 98 99 99 52 101 50 98 52 55 97 50 97 100 99 57 98 53 54 100 51 100 101 98 102 56 102 56 53 56 54 51 97 53 99 97 56 51 50 101 101 102 52 53 48 34 58 34 48 120 97 97 50 102 54 97 56 53 51 51 102 56 56 48 50 53 56 97 56 48 50 102 56 54 53 57 51 50 51 52 100 102 55 57 55 55 53 52 57 57 55 102 54 56 102 52 56 102 99 48 99 99 102 51 51 51 56 100 98 54 102 101 98 48 34 125 44 34 112 97 114 101 110 116 83 116 97 116 101 82 111 111 116 34 58 34 48 120 57 98 54 54 98 51 102 52 57 102 50 49 51 48 99 55 49 52 50 53 56 50 48 100 97 54 49 102 52 101 48 98 55 55 101 50 48 54 98 57 54 54 54 51 50 100 56 101 98 56 56 99 97 48 100 52 99 98 49 53 53 98 50 99 34 44 34 116 114 97 110 115 97 99 116 105 111 110 84 114 97 99 101 115 34 58 91 123 34 116 120 110 34 58 34 56 89 67 68 67 78 70 110 103 108 73 73 108 76 49 100 49 100 81 65 113 66 88 121 79 116 81 67 54 54 70 51 82 52 51 120 87 111 109 85 103 119 110 43 71 73 77 66 65 103 79 68 67 108 106 75 103 119 69 68 69 111 77 73 54 104 85 61 34 44 34 100 101 108 116 97 34 58 123 34 48 120 52 55 51 97 65 49 56 68 101 100 48 53 51 102 102 55 56 50 68 57 99 56 53 53 98 50 51 101 52 70 65 102 69 66 48 51 53 51 65 51 34 58 123 34 97 100 100 114 101 115 115 34 58 34 48 120 68 54 54 54 49 49 57 54 57 67 54 55 66 56 99 53 57 65 66 68 53 55 48 52 56 97 50 57 49 54 50 51 68 51 52 51 101 53 49 50 34 44 34 98 97 108 97 110 99 101 34 58 54 56 54 52 52 49 44 34 110 111 110 99 101 34 58 53 50 44 34 115 116 111 114 97 103 101 34 58 123 34 48 120 52 57 102 100 102 48 98 101 51 102 102 97 50 97 100 54 54 100 51 49 55 99 55 102 56 55 53 101 97 56 101 101 101 51 55 51 49 52 53 97 102 49 54 102 54 53 49 48 55 100 53 53 54 57 57 50 52 102 54 48 98 51 102 98 34 58 34 48 120 55 97 102 48 51 54 102 49 53 50 98 52 51 101 51 100 101 102 99 97 52 50 97 53 57 57 98 53 56 55 102 100 56 98 98 100 100 55 100 54 99 102 52 56 51 98 52 48 54 53 101 102 57 48 53 48 50 48 52 50 52 97 49 99 34 44 34 48 120 100 55 51 102 55 54 98 54 102 56 97 52 50 101 97 100 55 102 49 51 50 48 55 97 49 53 101 52 52 53 56 55 99 48 101 49 101 53 55 49 51 99 52 52 48 101 53 51 54 98 49 97 101 54 50 57 50 57 51 100 50 54 98 55 34 58 34 48 120 101 98 55 50 50 56 49 48 57 99 99 52 98 53 55 56 101 49 97 50 55 57 99 51 48 101 49 50 50 56 56 97 50 101 99 52 49 51 54 98 99 56 97 51 98 102 100 97 102 98 56 55 57 54 50 53 52 98 49 52 101 49 52 101 34 44 34 48 120 101 51 99 50 52 48 56 56 48 97 51 51 102 55 55 54 51 102 102 50 102 49 97 51 51 49 99 55 102 53 50 53 52 51 51 102 50 99 50 55 48 56 51 55 98 50 55 48 54 97 54 101 57 53 97 56 99 99 102 101 97 101 97 54 34 58 34 48 120 101 55 53 52 50 99 54 51 100 51 52 49 52 98 52 50 52 48 52 99 52 99 52 49 101 52 56 102 52 102 54 57 56 56 102 55 49 102 51 52 48 49 99 101 56 100 100 97 101 97 53 53 51 56 51 56 98 102 48 49 49 102 48 97 34 125 44 34 99 111 100 101 34 58 34 108 81 105 52 67 81 122 114 97 117 101 89 74 113 53 119 56 87 79 101 119 100 52 117 67 84 117 71 74 80 105 43 99 54 112 100 66 78 51 84 49 78 87 87 86 115 120 98 84 102 120 121 117 112 102 52 52 119 83 43 67 86 67 105 111 79 54 71 108 83 104 79 82 113 56 117 115 73 103 86 72 116 101 114 121 103 61 61 34 44 34 115 117 105 99 105 100 101 34 58 116 114 117 101 44 34 116 111 117 99 104 101 100 34 58 116 114 117 101 125 125 125 44 123 34 116 120 110 34 58 34 56 81 71 68 68 107 73 111 103 108 73 73 108 74 81 84 84 106 78 78 76 76 51 83 73 65 118 73 104 90 100 50 102 111 108 104 105 77 118 119 103 119 56 116 81 111 77 66 65 103 79 68 68 107 78 86 103 119 97 83 111 111 77 80 66 121 103 61 34 44 34 100 101 108 116 97 34 58 123 34 48 120 69 70 98 97 101 57 99 53 51 53 50 49 70 54 68 65 50 56 65 98 69 48 69 100 49 48 49 65 49 55 68 54 49 53 102 49 68 67 56 66 34 58 123 34 97 100 100 114 101 115 115 34 58 34 48 120 51 55 68 54 97 53 65 55 49 53 48 68 100 101 52 49 48 55 67 69 48 48 98 100 54 69 49 56 57 52 66 69 49 98 69 53 67 69 54 50 34 44 34 98 97 108 97 110 99 101 34 58 55 54 51 49 49 50 44 34 110 111 110 99 101 34 58 52 51 44 34 115 116 111 114 97 103 101 34 58 123 34 48 120 48 49 49 55 51 49 98 54 52 56 101 56 54 52 55 102 57 48 54 50 51 50 56 56 54 101 48 99 51 97 54 102 49 56 100 102 99 99 50 50 55 50 97 57 49 100 50 101 97 49 48 52 51 51 49 48 48 101 52 53 98 97 48 56 34 58 34 48 120 102 56 52 100 100 100 102 50 99 98 53 57 50 101 102 51 54 98 54 56 56 99 98 99 55 51 98 50 57 100 100 102 54 98 97 55 53 101 53 102 102 52 57 55 51 51 99 99 49 99 51 97 100 51 55 52 98 53 54 49 98 101 55 99 34 44 34 48 120 49 50 102 57 53 49 57 100 52 54 49 100 56 102 49 53 48 101 48 52 54 100 52 49 54 98 56 57 101 99 102 52 55 51 98 99 52 53 101 101 52 97 101 54 102 57 54 53 56 48 53 102 102 98 99 100 98 56 98 100 100 52 101 98 34 58 34 48 120 100 97 101 98 53 55 98 100 57 50 50 54 101 53 56 101 52 100 100 101 48 98 48 98 50 56 102 100 51 102 100 57 53 49 102 52 100 101 49 56 102 102 53 98 49 98 57 49 57 52 102 53 97 102 102 50 50 98 48 52 51 56 51 97 34 44 34 48 120 56 100 97 51 102 102 98 102 99 101 97 101 97 101 99 54 100 97 54 56 56 48 49 53 101 56 55 48 49 55 53 57 51 50 99 97 51 48 101 102 52 49 54 101 52 100 54 52 56 51 54 100 48 52 56 100 98 48 48 98 99 55 50 50 34 58 34 48 120 100 52 55 53 97 49 100 97 51 48 57 56 55 97 56 97 56 54 50 56 57 54 55 53 102 54 56 56 49 54 48 49 100 57 98 100 101 97 101 51 97 48 99 56 55 97 100 97 102 52 100 101 57 52 56 102 53 54 99 56 49 49 100 57 34 125 44 34 99 111 100 101 34 58 34 90 49 117 53 66 89 67 67 97 97 114 101 84 73 104 122 111 102 103 48 76 106 56 121 74 86 50 118 71 115 56 111 122 77 72 51 76 122 53 69 80 83 88 100 112 100 109 83 89 74 86 111 70 71 48 78 69 113 72 101 72 75 109 55 70 87 67 97 68 71 115 109 116 85 119 89 84 82 69 69 100 75 119 84 89 81 61 61 34 44 34 115 117 105 99 105 100 101 34 58 102 97 108 115 101 44 34 116 111 117 99 104 101 100 34 58 102 97 108 115 101 125 125 125 44 123 34 116 120 110 34 58 34 56 81 75 68 67 81 108 51 103 108 73 73 108 67 55 56 101 85 110 68 106 101 106 74 70 114 84 47 48 98 72 89 79 116 84 119 99 55 87 76 103 119 79 54 107 111 77 66 65 103 79 68 66 100 52 74 103 119 76 88 79 73 77 75 105 75 81 61 34 44 34 100 101 108 116 97 34 58 123 34 48 120 49 54 49 102 49 99 66 54 101 100 66 57 57 55 55 66 52 55 48 98 54 97 51 53 56 52 65 49 54 102 51 100 53 49 98 50 99 56 51 66 34 58 123 34 97 100 100 114 101 115 115 34 58 34 48 120 66 51 55 50 50 66 48 57 53 101 52 100 55 48 50 65 55 53 49 53 54 101 68 53 51 55 54 100 51 49 70 66 54 51 98 50 65 55 48 48 34 44 34 98 97 108 97 110 99 101 34 58 56 52 53 55 48 53 44 34 110 111 110 99 101 34 58 52 56 44 34 115 116 111 114 97 103 101 34 58 123 34 48 120 49 101 54 52 54 55 48 56 100 56 49 52 99 97 55 50 101 57 55 53 48 100 55 56 49 49 100 99 100 98 53 102 102 50 50 101 53 51 53 99 99 56 56 50 99 53 99 54 55 49 99 101 56 57 56 97 102 55 102 97 50 56 51 56 34 58 34 48 120 54 102 57 48 57 53 99 57 99 98 51 48 55 48 56 54 52 56 49 100 52 57 101 97 54 102 100 49 98 54 100 49 57 52 51 49 55 49 54 50 56 53 54 97 54 54 49 100 52 100 51 97 48 57 56 55 100 53 97 48 55 101 48 57 34 44 34 48 120 52 101 100 56 49 99 97 98 97 99 97 51 100 100 54 55 99 101 101 56 49 56 56 99 101 48 57 49 50 55 54 53 55 57 48 52 100 97 97 101 55 97 52 54 54 52 100 54 53 48 54 52 54 57 101 102 101 100 54 53 48 49 52 49 34 58 34 48 120 50 52 99 54 48 99 101 54 54 98 53 100 98 52 100 54 50 49 54 99 54 49 102 99 55 51 101 101 97 56 55 98 99 100 56 97 101 99 50 101 52 56 102 57 53 53 48 54 55 48 101 101 50 56 99 54 50 51 102 100 100 48 53 101 34 44 34 48 120 102 51 55 97 50 49 54 57 97 100 102 48 48 49 49 97 48 97 51 50 97 52 52 57 101 100 54 100 50 53 55 57 55 99 99 50 49 55 99 54 51 100 56 100 52 100 52 101 102 99 56 101 100 97 98 51 49 55 52 57 53 102 100 97 34 58 34 48 120 101 48 50 51 54 49 99 48 50 48 51 100 52 55 51 54 51 51 101 55 57 99 102 53 57 100 100 48 98 101 102 48 52 48 51 50 102 49 57 50 49 52 97 53 101 57 52 54 100 100 97 56 54 100 101 54 50 98 102 49 100 97 99 48 34 125 44 34 99 111 100 101 34 58 34 105 66 55 119 72 71 87 118 71 83 104 108 120 101 71 82 71 112 73 83 48 97 117 76 47 90 78 78 110 57 75 71 72 100 48 109 48 70 101 106 108 108 111 77 120 120 82 79 109 69 103 90 120 84 97 104 97 52 84 50 106 81 48 105 65 79 51 106 117 67 87 55 86 54 113 78 56 53 109 103 47 49 75 100 79 119 61 61 34 44 34 115 117 105 99 105 100 101 34 58 116 114 117 101 44 34 116 111 117 99 104 101 100 34 58 116 114 117 101 125 125 125 93 125]
Tue Aug  1 18:52:00 CEST 2023 INF grpc/grpc.go:104 > TraceResponce decoded trace
{
  "accountTrie": {
    "0x1bb5462b2d2c5385256eaaa8264260b80e2dda47423a7da7340bb71aa6286563": "0x065f8ddc40e503c81f7937b9eaa0ea9e3f9fd6d7b14cad773c57e92dd5262e30",
    "0x6b1344834c07f3b4b2741c57186a065e809685b474e3c9197fd7b5365f356ff0": "0x27bc921ab1f432f6aa26ec3b5367744602908fdce325e2b12e53498b18700c85",
    "0x6ced6a4c67e12aa4bad46c6199a732c70ee8bfa4938cfd57d7563eb2a891b6cc": "0x1672f79d70ade8c9538f56ba8bfbcbb25078911090fde17f341deee35d76bb9b",
    "0x7636fc8830ef9bac44d410e6ff66d0b740a7a87bb0b0e3c659f5c6376cd3b0d9": "0x1fe36da335f959fd58d2baf16a7a941d7a170d44a45f97df3b482ab7f0059100",
    "0xfd484b825bcbf746e0ae3b247566e0c75957a3c8d1753c224381d88c62e58b25": "0x3d8a7107ec56ea32485db9094f4fd775dbd1706109b6f06e09a48ea168ed6e41"
  },
  "storageTrie": {
    "0x21d46238c0cae4715399917e23c1e7782222f49f91f68c240a49fd623cb89c52": "0x469d3864245fede17e5abd27d431bc30525872d4fb0fe04fd1bedde184fae8b6",
    "0x5ac379b368b762788d60cbd72a9cc1fc5c8a16a11dd71fa4173807aa07654e86": "0x8cce642720248429e187e42b2ef357d7a561abb9a1344b51d9f9dd6bed6a23a1",
    "0x920f3fbd4865dfd288328e3bd5b40585dbe61056c7f322b30c4a4f2b0573db8d": "0xf0511db3ce3a2290d45693b9409120405209040b1ee64f6e6c02ee90466f7a67",
    "0xc5855d01131b36583391906ccf53e5140d3d69e638353c92331d83179a654fc4": "0xf6fbda2b34a74b21b0c6cc9971b745cc93b5dfadbc3143bd850cf4fd8e6b3013",
    "0xc92407a5a7ca688cc6ebbcc4e2b47a2adc9b56d3debf8f85863a5ca832eef450": "0xaa2f6a8533f880258a802f86593234df797754997f68f48fc0ccf3338db6feb0"
  },
  "parentStateRoot": "0x9b66b3f49f2130c71425820da61f4e0b77e206b966632d8eb88ca0d4cb155b2c",
  "transactionTraces": [
    {
      "txn": "8YCDCNFnglIIlL1d1dQAqBXyOtQC66F3R43xWomUgwn+GIMBAgODCljKgwEDEoMI6hU=",
      "delta": {
        "0x473aA18Ded053ff782D9c855b23e4FAfEB0353A3": {
          "address": "0xD66611969C67B8c59ABD57048a291623D343e512",
          "balance": 686441,
          "nonce": 52,
          "storage": {
            "0x49fdf0be3ffa2ad66d317c7f875ea8eee373145af16f65107d5569924f60b3fb": "0x7af036f152b43e3defca42a599b587fd8bbdd7d6cf483b4065ef905020424a1c",
            "0xd73f76b6f8a42ead7f13207a15e44587c0e1e5713c440e536b1ae629293d26b7": "0xeb7228109cc4b578e1a279c30e12288a2ec4136bc8a3bfdafb8796254b14e14e",
            "0xe3c240880a33f7763ff2f1a331c7f525433f2c270837b2706a6e95a8ccfeaea6": "0xe7542c63d3414b42404c4c41e48f4f6988f71f3401ce8ddaea553838bf011f0a"
          },
          "code": "lQi4CQzraueYJq5w8WOewd4uCTuGJPi+c6pdBN3T1NWWVsxbTfxyupf44wS+CVCioO6GlShORq8usIgVHteryg==",
          "suicide": true,
          "touched": true
        }
      }
    },
    {
      "txn": "8QGDDkIoglIIlJQTTjNNLL3SIAvIhZd2folhiMvwgw8tQoMBAgODDkNVgwaSooMPByg=",
      "delta": {
        "0xEFbae9c53521F6DA28AbE0Ed101A17D615f1DC8B": {
          "address": "0x37D6a5A7150Dde4107CE00bd6E1894BE1bE5CE62",
          "balance": 763112,
          "nonce": 43,
          "storage": {
            "0x011731b648e8647f906232886e0c3a6f18dfcc2272a91d2ea10433100e45ba08": "0xf84dddf2cb592ef36b688cbc73b29ddf6ba75e5ff49733cc1c3ad374b561be7c",
            "0x12f9519d461d8f150e046d416b89ecf473bc45ee4ae6f965805ffbcdb8bdd4eb": "0xdaeb57bd9226e58e4dde0b0b28fd3fd951f4de18ff5b1b9194f5aff22b04383a",
            "0x8da3ffbfceaeaec6da688015e870175932ca30ef416e4d64836d048db00bc722": "0xd475a1da30987a8a86289675f6881601d9bdeae3a0c87adaf4de948f56c811d9"
          },
          "code": "Z1u5BYCCaareTIhzofg0Lj8yJV2vGs8ozMH3Lz5EPSXdpdmSYJVoFG0NEqHeHKm7FWCaDGsmtUwYTREEdKwTYQ==",
          "suicide": false,
          "touched": false
        }
      }
    },
    {
      "txn": "8QKDCQl3glIIlC78eUnDjejJFrT/0bHYOtTwc7WLgwO6koMBAgODBd4JgwLXOIMKiKQ=",
      "delta": {
        "0x161f1cB6edB9977B470b6a3584A16f3d51b2c83B": {
          "address": "0xB3722B095e4d702A75156eD5376d31FB63b2A700",
          "balance": 845705,
          "nonce": 48,
          "storage": {
            "0x1e646708d814ca72e9750d7811dcdb5ff22e535cc882c5c671ce898af7fa2838": "0x6f9095c9cb307086481d49ea6fd1b6d194317162856a661d4d3a0987d5a07e09",
            "0x4ed81cabaca3dd67cee8188ce09127657904daae7a4664d6506469efed650141": "0x24c60ce66b5db4d6216c61fc73eea87bcd8aec2e48f9550670ee28c623fdd05e",
            "0xf37a2169adf0011a0a32a449ed6d25797cc217c63d8d4d4efc8edab317495fda": "0xe02361c0203d473633e79cf59dd0bef04032f19214a5e946dda86de62bf1dac0"
          },
          "code": "iB7wHGWvGShlxeGRGpIS0auL/ZNNn9KGHd0m0FejlloMxxROmEgZxTaha4T2jQ0iAO3juCW7V6qN85mg/1KdOw==",
          "suicide": true,
          "touched": true
        }
      }
    }
  ]
}
Tue Aug  1 18:52:00 CEST 2023 INF grpc/grpc.go:119 > Transaction decoded
{
  "Nonce": 0,
  "GasPrice": 577895,
  "GasTipCap": null,
  "GasFeeCap": null,
  "Gas": 21000,
  "To": "0xBD5DD5D400A815F23ad402EbA177478dF15A8994",
  "Value": 654872,
  "Input": "AQID",
  "V": 678090,
  "R": 66322,
  "S": 584213,
  "Hash": "0xfa93d860278219484330afac8d35c8306525cda629211f806c2d0a7f00c6824d",
  "From": "0x0000000000000000000000000000000000000000",
  "Type": 0,
  "ChainID": null
}
Tue Aug  1 18:52:00 CEST 2023 INF grpc/grpc.go:119 > Transaction decoded
{
  "Nonce": 1,
  "GasPrice": 934440,
  "GasTipCap": null,
  "GasFeeCap": null,
  "Gas": 21000,
  "To": "0x94134e334D2cBdD2200Bc88597767e896188Cbf0",
  "Value": 994626,
  "Input": "AQID",
  "V": 934741,
  "R": 430754,
  "S": 984872,
  "Hash": "0xb3f23ae8a5fb035ffc98a2f512300b9015ef9b1162f020791566ad16b0208c7d",
  "From": "0x0000000000000000000000000000000000000000",
  "Type": 0,
  "ChainID": null
}
Tue Aug  1 18:52:00 CEST 2023 INF grpc/grpc.go:119 > Transaction decoded
{
  "Nonce": 2,
  "GasPrice": 592247,
  "GasTipCap": null,
  "GasFeeCap": null,
  "Gas": 21000,
  "To": "0x2EfC7949C38dE8c916b4FFd1b1d83aD4f073B58b",
  "Value": 244370,
  "Input": "AQID",
  "V": 384521,
  "R": 186168,
  "S": 690340,
  "Hash": "0xa8c4309fefafe9ef71cfbd21da89614e06a79b3319b05ef1a31ffbedb2d9313e",
  "From": "0x0000000000000000000000000000000000000000",
  "Type": 0,
  "ChainID": null
}

CI workflow

The repository doesn't have any CI workflow yet. It could be interesting to add a few ones such as a lint workflow, a test one and maybe a release one. For reference, see what has been done in polygon-cli.

Point to `polygon-edge` instead of my local edge fork

This repository points to my local edge fork because edge is missing a custom method UnmarshalText for Nonce type. Once this commit gets merged into the feat/zero branch, we can point to the latest commit of this branch in the polygon-edge repository.

See the replace directive in go.mod.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.