Skip to content

Commit

Permalink
Feat/support event db mgr (#582)
Browse files Browse the repository at this point in the history
* feat: add doc store

* feat: add index

* test: add index test case

* fix: update the error report

* feat: upgrade version

* fix: revert the key and case

* feat: add delete event db

* fix: revert evm key

* fix: fix the meta and reconnect bug

* feat: update docker release cd

* feat: update the readme

* feat: update release
  • Loading branch information
imotai committed Jul 27, 2023
1 parent 769d214 commit cf5c8d9
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 21 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/cd.yml
Expand Up @@ -32,14 +32,15 @@ jobs:
- name: Setup build env
run: |
ROOT_DIR=`pwd`
sudo apt-get install protobuf-compiler
cargo install cargo-edit
cd ${ROOT_DIR}/metadata && yarn install && npx hardhat compile
test -e ${ROOT_DIR}/metadata/artifacts/contracts/DB3MetaStore.sol/DB3MetaStore.json && cp -f ${ROOT_DIR}/metadata/artifacts/contracts/DB3MetaStore.sol/DB3MetaStore.json ${ROOT_DIR}/abi/
if [[ ${{ matrix.job.target }} == x86_64-unknown-linux-gnu ]]; then
sudo apt-get install protobuf-compiler
fi
if [[ ${{ matrix.job.target }} == x86_64-apple-darwin ]]; then
brew install protobuf
fi
test -e ${ROOT_DIR}/metadata/artifacts/contracts/libraries/Events.sol/Events.json && cp -f ${ROOT_DIR}/metadata/artifacts/contracts/libraries/Events.sol/Events.json ${ROOT_DIR}/abi/
cd ${ROOT_DIR}
TAG=${GITHUB_REF/refs\/tags\//}
VERSION=${TAG#*v}
cargo set-version --workspace ${VERSION}
- name: Cargo build
uses: actions-rs/cargo@v1
with:
Expand All @@ -51,17 +52,14 @@ jobs:
shell: bash
run: |
cd target/${{ matrix.job.target }}/release
TAG=${GITHUB_REF/refs\/tags\//}
VERSION=${TAG#*v}
RELEASE_NAME=db3-${GITHUB_REF/refs\/tags\//}-${{ matrix.job.os-name }}-${{ matrix.job.architecture }}
mkdir -p $RELEASE_NAME/bin
DB3_BINARY_NAME=db3
mv $DB3_BINARY_NAME $TM_BINARY_NAME $RELEASE_NAME/bin/
tar czvf $RELEASE_NAME.tar.gz $RELEASE_NAME
########## create sha256 ##########
if [[ ${{ runner.os }} == 'Windows' ]]; then
certutil -hashfile $RELEASE_NAME.tar.gz sha256 | grep -E [A-Fa-f0-9]{64} > $RELEASE_NAME.sha256
else
shasum -a 256 $RELEASE_NAME.tar.gz > $RELEASE_NAME.sha256
fi
shasum -a 256 $RELEASE_NAME.tar.gz > $RELEASE_NAME.sha256
- name: Releasing assets
uses: softprops/action-gh-release@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion src/base/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "db3-base"
version = "0.4.0"
version = "0.4.2"
edition = "2021"
authors = ["jack wang <jackwang@db3.network>"]
description = "base module of db3"
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "db3-cmd"
version = "0.4.0"
version = "0.4.2"
edition = "2021"
authors = ["jack wang <jackwang@db3.network>"]
description = "cmd module of db3"
Expand Down
2 changes: 1 addition & 1 deletion src/crypto/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "db3-crypto"
version = "0.4.0"
version = "0.4.2"
edition = "2021"
authors = ["jack wang <jackwang@db3.network>"]
description = "crypto module of db3"
Expand Down
2 changes: 1 addition & 1 deletion src/error/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "db3-error"
version = "0.1.0"
version = "0.4.2"
edition = "2021"
authors = ["jack wang <jackwang@db3.network>"]
description = "error module of db3"
Expand Down
2 changes: 1 addition & 1 deletion src/event/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "db3-event"
version = "0.4.0"
version = "0.4.2"
edition = "2021"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion src/node/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "db3-node"
version = "0.4.0"
version = "0.4.2"
edition = "2021"

[[bin]]
Expand Down
2 changes: 1 addition & 1 deletion src/proto/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "db3-proto"
version = "0.4.0"
version = "0.4.2"
edition = "2021"
authors = ["jack wang <jackwang@db3.network>"]
description = "proto module of db3"
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "db3-sdk"
version = "0.4.0"
version = "0.4.2"
edition = "2021"
authors = ["jack wang <jackwang@db3.network>"]
description = "sdk module of db3"
Expand Down
2 changes: 1 addition & 1 deletion src/storage/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "db3-storage"
version = "0.4.0"
version = "0.4.2"
edition = "2021"
authors = ["jack wang <jackwang@db3.network>"]
description = "storage module of db3"
Expand Down

0 comments on commit cf5c8d9

Please sign in to comment.