├── .env.example.compose ├── .env.example.lightnet ├── .eslintignore ├── .eslintrc.json ├── .github └── workflows │ ├── build.yaml │ ├── graphql-inspector.yaml │ ├── lint.yaml │ └── run-tests.yaml ├── .gitignore ├── .prettierignore ├── .prettierrc ├── Dockerfile ├── README-docker.md ├── README.md ├── benchmark ├── graphql.yaml └── setup.ts ├── codegen.ts ├── docker-compose.yml ├── nodemon.json ├── package.json ├── run-tests.sh ├── schema.graphql ├── scripts ├── download_db.sh ├── generate_libp2p.sh ├── init_docker_compose.sh └── init_jaeger.sh ├── src ├── blockchain │ ├── constants.ts │ ├── types.ts │ └── utils.ts ├── consensus │ └── mina-consensus.ts ├── context.ts ├── db │ ├── archive-node-adapter │ │ ├── archive-node-adapter.interface.ts │ │ └── archive-node-adapter.ts │ └── sql │ │ └── events-actions │ │ ├── queries.ts │ │ └── types.ts ├── envionment.d.ts ├── errors │ └── error.ts ├── index.ts ├── resolvers-types.ts ├── resolvers.ts ├── server │ ├── plugins.ts │ └── server.ts ├── services │ ├── actions-service │ │ ├── actions-service.interface.ts │ │ └── actions-service.ts │ ├── blocks-service │ │ ├── blocks-service.interface.ts │ │ └── blocks-service.ts │ ├── data-adapters │ │ └── database-row-adapters.ts │ ├── events-service │ │ ├── events-service.interface.ts │ │ └── events-service.ts │ └── network-service │ │ ├── network-service.interface.ts │ │ └── network-service.ts └── tracing │ ├── jaeger-setup.ts │ ├── jaeger-tracing.ts │ └── tracer.ts ├── tests ├── __mocks__ │ ├── database_mock_actions.json │ ├── database_mock_events.json │ └── generate_mock_data.ts ├── consensus │ ├── run-compare.ts │ ├── select-consensus-precomputed.ts │ └── types.ts ├── resolvers.test.ts ├── services │ └── actions-service │ │ └── actions-service.test.ts └── utils.test.ts ├── tsconfig.json ├── tsconfig.test.json └── zkapp ├── contract.ts └── utils.ts /.env.example.compose: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/.env.example.compose -------------------------------------------------------------------------------- /.env.example.lightnet: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/.env.example.lightnet -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/workflows/build.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/.github/workflows/build.yaml -------------------------------------------------------------------------------- /.github/workflows/graphql-inspector.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/.github/workflows/graphql-inspector.yaml -------------------------------------------------------------------------------- /.github/workflows/lint.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/.github/workflows/lint.yaml -------------------------------------------------------------------------------- /.github/workflows/run-tests.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/.github/workflows/run-tests.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | build 2 | coverage -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/.prettierrc -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/Dockerfile -------------------------------------------------------------------------------- /README-docker.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/README-docker.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/README.md -------------------------------------------------------------------------------- /benchmark/graphql.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/benchmark/graphql.yaml -------------------------------------------------------------------------------- /benchmark/setup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/benchmark/setup.ts -------------------------------------------------------------------------------- /codegen.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/codegen.ts -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /nodemon.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/nodemon.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/package.json -------------------------------------------------------------------------------- /run-tests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/run-tests.sh -------------------------------------------------------------------------------- /schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/schema.graphql -------------------------------------------------------------------------------- /scripts/download_db.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/scripts/download_db.sh -------------------------------------------------------------------------------- /scripts/generate_libp2p.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/scripts/generate_libp2p.sh -------------------------------------------------------------------------------- /scripts/init_docker_compose.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/scripts/init_docker_compose.sh -------------------------------------------------------------------------------- /scripts/init_jaeger.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/scripts/init_jaeger.sh -------------------------------------------------------------------------------- /src/blockchain/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/src/blockchain/constants.ts -------------------------------------------------------------------------------- /src/blockchain/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/src/blockchain/types.ts -------------------------------------------------------------------------------- /src/blockchain/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/src/blockchain/utils.ts -------------------------------------------------------------------------------- /src/consensus/mina-consensus.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/src/consensus/mina-consensus.ts -------------------------------------------------------------------------------- /src/context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/src/context.ts -------------------------------------------------------------------------------- /src/db/archive-node-adapter/archive-node-adapter.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/src/db/archive-node-adapter/archive-node-adapter.interface.ts -------------------------------------------------------------------------------- /src/db/archive-node-adapter/archive-node-adapter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/src/db/archive-node-adapter/archive-node-adapter.ts -------------------------------------------------------------------------------- /src/db/sql/events-actions/queries.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/src/db/sql/events-actions/queries.ts -------------------------------------------------------------------------------- /src/db/sql/events-actions/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/src/db/sql/events-actions/types.ts -------------------------------------------------------------------------------- /src/envionment.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/src/envionment.d.ts -------------------------------------------------------------------------------- /src/errors/error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/src/errors/error.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/resolvers-types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/src/resolvers-types.ts -------------------------------------------------------------------------------- /src/resolvers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/src/resolvers.ts -------------------------------------------------------------------------------- /src/server/plugins.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/src/server/plugins.ts -------------------------------------------------------------------------------- /src/server/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/src/server/server.ts -------------------------------------------------------------------------------- /src/services/actions-service/actions-service.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/src/services/actions-service/actions-service.interface.ts -------------------------------------------------------------------------------- /src/services/actions-service/actions-service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/src/services/actions-service/actions-service.ts -------------------------------------------------------------------------------- /src/services/blocks-service/blocks-service.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/src/services/blocks-service/blocks-service.interface.ts -------------------------------------------------------------------------------- /src/services/blocks-service/blocks-service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/src/services/blocks-service/blocks-service.ts -------------------------------------------------------------------------------- /src/services/data-adapters/database-row-adapters.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/src/services/data-adapters/database-row-adapters.ts -------------------------------------------------------------------------------- /src/services/events-service/events-service.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/src/services/events-service/events-service.interface.ts -------------------------------------------------------------------------------- /src/services/events-service/events-service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/src/services/events-service/events-service.ts -------------------------------------------------------------------------------- /src/services/network-service/network-service.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/src/services/network-service/network-service.interface.ts -------------------------------------------------------------------------------- /src/services/network-service/network-service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/src/services/network-service/network-service.ts -------------------------------------------------------------------------------- /src/tracing/jaeger-setup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/src/tracing/jaeger-setup.ts -------------------------------------------------------------------------------- /src/tracing/jaeger-tracing.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/src/tracing/jaeger-tracing.ts -------------------------------------------------------------------------------- /src/tracing/tracer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/src/tracing/tracer.ts -------------------------------------------------------------------------------- /tests/__mocks__/database_mock_actions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/tests/__mocks__/database_mock_actions.json -------------------------------------------------------------------------------- /tests/__mocks__/database_mock_events.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/tests/__mocks__/database_mock_events.json -------------------------------------------------------------------------------- /tests/__mocks__/generate_mock_data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/tests/__mocks__/generate_mock_data.ts -------------------------------------------------------------------------------- /tests/consensus/run-compare.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/tests/consensus/run-compare.ts -------------------------------------------------------------------------------- /tests/consensus/select-consensus-precomputed.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/tests/consensus/select-consensus-precomputed.ts -------------------------------------------------------------------------------- /tests/consensus/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/tests/consensus/types.ts -------------------------------------------------------------------------------- /tests/resolvers.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/tests/resolvers.test.ts -------------------------------------------------------------------------------- /tests/services/actions-service/actions-service.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/tests/services/actions-service/actions-service.test.ts -------------------------------------------------------------------------------- /tests/utils.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/tests/utils.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/tsconfig.test.json -------------------------------------------------------------------------------- /zkapp/contract.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/zkapp/contract.ts -------------------------------------------------------------------------------- /zkapp/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o1-labs/Archive-Node-API/HEAD/zkapp/utils.ts --------------------------------------------------------------------------------