Skip to content

Releases: debridge-finance/debridge-launcher

v2.6.1

27 Jun 11:13
6122674
Compare
Choose a tag to compare

What's Changed

Solana Reader Update:

Transitioned from TypeScript Solana Reader API to Rust Solana Reader for more optimized and efficient operations. This service connects to websocket and makes periodic requests for all transactions associated with certain accounts debridge solana program (this process is called resync). It saves the received events to the database. It saves all events, validations occur at the level of sending events to the grpc service.

Solana Reader Communication:

Implemented gRPC service for communication with Debridge node. This service connect to database, validate & present events in public API.

What's Changed

Full Changelog: v2.5.7...v2.6.1

How to update to v2.6.1

Pull latest changes

git checkout mainnet
git pull origin mainnet

Update env

Add new variables

# provide sentry dsn for Solana events reader *optional
DEBRIDGE_EVENTS_SENTRY_DSN=

POSTGRES_SOLANA_READER_DATABASE=solana${PG_RANDOM_ID}
DEBRIDGE_PROGRAM_PUBKEY=DEbrdGj3HsRsAzx6uH4MKyREKxVAfBydijLUF3ygsFfh
DEBRIDGE_SETTINGS_PROGRAM_PUBKEY=DeSetTwWhjZq6Pz9Kfdo1KoS5NqtsM6G8ERbX4SSCSft

RUST_LOG=info,tokio_util=warn,hyper=warn

# TODO: update with your RPC HTTP
DEBRIDGE_EVENTS_SOLANA_CLUSTER=
# TODO: update with your RPC WSS
DEBRIDGE_EVENTS_SOLANA_WEBSOCKET_CLUSTER=
# Count of transaction processing in one task
#
# Strongly affects the number of requests to RPC in same time
# The larger the number, the fewer parallel requests, 
# the more - the more asynchronous tasks with parallel processing
DEBRIDGE_EVENTS_RESYNC_SIGNATURES_CHUNK_SIZE=5
# In case of Solana RPC errors, there is an additional check that no events
# have been missed. This timeout determines how often service do this check.
#
#Param is optional
DEBRIDGE_EVENTS_CONSISTENCY_CHECK_TIMEOUT_SECS=10
# Time to requery data from the database for stream subscribers
# Can be left at default (1 second).
# If the number of subscribers is large, it should be reduced to control the load on the database
#
#Param is optional
DEBRIDGE_EVENTS_DB_REQUERY_TIMEOUT_IN_SEC=5
# Time to hearbeat
# Can be left at default (5 second).
# How often will this service send the current status of the service, even in the absence of events
DEBRIDGE_EVENTS_HEARTBEAT_TIMEOUT_IN_SEC=30

SOLANA_GRPC_SERVICE_URL=solana-grpc-service${DOCKER_ID}:7777
DEBRIDGE_SOLANA_EVENTS_PSQL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_SOLANA_READER_DATABASE}

Delete old variables

SOLANA_DATA_READER_PORT
SOLANA_RPC
DEBRIDGE_PK
SETTINGS_PK
SOLANA_DATA_READER_API_BASE_URL
SOLANA_DATA_READER_API_SENTRY_DSN
SOLANA_GET_HISTORICAL_BATCH_SIZE
SOLANA_GET_EVENTS_BATCH_SIZE
SOLANA_API_REQUEST_TIMEOUT
SOLANA_API_WAIT_BATCH_INTERVAL

Create new database "solana_0" (name of db set in .env solana${PG_RANDOM_ID}) for solana-events-reader

  1. First, you need to get into the Docker container's shell. You can do that with the following command:
    bash
docker exec -it <container-id-or-name> bash

Replace with your container's ID or name.

  1. Once you're inside the container, you can connect to the PostgreSQL server using the psql command-line interface:
    bash
psql -U <username> -d <database>

Replace with the PostgreSQL username (e.g., postgres), and with the name of an existing database (e.g., postgres).

  1. Now that you're connected to the PostgreSQL server, you can execute your CREATE DATABASE command:
    sql
CREATE DATABASE solana_0;

Apply changes

docker-compose up -d 

v2.6.0 Updated to rust Solana events reader

22 Jun 21:18
417c71c
Compare
Choose a tag to compare

What's Changed

Solana Reader Update:

Transitioned from TypeScript Solana Reader API to Rust Solana Reader for more optimized and efficient operations. This service connects to websocket and makes periodic requests for all transactions associated with certain accounts debridge solana program (this process is called resync). It saves the received events to the database. It saves all events, validations occur at the level of sending events to the grpc service.

Solana Reader Communication:

Implemented gRPC service for communication with Debridge node. This service connect to database, validate & present events in public API.

  • v2.6.0 Updated to rust Solana events reader by @artyukh in #126

Full Changelog: v2.5.7...v2.6.0

How to update to v2.6.0

Pull latest changes

git checkout mainnet
git pull origin mainnet

Update env

Add new variables

POSTGRES_SOLANA_READER_DATABASE=solana${PG_RANDOM_ID}
DEBRIDGE_PROGRAM_PUBKEY=DEbrdGj3HsRsAzx6uH4MKyREKxVAfBydijLUF3ygsFfh
DEBRIDGE_SETTINGS_PROGRAM_PUBKEY=DeSetTwWhjZq6Pz9Kfdo1KoS5NqtsM6G8ERbX4SSCSft

RUST_LOG=info,tokio_util=warn,hyper=warn

# TODO: update with your RPC HTTP
DEBRIDGE_EVENTS_SOLANA_CLUSTER=
# TODO: update with your RPC WSS
DEBRIDGE_EVENTS_SOLANA_WEBSOCKET_CLUSTER=
# Count of transaction processing in one task
#
# Strongly affects the number of requests to RPC in same time
# The larger the number, the fewer parallel requests, 
# the more - the more asynchronous tasks with parallel processing
DEBRIDGE_EVENTS_RESYNC_SIGNATURES_CHUNK_SIZE=5
# In case of Solana RPC errors, there is an additional check that no events
# have been missed. This timeout determines how often service do this check.
#
#Param is optional
DEBRIDGE_EVENTS_CONSISTENCY_CHECK_TIMEOUT_SECS=10
# Time to requery data from the database for stream subscribers
# Can be left at default (1 second).
# If the number of subscribers is large, it should be reduced to control the load on the database
#
#Param is optional
DEBRIDGE_EVENTS_DB_REQUERY_TIMEOUT_IN_SEC=5
# Time to hearbeat
# Can be left at default (5 second).
# How often will this service send the current status of the service, even in the absence of events
DEBRIDGE_EVENTS_HEARTBEAT_TIMEOUT_IN_SEC=30

SOLANA_GRPC_SERVICE_URL=solana-grpc-service${DOCKER_ID}:7777
DEBRIDGE_SOLANA_EVENTS_PSQL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_SOLANA_READER_DATABASE}

Delete old variables

SOLANA_DATA_READER_PORT
SOLANA_RPC
DEBRIDGE_PK
SETTINGS_PK
SOLANA_DATA_READER_API_BASE_URL
SOLANA_DATA_READER_API_SENTRY_DSN
SOLANA_GET_HISTORICAL_BATCH_SIZE
SOLANA_GET_EVENTS_BATCH_SIZE
SOLANA_API_REQUEST_TIMEOUT
SOLANA_API_WAIT_BATCH_INTERVAL

Create new database "solana_0" (name of db set in .env solana${PG_RANDOM_ID}) for solana-events-reader

  1. First, you need to get into the Docker container's shell. You can do that with the following command:
    bash
docker exec -it <container-id-or-name> bash

Replace with your container's ID or name.

  1. Once you're inside the container, you can connect to the PostgreSQL server using the psql command-line interface:
    bash
psql -U <username> -d <database>

Replace with the PostgreSQL username (e.g., postgres), and with the name of an existing database (e.g., postgres).

  1. Now that you're connected to the PostgreSQL server, you can execute your CREATE DATABASE command:
    sql
CREATE DATABASE solana_0;

Apply changes

docker-compose up -d 

v2.5.7 Upload signatures to arweave

24 Apr 22:49
Compare
Choose a tag to compare

What's Changed

deBridge Node allows to save signatures on the Arweave network. To enable this feature, you need to generate an Arweave wallet. Although it is possible to use the service with a zero balance, we recommend refilling your balance with at least 1 arweave.

How to update to v2.5.7

Pull latest changes

git checkout mainnet
git pull origin mainnet

Generate bundlr wallet

cd generate-arweave-wallet
npm i
node index.js

Copy private key to secrets/bundlr_wallet.json

Add to env

BUNDLR_NODE=http://node2.bundlr.network

Full Changelog: v2.4.8-hf...v2.5.7

v2.4.8-hf up version solana-events-reader-api to 1.1.4

27 Jan 16:55
70cd0f7
Compare
Choose a tag to compare

What's Changed

  • up version solana-events-reader-api:1.1.4 by @artyukh in #125

Full Changelog: v2.4.8...v2.4.8-hf

2.4.8 Fix send version of debridge-node to API

21 Dec 16:46
Compare
Choose a tag to compare

2.4.7 Optimization of solana parser

20 Dec 16:17
Compare
Choose a tag to compare

Changelog

v2.4.7

  • add support running without deBridge api (set empty API_BASE_URL on env)
  • change Solana sync algorithm (save intermediate progress, wait SOLANA_API_WAIT_BATCH_INTERVAL between batch requests)
  • update Solana reader to v1.1.3
  • up packages and node to 18.12-alpine

How to update to v2.4.7

Pull latest changes

git checkout mainnet
git pull origin mainnet

Add to env

SOLANA_API_WAIT_BATCH_INTERVAL=1000

2.3.3 Added Solana support

20 Dec 16:11
e4ee309
Compare
Choose a tag to compare

v2.3.3(05.08.2022)

  • fix check new assets for solana
  • up solana reader version

How to update to v2.3.3

Pull latest changes

git checkout mainnet
git pull origin mainnet

v2.3.2(12.07.2022)

  • add solana support
  • refactoring
  • update packages
  • add http request/response logging for external service
  • add checking .env

How to update to v2.3.2

1. Pull latest changes

git checkout mainnet
git pull origin mainnet

2. Add to env

SOLANA_DATA_READER_PORT=3007
SOLANA_RPC=
DEBRIDGE_PK=
SETTINGS_PK=
SOLANA_DATA_READER_API_BASE_URL=http://debridge-solanadatareader${DOCKER_ID}:${SOLANA_DATA_READER_PORT}
SOLANA_DATA_READER_API_SENTRY_DSN=
SOLANA_GET_HISTORICAL_BATCH_SIZE=200
SOLANA_GET_EVENTS_BATCH_SIZE=200
SOLANA_API_REQUEST_TIMEOUT=30000

3. Add to array in config/chains_config.json

{
"chainId": 7565164,
"name": "SOLANA",
"debridgeAddr": "",
"firstStartBlock": 0,
"provider": "",
"interval": 10000,
"blockConfirmation": 0,
"maxBlockRange": 0
}

Not used next properties: provider, blockConfirmation, maxBlockRange, debridgeAddr. Keep it in json to consistency data.

4. Run debridge-node

docker-compose up -d 

v2.2.2

23 Mar 07:47
053a6eb
Compare
Choose a tag to compare

What's Changed

  • fix memory leak issue
  • don't exit if there are no valid rpc's for the chain
  • add unit tests

Full Changelog: v2.2.1...v2.2.2

How to update to v2.2.2

Pull latest changes

git checkout mainnet
git pull origin mainnet

Run debridge-node

docker-compose up -d --build --remove-orphans

v2.2.1

15 Mar 22:46
5459e42
Compare
Choose a tag to compare

What's Changed

  • fixed nonce validation for historical data

Full Changelog: v2.2.0...v2.2.1

How to update to v2.2.1

Pull latest changes

git checkout mainnet
git pull origin mainnet

Run debridge-node

docker-compose up -d --build --remove-orphans

v2.2.0

14 Mar 19:43
8abf027
Compare
Choose a tag to compare

What's Changed

  • changed deployId calculation formula

Full Changelog: v2.1.1...v2.2.0

How to update to v2.2.0

git checkout mainnet
git pull origin mainnet

Run debridge-node

docker-compose up -d --build --remove-orphans

Regenerate signatures for deployed tokens in the postgres.

# get postgres container IPAddress
docker inspect postgres_0 | grep "IPAddress"

# run psql with given IPAddress, 
psql -h IPAddress -U postgres 

# connect to the ei_0 database
\c ei_0

Execute sql scripts:

DELETE FROM "confirmNewAssets";

UPDATE "submissions" SET "assetsStatus" = 1;

update to v2.2.0