Skip to content

Commit

Permalink
build: bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Jul 12, 2024
1 parent d809e9b commit 7527aaa
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 27 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
3 changes: 1 addition & 2 deletions src/contexts/useYearn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ const defaultToken: TYToken = {
chainID: 1,
value: 0,
stakingValue: 0,
balance: zeroNormalizedBN,
supportedZaps: []
balance: zeroNormalizedBN
};

const YearnContext = createContext<TYearnContext>({
Expand Down
3 changes: 1 addition & 2 deletions src/contexts/useYearnWallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ const defaultToken: TYToken = {
chainID: 1,
value: 0,
stakingValue: 0,
balance: zeroNormalizedBN,
supportedZaps: []
balance: zeroNormalizedBN
};

const defaultProps = {
Expand Down
3 changes: 1 addition & 2 deletions src/types/index.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -66,7 +66,6 @@ export type TMessariGraphData = {
};

export type TYToken = TToken & {
supportedZaps: TSupportedZaps[];
stakingValue: number;
};
export type TYChainTokens = TNDict<TDict<TYToken>>;
20 changes: 0 additions & 20 deletions src/utils/schemas/yDaemonTokenListBalances.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand All @@ -20,20 +17,3 @@ const SOLVER = [
export const Solver = z.enum(SOLVER);

export type TSolver = z.infer<typeof Solver>;

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<TDict<z.infer<typeof yDaemonTokenListBalance>>>;
export type TSupportedZaps = z.infer<typeof Solver>;

0 comments on commit 7527aaa

Please sign in to comment.