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

Feature/proposals with latest snapshot #8

Merged
merged 12 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 5 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
},
"customizations": {
"vscode": {
"extensions": ["rust-lang.rust-analyzer", "github.vscode-github-actions"]
"extensions": [
"rust-lang.rust-analyzer",
"github.vscode-github-actions",
"ms-python.python"
]
}
},
"postCreateCommand": "./.devcontainer/install-dependencies.sh"
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/install-dependencies.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
sudo apt update
sudo apt install -y postgresql
sudo apt install libudev-dev

cargo install sqlx-cli

Expand Down
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

ENV=LOCAL # for testing
DATABASE_URL=
CONTRACT=devhub.near
ROCKET_DATABASES={devhub_cache_api_rs={url="postgres://devhub_cache_api_rs:password@localhost/devhub_cache_api_rs"}}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
CONTRACT: devhub.near
DATABASE_URL: postgres://devhub_cache_api_rs:password@127.0.0.1:5432/devhub_cache_api_rs
NEARBLOCKS_API_KEY: ${{ secrets.NEARBLOCKS_API_KEY }}
ENV: GH_ACTION

- name: Run clippy and audit
run:
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ near-api = { git = "https://github.com/near/near-api-rs" }
near-jsonrpc-client = "0.14.0"
regex = "1.11.1"
base64 = "0.22.1"
futures = "0.3.31"

[features]
default = ["workspaces"]
Expand Down
5 changes: 4 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ cargo watch -q -c -w src/ -x 'run '

### Create and run migrations

*Github codespace*: If the database server is not running, you can start it by typing `sudo service postgresql start`.

```bash
sqlx migrate add <name>
```
Expand Down Expand Up @@ -56,6 +58,7 @@ fly deploy -c fly.*.toml
```



How to deploy when Starting from a blockheight. For instance templar we added proposals removed everything and rebuild it
Templar contract was deleted after https://nearblocks.io/txns/FzKXtDhvR3oFWxqDvfXNVp8HUgmcrNkYtmccEjbaFCMj this txn. So we only want to indexer after this.


75 changes: 0 additions & 75 deletions src/api_background_service.rs

This file was deleted.

Loading
Loading