Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
Compatability w/ v0.23.0 (#18)
Browse files Browse the repository at this point in the history
Co-authored-by: sleepy ramen <[email protected]>
  • Loading branch information
bengtlofgren and rllola authored Oct 11, 2023
1 parent 5c80541 commit 278c5af
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 49 deletions.
63 changes: 21 additions & 42 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ path = "src/bin/indexer.rs"
[dependencies]
getrandom = { version = "0.2" }
async-trait = "0.1.51"
namada = { git = "https://github.com/anoma/namada", tag="v0.21.1", default-features = false, features = ["abciplus", "namada-sdk", "http-client"] }
namada = { git = "https://github.com/anoma/namada", tag="v0.23.0", default-features = false, features = ["abciplus", "namada-sdk", "http-client"] }
rand = {version = "0.8", default-features = false}
rand_core = {version = "0.6", default-features = false}
tokio = {version = "1.26.0", features = ["rt-multi-thread"]}
Expand Down
21 changes: 17 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

NAMADA_VERSION := 0.21.1
NAMADA_VERSION := 0.23.0
BASE_URL := https://raw.githubusercontent.com/anoma/namada
URL := $(BASE_URL)/v$(NAMADA_VERSION)/wasm/checksums.json

Expand All @@ -15,16 +15,29 @@ else
$(error Neither curl nor wget are available on your system)
endif

# Determine the OS and set the appropriate value for OS
UNAME := $(shell uname)
ifeq ($(UNAME),Linux)
OS := linux
endif
ifeq ($(UNAME),Darwin)
OS := osx
endif

# Set a default value for OS if it's not recognized
OS ?= linux

download-checksum:
@if [ ! -f checksums.json ]; then \
echo $(URL); \
$(DOWNLOAD_CMD) checksums.json $(URL); \
fi

install-deps:
# We need a specific protoc version
$(DOWNLOAD_CMD) https://github.com/protocolbuffers/protobuf/releases/download/v3.16.3/protoc-3.16.3-linux-x86_64.zip
unzip protoc-3.16.3-linux-x86_64.zip -d ./protoc
# Use OS variable in the download URL and unzip command
$(DOWNLOAD_CMD) https://github.com/protocolbuffers/protobuf/releases/download/v3.16.3/protoc-3.16.3-$(OS)-x86_64.zip
unzip protoc-3.16.3-$(OS)-x86_64.zip -d ./protoc


postgres:
docker run --name postgres -e POSTGRES_PASSWORD=wow -e POSTGRES_DB=blockchain -p 5432:5432 -d postgres
Expand Down
4 changes: 2 additions & 2 deletions config/Settings.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
log_level = "info"
network = "public-testnet-12"
network = "public-testnet-14"

[database]
host = "postgres"
host = "localhost"
user = "postgres"
password = "wow"
dbname = "blockchain"
Expand Down

0 comments on commit 278c5af

Please sign in to comment.