Skip to content

Commit

Permalink
Fix WalletConnect, remove local src packages (#24)
Browse files Browse the repository at this point in the history
* Bump versions

* Add changesets

* chore: version packages (delvtech#425)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Fix WalletConnect (delvtech#434)

* Delete local packages in favor of NPM hosted versions

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Jul 3, 2024
1 parent 3cd855c commit 350b67d
Show file tree
Hide file tree
Showing 329 changed files with 126 additions and 27,950 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ This monorepo uses [Yarn](https://classic.yarnpkg.com/) as a package manager. It

### Packages

| Name | Description |
| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| [council-sdk](https://github.com/delvtech/council-kit/tree/main/packages/council-sdk) | A TypeScript SDK for interfacing with the Council protocol. |
| [council-deploy](https://github.com/delvtech/council-kit/tree/main/packages/council-deploy) | A template for deploying council contracts on Goerli. |
| [council-typechain](https://github.com/delvtech/council-kit/tree/main/packages/council-typechain) | Type classes generated from the council protocol contracts using Typechain. |
> [!NOTE]
> Deleted in favor of NPM hosted versions.
### Utility Packages

Expand Down
7 changes: 7 additions & 0 deletions apps/council-sdk-starter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# council-sdk-starter

## 0.0.4

### Patch Changes

- Updated dependencies [e742438]
- @delvtech/council-viem@0.1.0

## 0.0.3

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions apps/council-sdk-starter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "council-sdk-starter",
"version": "0.0.3",
"version": "0.0.4",
"description": "Boilerplate to get started using the council-sdk fast!",
"license": "MIT",
"private": true,
Expand All @@ -16,7 +16,7 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@delvtech/council-viem": "^0.0.3",
"@delvtech/council-viem": "^0.1.0",
"viem": "^2.16.2"
},
"devDependencies": {
Expand Down
9 changes: 9 additions & 0 deletions apps/council-ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# council-ui

## 0.0.4

### Patch Changes

- Updated dependencies [819bab6]
- Updated dependencies [e742438]
- @delvtech/council-artifacts@0.1.0
- @delvtech/council-viem@0.1.0

## 0.0.3

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions apps/council-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "council-ui",
"version": "0.0.3",
"version": "0.0.4",
"private": true,
"scripts": {
"dev": "next dev",
Expand All @@ -12,8 +12,8 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@delvtech/council-artifacts": "^0.0.3",
"@delvtech/council-viem": "^0.0.3",
"@delvtech/council-artifacts": "^0.1.0",
"@delvtech/council-viem": "^0.1.0",
"@ensdomains/ensjs": "^3.4.4",
"@heroicons/react": "^2.1.1",
"@metamask/jazzicon": "^2.0.0",
Expand Down
8 changes: 4 additions & 4 deletions apps/council-ui/src/lib/rainbowKit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ import {
} from "@rainbow-me/rainbowkit/wallets";
import { chains, transports } from "src/lib/wagmi";

const { NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID, NODE_ENV } = process.env;
const walletConnectId = process.env.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID;
const wallets = [injectedWallet, safeWallet, rainbowWallet, metaMaskWallet];

// WalletConnect
if (NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID) {
if (walletConnectId) {
wallets.push(walletConnectWallet);
} else if (NODE_ENV === "development") {
} else if (process.env.NODE_ENV === "development") {
console.warn(
"Missing WalletConnect project ID. Set the NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID variable in your environment to use WalletConnect.",
);
}

export const wagmiConfig = getDefaultConfig({
appName: "Council",
projectId: NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID || "0",
projectId: walletConnectId || "0",
chains: chains as any,
transports,
wallets: [
Expand Down
2 changes: 1 addition & 1 deletion apps/council-ui/tsconfig.tsbuildinfo

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions packages/council-artifacts/.gitignore

This file was deleted.

19 changes: 0 additions & 19 deletions packages/council-artifacts/CHANGELOG.md

This file was deleted.

201 changes: 0 additions & 201 deletions packages/council-artifacts/LICENSE

This file was deleted.

Loading

0 comments on commit 350b67d

Please sign in to comment.