Skip to content

Commit

Permalink
chore: update deps + remove dead code/deps (#153)
Browse files Browse the repository at this point in the history
Co-authored-by: Karan Pargal <[email protected]>
  • Loading branch information
jagnani73 and karanpargal authored Apr 16, 2024
1 parent 40e8003 commit d8d5d12
Show file tree
Hide file tree
Showing 90 changed files with 5,509 additions and 8,952 deletions.
39 changes: 0 additions & 39 deletions .eslintrc.json

This file was deleted.

19 changes: 0 additions & 19 deletions .storybook/main.js

This file was deleted.

23 changes: 23 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { StorybookConfig } from "@storybook/react-vite";

const config: StorybookConfig = {
stories: ["../src/**/*.stories.@(js|jsx|ts|tsx)"],
addons: [
"@storybook/addon-onboarding",
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
],
framework: {
name: "@storybook/react-vite",
options: {},
},
typescript: {
reactDocgen: "react-docgen-typescript",
},
docs: {
autodocs: "tag",
},
staticDirs: ["../src/static"],
};
export default config;
18 changes: 18 additions & 0 deletions .storybook/manager.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { addons } from "@storybook/manager-api";
import { type ThemeVars, themes } from "@storybook/theming";

export const defaultTheme: ThemeVars = {
...themes.dark,
appBg: "black",
colorSecondary: "#EA088C",
brandImage:
"https://github.com/covalenthq/web3-resources/assets/7921710/1ab51c53-1115-4989-8f93-a1e8d13c8640",
base: "light",
brandTitle: "GoldRush Kit - powered by Covalent",
brandUrl: "https://github.com/covalenthq/goldrush-kit/",
brandTarget: "https://www.covalenthq.com/",
};

addons.setConfig({
theme: defaultTheme,
});
3 changes: 0 additions & 3 deletions .storybook/preview-head.html

This file was deleted.

59 changes: 12 additions & 47 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,57 +1,22 @@
import React from "react";
import { Preview } from "@storybook/react";
import "../src/tailwind-output.css";
import { themes } from "@storybook/theming";
import { GoldRushProvider } from "../src/utils/store";
// import { useDarkMode } from 'storybook-dark-mode' // uncomment out this one line for dark mode
import { defaultTheme } from "./manager";

export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
themes: {
clearable: false,
list: [
{
name: "Light",
class: [],
color: "#ffffff",
default: true,
},
{
name: "Dark",
class: ["dark"],
color: "#000000",
const Story = ({ storyFn }) => storyFn();
const preview: Preview = {
parameters: {
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
],
},
darkMode: {
// Override the default dark theme
dark: {
...themes.dark,
appBg: "black",
colorSecondary: "#EA088C",
brandImage:
"https://github.com/covalenthq/web3-resources/assets/7921710/1ab51c53-1115-4989-8f93-a1e8d13c8640",
},
// Override the default light theme
light: {
...themes.normal,
appBg: "white",
colorSecondary: "#EA088C",
brandImage:
"https://github.com/covalenthq/web3-components/assets/7921710/36909291-c669-448b-abcd-988cabc83cf3",
},
},
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
docs: {
theme: defaultTheme,
},
},
};

import React from "react";
import { Preview } from "@storybook/react";

const Story = ({ storyFn }) => storyFn();
const preview: Preview = {
decorators: [
(storyFn) => (
<GoldRushProvider
Expand Down
166 changes: 0 additions & 166 deletions README.hi.md

This file was deleted.

10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,11 @@
<div align="center">
200+ Chains. Open-source. Customizable.
</div>
<p align="center">
<p align="center">
<br />
<a href="https://www.covalenthq.com/docs/unified-api/goldrush/kit/gold-rush-provider/" rel="dofollow"><strong>Explore the docs »</strong></a>
<br />
</p>
<p align="center">
<br />
Read this in other languages: <a href="https://github.com/covalenthq/goldrush-kit/blob/main/README.hi.md">हिंदी</a>
</p>

## Setup

Expand Down Expand Up @@ -141,20 +137,22 @@ export default function GoldRushExample() {
## GoldRush Templates

| Template | Description | Link |
|---------------------------------------|------------------------------------------------------------|--------------------------------------------------------------|
| ------------------------------------- | ---------------------------------------------------------- | ------------------------------------------------------------ |
| Wallet & Portfolio UI | Display your tokens and NFTs across multiple chains. | https://github.com/covalenthq/goldrush-wallet-portfolio-ui |
| NFT Collection Gallery & Analytics UI | Display NFTs by collection and see their details. | https://github.com/covalenthq/goldrush-nft-gallery-ui |
| Uniswap-like Analytics UI | Display Uniswap-like analytics for the dex of your choice. | https://github.com/covalenthq/goldrush-uniswap-dex-dashboard |
| Transaction Receipt View | A beautifully designed view for blockchain transactions. | https://github.com/covalenthq/goldrush-tx-receipt-ui |

## HIGHLIGHT: GoldRush Transaction Receipt View

Designed to transform cluttered blockchain transaction data into meaningful summaries useful to the user. Receipts are fully extensible and enhance the clarity and understanding of various blockchain activities. Imagine a transaction view that shows Game-Fi quest achievements, swap pool position data, or even staking impact on network security—this is all possible with GoldRush-Kit.

https://goldrush-tx-receipt-ui.vercel.app/

https://github.com/covalenthq/goldrush-tx-receipt-ui

## GoldRush Decoder

Decode transaction log events to display them in a human-readable format. Useful for understanding the data that is emitted from smart contracts and is a critical component of any dApp. Works in tandem with GoldRush-Kit to provide a seamless experience for developers and users alike.

https://github.com/covalenthq/goldrush-decoder
Expand Down
Loading

0 comments on commit d8d5d12

Please sign in to comment.