What's changed?
- Introduce
LakeConfigBuilder
for creating configslet config = LakeConfigBuilder.default() .testnet() .start_block_height(88220926) .build() .expect("Failed to build LakeConfig");
- Now you can provide custom AWS SDK S3
Config
use aws_sdk_s3::Endpoint; use http::Uri; use near_lake_framework::LakeConfigBuilder; let aws_config = aws_config::from_env().load().await; let mut s3_conf = aws_sdk_s3::config::Builder::from(&aws_config); s3_conf = s3_conf .endpoint_resolver( Endpoint::immutable("http://0.0.0.0:9000".parse::<Uri>().unwrap())) .build(); let config = LakeConfigBuilder::default() .s3_config(s3_conf) .s3_bucket_name("near-lake-data-custom") .start_block_height(1) .build() .expect("Failed to build LakeConfig");
Breaking change
LakeConfig
has a breaking change as we've removed s3_endpoint
and added s3_config
. Please, consider migrating to use LakeConfigBuilder
instead of directly crafting the Lakeconfig
Crate Link: https://crates.io/crates/near-lake-framework/0.3.0
Full Changelog: v0.2.0...v0.3.0