Skip to content

Commit

Permalink
update libs
Browse files Browse the repository at this point in the history
  • Loading branch information
scottrepreneur committed Jan 19, 2024
1 parent 756cc5d commit 734f16d
Show file tree
Hide file tree
Showing 126 changed files with 1,640 additions and 1,381 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions packages/constants/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from './abi';
export * from './config';
export * from './misc';
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Address } from 'viem';

import { getKeys } from '../utils/getKeys';
// import { getKeys } from '../utils/getKeys';
import { CONFIG } from './config';

export { CONFIG };
Expand Down Expand Up @@ -154,7 +154,9 @@ export const invoiceFactory = {
80001: NETWORK_CONFIG[80001].INVOICE_FACTORY,
};

export const SUPPORTED_NETWORKS = getKeys(NETWORK_CONFIG).map(k => Number(k));
// TODO fix
// export const SUPPORTED_NETWORKS = getKeys(NETWORK_CONFIG).map(k => Number(k));
export const SUPPORTED_NETWORKS = [1, 4, 5, 42, 100, 137, 31337, 80001];

export const INVOICE_VERSION = 'smart-invoice-v0';

Expand Down
18 changes: 18 additions & 0 deletions packages/constants/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "@smart-invoice/constants",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"viem": "^1.21.4"
},
"devDependencies": {
"@types/node": "^20.11.5"
}
}
23 changes: 23 additions & 0 deletions packages/constants/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"target": "ES2020",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "ESNext",
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"paths": {
"@/*": ["./*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "../../jest.config.ts"],
"exclude": ["node_modules", "dist"]
}
5 changes: 4 additions & 1 deletion packages/dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@
"@graphql-typed-document-node/core": "^3.2.0",
"@rainbow-me/rainbowkit": "^1.3.3",
"@react-pdf/renderer": "^3.1.14",
"@smart-invoice/constants": "*",
"@smart-invoice/hooks": "*",
"@smart-invoice/ui": "*",
"@smart-invoice/utils": "*",
"@tanstack/react-query": "^5.17.9",
"@tanstack/react-table": "^8.11.3",
"@vercel/analytics": "^1.1.1",
"@wagmi/core": "^1.4.13",
"abitype": "^0.10.3",
"base-58": "^0.0.1",
"bignumber.js": "^9.1.2",
"dotenv": "^16.0.1",
"firebase": "^10.7.0",
"focus-visible": "^5.2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ import { CSSReset, ChakraProvider, ColorModeScript } from '@chakra-ui/react';
import { Global } from '@emotion/react';
import { RainbowKitProvider } from '@rainbow-me/rainbowkit';

import { ErrorBoundary } from '../components/ErrorBoundary';
import { Layout } from '../shared/Layout';
import { globalStyles, theme } from '../theme';
import { chains, wagmiConfig } from '../utils/web3';
import { ErrorBoundary, Layout, globalStyles, theme } from '@smart-invoice/ui';
import { chains, wagmiConfig } from '@smart-invoice/utils';
import { AppProps } from 'next/app';

const App = ({ Component, pageProps }: AppProps) => {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
useBreakpointValue,
} from '@chakra-ui/react';

import { InvoiceDashboardTable } from '../components/InvoiceDashboardTable';
import { InvoiceDashboardTable } from '@smart-invoice/ui';

const Invoices = () => {
const { data: walletClient } = useWalletClient();
Expand Down
Loading

0 comments on commit 734f16d

Please sign in to comment.