Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update license #198

Merged
merged 1 commit into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div align="center">
<a href="https://goldrush.dev/products/goldrush/" target="_blank" rel="noopener noreferrer">
<img alt="GoldRush Kit Logo" src="./src/static/grk-kit-banner.png" style="max-width: 100%;"/>
<img alt="GoldRush Kit - powered by Covalent" src="./src/static/grk-kit-banner.png" style="max-width: 100%;"/>
</a>
</div>

Expand All @@ -13,7 +13,7 @@
<a href="https://www.npmjs.com/package/@covalenthq/goldrush-kit">
<img src="https://img.shields.io/npm/dm/@covalenthq/goldrush-kit" alt="npm downloads">
</a>
<img src="https://img.shields.io/github/license/covalenthq/goldrush-kit" alt="MIT">
<img src="https://img.shields.io/github/license/covalenthq/goldrush-kit" alt="Apache-2.0">
</p>

<h1 align="center">
Expand All @@ -40,12 +40,6 @@ Install `goldrush-kit` using `npm`:
npm install @covalenthq/goldrush-kit
```

or `yarn`:

```bash
yarn add @covalenthq/goldrush-kit
```

## Implementation

1. Import `GoldRushProvider`
Expand All @@ -55,7 +49,8 @@ import { GoldRushProvider } from "@covalenthq/goldrush-kit";
```

2. Wrap `GoldRushProvider` around the application.
3. Configure the provider and add it to the `apikey` props with your GoldRush API key. You can register for a free key on [GoldRush's website](https://goldrush.dev/platform/auth/register/).
3. Configure the provider and add it to the `apikey` props with your GoldRush API key. You can register for a free key on [GoldRush's website](https://goldrush.dev/platform/apikey).

> **Note:** You should always keep your API key private, never put it directly into your code, especially front end code. Instead, use an environment variable to inject the key into your code.

```tsx
Expand Down Expand Up @@ -220,4 +215,4 @@ Give a ⭐️ if this project helped you!

## License

This project is <a href="./LICENSE">Apache 2.0</a> licensed.
This project is [Apache-2.0](./LICENSE) licensed.
62 changes: 32 additions & 30 deletions src/components/Atoms/Address/Address.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,38 +32,40 @@ export const Address: React.FC<AddressProps> = ({
};

return (
<p className="flex items-center gap-x-2">
<>
<Toaster />
{avatar && <AddressAvatar {...avatar} address={address} />}
<p className="flex items-center gap-x-2">
{avatar && <AddressAvatar {...avatar} address={address} />}

{actionableWrapper(
actionable_address(address),
label?.trim() || truncate(address)
)}
{actionableWrapper(
actionable_address(address),
label?.trim() || truncate(address)
)}

{show_copy_icon && (
<button
className="cursor-pointer"
onClick={() => {
copyToClipboard(address);
}}
>
{showCopy ? (
<IconWrapper
icon_class_name="done"
icon_size="text-sm"
class_name="text-foreground-light dark:text-foreground-dark opacity-75"
/>
) : (
<IconWrapper
icon_class_name="content_copy"
icon_size="text-sm"
class_name="text-foreground-light dark:text-foreground-dark opacity-75"
on_click={() => handleCopyClick()}
/>
)}
</button>
)}
</p>
{show_copy_icon && (
<button
className="cursor-pointer"
onClick={() => {
copyToClipboard(address);
}}
>
{showCopy ? (
<IconWrapper
icon_class_name="done"
icon_size="text-sm"
class_name="text-foreground-light dark:text-foreground-dark opacity-75"
/>
) : (
<IconWrapper
icon_class_name="content_copy"
icon_size="text-sm"
class_name="text-foreground-light dark:text-foreground-dark opacity-75"
on_click={() => handleCopyClick()}
/>
)}
</button>
)}
</p>
</>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const TransactionReceipt: React.FC<TransactionReceiptProps> = ({
}),
headers: {
"content-type": "application/json",
"x-covalent-api-key": apikey,
"x-goldrush-api-key": apikey,
},
method: "POST",
}
Expand Down
Loading