Skip to content

Commit

Permalink
Merge pull request #1 from rarimo/feature/upgrade-v1.0.8
Browse files Browse the repository at this point in the history
Feature: Core upgrade v1.1.0
  • Loading branch information
olegfomenko authored Nov 24, 2023
2 parents b24bb68 + 79714ca commit ef6e411
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 61 deletions.
59 changes: 52 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,62 @@
# broadcaster-svc

An auxiliary service designed to efficiently store events from different blockchains into the rarimo-core, utilizing queuing mechanism.
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

## Build
An auxiliary service designed to efficiently store events from different blockchains into the rarimo-core, utilizing
queuing mechanism. Frequently used in a couple with *-saver services to submit their transactions.

To build the service image locally, there is a shell script `build.sh` that can be used to build the image:
## Build

```bash
sh build.sh
To build the service image locally execute the following command (make sure shat project root contains the vendor package):
```shell
docker build . -t broadcaster-svc:latest
```

It will build the image with the tag `broadcaster:latest` which could be used to run the service locally via
Docker or Docker-Compose.

## License
[MIT](./LICENSE)
Also, use the following command to build the binary:
```shell
go build .
```

## Configuration

The following configuration .yaml file should be provided to launch your broadcaster service:
```yaml
log:
disable_sentry: true
level: debug

listener:
addr: :80

## PostgreSQL database connection
db:
url: "postgres://broadcaster:broadcaster@broadcaster-db/broadcaster?sslmode=disable"

key:
## Sender Rarimo private key in 0x.. hex format
sender_prv_hex: "0x9...caa"
chain_id: "rarimo_201411-2"
# Base coin name to pay fee with
coin_name: "urmo"

cosmos:
addr: "validator:9090"

```

You will also need some environment variables to run:

```yaml
- name: KV_VIPER_FILE
value: /config/config.yaml # The path to your config file
```
## Run
To start the service (in vote mode) use the following command:
```shell
evm-identity-saver-svc run state-update-voter
```

1 change: 0 additions & 1 deletion build.sh

This file was deleted.

38 changes: 19 additions & 19 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ require (
github.com/ethereum/go-ethereum v1.10.26
github.com/gogo/protobuf v1.3.3
github.com/ignite/cli v0.26.1
github.com/rarimo/rarimo-core v0.0.0-20231004132456-b86575c7f20a
github.com/rarimo/rarimo-core v1.0.7-0.20231123231906-566dc0033e75
github.com/rubenv/sql-migrate v1.2.0
gitlab.com/distributed_lab/figure v2.1.0+incompatible
gitlab.com/distributed_lab/kit v1.11.1
gitlab.com/distributed_lab/logan v3.8.1+incompatible
gitlab.com/distributed_lab/running v0.0.0-20200706131153-4af0e83eb96c
google.golang.org/grpc v1.58.0
google.golang.org/grpc v1.59.0
)

require (
cloud.google.com/go v0.110.6 // indirect
cloud.google.com/go/compute v1.23.0 // indirect
cloud.google.com/go v0.110.9 // indirect
cloud.google.com/go/compute v1.23.2 // indirect
cloud.google.com/go/compute/metadata v0.2.3 // indirect
cloud.google.com/go/iam v1.1.1 // indirect
cloud.google.com/go/iam v1.1.4 // indirect
cloud.google.com/go/storage v1.30.1 // indirect
cosmossdk.io/errors v1.0.0-beta.7 // indirect
cosmossdk.io/math v1.0.1 // indirect
Expand Down Expand Up @@ -86,12 +86,12 @@ require (
github.com/golang/protobuf v1.5.3 // indirect
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect
github.com/google/btree v1.1.2 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/orderedcode v0.0.1 // indirect
github.com/google/s2a-go v0.1.4 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect
github.com/googleapis/gax-go/v2 v2.11.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.2.4 // indirect
github.com/googleapis/gax-go/v2 v2.12.0 // indirect
github.com/gorilla/handlers v1.5.1 // indirect
github.com/gorilla/mux v1.8.0 // indirect
github.com/gorilla/websocket v1.5.0 // indirect
Expand Down Expand Up @@ -182,20 +182,20 @@ require (
github.com/zondax/ledger-go v0.14.1 // indirect
go.etcd.io/bbolt v1.3.6 // indirect
go.opencensus.io v0.24.0 // indirect
golang.org/x/crypto v0.13.0 // indirect
golang.org/x/crypto v0.14.0 // indirect
golang.org/x/exp v0.0.0-20230206171751-46f607a40771 // indirect
golang.org/x/net v0.15.0 // indirect
golang.org/x/oauth2 v0.12.0 // indirect
golang.org/x/sync v0.2.0 // indirect
golang.org/x/sys v0.12.0 // indirect
golang.org/x/term v0.12.0 // indirect
golang.org/x/text v0.13.0 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/oauth2 v0.13.0 // indirect
golang.org/x/sync v0.3.0 // indirect
golang.org/x/sys v0.13.0 // indirect
golang.org/x/term v0.13.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/api v0.126.0 // indirect
google.golang.org/api v0.128.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20230803162519-f966b187b2e5 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // indirect
google.golang.org/genproto v0.0.0-20231030173426-d783a09b4405 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
Expand Down
Loading

0 comments on commit ef6e411

Please sign in to comment.