diff --git a/README.md b/README.md index 4c54e1a65..a535f7692 100644 --- a/README.md +++ b/README.md @@ -2,19 +2,10 @@ This is an open UI for Hydra, a protocol on Solana for facilitating collective account pooling, fan out wallet and dao treasury. It can be thought of as a group-owned wallet that can accept funds. Unlike a multi-signature wallet, this is meant to collect and distribute funds, not execute group transactions. More information on the protocol can be found a https://github.com/GlassEaters/hydra. -| Package | Description | Version | -| :-------- | :------------------- | :---------------------------- | -| `Devnet` | Devnet ui for Hydra | https://dev-hydra.cardinal.so | -| `Mainnet` | Mainnet ui for Hydra | https://hydra.cardinal.so | - -

- -

- ## Getting Started ```bash -git clone https://github.com/cardinal-labs/hydra-ui.git +git clone https://github.com/solana-nft-programs/hydra-ui.git cd hydra-ui yarn install yarn dev diff --git a/common/Header.tsx b/common/Header.tsx index f2f7aeb73..e633f1529 100644 --- a/common/Header.tsx +++ b/common/Header.tsx @@ -1,6 +1,6 @@ import { useWallet } from '@solana/wallet-adapter-react' import { WalletMultiButton } from '@solana/wallet-adapter-react-ui' -import { AccountConnect } from '@cardinal/namespaces-components' +import { AccountConnect } from '@solana-nft-programs/namespaces-components' import { Wallet } from '@saberhq/solana-contrib' import { useRouter } from 'next/router' diff --git a/hooks/useFanoutMembershipMintVouchers.ts b/hooks/useFanoutMembershipMintVouchers.ts index 41b00e012..d11a41b8f 100644 --- a/hooks/useFanoutMembershipMintVouchers.ts +++ b/hooks/useFanoutMembershipMintVouchers.ts @@ -6,7 +6,7 @@ import { PublicKey } from '@solana/web3.js' import { useEnvironmentCtx } from 'providers/EnvironmentProvider' import { useDataHook } from './useDataHook' -import { AccountData } from '@cardinal/common' +import { AccountData } from '@solana-nft-programs/common' import { FanoutMembershipMintVoucher } from '@glasseaters/hydra-sdk' const HYDRA_PROGRAM_ID = new PublicKey( diff --git a/hooks/useFanoutMembershipVouchers.ts b/hooks/useFanoutMembershipVouchers.ts index f6ad8519c..bd130af05 100644 --- a/hooks/useFanoutMembershipVouchers.ts +++ b/hooks/useFanoutMembershipVouchers.ts @@ -5,7 +5,7 @@ import { PublicKey } from '@solana/web3.js' import { useEnvironmentCtx } from 'providers/EnvironmentProvider' import { useDataHook } from './useDataHook' -import { AccountData } from '@cardinal/common' +import { AccountData } from '@solana-nft-programs/common' import { FanoutMembershipVoucher } from '@glasseaters/hydra-sdk' const HYDRA_PROGRAM_ID = new PublicKey( diff --git a/package.json b/package.json index e978f6b49..a1566de72 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "hydra-ui", "version": "0.1.0", "private": true, - "homepage": "https://hydra.cardinal.so", + "homepage": "https://hydra.host.so", "license": "Apache-2.0", "scripts": { "dev": "next dev", @@ -11,10 +11,10 @@ "lint": "next lint" }, "dependencies": { - "@cardinal/common": "^8.0.0", - "@cardinal/namespaces-components": "^3.1.0", - "@cardinal/staking": "^2.3.0", - "@cardinal/token-manager": "^4.5.1", + "@solana-nft-programs/common": "^8.0.0", + "@solana-nft-programs/namespaces-components": "^3.1.0", + "@solana-nft-programs/staking": "^2.3.0", + "@solana-nft-programs/token-manager": "^4.5.1", "@emotion/styled": "^11.8.1", "@glasseaters/hydra-sdk": "^0.3.2", "@coral-xyz/anchor": "^0.27.0", diff --git a/pages/[walletId]/index.tsx b/pages/[walletId]/index.tsx index cce61b015..f1787b490 100644 --- a/pages/[walletId]/index.tsx +++ b/pages/[walletId]/index.tsx @@ -1,5 +1,5 @@ -import { DisplayAddress } from '@cardinal/namespaces-components' -import { executeTransaction } from '@cardinal/staking' +import { DisplayAddress } from '@solana-nft-programs/namespaces-components' +import { executeTransaction } from '@solana-nft-programs/staking' import { FanoutClient } from '@glasseaters/hydra-sdk' import { Wallet } from '@coral-xyz/anchor/dist/cjs/provider' import { useWallet } from '@solana/wallet-adapter-react' diff --git a/pages/_app.tsx b/pages/_app.tsx index 834b0cde0..8d8d1010b 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -1,8 +1,8 @@ import './styles.css' -import '@cardinal/namespaces-components/dist/esm/styles.css' +import '@solana-nft-programs/namespaces-components/dist/esm/styles.css' import type { AppProps } from 'next/app' import { WalletProvider } from '@solana/wallet-adapter-react' -import { WalletIdentityProvider } from '@cardinal/namespaces-components' +import { WalletIdentityProvider } from '@solana-nft-programs/namespaces-components' import { WalletModalProvider } from '@solana/wallet-adapter-react-ui' import { @@ -26,23 +26,23 @@ const App = ({ }: AppProps & { cluster: string }) => { return ( <> - + Hydra UI - - - - - - <> - - - - - - - + + + + + + <> + + + + + + + ) } diff --git a/pages/create/index.tsx b/pages/create/index.tsx index e77e4e814..4eef96ce3 100644 --- a/pages/create/index.tsx +++ b/pages/create/index.tsx @@ -60,7 +60,7 @@ const Home: NextPage = () => { throw 'Please specify at least one member' } if (!hydraWalletMembers || hydraWalletMembers.length > 9) { - throw 'Too many members - submit a PR to https://github.com/cardinal-labs/hydra-ui to increase this minimum' + throw 'Too many members - submit a PR to https://github.com/solana-nft-programs/hydra-ui to increase this minimum' } const fanoutId = (await FanoutClient.fanoutKey(walletName))[0] @@ -139,7 +139,7 @@ const Home: NextPage = () => { className="appearance-none block w-full bg-gray-200 text-gray-700 border border-gray-200 rounded py-3 px-4 mb-3 leading-tight focus:outline-none focus:bg-white" name="grid-first-name" type="text" - placeholder="cardinal-wallet" + placeholder="wallet" onChange={(e) => { setWalletName(e.target.value) setSuccess(false) diff --git a/pages/index.tsx b/pages/index.tsx index ef4c62e0a..274410e9e 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -43,13 +43,15 @@ const Home: NextPage = () => { id="grid-first-name" onSubmit={() => alert('HEr')} type="text" - placeholder="cardinal-wallet" + placeholder="wallet" onChange={(e) => { setWalletName(e.target.value) }} value={walletName} /> - We currently only support Hydra wallets of membership model Wallet + + We currently only support Hydra wallets of membership model Wallet +