Skip to content

Commit 7165f09

Browse files
authored
Release stable v2.0.0 (#435)
### Summary This PR includes a small change to the Starknet service, making it ready for the first official 2.0.0 release!
2 parents 9c61a43 + a966499 commit 7165f09

File tree

7 files changed

+10
-62
lines changed

7 files changed

+10
-62
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -11,52 +11,6 @@ Access (DNA) protocol and the integrations built on top of it.\
1111
The protocol enables developers to easily and efficiently stream any onchain
1212
data directly into their application.
1313

14-
### Stream
15-
16-
Stream data directly from the node into your application. DNA enables you to get
17-
exactly the data you need using _filters_. Filters are a collection of rules
18-
that are applied to each block to select what data to send in the stream.
19-
20-
### Transform
21-
22-
Data is transformed evaluating a Javascript or Typescript function on each batch
23-
of data. The resulting data is automatically sent and synced with the target
24-
integration.
25-
26-
### Integrate
27-
28-
We provide a collection of integrations that send data directly where it's
29-
needed. Our integrations support all data from genesis block to the current
30-
pending block and they ensure data is kept up-to-date.
31-
32-
- **Webhook**: call an HTTP endpoint for each batch of data.
33-
- **PostgreSQL**: stream data into a specific table, keeping it up-to-date on
34-
new blocks and chain reorganizations.
35-
- **MongoDB**: store data into a specific collection, keeping it up-to-date on
36-
new blocks and chain reorganizations.
37-
- **Parquet**: generate Parquet files to be used for data analysis.
38-
39-
## Getting started
40-
41-
You can get started using Apibara by installing the official CLI tool.
42-
We provide [detailed instructions in the official documentation](https://www.apibara.com/docs).
43-
44-
## Docker images
45-
46-
We publish docker images on quay.io. Images are available for both the x86_64
47-
and aarch64 architectures.
48-
49-
**Sinks**
50-
51-
- [MongoDB](https://quay.io/repository/apibara/sink-mongo?tab=tags)
52-
- [PostgreSQL](https://quay.io/repository/apibara/sink-postgres?tab=tags)
53-
- [Parquet](https://quay.io/repository/apibara/sink-parquet?tab=tags)
54-
- [Webhook](https://quay.io/repository/apibara/sink-webhook?tab=tags)
55-
56-
**Server**
57-
58-
- [Starknet DNA](https://quay.io/repository/apibara/starknet?tab=tags)
59-
6014
## Contributing
6115

6216
We are open to contributions.
@@ -101,16 +55,6 @@ These platforms are not supported.
10155
- macos-x86_64 - given the slowness of CI runners for this platform, we cannot
10256
provide builds for it.
10357

104-
## Project Structure
105-
106-
The project is comprised of several crates, refer to their READMEs to learn more
107-
about each one of them.
108-
109-
- `core`: types shared by all other crates.
110-
- `starknet`: StarkNet source node.
111-
- `sdk`: connect to streams using Rust.
112-
- `sinks`: contains the code for all sinks.
113-
11458
## License
11559

11660
Copyright 2025 GNC Labs Limited

beaconchain/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "apibara-dna-beaconchain"
3-
version = "2.0.0-beta.36"
3+
version = "2.0.0"
44
edition.workspace = true
55
authors.workspace = true
66
repository.workspace = true

evm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "apibara-dna-evm"
3-
version = "2.0.0-beta.36"
3+
version = "2.0.0"
44
edition.workspace = true
55
authors.workspace = true
66
repository.workspace = true

protocol/proto/starknet/v2/data.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ message BlockHeader {
5050
ResourcePrice l1_data_gas_price = 9;
5151
// L1 data availability mode.
5252
L1DataAvailabilityMode l1_data_availability_mode = 10;
53+
// Price of L2 gas in the block.
54+
ResourcePrice l2_gas_price = 11;
5355
}
5456

5557
// A transaction.

starknet/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "apibara-dna-starknet"
3-
version = "2.0.0-beta.36"
3+
version = "2.0.0"
44
edition.workspace = true
55
authors.workspace = true
66
repository.workspace = true

starknet/src/proto.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ pub fn convert_block_header(block: &models::BlockWithReceipts) -> starknet::Bloc
2323
timestamp: timestamp.into(),
2424
l1_data_gas_price: block.l1_gas_price.to_proto().into(),
2525
l1_gas_price: block.l1_gas_price.to_proto().into(),
26+
l2_gas_price: block.l2_gas_price.to_proto().into(),
2627
l1_data_availability_mode: block.l1_da_mode.to_proto(),
2728
}
2829
}
@@ -46,6 +47,7 @@ pub fn convert_pending_block_header(
4647
timestamp: timestamp.into(),
4748
l1_data_gas_price: block.l1_gas_price.to_proto().into(),
4849
l1_gas_price: block.l1_gas_price.to_proto().into(),
50+
l2_gas_price: block.l2_gas_price.to_proto().into(),
4951
l1_data_availability_mode: block.l1_da_mode.to_proto(),
5052
}
5153
}

0 commit comments

Comments
 (0)