Skip to content

Commit

Permalink
feat: Lower concurrency in lambda core monitoring (#1886)
Browse files Browse the repository at this point in the history
* feat: use multicall for lambda core monitoring and single data-service-id per lambda

* feat: add monitoring_core module

* fix: yarn.lock

* feat: remove extra rpc urls from primary demo node 1 (that was used for testing thesis)

* fix: add rpc_urls

* fixes

* fix: remove lambda-dist

* fix: .env.example

* wip

* wip;

* feat: refactor terraform to single module declaration

* fix: remove lambda-dist

* fix: disable test for big data packages && pre-compute parameters instead fetching them from contract

* feat: update version on dev

* fix: avalanche demo contract

* fix: review
  • Loading branch information
koonopek authored Feb 7, 2024
1 parent ba5cfdb commit dcc95a8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ contract AvalancheDemoConsumerBase is RedstoneConsumerNumericBase {
) public view virtual override returns (uint8) {
if (signerAddress == 0x3a7d971De367FE15D164CDD952F64205F2D9f10c) {
return 0;
} else if (signerAddress == 0x41ed5321B76C045f5439eCf9e73F96c6c25B1D75) {
return 1;
} else {
revert SignerNotAuthorised(signerAddress);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/src/ISafeNumber/JsNativeSafeNumber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const JsNativeSafeNumberConfig = {
throw new Error(msg);
},
[NumberValidationResult.isOverflow]: console.error,
[NumberValidationResult.isUnderflow]: console.error,
[NumberValidationResult.isUnderflow]: () => {},
} as Record<NumberValidationError, (msg: string) => unknown>,
EPSILON: 1e-14,
};
Expand Down
2 changes: 2 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6867,9 +6867,11 @@ __metadata:
"@redstone-finance/lambda-common": "npm:^0.3.6"
"@redstone-finance/rpc-providers": "npm:^0.3.6"
"@redstone-finance/sdk": "npm:^0.3.6"
"@redstone-finance/utils": "npm:^0.3.6"
"@types/aws-lambda": "npm:^8.10.128"
axios: "npm:^1.6.2"
ethers: "npm:^5.7.2"
zod: "npm:^3.22.4"
languageName: unknown
linkType: soft

Expand Down

0 comments on commit dcc95a8

Please sign in to comment.