Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Migrate to NEAR Lake #326

Merged
merged 44 commits into from
Dec 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
e1382b7
refactor: Switch from runing NEAR Indexer Framework to NEAR Lake Fram…
khorolets Feb 20, 2022
3f42ccc
start streamer with actix instead of tokio (diesel-actix) is used
khorolets Feb 20, 2022
e113dd2
fix find parent tx for receipt logic
khorolets Mar 17, 2022
55f17c6
refactor: upgraded to near-lake-framework 0.5.0 (#1)
frol Aug 18, 2022
0e89871
refactor: Upgrade to NEAR Lake Framework 0.5.1 (#2)
khorolets Aug 19, 2022
52d5046
chore: Update test.yml (#3)
khorolets Aug 19, 2022
118e55e
chore: Upgrade near-lake-framework to 0.5.2 (#4)
khorolets Sep 15, 2022
4575c7f
fix: Avoid recreating access key on transfer to implicit account (#5)
morgsmccauley Oct 17, 2022
2473ddf
build: Migrate to Cargo Workspaces (#6)
morgsmccauley Nov 2, 2022
a2a1b0c
feat: Create empty `database` library crate
morgsmccauley Oct 31, 2022
0d97e3b
refactor: Extract db logic to `database` lib
morgsmccauley Oct 31, 2022
fa2f47f
refactor: Change `database` logging target to `explorer_database`
morgsmccauley Oct 31, 2022
a8e27a9
refactor: Rename `db_adapters` -> `adapters`
morgsmccauley Oct 31, 2022
a4e3eea
refactor: Make current in-use DB funcions public
morgsmccauley Oct 31, 2022
73dfd6a
refactor: Extract cache logic to `database` lib
morgsmccauley Oct 31, 2022
d1cde8b
refactor: Replace `near-lake-framework` with `near-indexer-primitives`
morgsmccauley Nov 2, 2022
59da9fa
Merge pull request #9 from khorolets/refactor/extract-db-to-lib
morgsmccauley Nov 2, 2022
e9f5d9e
docs: Added a warning to the skipping blocks section in troubleshooti…
frol Nov 4, 2022
5794def
feat: Introduce standalone binary to calculate circulating supply via…
morgsmccauley Nov 17, 2022
47d0210
chore: Add missing Changelog/Cargo version entries (#16)
morgsmccauley Nov 28, 2022
8db4780
feat: Add missing diesel `migrations` (#12)
morgsmccauley Nov 29, 2022
faa882a
refactor: Use default AWS SDK credentials provider (#14)
morgsmccauley Nov 29, 2022
34a6112
chore: Update `Cargo.toml` version to match previous code changes (#17)
morgsmccauley Nov 29, 2022
720be80
feat: Enable JSON logging via environment variable (#13)
morgsmccauley Nov 30, 2022
4d8c8f7
feat: Expose block metrics from Indexer over http (#15)
morgsmccauley Dec 1, 2022
e454ea4
DPLT-632: Add Dockerfile files for circulating-supply and indexer (#18)
ecp88 Dec 7, 2022
7161b77
refactor: Metrics server config/errors (#20)
morgsmccauley Dec 8, 2022
f8d6650
Merge remote-tracking branch 'lake/master-lake' into feat/lake-migration
morgsmccauley Dec 9, 2022
3c82a67
chore: Drop `-lake` suffix in Cargo name
morgsmccauley Dec 11, 2022
0477f96
chore: Remove unused files
morgsmccauley Dec 11, 2022
cb8649e
chore: Delete `release.yml` as we now build in GCP
morgsmccauley Dec 11, 2022
826e84a
chore: Remove `Cross`
morgsmccauley Dec 11, 2022
4f68f87
chore: Point to `docs.near.org` instead of `near-indexers.io`
morgsmccauley Dec 11, 2022
9361c23
chore: Add link to "store genesis" issue
morgsmccauley Dec 11, 2022
2713da1
chore: Add missing `chain-id` in example command
morgsmccauley Dec 11, 2022
800a64e
chore: Add breaking changes to `CHANGELOG.md`
morgsmccauley Dec 11, 2022
9433d06
chore: Rephrase paragraph about `non-strict-mode`
morgsmccauley Dec 11, 2022
758c271
chore: Add subheadings for running indexer
morgsmccauley Dec 11, 2022
5e79896
docs: Add notes about docker deployments in Readme
morgsmccauley Dec 12, 2022
4581db2
refactor: Rename `retriable.rs` -> `retryable.rs`
morgsmccauley Dec 13, 2022
58e7b48
refactor: List duplicate expr out of match clause
morgsmccauley Dec 13, 2022
37825da
refactor: Swap indexing/metrics threads
morgsmccauley Dec 13, 2022
4942462
feat: Handle errors thrown during indexing
morgsmccauley Dec 13, 2022
4519bb4
refactor: Drop `-lake` prefix in metrics
morgsmccauley Dec 14, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions .buildkite/pipeline.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .dockerignore

This file was deleted.

51 changes: 51 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: ci
on:
pull_request:
branches: [master]
push:
branches: [master]
morgsmccauley marked this conversation as resolved.
Show resolved Hide resolved
# schedule:
# - cron: '00 01 * * *'
jobs:
morgsmccauley marked this conversation as resolved.
Show resolved Hide resolved
test:
name: test
runs-on: ubuntu-latest
env:
# For some builds, we disable ledger support
FEATURES_FLAGS:
# Emit backtraces on panics.
RUST_BACKTRACE: 1

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true

- name: Build indexer-explorer-lake and all crates
run: cargo build --verbose --all ${{ env.FEATURES_FLAGS }}

- name: Run tests
run: cargo test --verbose --all ${{ env.FEATURES_FLAGS }}

rustfmt:
name: rustfmt
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
components: rustfmt
- name: Check formatting
run: |
cargo fmt --all -- --check
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ We use the following order to group our imports (use statements):

1. standard Rust library imports (e.g. `std::sync::Arc`)
2. external crates (e.g. `tokio::time`)
3. near-* crates (e.g. `near_indexer::near_primitives::types`)
3. near-* crates (e.g. `near_lake_framework::near_indexer_primitives::types`)
4. local crate modules (e.g. `crate::db`)
5. local modules (e.g. `self::access_keys`)
6. `mod` statements
Expand Down Expand Up @@ -104,7 +104,7 @@ fn my_func() {
over:

```rust
use near_indexer::near_primitives::types::Account;
use near_lake_framework::near_indexer_primitives::types::Account;

fn my_func() {
let my_account = Account::from("test.near");
Expand Down
Loading