diff --git a/src/components/dapp-analytics/dapp-analytics.controller.ts b/src/components/dapp-analytics/dapp-analytics.controller.ts index fcfa6e4..1964a9f 100644 --- a/src/components/dapp-analytics/dapp-analytics.controller.ts +++ b/src/components/dapp-analytics/dapp-analytics.controller.ts @@ -34,7 +34,7 @@ export const saveDapp = async ( res: Response, ): Promise => { try { - const { name, logo, blockchain, website, fromBlock, addedBy, abis } = + const { name, logo, blockchain, website, fromBlock, addedBy, abis, airdropContract, airdropCurrencyContract } = req.body as IDAppData; const response = await axios.post(`${API_BASE_URL}/dapp-analytics/dapp`, { name, @@ -44,6 +44,8 @@ export const saveDapp = async ( fromBlock, addedBy, abis, + airdropContract, + airdropCurrencyContract, }); logger.info('Response:', response.status, response.data); if (response.status === 201) { diff --git a/src/components/dapp-analytics/dapp-analytics.validation.ts b/src/components/dapp-analytics/dapp-analytics.validation.ts index b4cc7ea..80265ef 100644 --- a/src/components/dapp-analytics/dapp-analytics.validation.ts +++ b/src/components/dapp-analytics/dapp-analytics.validation.ts @@ -104,6 +104,8 @@ export const saveDappValidation = { fromBlock: Joi.number().integer().allow(null), addedBy: Joi.string().allow(null), abis: abiSchema.required(), + airdropContract: Joi.string().optional(), + airdropCurrencyContract: Joi.string().optional(), }), }; diff --git a/src/components/node-api/chainstate.ts b/src/components/node-api/chainstate.ts index 1a34eb8..cacfb80 100644 --- a/src/components/node-api/chainstate.ts +++ b/src/components/node-api/chainstate.ts @@ -11,6 +11,7 @@ const rpcEndpoints: { [key: string]: string } = { process.env.RPC_ARBITRUM_ONE || 'https://arb1.arbitrum.io/rpc', 'arbitrum-nova': process.env.RPC_ARBITRUM_NOVA || 'https://nova.arbitrum.io/rpc', + avalanche: process.env.RPC_AVALANCHE || 'https://avalanche.api.onfinality.io/public/ext/bc/C/rpc', ethereum: process.env.RPC_ETHEREUM || 'https://eth.api.onfinality.io/public', optimism: process.env.RPC_OPTIMISM || 'https://optimism.api.onfinality.io/public',