From 1870f7b4cbd0516aa9b0965d8a98449485f4ad00 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Sat, 16 Dec 2023 19:30:08 +0800 Subject: [PATCH] add osmosis extension --- src/libs/clients/osmosis.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/libs/clients/osmosis.ts diff --git a/src/libs/clients/osmosis.ts b/src/libs/clients/osmosis.ts new file mode 100644 index 00000000..db054c9d --- /dev/null +++ b/src/libs/clients/osmosis.ts @@ -0,0 +1,12 @@ +import type{ RequestRegistry } from '@/libs/registry' +// import dayjs from 'dayjs' + +// which registry is store +export const store = 'name' // name or version +// Blockchain Name +export const name = 'osmosis' + +// osmosis custom request +export const requests: Partial = { + mint_inflation: { url: 'https://public-osmosis-api.numia.xyz/apr?start_date=2023-11-27&end_date=2023-11-30', adapter: (data: any) => ({inflation: (Number(data.inflation_rate || 0)/ 100 ).toFixed(2)}) }, +}