Compare commits

...

2 Commits
v0.2.0 ... dev

Author SHA1 Message Date
ce717930c6 Mock ship keys for usage in e2e tests (#9)
All checks were successful
Publish azimuth-watcher docker image on release / Run docker build and publish (release) Successful in 2m31s
Part of https://plan.wireit.in/deepstack/browse/VUL-294/

Reviewed-on: #9
Co-authored-by: Shreerang Kale <shree@deepstacksoft.com>
Co-committed-by: Shreerang Kale <shree@deepstacksoft.com>
2025-11-28 10:07:58 +00:00
699bf8ee9f Upgrade watcher-ts packages to fix block processing (#8)
All checks were successful
Publish azimuth-watcher docker image on release / Run docker build and publish (release) Successful in 4m52s
Part of milestone 6 (Testnet)

Reviewed-on: #8
Co-authored-by: Nabarun <nabarun@deepstacksoft.com>
Co-committed-by: Nabarun <nabarun@deepstacksoft.com>
2025-11-18 10:05:50 +00:00
13 changed files with 119 additions and 82 deletions

View File

@ -3,6 +3,6 @@
"packages/*"
],
"useWorkspaces": true,
"version": "0.2.0",
"version": "0.2.1",
"npmClient": "yarn"
}

View File

@ -30,6 +30,9 @@
# Flag to enable injecting mock events for testing
enableMockEvents = false
# Flag to enable mocking ship keys for testing
enableMockShipKeys = false
# GQL cache settings
[server.gql.cache]
enabled = true

View File

@ -1,6 +1,6 @@
{
"name": "@cerc-io/azimuth-watcher",
"version": "0.2.0",
"version": "0.2.1",
"description": "azimuth-watcher",
"private": true,
"main": "dist/index.js",
@ -39,10 +39,10 @@
"homepage": "https://github.com/cerc-io/watcher-ts#readme",
"dependencies": {
"@apollo/client": "^3.3.19",
"@cerc-io/cli": "0.2.98-patch.4",
"@cerc-io/ipld-eth-client": "0.2.98-patch.4",
"@cerc-io/solidity-mapper": "0.2.98-patch.4",
"@cerc-io/util": "0.2.98-patch.4",
"@cerc-io/cli": "0.2.98-patch.5",
"@cerc-io/ipld-eth-client": "0.2.98-patch.5",
"@cerc-io/solidity-mapper": "0.2.98-patch.5",
"@cerc-io/util": "0.2.98-patch.5",
"@ethersproject/providers": "^5.4.4",
"debug": "^4.3.1",
"decimal.js": "^10.3.1",

View File

@ -27,6 +27,12 @@ import { mockEventStore, MockEventInput } from './mock-event-store';
const log = debug('vulcanize:resolver');
// Mock ship keys environment variables
const TEST_MOCK_POINT = process.env.TEST_MOCK_POINT;
const TEST_MOCK_ENCRYPTION_KEY = process.env.TEST_MOCK_ENCRYPTION_KEY;
const TEST_MOCK_AUTHENTICATION_KEY = process.env.TEST_MOCK_AUTHENTICATION_KEY;
const TEST_MOCK_LIFE = process.env.TEST_MOCK_LIFE;
const executeAndRecordMetrics = async (
indexer: Indexer,
gqlLogger: winston.Logger,
@ -80,6 +86,7 @@ export const createResolvers = async (
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const gqlConfig = indexer.serverConfig.gql;
const mockShipKeysEnabled = (gqlConfig as any).enableMockShipKeys;
return {
BigInt: GraphQLBigInt,
@ -134,6 +141,17 @@ export const createResolvers = async (
// Set cache-control hints
// setGQLCacheHints(info, {}, gqlCacheConfig);
// Check if we should return mocked active status for this point
const shouldMock = mockShipKeysEnabled && TEST_MOCK_POINT && _point === BigInt(TEST_MOCK_POINT);
if (shouldMock) {
log('isActive: returning mocked value (true) for point:', _point.toString());
return Promise.resolve({
value: true,
proof: undefined
});
}
return executeAndRecordMetrics(
indexer,
gqlLogger,
@ -156,6 +174,22 @@ export const createResolvers = async (
// Set cache-control hints
// setGQLCacheHints(info, {}, gqlCacheConfig);
// Check if we should return mocked keys for this point
const shouldMock = mockShipKeysEnabled && TEST_MOCK_POINT && _point === BigInt(TEST_MOCK_POINT);
if (shouldMock) {
log('getKeys: returning mocked keys for point:', _point.toString());
return Promise.resolve({
value: {
value0: TEST_MOCK_ENCRYPTION_KEY,
value1: TEST_MOCK_AUTHENTICATION_KEY,
value2: BigInt(0),
value3: BigInt(TEST_MOCK_LIFE ?? 1)
},
proof: undefined
});
}
return executeAndRecordMetrics(
indexer,
gqlLogger,

View File

@ -1,6 +1,6 @@
{
"name": "@cerc-io/censures-watcher",
"version": "0.2.0",
"version": "0.2.1",
"description": "censures-watcher",
"private": true,
"main": "dist/index.js",
@ -39,10 +39,10 @@
"homepage": "https://github.com/cerc-io/watcher-ts#readme",
"dependencies": {
"@apollo/client": "^3.3.19",
"@cerc-io/cli": "0.2.98-patch.4",
"@cerc-io/ipld-eth-client": "0.2.98-patch.4",
"@cerc-io/solidity-mapper": "0.2.98-patch.4",
"@cerc-io/util": "0.2.98-patch.4",
"@cerc-io/cli": "0.2.98-patch.5",
"@cerc-io/ipld-eth-client": "0.2.98-patch.5",
"@cerc-io/solidity-mapper": "0.2.98-patch.5",
"@cerc-io/util": "0.2.98-patch.5",
"@ethersproject/providers": "^5.4.4",
"debug": "^4.3.1",
"decimal.js": "^10.3.1",

View File

@ -1,6 +1,6 @@
{
"name": "@cerc-io/claims-watcher",
"version": "0.2.0",
"version": "0.2.1",
"description": "claims-watcher",
"private": true,
"main": "dist/index.js",
@ -39,10 +39,10 @@
"homepage": "https://github.com/cerc-io/watcher-ts#readme",
"dependencies": {
"@apollo/client": "^3.3.19",
"@cerc-io/cli": "0.2.98-patch.4",
"@cerc-io/ipld-eth-client": "0.2.98-patch.4",
"@cerc-io/solidity-mapper": "0.2.98-patch.4",
"@cerc-io/util": "0.2.98-patch.4",
"@cerc-io/cli": "0.2.98-patch.5",
"@cerc-io/ipld-eth-client": "0.2.98-patch.5",
"@cerc-io/solidity-mapper": "0.2.98-patch.5",
"@cerc-io/util": "0.2.98-patch.5",
"@ethersproject/providers": "^5.4.4",
"debug": "^4.3.1",
"decimal.js": "^10.3.1",

View File

@ -1,6 +1,6 @@
{
"name": "@cerc-io/conditional-star-release-watcher",
"version": "0.2.0",
"version": "0.2.1",
"description": "conditional-star-release-watcher",
"private": true,
"main": "dist/index.js",
@ -39,10 +39,10 @@
"homepage": "https://github.com/cerc-io/watcher-ts#readme",
"dependencies": {
"@apollo/client": "^3.3.19",
"@cerc-io/cli": "0.2.98-patch.4",
"@cerc-io/ipld-eth-client": "0.2.98-patch.4",
"@cerc-io/solidity-mapper": "0.2.98-patch.4",
"@cerc-io/util": "0.2.98-patch.4",
"@cerc-io/cli": "0.2.98-patch.5",
"@cerc-io/ipld-eth-client": "0.2.98-patch.5",
"@cerc-io/solidity-mapper": "0.2.98-patch.5",
"@cerc-io/util": "0.2.98-patch.5",
"@ethersproject/providers": "^5.4.4",
"debug": "^4.3.1",
"decimal.js": "^10.3.1",

View File

@ -1,6 +1,6 @@
{
"name": "@cerc-io/delegated-sending-watcher",
"version": "0.2.0",
"version": "0.2.1",
"description": "delegated-sending-watcher",
"private": true,
"main": "dist/index.js",
@ -39,10 +39,10 @@
"homepage": "https://github.com/cerc-io/watcher-ts#readme",
"dependencies": {
"@apollo/client": "^3.3.19",
"@cerc-io/cli": "0.2.98-patch.4",
"@cerc-io/ipld-eth-client": "0.2.98-patch.4",
"@cerc-io/solidity-mapper": "0.2.98-patch.4",
"@cerc-io/util": "0.2.98-patch.4",
"@cerc-io/cli": "0.2.98-patch.5",
"@cerc-io/ipld-eth-client": "0.2.98-patch.5",
"@cerc-io/solidity-mapper": "0.2.98-patch.5",
"@cerc-io/util": "0.2.98-patch.5",
"@ethersproject/providers": "^5.4.4",
"debug": "^4.3.1",
"decimal.js": "^10.3.1",

View File

@ -1,6 +1,6 @@
{
"name": "@cerc-io/ecliptic-watcher",
"version": "0.2.0",
"version": "0.2.1",
"description": "ecliptic-watcher",
"private": true,
"main": "dist/index.js",
@ -39,10 +39,10 @@
"homepage": "https://github.com/cerc-io/watcher-ts#readme",
"dependencies": {
"@apollo/client": "^3.3.19",
"@cerc-io/cli": "0.2.98-patch.4",
"@cerc-io/ipld-eth-client": "0.2.98-patch.4",
"@cerc-io/solidity-mapper": "0.2.98-patch.4",
"@cerc-io/util": "0.2.98-patch.4",
"@cerc-io/cli": "0.2.98-patch.5",
"@cerc-io/ipld-eth-client": "0.2.98-patch.5",
"@cerc-io/solidity-mapper": "0.2.98-patch.5",
"@cerc-io/util": "0.2.98-patch.5",
"@ethersproject/providers": "^5.4.4",
"debug": "^4.3.1",
"decimal.js": "^10.3.1",

View File

@ -1,6 +1,6 @@
{
"name": "@cerc-io/gateway-server",
"version": "0.2.0",
"version": "0.2.1",
"main": "index.js",
"license": "AGPL-3.0",
"private": true,

View File

@ -1,6 +1,6 @@
{
"name": "@cerc-io/linear-star-release-watcher",
"version": "0.2.0",
"version": "0.2.1",
"description": "linear-star-release-watcher",
"private": true,
"main": "dist/index.js",
@ -39,10 +39,10 @@
"homepage": "https://github.com/cerc-io/watcher-ts#readme",
"dependencies": {
"@apollo/client": "^3.3.19",
"@cerc-io/cli": "0.2.98-patch.4",
"@cerc-io/ipld-eth-client": "0.2.98-patch.4",
"@cerc-io/solidity-mapper": "0.2.98-patch.4",
"@cerc-io/util": "0.2.98-patch.4",
"@cerc-io/cli": "0.2.98-patch.5",
"@cerc-io/ipld-eth-client": "0.2.98-patch.5",
"@cerc-io/solidity-mapper": "0.2.98-patch.5",
"@cerc-io/util": "0.2.98-patch.5",
"@ethersproject/providers": "^5.4.4",
"debug": "^4.3.1",
"decimal.js": "^10.3.1",

View File

@ -1,6 +1,6 @@
{
"name": "@cerc-io/polls-watcher",
"version": "0.2.0",
"version": "0.2.1",
"description": "polls-watcher",
"private": true,
"main": "dist/index.js",
@ -39,10 +39,10 @@
"homepage": "https://github.com/cerc-io/watcher-ts#readme",
"dependencies": {
"@apollo/client": "^3.3.19",
"@cerc-io/cli": "0.2.98-patch.4",
"@cerc-io/ipld-eth-client": "0.2.98-patch.4",
"@cerc-io/solidity-mapper": "0.2.98-patch.4",
"@cerc-io/util": "0.2.98-patch.4",
"@cerc-io/cli": "0.2.98-patch.5",
"@cerc-io/ipld-eth-client": "0.2.98-patch.5",
"@cerc-io/solidity-mapper": "0.2.98-patch.5",
"@cerc-io/util": "0.2.98-patch.5",
"@ethersproject/providers": "^5.4.4",
"debug": "^4.3.1",
"decimal.js": "^10.3.1",

View File

@ -206,10 +206,10 @@
js-tokens "^4.0.0"
picocolors "^1.0.0"
"@cerc-io/cache@^0.2.98-patch.4":
version "0.2.98-patch.4"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fcache/-/0.2.98-patch.4/cache-0.2.98-patch.4.tgz#c8b38eb3ad86553f7db333a37692cfae0e443407"
integrity sha512-8eLb6Wrq1FL0rrqrX935HSfrMQNj1b69bozRBxMqyaFDISURIrtUOZvpnoBf9bVX8t6JQ4N/czspeualVBlykg==
"@cerc-io/cache@^0.2.98-patch.5":
version "0.2.98-patch.5"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fcache/-/0.2.98-patch.5/cache-0.2.98-patch.5.tgz#bef0af0bae4155663a0cb257740303463577fac2"
integrity sha512-9Marfx9EqJdGcvUxgJ/WjWfYIyXcMPhQoD4I+2NTmjxi/sCrSoHy9EQhIJiSfvr4YnTOn7AYFedOb+dsDKgKpQ==
dependencies:
canonical-json "^0.0.4"
debug "^4.3.1"
@ -217,19 +217,19 @@
fs-extra "^10.0.0"
level "^7.0.0"
"@cerc-io/cli@0.2.98-patch.4":
version "0.2.98-patch.4"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fcli/-/0.2.98-patch.4/cli-0.2.98-patch.4.tgz#cfbcfaf51a9debded47d97f3aee913b5a4aacb35"
integrity sha512-jVMT865Jdq8/bOHh4x6wCSyNmcWHI8VFLHhyUixWNww7ARXKZd2dT4nHrH7XBTAfslBQoPy/prCCGvlqqwAL/A==
"@cerc-io/cli@0.2.98-patch.5":
version "0.2.98-patch.5"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fcli/-/0.2.98-patch.5/cli-0.2.98-patch.5.tgz#1d06f713e61705f74e4c469b6ade9a0d436b47a5"
integrity sha512-TgYhPBk5QKVglBV/Iys/mCiDr1TmRn/ZWZBNMuamX02GTtWoSJRQIdFmqjRwVS68PB6Qkx3GzknQ177M2k8huQ==
dependencies:
"@apollo/client" "^3.7.1"
"@cerc-io/cache" "^0.2.98-patch.4"
"@cerc-io/ipld-eth-client" "^0.2.98-patch.4"
"@cerc-io/cache" "^0.2.98-patch.5"
"@cerc-io/ipld-eth-client" "^0.2.98-patch.5"
"@cerc-io/libp2p" "^0.42.2-laconic-0.1.4"
"@cerc-io/nitro-node" "^0.1.15"
"@cerc-io/peer" "^0.2.98-patch.4"
"@cerc-io/rpc-eth-client" "^0.2.98-patch.4"
"@cerc-io/util" "^0.2.98-patch.4"
"@cerc-io/peer" "^0.2.98-patch.5"
"@cerc-io/rpc-eth-client" "^0.2.98-patch.5"
"@cerc-io/util" "^0.2.98-patch.5"
"@ethersproject/providers" "^5.4.4"
"@graphql-tools/utils" "^9.1.1"
"@ipld/dag-cbor" "^8.0.0"
@ -250,14 +250,14 @@
typeorm "0.2.37"
yargs "^17.0.1"
"@cerc-io/ipld-eth-client@0.2.98-patch.4", "@cerc-io/ipld-eth-client@^0.2.98-patch.4":
version "0.2.98-patch.4"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fipld-eth-client/-/0.2.98-patch.4/ipld-eth-client-0.2.98-patch.4.tgz#7094e83edec042724ac388d9e5fb5433baa4380f"
integrity sha512-9cWAsy2GMyB6gnRXEd/vNoYMfVrGSs9Wy2O2FcpPbptNTuWH5TNo9b9QFKCwz6bqxfDG3shY4HGeksN1FS5rGQ==
"@cerc-io/ipld-eth-client@0.2.98-patch.5", "@cerc-io/ipld-eth-client@^0.2.98-patch.5":
version "0.2.98-patch.5"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fipld-eth-client/-/0.2.98-patch.5/ipld-eth-client-0.2.98-patch.5.tgz#ee123559a71ea14dbb3d27f7e9e91444372d78ac"
integrity sha512-nw3qJxI6ZQ7tyWOMWIEsthLlACucFl4oqRIX7zRYzWYhXPzF7dsmzdGlO5AubJlUIugFMfIeBr0JEvOm4stTHA==
dependencies:
"@apollo/client" "^3.7.1"
"@cerc-io/cache" "^0.2.98-patch.4"
"@cerc-io/util" "^0.2.98-patch.4"
"@cerc-io/cache" "^0.2.98-patch.5"
"@cerc-io/util" "^0.2.98-patch.5"
cross-fetch "^3.1.4"
debug "^4.3.1"
ethers "^5.4.4"
@ -410,10 +410,10 @@
unique-names-generator "^4.7.1"
yargs "^17.0.1"
"@cerc-io/peer@^0.2.98-patch.4":
version "0.2.98-patch.4"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fpeer/-/0.2.98-patch.4/peer-0.2.98-patch.4.tgz#faf8b5016fd3df0808943b617664b0961455057c"
integrity sha512-kBT2Kf8Sxg2lOyTQdqOLSV+JpLzihFYTOlwlwglsAi3EolYorXKuCsZYDMh1JAoUzKpOxaLvl/mJ2obY59tvfA==
"@cerc-io/peer@^0.2.98-patch.5":
version "0.2.98-patch.5"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fpeer/-/0.2.98-patch.5/peer-0.2.98-patch.5.tgz#fc0407b0f97f6cbe3bdfa13a06ece2b492d5efc7"
integrity sha512-/OhHNWlm9FX/44jUqGl4WjAG2GWWjClHvfGTMk/01Us4gVDUT5qgvNn3Tuw/mJLbVPibOFqyCgcbz8oDOJvBng==
dependencies:
"@cerc-io/libp2p" "^0.42.2-laconic-0.1.4"
"@cerc-io/prometheus-metrics" "1.1.4"
@ -452,23 +452,23 @@
it-stream-types "^1.0.4"
promjs "^0.4.2"
"@cerc-io/rpc-eth-client@^0.2.98-patch.4":
version "0.2.98-patch.4"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Frpc-eth-client/-/0.2.98-patch.4/rpc-eth-client-0.2.98-patch.4.tgz#2b21435b31e28212425e54b7b66cba46dd584247"
integrity sha512-teAMafFaXMu83t5oiWONhD1ezO3yw1OZBfbPp80t57ZBaLH1J+8AtMj/QG6OfEvSzG9BOar68hJHsKvdB4603A==
"@cerc-io/rpc-eth-client@^0.2.98-patch.5":
version "0.2.98-patch.5"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Frpc-eth-client/-/0.2.98-patch.5/rpc-eth-client-0.2.98-patch.5.tgz#300f7e6fd4c90c720902d3d5e118d558484cf39b"
integrity sha512-vhfUk4VpMgkY8pfooOIlHu8I5Cb9fo2bBQP1VwnGm6vj9qngsiUm3QmxDrnCWaytmN1/q/AEP9HsvgHiQDSKHQ==
dependencies:
"@cerc-io/cache" "^0.2.98-patch.4"
"@cerc-io/ipld-eth-client" "^0.2.98-patch.4"
"@cerc-io/util" "^0.2.98-patch.4"
"@cerc-io/cache" "^0.2.98-patch.5"
"@cerc-io/ipld-eth-client" "^0.2.98-patch.5"
"@cerc-io/util" "^0.2.98-patch.5"
chai "^4.3.4"
ethers "^5.4.4"
left-pad "^1.3.0"
mocha "^8.4.0"
"@cerc-io/solidity-mapper@0.2.98-patch.4", "@cerc-io/solidity-mapper@^0.2.98-patch.4":
version "0.2.98-patch.4"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fsolidity-mapper/-/0.2.98-patch.4/solidity-mapper-0.2.98-patch.4.tgz#1765162b2724db20c3cbff7e96da63aa840f0cde"
integrity sha512-Ci9CXG2tCpmpydZ10hy7V1MmGmhmgPAoIHTP4YTd9e/lH1evxowEdUeLdJL73Jki9Q6UMSNtdMVhFxDIZIuKWw==
"@cerc-io/solidity-mapper@0.2.98-patch.5", "@cerc-io/solidity-mapper@^0.2.98-patch.5":
version "0.2.98-patch.5"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fsolidity-mapper/-/0.2.98-patch.5/solidity-mapper-0.2.98-patch.5.tgz#3266b04f0c7f809dd4f331c2150ebc709f129936"
integrity sha512-YHmXvAH41Vz2fUfkPpP7VjElnGGg2QDYSt7p/teXyLMrro95rurfSkZ2K3NfCjLB9mF7LDREaiEW/+her2Xn6A==
dependencies:
dotenv "^10.0.0"
@ -477,15 +477,15 @@
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fts-channel/-/1.0.3-ts-nitro-0.1.1/ts-channel-1.0.3-ts-nitro-0.1.1.tgz#0768781313a167295c0bf21307f47e02dc17e936"
integrity sha512-2jFICUSyffuZ+8+qRhXuLSJq4GJ6Y02wxiXoubH0Kzv2lIKkJtWICY1ZQQhtXAvP0ncAQB85WJHqtqwH8l7J3Q==
"@cerc-io/util@0.2.98-patch.4", "@cerc-io/util@^0.2.98-patch.4":
version "0.2.98-patch.4"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Futil/-/0.2.98-patch.4/util-0.2.98-patch.4.tgz#97fb8e3245de661951a926763ec18f7e5be13b4b"
integrity sha512-ST4UOXbYUYo6ClUW1Oh/hPxxtm9QTEz2HUoxrb0er6oLHW2i5/aHYZ+ArVT7qcP3XAmzvjYM+qKFgeCRz9mKHg==
"@cerc-io/util@0.2.98-patch.5", "@cerc-io/util@^0.2.98-patch.5":
version "0.2.98-patch.5"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Futil/-/0.2.98-patch.5/util-0.2.98-patch.5.tgz#3d88ffaed3486f8dff86c1b4abd4af075d9f7389"
integrity sha512-fg0i6yD4A1X2dvpRY1FrtaBhhvyXW5m8cn7XNZh/NxcyCEu2nStsH/ND5HHUzffaUAgDPMBkluLESrCn9/5tUQ==
dependencies:
"@apollo/utils.keyvaluecache" "^1.0.1"
"@cerc-io/nitro-node" "^0.1.15"
"@cerc-io/peer" "^0.2.98-patch.4"
"@cerc-io/solidity-mapper" "^0.2.98-patch.4"
"@cerc-io/peer" "^0.2.98-patch.5"
"@cerc-io/solidity-mapper" "^0.2.98-patch.5"
"@cerc-io/ts-channel" "1.0.3-ts-nitro-0.1.1"
"@ethersproject/properties" "^5.7.0"
"@ethersproject/providers" "^5.4.4"