From 7527aaaa3080d6303d602b04fb102834c0dc165a Mon Sep 17 00:00:00 2001 From: Majorfi Date: Fri, 12 Jul 2024 11:43:18 +0200 Subject: [PATCH] build: bump --- package.json | 2 +- src/contexts/useYearn.tsx | 3 +-- src/contexts/useYearnWallet.tsx | 3 +-- src/types/index.ts | 3 +-- src/utils/schemas/yDaemonTokenListBalances.ts | 20 ------------------- 5 files changed, 4 insertions(+), 27 deletions(-) diff --git a/package.json b/package.json index eadb41b9..bfd1f4f7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@yearn-finance/web-lib", - "version": "4.0.6", + "version": "4.0.8", "main": "./dist/index.js", "types": "./dist/index.d.js", "files": [ diff --git a/src/contexts/useYearn.tsx b/src/contexts/useYearn.tsx index 3b550564..0cc44d30 100755 --- a/src/contexts/useYearn.tsx +++ b/src/contexts/useYearn.tsx @@ -61,8 +61,7 @@ const defaultToken: TYToken = { chainID: 1, value: 0, stakingValue: 0, - balance: zeroNormalizedBN, - supportedZaps: [] + balance: zeroNormalizedBN }; const YearnContext = createContext({ diff --git a/src/contexts/useYearnWallet.tsx b/src/contexts/useYearnWallet.tsx index 5abf3f30..3517a471 100755 --- a/src/contexts/useYearnWallet.tsx +++ b/src/contexts/useYearnWallet.tsx @@ -45,8 +45,7 @@ const defaultToken: TYToken = { chainID: 1, value: 0, stakingValue: 0, - balance: zeroNormalizedBN, - supportedZaps: [] + balance: zeroNormalizedBN }; const defaultProps = { diff --git a/src/types/index.ts b/src/types/index.ts index 79b9c3d0..ee966b39 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -1,6 +1,6 @@ import type {ReactElement} from 'react'; import type {TAddress, TDict, TNDict, TToken} from '@builtbymom/web3/types'; -import type {TSolver, TSupportedZaps} from '../utils/schemas/yDaemonTokenListBalances'; +import type {TSolver} from '../utils/schemas/yDaemonTokenListBalances'; export type TDropdownOption = { label: string; @@ -66,7 +66,6 @@ export type TMessariGraphData = { }; export type TYToken = TToken & { - supportedZaps: TSupportedZaps[]; stakingValue: number; }; export type TYChainTokens = TNDict>; diff --git a/src/utils/schemas/yDaemonTokenListBalances.ts b/src/utils/schemas/yDaemonTokenListBalances.ts index e7a25911..940ce3a2 100644 --- a/src/utils/schemas/yDaemonTokenListBalances.ts +++ b/src/utils/schemas/yDaemonTokenListBalances.ts @@ -1,7 +1,4 @@ import {z} from 'zod'; -import {addressSchema} from '@builtbymom/web3/types'; - -import type {TDict, TNDict} from '@builtbymom/web3/types'; const SOLVER = [ 'Vanilla', @@ -20,20 +17,3 @@ const SOLVER = [ export const Solver = z.enum(SOLVER); export type TSolver = z.infer; - -const yDaemonTokenListBalance = z.object({ - chainID: z.number().optional(), - decimals: z.number(), - address: z.string(), - name: z.string(), - symbol: z.string(), - logoURI: z.string().optional(), - balance: z.string().optional(), - price: z.string().optional(), - supportedZaps: Solver.array().optional() -}); - -export const _yDaemonTokenListBalances = z.record(addressSchema, yDaemonTokenListBalance); -export const yDaemonTokenListBalances = z.record(z.string(), _yDaemonTokenListBalances); -export type TYDaemonTokenListBalances = TNDict>>; -export type TSupportedZaps = z.infer;