From 7214c3ab8e6fc0fe20890bcbf4cc28fc5a29f41b Mon Sep 17 00:00:00 2001 From: Shreerang Kale Date: Fri, 29 Sep 2023 15:11:28 +0530 Subject: [PATCH 1/8] Add config option for paid RPC methods --- environments/local.toml | 1 + src/payment-utils.ts | 8 +------- src/server.ts | 4 ++-- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/environments/local.toml b/environments/local.toml index 3655b00..33dc549 100644 --- a/environments/local.toml +++ b/environments/local.toml @@ -96,6 +96,7 @@ gqlApiEndpoint = "http://127.0.0.1:8082/graphql" rpcProviderEndpoint = "http://127.0.0.1:8081" rpcProviderMutationEndpoint = "http://127.0.0.1:8545" + paidRPCMethods=[] [upstream.ethServer.rpcProviderNitroNode] address = "" diff --git a/src/payment-utils.ts b/src/payment-utils.ts index 12165f3..3082ef2 100644 --- a/src/payment-utils.ts +++ b/src/payment-utils.ts @@ -11,13 +11,7 @@ import { fetchJson } from '@ethersproject/web'; const log = debug('vulcanize:payment-utils'); -// TODO: Configure -const paidRPCMethods = [ - 'eth_getBlockByHash', - 'eth_getStorageAt' -]; - -export async function setupProviderWithPayments (provider: providers.JsonRpcProvider, paymentsManager: PaymentsManager, paymentAmount: string): Promise { +export async function setupProviderWithPayments (paidRPCMethods: string[], provider: providers.JsonRpcProvider, paymentsManager: PaymentsManager, paymentAmount: string): Promise { // https://github.com/ethers-io/ethers.js/blob/v5.7.2/packages/providers/src.ts/json-rpc-provider.ts#L502 provider.send = async (method: string, params: Array): Promise => { log(`Making RPC call: ${method}`); diff --git a/src/server.ts b/src/server.ts index 448529b..6c7019c 100644 --- a/src/server.ts +++ b/src/server.ts @@ -47,7 +47,7 @@ export const main = async (): Promise => { let nitroPaymentsManager: PaymentsManager | undefined; const { enablePeer, peer: { enableL2Txs, l2TxsConfig, pubSubTopic }, nitro: { payments } } = serverCmd.config.server.p2p; - const { rpcProviderMutationEndpoint, rpcProviderNitroNode } = serverCmd.config.upstream.ethServer; + const { rpcProviderMutationEndpoint, rpcProviderNitroNode, paidRPCMethods } = serverCmd.config.upstream.ethServer; if (enablePeer) { assert(peer); @@ -65,7 +65,7 @@ export const main = async (): Promise => { if (rpcProviderNitroNode?.address) { nitroPaymentsManager.setupUpstreamPaymentChannel(rpcProviderNitroNode); - setupProviderWithPayments(serverCmd.ethProvider, nitroPaymentsManager, rpcProviderNitroNode.amount); + setupProviderWithPayments(paidRPCMethods, serverCmd.ethProvider, nitroPaymentsManager, rpcProviderNitroNode.amount); } // Register the pubsub topic handler From 41e5426c4d7b5db774da6755f85ae74aa341e191 Mon Sep 17 00:00:00 2001 From: Shreerang Kale Date: Mon, 2 Oct 2023 19:32:47 +0530 Subject: [PATCH 2/8] Rename RPC provider nitro node config key --- environments/local.toml | 2 +- src/server.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/environments/local.toml b/environments/local.toml index 33dc549..1404ee3 100644 --- a/environments/local.toml +++ b/environments/local.toml @@ -98,7 +98,7 @@ rpcProviderMutationEndpoint = "http://127.0.0.1:8545" paidRPCMethods=[] - [upstream.ethServer.rpcProviderNitroNode] + [upstream.ethServer.nitro] address = "" multiAddr = "" amount = "5000" diff --git a/src/server.ts b/src/server.ts index 6c7019c..baff000 100644 --- a/src/server.ts +++ b/src/server.ts @@ -47,7 +47,7 @@ export const main = async (): Promise => { let nitroPaymentsManager: PaymentsManager | undefined; const { enablePeer, peer: { enableL2Txs, l2TxsConfig, pubSubTopic }, nitro: { payments } } = serverCmd.config.server.p2p; - const { rpcProviderMutationEndpoint, rpcProviderNitroNode, paidRPCMethods } = serverCmd.config.upstream.ethServer; + const { rpcProviderMutationEndpoint, nitro: rpcProviderNitroConfig, paidRPCMethods } = serverCmd.config.upstream.ethServer; if (enablePeer) { assert(peer); @@ -62,10 +62,10 @@ export const main = async (): Promise => { // Setup a payment channel with the upstream Nitro node if provided in config // Setup the provider to send payment with each request - if (rpcProviderNitroNode?.address) { - nitroPaymentsManager.setupUpstreamPaymentChannel(rpcProviderNitroNode); + if (rpcProviderNitroConfig?.address) { + nitroPaymentsManager.setupUpstreamPaymentChannel(rpcProviderNitroConfig); - setupProviderWithPayments(paidRPCMethods, serverCmd.ethProvider, nitroPaymentsManager, rpcProviderNitroNode.amount); + setupProviderWithPayments(paidRPCMethods, serverCmd.ethProvider, nitroPaymentsManager, rpcProviderNitroConfig.amount); } // Register the pubsub topic handler From 20a6add5b34a02aef87e60d7f1b7b0f93870b988 Mon Sep 17 00:00:00 2001 From: Shreerang Kale Date: Wed, 4 Oct 2023 09:43:46 +0530 Subject: [PATCH 3/8] Configure funding amounts --- environments/local.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/environments/local.toml b/environments/local.toml index 1404ee3..262e628 100644 --- a/environments/local.toml +++ b/environments/local.toml @@ -96,12 +96,15 @@ gqlApiEndpoint = "http://127.0.0.1:8082/graphql" rpcProviderEndpoint = "http://127.0.0.1:8081" rpcProviderMutationEndpoint = "http://127.0.0.1:8545" - paidRPCMethods=[] [upstream.ethServer.nitro] address = "" multiAddr = "" amount = "5000" + paidRPCMethods = ['eth_getBlockByHash', 'eth_getStorageAt'] + [upstream.ethServer.nitro.fundingAmounts] + directFund = "" + virtualFund = "" [upstream.cache] name = "requests" From 4e9135bee3a936d36e472345919f63d133cea772 Mon Sep 17 00:00:00 2001 From: Shreerang Kale Date: Wed, 4 Oct 2023 10:20:37 +0530 Subject: [PATCH 4/8] Handle review changes --- environments/local.toml | 2 +- src/payment-utils.ts | 2 +- src/server.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/environments/local.toml b/environments/local.toml index 262e628..d8082e9 100644 --- a/environments/local.toml +++ b/environments/local.toml @@ -101,7 +101,7 @@ address = "" multiAddr = "" amount = "5000" - paidRPCMethods = ['eth_getBlockByHash', 'eth_getStorageAt'] + paidRPCMethods = ["eth_getBlockByHash", "eth_getStorageAt"] [upstream.ethServer.nitro.fundingAmounts] directFund = "" virtualFund = "" diff --git a/src/payment-utils.ts b/src/payment-utils.ts index 3082ef2..ca97ffe 100644 --- a/src/payment-utils.ts +++ b/src/payment-utils.ts @@ -11,7 +11,7 @@ import { fetchJson } from '@ethersproject/web'; const log = debug('vulcanize:payment-utils'); -export async function setupProviderWithPayments (paidRPCMethods: string[], provider: providers.JsonRpcProvider, paymentsManager: PaymentsManager, paymentAmount: string): Promise { +export async function setupProviderWithPayments (provider: providers.JsonRpcProvider, paymentsManager: PaymentsManager, paidRPCMethods: string[], paymentAmount: string): Promise { // https://github.com/ethers-io/ethers.js/blob/v5.7.2/packages/providers/src.ts/json-rpc-provider.ts#L502 provider.send = async (method: string, params: Array): Promise => { log(`Making RPC call: ${method}`); diff --git a/src/server.ts b/src/server.ts index baff000..9f1db39 100644 --- a/src/server.ts +++ b/src/server.ts @@ -47,7 +47,7 @@ export const main = async (): Promise => { let nitroPaymentsManager: PaymentsManager | undefined; const { enablePeer, peer: { enableL2Txs, l2TxsConfig, pubSubTopic }, nitro: { payments } } = serverCmd.config.server.p2p; - const { rpcProviderMutationEndpoint, nitro: rpcProviderNitroConfig, paidRPCMethods } = serverCmd.config.upstream.ethServer; + const { rpcProviderMutationEndpoint, nitro: rpcProviderNitroConfig } = serverCmd.config.upstream.ethServer; if (enablePeer) { assert(peer); @@ -65,7 +65,7 @@ export const main = async (): Promise => { if (rpcProviderNitroConfig?.address) { nitroPaymentsManager.setupUpstreamPaymentChannel(rpcProviderNitroConfig); - setupProviderWithPayments(paidRPCMethods, serverCmd.ethProvider, nitroPaymentsManager, rpcProviderNitroConfig.amount); + setupProviderWithPayments(serverCmd.ethProvider, nitroPaymentsManager, rpcProviderNitroConfig.paidRPCMethods, rpcProviderNitroConfig.amount); } // Register the pubsub topic handler From ef36b6160bd20661cf02861e2b4e9629120699c5 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Wed, 4 Oct 2023 14:59:29 +0530 Subject: [PATCH 5/8] Refactor payment utils to watcher-ts util package --- environments/local.toml | 21 ++++++---- src/payment-utils.ts | 91 ----------------------------------------- src/server.ts | 19 +++++---- yarn.lock | 2 +- 4 files changed, 25 insertions(+), 108 deletions(-) delete mode 100644 src/payment-utils.ts diff --git a/environments/local.toml b/environments/local.toml index d8082e9..a72be58 100644 --- a/environments/local.toml +++ b/environments/local.toml @@ -69,10 +69,10 @@ paymentChannelTTLInSecs = 1800 [server.p2p.consensus] - enabled = true + enabled = false publicKey = '' privateKey = '' - watcherPartyFile = '' + watcherPartyPeersFile = '' [metrics] host = "127.0.0.1" @@ -97,14 +97,17 @@ rpcProviderEndpoint = "http://127.0.0.1:8081" rpcProviderMutationEndpoint = "http://127.0.0.1:8545" - [upstream.ethServer.nitro] - address = "" - multiAddr = "" - amount = "5000" + [upstream.ethServer.payments] paidRPCMethods = ["eth_getBlockByHash", "eth_getStorageAt"] - [upstream.ethServer.nitro.fundingAmounts] - directFund = "" - virtualFund = "" + amount = "5000" + + [upstream.ethServer.payments.nitro] + address = "" + multiAddr = "" + + [upstream.ethServer.payments.nitro.fundingAmounts] + directFund = "1000000000000" + virtualFund = "1000000000" [upstream.cache] name = "requests" diff --git a/src/payment-utils.ts b/src/payment-utils.ts deleted file mode 100644 index ca97ffe..0000000 --- a/src/payment-utils.ts +++ /dev/null @@ -1,91 +0,0 @@ -// -// Copyright 2023 Vulcanize, Inc. -// - -import debug from 'debug'; -import { providers } from 'ethers'; - -import { PaymentsManager } from '@cerc-io/util'; -import { deepCopy } from '@ethersproject/properties'; -import { fetchJson } from '@ethersproject/web'; - -const log = debug('vulcanize:payment-utils'); - -export async function setupProviderWithPayments (provider: providers.JsonRpcProvider, paymentsManager: PaymentsManager, paidRPCMethods: string[], paymentAmount: string): Promise { - // https://github.com/ethers-io/ethers.js/blob/v5.7.2/packages/providers/src.ts/json-rpc-provider.ts#L502 - provider.send = async (method: string, params: Array): Promise => { - log(`Making RPC call: ${method}`); - - const request = { - method: method, - params: params, - id: (provider._nextId++), - jsonrpc: '2.0' - }; - - provider.emit('debug', { - action: 'request', - request: deepCopy(request), - provider: provider - }); - - // We can expand this in the future to any call, but for now these - // are the biggest wins and do not require any serializing parameters. - const cache = (['eth_chainId', 'eth_blockNumber'].indexOf(method) >= 0); - // @ts-expect-error copied code - if (cache && provider._cache[method]) { - return provider._cache[method]; - } - - // Send a payment to upstream Nitro node and add details to the request URL - let updatedURL = `${provider.connection.url}?method=${method}`; - if (paidRPCMethods.includes(method)) { - const voucher = await paymentsManager.sendUpstreamPayment(paymentAmount); - updatedURL = `${updatedURL}&channelId=${voucher.channelId}&amount=${voucher.amount}&signature=${voucher.signature}`; - } - - const result = fetchJson({ ...provider.connection, url: updatedURL }, JSON.stringify(request), getResult).then((result) => { - provider.emit('debug', { - action: 'response', - request: request, - response: result, - provider: provider - }); - - return result; - }, (error) => { - provider.emit('debug', { - action: 'response', - error: error, - request: request, - provider: provider - }); - - throw error; - }); - - // Cache the fetch, but clear it on the next event loop - if (cache) { - provider._cache[method] = result; - setTimeout(() => { - // @ts-expect-error copied code - provider._cache[method] = null; - }, 0); - } - - return result; - }; -} - -// https://github.com/ethers-io/ethers.js/blob/v5.7.2/packages/providers/src.ts/json-rpc-provider.ts#L139 -function getResult (payload: { error?: { code?: number, data?: any, message?: string }, result?: any }): any { - if (payload.error) { - // @TODO: not any - const error: any = new Error(payload.error.message); - error.code = payload.error.code; - error.data = payload.error.data; - throw error; - } - - return payload.result; -} diff --git a/src/server.ts b/src/server.ts index 9f1db39..97a6dd9 100644 --- a/src/server.ts +++ b/src/server.ts @@ -20,10 +20,9 @@ import { virtualPaymentAppAddress, consensusAppAddress } from './nitro-addresses.json'; -import { PaymentsManager, getConfig } from '@cerc-io/util'; +import { PaymentsManager, getConfig, setupProviderWithPayments } from '@cerc-io/util'; import { RatesConfig } from './config'; -import { setupProviderWithPayments } from './payment-utils'; const log = debug('vulcanize:server'); @@ -47,7 +46,7 @@ export const main = async (): Promise => { let nitroPaymentsManager: PaymentsManager | undefined; const { enablePeer, peer: { enableL2Txs, l2TxsConfig, pubSubTopic }, nitro: { payments } } = serverCmd.config.server.p2p; - const { rpcProviderMutationEndpoint, nitro: rpcProviderNitroConfig } = serverCmd.config.upstream.ethServer; + const { rpcProviderMutationEndpoint, payments: ethServerPaymentsConfig } = serverCmd.config.upstream.ethServer; if (enablePeer) { assert(peer); @@ -62,10 +61,16 @@ export const main = async (): Promise => { // Setup a payment channel with the upstream Nitro node if provided in config // Setup the provider to send payment with each request - if (rpcProviderNitroConfig?.address) { - nitroPaymentsManager.setupUpstreamPaymentChannel(rpcProviderNitroConfig); - - setupProviderWithPayments(serverCmd.ethProvider, nitroPaymentsManager, rpcProviderNitroConfig.paidRPCMethods, rpcProviderNitroConfig.amount); + if (ethServerPaymentsConfig?.nitro?.address) { + const upstreamPaymentChannel = await nitroPaymentsManager.setupPaymentChannel(ethServerPaymentsConfig?.nitro); + + setupProviderWithPayments( + serverCmd.ethProvider, + nitroPaymentsManager, + upstreamPaymentChannel, + ethServerPaymentsConfig.paidRPCMethods, + ethServerPaymentsConfig.amount + ); } // Register the pubsub topic handler diff --git a/yarn.lock b/yarn.lock index 884cb8f..ecf9876 100644 --- a/yarn.lock +++ b/yarn.lock @@ -926,7 +926,7 @@ "@ethersproject/transactions" "^5.7.0" "@ethersproject/wordlists" "^5.7.0" -"@ethersproject/web@5.7.1", "@ethersproject/web@^5.7.0", "@ethersproject/web@^5.7.1": +"@ethersproject/web@5.7.1", "@ethersproject/web@^5.7.0": version "5.7.1" resolved "https://registry.yarnpkg.com/@ethersproject/web/-/web-5.7.1.tgz#de1f285b373149bee5928f4eb7bcb87ee5fbb4ae" integrity sha512-Gueu8lSvyjBWL4cYsWsjh6MtMwM0+H4HvqFPZfB6dV8ctbP9zFAO73VG1cMWae0FLPCtz0peKPpZY8/ugJJX2w== From 1aa16afd47d7344ab16657023ec844edde92507d Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Wed, 4 Oct 2023 15:10:39 +0530 Subject: [PATCH 6/8] Upgrade watcher-ts dependencies --- package.json | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 504247d..0009553 100644 --- a/package.json +++ b/package.json @@ -40,15 +40,13 @@ "homepage": "https://github.com/cerc-io/mobymask-v2-watcher-ts#readme", "dependencies": { "@apollo/client": "^3.3.19", - "@cerc-io/cli": "^0.2.61", - "@cerc-io/ipld-eth-client": "^0.2.61", + "@cerc-io/cli": "^0.2.62", + "@cerc-io/ipld-eth-client": "^0.2.62", "@cerc-io/nitro-node": "^0.1.11", - "@cerc-io/peer": "^0.2.61", - "@cerc-io/solidity-mapper": "^0.2.61", - "@cerc-io/util": "^0.2.61", - "@ethersproject/properties": "^5.7.0", + "@cerc-io/peer": "^0.2.62", + "@cerc-io/solidity-mapper": "^0.2.62", + "@cerc-io/util": "^0.2.62", "@ethersproject/providers": "^5.4.4", - "@ethersproject/web": "^5.7.1", "apollo-type-bigint": "^0.1.3", "debug": "^4.3.1", "decimal.js": "^10.3.1", From b4940fe98575f0b1b12bc816846d23094476227e Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Wed, 4 Oct 2023 16:25:08 +0530 Subject: [PATCH 7/8] Update yarn.lock --- yarn.lock | 82 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 42 insertions(+), 40 deletions(-) diff --git a/yarn.lock b/yarn.lock index ecf9876..1d1d291 100644 --- a/yarn.lock +++ b/yarn.lock @@ -162,10 +162,10 @@ dependencies: xss "^1.0.8" -"@cerc-io/cache@^0.2.61": - version "0.2.61" - resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fcache/-/0.2.61/cache-0.2.61.tgz#75cf6273f45463e381418ab330b86b80df68ce3e" - integrity sha512-AwmCrKE4lhIdVxPXmoS/kFRCrpjlNz/7gJRBYOn74OljQ3hIPoJapYR4E7Nla0AYKPn5o6276QZFuiMCFSx2PQ== +"@cerc-io/cache@^0.2.62": + version "0.2.62" + resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fcache/-/0.2.62/cache-0.2.62.tgz#7f9f38ce685262c2b3dde4bc75b95ca8bd9119a0" + integrity sha512-vTRcgQlkVglpUhtWPGaxR+1JHOzA8DafMWc0iEEGlRqcseuyB0utSsefNtOULIS4OhcTt9dhpaFa5yYl1rmFfw== dependencies: canonical-json "^0.0.4" debug "^4.3.1" @@ -173,19 +173,19 @@ fs-extra "^10.0.0" level "^7.0.0" -"@cerc-io/cli@^0.2.61": - version "0.2.61" - resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fcli/-/0.2.61/cli-0.2.61.tgz#fd975854146da2458905c15df831324f65793840" - integrity sha512-WySqgoGsYukfQraJbvBKnurpQg2wOjW+sooE3A1yCGzkMvFw1T0h2qGKnm4YzIafH60zWKM759deyWCqiKaolw== +"@cerc-io/cli@^0.2.62": + version "0.2.62" + resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fcli/-/0.2.62/cli-0.2.62.tgz#9fd5df56d6466e5d41b6219a638bc04b2a6d3403" + integrity sha512-gEUWLMgdk1e2A7eDoMFeUcCQI1ouG+wGkKowpvWXz6i1HflWI8wFGa4T5lcD9quXm3NAJ7JzbjhNe447BXaFzQ== dependencies: "@apollo/client" "^3.7.1" - "@cerc-io/cache" "^0.2.61" - "@cerc-io/ipld-eth-client" "^0.2.61" + "@cerc-io/cache" "^0.2.62" + "@cerc-io/ipld-eth-client" "^0.2.62" "@cerc-io/libp2p" "^0.42.2-laconic-0.1.4" "@cerc-io/nitro-node" "^0.1.11" - "@cerc-io/peer" "^0.2.61" - "@cerc-io/rpc-eth-client" "^0.2.61" - "@cerc-io/util" "^0.2.61" + "@cerc-io/peer" "^0.2.62" + "@cerc-io/rpc-eth-client" "^0.2.62" + "@cerc-io/util" "^0.2.62" "@ethersproject/providers" "^5.4.4" "@graphql-tools/utils" "^9.1.1" "@ipld/dag-cbor" "^8.0.0" @@ -201,13 +201,13 @@ typeorm "0.2.37" yargs "^17.0.1" -"@cerc-io/ipld-eth-client@^0.2.61": - version "0.2.61" - resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fipld-eth-client/-/0.2.61/ipld-eth-client-0.2.61.tgz#1c080acd9da700de669224e02d3004dea18ad4f7" - integrity sha512-SEGjNiczGQkts+C+8m0ZmyRyrCVQvMpJ6EXiEi7hZQQsi9LQXb2DVMo3tQptZ27Nw2u0J9jNQn4Cdw7jIO1nuQ== +"@cerc-io/ipld-eth-client@^0.2.62": + version "0.2.62" + resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fipld-eth-client/-/0.2.62/ipld-eth-client-0.2.62.tgz#7f600e16e62d65823ec76d4f710f6172f5cca9ac" + integrity sha512-jJAX4K1Iz+KOtFGfbJ7s7wPiA0RHgeYrlcHtJAsXCLPjvR6AyeaWfXrYQ8jlxpAwlk3L+8Uo4Qk7f7qDjI6X5g== dependencies: "@apollo/client" "^3.7.1" - "@cerc-io/cache" "^0.2.61" + "@cerc-io/cache" "^0.2.62" cross-fetch "^3.1.4" debug "^4.3.1" ethers "^5.4.4" @@ -369,10 +369,10 @@ unique-names-generator "^4.7.1" yargs "^17.0.1" -"@cerc-io/peer@^0.2.61": - version "0.2.61" - resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fpeer/-/0.2.61/peer-0.2.61.tgz#cf2ae86a4968b7c2288acdda866680ff2f3630fe" - integrity sha512-8Uo2JiOferVlSpZ2SUzFIrYLuTr7P41USbb82YL4bJXEUlYd4UqRamN2qTzii8auUhFHlz6el3m+Em6ctxGrlA== +"@cerc-io/peer@^0.2.62": + version "0.2.62" + resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fpeer/-/0.2.62/peer-0.2.62.tgz#680be1d62156aab29f89d40047515836bb0f8ee7" + integrity sha512-22wjLUSAQFh+a9UzWyRfRvOraMf02zgI1uM4u+vIkfb2gYoUGnwH/IQD/huShS7c+nkiwsjsq6m+vXAh2TQHuA== dependencies: "@cerc-io/libp2p" "^0.42.2-laconic-0.1.4" "@cerc-io/prometheus-metrics" "1.1.4" @@ -411,23 +411,23 @@ it-stream-types "^1.0.4" promjs "^0.4.2" -"@cerc-io/rpc-eth-client@^0.2.61": - version "0.2.61" - resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Frpc-eth-client/-/0.2.61/rpc-eth-client-0.2.61.tgz#a2d8bcd846c02f4e613767b8490b57d4dde4ca20" - integrity sha512-wZ0dxXDrMie/5zU2q6h2j7C79cNnP1B3JK6vLsQbt9O0AkGMezbDZcJ28JFvTN4Dv1xMOy/xu7wZa+80ac+bXw== +"@cerc-io/rpc-eth-client@^0.2.62": + version "0.2.62" + resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Frpc-eth-client/-/0.2.62/rpc-eth-client-0.2.62.tgz#773302e77b6abf4adc591cbf2a8dcddf649dd008" + integrity sha512-YnctmwXG4Kc+PLwKAFSd9WjDr5IuNYFChfnAxSvC8H+FWC9g3rFldLpz00YG+9N8jMx1z2Dhzl3CoFwdgyo8MQ== dependencies: - "@cerc-io/cache" "^0.2.61" - "@cerc-io/ipld-eth-client" "^0.2.61" - "@cerc-io/util" "^0.2.61" + "@cerc-io/cache" "^0.2.62" + "@cerc-io/ipld-eth-client" "^0.2.62" + "@cerc-io/util" "^0.2.62" chai "^4.3.4" ethers "^5.4.4" left-pad "^1.3.0" mocha "^8.4.0" -"@cerc-io/solidity-mapper@^0.2.61": - version "0.2.61" - resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fsolidity-mapper/-/0.2.61/solidity-mapper-0.2.61.tgz#1175c6df4404792f2304b7fdac8eddbddd789726" - integrity sha512-Xludn9myIHMrolWYIlYO8ZbOjRWX98qV2JaZwYikG/aSkQa8EFvAyQ4Lgeq1Yrw6rRSf4N2SWs/sjCvTeIYT1g== +"@cerc-io/solidity-mapper@^0.2.62": + version "0.2.62" + resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fsolidity-mapper/-/0.2.62/solidity-mapper-0.2.62.tgz#44674031f0ca84e1be3f23697ba297be09cfdf13" + integrity sha512-4F4VISNDknPg4htXPFFbyF8XYq11YkjPsMAcg6LntaGrP3QQZF5aHaRimBUB6+NYp1phosfbaBQZBD2tS/ASVA== dependencies: dotenv "^10.0.0" @@ -436,17 +436,19 @@ 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.61": - version "0.2.61" - resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Futil/-/0.2.61/util-0.2.61.tgz#9bb5bf0693d1299c6ccf588d2fd452adf0f8a11a" - integrity sha512-UjUIPlTcB8R0VAv+RaQRv7QH+yL9EJV29KwVpZmCKIoLQwci+vCtkwdR3w0ZIKslUs6xfMKr4sq8ub6OYyKdDg== +"@cerc-io/util@^0.2.62": + version "0.2.62" + resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Futil/-/0.2.62/util-0.2.62.tgz#691b57ffca1582be4142d431f18499eb4e60998e" + integrity sha512-MJq4FmsYST5/qxgDqf1MlifreilPQBrKsqpbGoeVppXNEqk1Ede7nzeNW9cB+IkTH+KioNfJEd7TwGnPMO9g+Q== dependencies: "@apollo/utils.keyvaluecache" "^1.0.1" "@cerc-io/nitro-node" "^0.1.11" - "@cerc-io/peer" "^0.2.61" - "@cerc-io/solidity-mapper" "^0.2.61" + "@cerc-io/peer" "^0.2.62" + "@cerc-io/solidity-mapper" "^0.2.62" "@cerc-io/ts-channel" "1.0.3-ts-nitro-0.1.1" + "@ethersproject/properties" "^5.7.0" "@ethersproject/providers" "^5.4.4" + "@ethersproject/web" "^5.7.1" "@graphql-tools/schema" "^9.0.10" "@graphql-tools/utils" "^9.1.1" "@ipld/dag-cbor" "^6.0.12" @@ -926,7 +928,7 @@ "@ethersproject/transactions" "^5.7.0" "@ethersproject/wordlists" "^5.7.0" -"@ethersproject/web@5.7.1", "@ethersproject/web@^5.7.0": +"@ethersproject/web@5.7.1", "@ethersproject/web@^5.7.0", "@ethersproject/web@^5.7.1": version "5.7.1" resolved "https://registry.yarnpkg.com/@ethersproject/web/-/web-5.7.1.tgz#de1f285b373149bee5928f4eb7bcb87ee5fbb4ae" integrity sha512-Gueu8lSvyjBWL4cYsWsjh6MtMwM0+H4HvqFPZfB6dV8ctbP9zFAO73VG1cMWae0FLPCtz0peKPpZY8/ugJJX2w== From 36842035b70a58e5ec6f79844fff734b3dc8c092 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Wed, 4 Oct 2023 16:28:22 +0530 Subject: [PATCH 8/8] Update package version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0009553..d0d68f4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cerc-io/mobymask-v2-watcher-ts", - "version": "0.2.0", + "version": "0.2.1", "description": "mobymask-v2-watcher-ts", "private": true, "main": "dist/index.js",