From 110b5a290f98e0c30e24f69b9dde0c08e100d44f Mon Sep 17 00:00:00 2001 From: amish kohli Date: Fri, 20 Dec 2024 18:11:23 +0530 Subject: [PATCH] all chain are added to asset price table --- packages/contracts/package.json | 2 +- packages/functions/src/functions/asset-price-bob.ts | 4 ++++ packages/functions/src/functions/asset-price-fraxtal.ts | 4 ++++ packages/functions/src/functions/asset-price-ink.ts | 4 ++++ packages/functions/src/functions/asset-price-lisk.ts | 4 ++++ packages/functions/src/functions/asset-price-optimism.ts | 4 ++++ packages/functions/src/functions/asset-price-superseed.ts | 4 ++++ packages/functions/src/functions/asset-price-worldchain.ts | 4 ++++ 8 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 packages/functions/src/functions/asset-price-bob.ts create mode 100644 packages/functions/src/functions/asset-price-fraxtal.ts create mode 100644 packages/functions/src/functions/asset-price-ink.ts create mode 100644 packages/functions/src/functions/asset-price-lisk.ts create mode 100644 packages/functions/src/functions/asset-price-optimism.ts create mode 100644 packages/functions/src/functions/asset-price-superseed.ts create mode 100644 packages/functions/src/functions/asset-price-worldchain.ts diff --git a/packages/contracts/package.json b/packages/contracts/package.json index c6708b19e..cefe08b53 100644 --- a/packages/contracts/package.json +++ b/packages/contracts/package.json @@ -59,4 +59,4 @@ "typescript": "^5.5.3", "viem": "^2.21.55" } -} \ No newline at end of file +} diff --git a/packages/functions/src/functions/asset-price-bob.ts b/packages/functions/src/functions/asset-price-bob.ts new file mode 100644 index 000000000..4f059448e --- /dev/null +++ b/packages/functions/src/functions/asset-price-bob.ts @@ -0,0 +1,4 @@ +import { SupportedChains } from '@ionicprotocol/types'; +import { createAssetPriceHandler } from '../controllers/asset-price'; + +export const handler = createAssetPriceHandler(SupportedChains.bob); diff --git a/packages/functions/src/functions/asset-price-fraxtal.ts b/packages/functions/src/functions/asset-price-fraxtal.ts new file mode 100644 index 000000000..4d547869d --- /dev/null +++ b/packages/functions/src/functions/asset-price-fraxtal.ts @@ -0,0 +1,4 @@ +import { SupportedChains } from '@ionicprotocol/types'; +import { createAssetPriceHandler } from '../controllers/asset-price'; + +export const handler = createAssetPriceHandler(SupportedChains.fraxtal); diff --git a/packages/functions/src/functions/asset-price-ink.ts b/packages/functions/src/functions/asset-price-ink.ts new file mode 100644 index 000000000..630928f4a --- /dev/null +++ b/packages/functions/src/functions/asset-price-ink.ts @@ -0,0 +1,4 @@ +import { SupportedChains } from '@ionicprotocol/types'; +import { createAssetPriceHandler } from '../controllers/asset-price'; + +export const handler = createAssetPriceHandler(SupportedChains.ink); diff --git a/packages/functions/src/functions/asset-price-lisk.ts b/packages/functions/src/functions/asset-price-lisk.ts new file mode 100644 index 000000000..92545a71e --- /dev/null +++ b/packages/functions/src/functions/asset-price-lisk.ts @@ -0,0 +1,4 @@ +import { SupportedChains } from '@ionicprotocol/types'; +import { createAssetPriceHandler } from '../controllers/asset-price'; + +export const handler = createAssetPriceHandler(SupportedChains.lisk); diff --git a/packages/functions/src/functions/asset-price-optimism.ts b/packages/functions/src/functions/asset-price-optimism.ts new file mode 100644 index 000000000..463c04778 --- /dev/null +++ b/packages/functions/src/functions/asset-price-optimism.ts @@ -0,0 +1,4 @@ +import { SupportedChains } from '@ionicprotocol/types'; +import { createAssetPriceHandler } from '../controllers/asset-price'; + +export const handler = createAssetPriceHandler(SupportedChains.optimism); diff --git a/packages/functions/src/functions/asset-price-superseed.ts b/packages/functions/src/functions/asset-price-superseed.ts new file mode 100644 index 000000000..952dbb12f --- /dev/null +++ b/packages/functions/src/functions/asset-price-superseed.ts @@ -0,0 +1,4 @@ +import { SupportedChains } from '@ionicprotocol/types'; +import { createAssetPriceHandler } from '../controllers/asset-price'; + +export const handler = createAssetPriceHandler(SupportedChains.superseed); diff --git a/packages/functions/src/functions/asset-price-worldchain.ts b/packages/functions/src/functions/asset-price-worldchain.ts new file mode 100644 index 000000000..c50308f4d --- /dev/null +++ b/packages/functions/src/functions/asset-price-worldchain.ts @@ -0,0 +1,4 @@ +import { SupportedChains } from '@ionicprotocol/types'; +import { createAssetPriceHandler } from '../controllers/asset-price'; + +export const handler = createAssetPriceHandler(SupportedChains.worldchain);