Skip to content

Commit

Permalink
Merge pull request #292 from umbrella-network/hotfix/5.12.0
Browse files Browse the repository at this point in the history
[5.12.0] scanning setup for rootstock
  • Loading branch information
DZariusz authored Apr 5, 2024
2 parents c071587 + 6145bd4 commit c922b93
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## Unreleased

## [5.12.0] - 2024-04-04
### Added
- scanning setup for rootstock

## [5.11.1] - 2024-03-13
### Fixed
- fix `prevPrice` in reports
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sanctuary",
"version": "5.11.1",
"version": "5.12.0",
"repository": {
"type": "git",
"url": "git+https://github.com/umbrella-network/sanctuary.git"
Expand Down
9 changes: 9 additions & 0 deletions src/config/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,15 @@ const settings: Settings = {
providerUrl: process.env.POLYGON_SCANNER_PROVIDER_URL, // we can't have default providers set up
contractRegistryAddress: process.env.POLYGON_REGISTRY_CONTRACT_ADDRESS,
},
rootstock: {
startBlockNumber: parseInt(process.env.ROOTSTOCK_SCANNER_START_BLOCK_NUMBER || '0', 10),
scanBatchSize: parseInt(process.env.ROOTSTOCK_BLOCK_SCAN_BATCH_SIZE || '1000', 10),
fetchBlocksBatchSize: parseInt(process.env.ROOTSTOCK_SCANNER_FETCH_BLOCKS_BATCH || '100', 10),
maxRequestConcurrency: parseInt(process.env.ROOTSTOCK_MAX_REQUEST_CONCURRENCY || '10', 10),
confirmations: parseInt(process.env.ROOTSTOCK_BLOCK_CONFIRMATIONS || '15', 10),
providerUrl: process.env.ROOTSTOCK_SCANNER_PROVIDER_URL, // we can't have default providers set up
contractRegistryAddress: process.env.ROOTSTOCK_REGISTRY_CONTRACT_ADDRESS,
},
},
multiChains: {
bsc: {
Expand Down
1 change: 1 addition & 0 deletions src/types/Settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ type Settings = {
linea: OnChainScannerSettings;
base: OnChainScannerSettings;
polygon: OnChainScannerSettings;
rootstock: OnChainScannerSettings;
};
multiChains: {
bsc: BlockchainSettings;
Expand Down

0 comments on commit c922b93

Please sign in to comment.