Skip to content

Commit

Permalink
Merge branch 'integrate-binance' into 'dev'
Browse files Browse the repository at this point in the history
integrate binance

See merge request ergo/rosen-bridge/guard-service!398
  • Loading branch information
vorujack committed Nov 8, 2024
2 parents f671e8d + 31d893b commit 4a64862
Show file tree
Hide file tree
Showing 13 changed files with 418 additions and 94 deletions.
5 changes: 5 additions & 0 deletions .changeset/large-dots-drop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'guard-service': major
---

integrate binance
27 changes: 27 additions & 0 deletions config/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,27 @@ api:
isManualTxRequestActive: false
allowedOrigins: [] # List of allowed origins for CORS headers
maxRequestsPerMinute: 100_000
binance:
networkType: 'mainnet' # Binance network type [testnet, mainnet]
chainNetwork: 'rpc' # 'rpc'
rpc:
url: ''
timeout: 8
initialHeight: -1
scannerInterval: 10
maxParallelTx: 2 # maximum number of txs to be processed with the same nonce (note that only one of these transactions will be succeed)
gasPriceSlippage: 50 # allowed slippage percentage for gas price
gasLimitSlippage: 50 # allowed slippage percentage for gas limit
gasLimitMultiplier: 3 # a multiplication of current gas limit will be used in txs
gasLimitCap: 80000 # the maximum required gas limit that is allowed (the cap is used if required gas is higher)
confirmation: # required block confirmation
observation: 200 # an observation transaction (lock transaction) on Binance get confirmed
payment: 200 # a payment transaction on Binance get confirmed
cold: 200 # a cold storage transaction on Binance get confirmed
manual: 200 # a manual transaction on Binance get confirmed
tssChainCode: ''
derivationPath:
-
bitcoin:
networkType: 'mainnet' # Bitcoin network type [testnet, mainnet]
chainNetwork: 'esplora' # 'esplora'
Expand Down Expand Up @@ -171,12 +192,18 @@ healthCheck:
eth:
warnThreshold: '20000000000000000' # minimum recommended eth balance
criticalThreshold: '4000000000000000' # minimum required eth balance
bnb:
warnThreshold: '5000000000000000' # minimum recommended bnb balance
criticalThreshold: '1000000000000000' # minimum required bnb balance
ergoScanner:
warnDifference: 5 # warning difference between existing and scanned blocks height
criticalDifference: 20 # critical difference between existing and scanned blocks height
ethereumScanner:
warnDifference: 50 # warning difference between existing and scanned blocks height
criticalDifference: 200 # critical difference between existing and scanned blocks height
binanceScanner:
warnDifference: 200 # warning difference between existing and scanned blocks height
criticalDifference: 800 # critical difference between existing and scanned blocks height
ergoNode:
maxHeightDifference: 2 # maximum difference between header height and full height
maxBlockTime: 1800 # maximum time to see a new block
Expand Down
13 changes: 13 additions & 0 deletions config/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@
api:
isManualTxRequestActive: true
apiKeyHash: '324dcf027dd4a30a932c441f365a25e86b173defa4b8e58948253471b81b72cf'
binance:
networkType: 'testnet'
chainNetwork: 'rpc'
rpc:
url: ''
timeout: 8
initialHeight: 1000000
tssChainCode: 'BinanceChainCode'
derivationPath:
- 44
- 60
- 0
- 0
bitcoin:
networkType: 'testnet'
chainNetwork: 'esplora'
Expand Down
3 changes: 3 additions & 0 deletions docker/custom-environment-variables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,8 @@ cardano:
ethereum:
rpc:
authToken: 'ETHEREUM_RPC_AUTH_TOKEN'
binance:
rpc:
authToken: 'BINANCE_RPC_AUTH_TOKEN'
overrideLokiBasicAuth: 'OVERRIDE_LOKI_BASIC_AUTH'
discordWebHookUrl: 'DISCORD_WEBHOOK_URL'
147 changes: 71 additions & 76 deletions package-lock.json

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

Loading

0 comments on commit 4a64862

Please sign in to comment.