Skip to content

Commit

Permalink
fix(monorepo): rename pangolindex to honeycomb-finance packages (#536)
Browse files Browse the repository at this point in the history
* v0.0.1

* v0.0.2

* v0.0.1

* v0.0.2

* v0.0.3

* v0.0.4

* fix: change with honeycomb

* fix: bridge honeycomb change

* fix: change honeycomb to honeycomb-finance

* fix: doc updated
  • Loading branch information
SarjuHansaliya committed Sep 14, 2023
1 parent a5a1801 commit a8eb8d2
Show file tree
Hide file tree
Showing 467 changed files with 5,601 additions and 1,168 deletions.
26 changes: 13 additions & 13 deletions monorepo/apps/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@
},
"dependencies": {
"@ethersproject/providers": "^5.7.2",
"@honeycomb/governance": "*",
"@honeycomb-finance/governance": "*",
"@pangolindex/sdk": "5.3.4",
"@pangolindex/airdrop": "*",
"@pangolindex/bridge": "*",
"@pangolindex/core": "*",
"@pangolindex/elixir": "*",
"@pangolindex/sar": "*",
"@pangolindex/honeycomb-provider": "*",
"@pangolindex/pools": "*",
"@pangolindex/portfolio": "*",
"@pangolindex/shared": "*",
"@pangolindex/swap": "*",
"@pangolindex/walletmodal": "*",
"@pangolindex/wallet-connectors": "*",
"@honeycomb-finance/airdrop": "*",
"@honeycomb-finance/bridge": "*",
"@honeycomb-finance/core": "*",
"@honeycomb-finance/elixir": "*",
"@honeycomb-finance/sar": "*",
"@honeycomb-finance/honeycomb-provider": "*",
"@honeycomb-finance/pools": "*",
"@honeycomb-finance/portfolio": "*",
"@honeycomb-finance/shared": "*",
"@honeycomb-finance/swap": "*",
"@honeycomb-finance/walletmodal": "*",
"@honeycomb-finance/wallet-connectors": "*",
"@types/react-router-dom": "^5.3.3",
"@web3-react/core": "6.0.9",
"react": "^18.2.0",
Expand Down
4 changes: 2 additions & 2 deletions monorepo/apps/example/src/constants/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { SUPPORTED_EVM_CHAINS_ID } from '@honeycomb-finance/wallet-connectors';
import { PangolinWallet, PangolinWalletConnectWallet, SUPPORTED_WALLETS } from '@honeycomb-finance/walletmodal';
import { CHAINS, ChainId } from '@pangolindex/sdk';
import { SUPPORTED_EVM_CHAINS_ID } from '@pangolindex/wallet-connectors';
import { PangolinWallet, PangolinWalletConnectWallet, SUPPORTED_WALLETS } from '@pangolindex/walletmodal';

const walletConnectProjectId = import.meta.env.VITE_WALLETCONNECT_PROJECTID;

Expand Down
12 changes: 6 additions & 6 deletions monorepo/apps/example/src/layout/Header/index.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { Box, Button } from '@pangolindex/core';
import { TokenInfoModal } from '@pangolindex/portfolio';
import { CHAINS, Chain, TokenAmount } from '@pangolindex/sdk';
import { PNG, shortenAddressMapping, useActiveWeb3React, useChainId } from '@pangolindex/shared';
import { Box, Button } from '@honeycomb-finance/core';
import { TokenInfoModal } from '@honeycomb-finance/portfolio';
import { PNG, shortenAddressMapping, useActiveWeb3React, useChainId } from '@honeycomb-finance/shared';
import {
ApplicationModal,
useApplicationState,
useModalOpen,
useWalletModalToggle,
useWalletModalToggleWithChainId,
} from '@pangolindex/state-hooks';
import { NetworkSelection, WalletModal } from '@pangolindex/walletmodal';
} from '@honeycomb-finance/state-hooks';
import { NetworkSelection, WalletModal } from '@honeycomb-finance/walletmodal';
import { CHAINS, Chain, TokenAmount } from '@pangolindex/sdk';
import React, { useCallback, useState } from 'react';
import { supportedWallets } from '../../constants';
import Logo from '../Logo';
Expand Down
2 changes: 1 addition & 1 deletion monorepo/apps/example/src/layout/Logo/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box } from '@pangolindex/core';
import { Box } from '@honeycomb-finance/core';
import React from 'react';
import LogoDark from '../../assets/svg/logoSloganDark.svg';
import { LogoWrapper } from './styled';
Expand Down
2 changes: 1 addition & 1 deletion monorepo/apps/example/src/layout/styled.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box } from '@pangolindex/core';
import { Box } from '@honeycomb-finance/core';
import styled from 'styled-components';

export const MainContent = styled.div`
Expand Down
4 changes: 2 additions & 2 deletions monorepo/apps/example/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HoneycombProvider } from '@pangolindex/honeycomb-provider';
import { NetworkContextName, useActiveWeb3React } from '@pangolindex/shared';
import { HoneycombProvider } from '@honeycomb-finance/honeycomb-provider';
import { NetworkContextName, useActiveWeb3React } from '@honeycomb-finance/shared';
import { Web3ReactProvider, createWeb3ReactRoot } from '@web3-react/core';
import React from 'react';
import ReactDOM from 'react-dom';
Expand Down
6 changes: 3 additions & 3 deletions monorepo/apps/example/src/pages/Airdrop/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Airdrop, ComingSoon } from '@pangolindex/airdrop';
import { getTokenLogoURL } from '@pangolindex/core';
import { Airdrop, ComingSoon } from '@honeycomb-finance/airdrop';
import { getTokenLogoURL } from '@honeycomb-finance/core';
import { PNG } from '@honeycomb-finance/shared';
import { ChainId, FLARE_MAINNET, HEDERA_MAINNET, SONGBIRD_CANARY } from '@pangolindex/sdk';
import { PNG } from '@pangolindex/shared';
import React from 'react';
import { Frame } from './styleds';

Expand Down
2 changes: 1 addition & 1 deletion monorepo/apps/example/src/pages/Airdrop/styleds.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box } from '@pangolindex/core';
import { Box } from '@honeycomb-finance/core';
import styled from 'styled-components';

export const Frame = styled(Box)`
Expand Down
2 changes: 1 addition & 1 deletion monorepo/apps/example/src/pages/Bridge/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Bridge } from '@pangolindex/bridge';
import { Bridge } from '@honeycomb-finance/bridge';
import React from 'react';

function BridgeUI() {
Expand Down
2 changes: 1 addition & 1 deletion monorepo/apps/example/src/pages/Elixir/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Elixir } from '@pangolindex/elixir';
import { Elixir } from '@honeycomb-finance/elixir';
import React from 'react';

function ElixirUI() {
Expand Down
2 changes: 1 addition & 1 deletion monorepo/apps/example/src/pages/Governance/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GovernanceList } from '@honeycomb/governance';
import { GovernanceList } from '@honeycomb-finance/governance';
import React from 'react';

function Governance() {
Expand Down
2 changes: 1 addition & 1 deletion monorepo/apps/example/src/pages/GovernanceDetail/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GovernanceDetail } from '@honeycomb/governance';
import { GovernanceDetail } from '@honeycomb-finance/governance';
import React from 'react';
import { useParams } from 'react-router-dom';

Expand Down
2 changes: 1 addition & 1 deletion monorepo/apps/example/src/pages/Pool/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PoolsUI } from '@pangolindex/pools';
import { PoolsUI } from '@honeycomb-finance/pools';
import React from 'react';

function Pool() {
Expand Down
4 changes: 2 additions & 2 deletions monorepo/apps/example/src/pages/Sample/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Box, Button, NewsWidget } from '@pangolindex/core';
import { MyPortfolio, Portfolio, WatchList } from '@pangolindex/portfolio';
import { Box, Button, NewsWidget } from '@honeycomb-finance/core';
import { MyPortfolio, Portfolio, WatchList } from '@honeycomb-finance/portfolio';
import React from 'react';
import { GridContainer, PortfolioContainer } from './styled';

Expand Down
2 changes: 1 addition & 1 deletion monorepo/apps/example/src/pages/Sample/styled.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box } from '@pangolindex/core';
import { Box } from '@honeycomb-finance/core';
import styled from 'styled-components';

export const GridContainer = styled(Box)`
Expand Down
4 changes: 2 additions & 2 deletions monorepo/apps/example/src/pages/SarSingleStake/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Box } from '@pangolindex/core';
import { Position, SarManageWidget, SarNFTPortfolio, SarStakeWidget } from '@pangolindex/sar';
import { Box } from '@honeycomb-finance/core';
import { Position, SarManageWidget, SarNFTPortfolio, SarStakeWidget } from '@honeycomb-finance/sar';
import React, { useCallback, useState } from 'react';
import { PageWrapper } from './styled';

Expand Down
2 changes: 1 addition & 1 deletion monorepo/apps/example/src/pages/SarSingleStake/styled.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box } from '@pangolindex/core';
import { Box } from '@honeycomb-finance/core';
import styled from 'styled-components';

export const PageWrapper = styled(Box)`
Expand Down
4 changes: 2 additions & 2 deletions monorepo/apps/example/src/pages/Swap/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useChainId } from '@honeycomb-finance/shared';
import { SwapWidget } from '@honeycomb-finance/swap';
import { CHAINS } from '@pangolindex/sdk';
import { useChainId } from '@pangolindex/shared';
import { SwapWidget } from '@pangolindex/swap';
import React from 'react';
import { GridContainer, SwapWidgetWrapper } from './styled';

Expand Down
2 changes: 1 addition & 1 deletion monorepo/apps/example/src/pages/Swap/styled.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box } from '@pangolindex/core';
import { Box } from '@honeycomb-finance/core';
import styled from 'styled-components';

export const SwapWidgetWrapper = styled(Box)`
Expand Down
2 changes: 1 addition & 1 deletion monorepo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dev:app": "turbo run dev:app --concurrency=20",
"dev:packages": "turbo run dev --concurrency=20",
"start:app": "turbo run start --filter=example-app",
"build:packages": "turbo run build --filter=@pangolindex/* --filter=@honeycomb/*",
"build:packages": "turbo run build --filter=@pangolindex/* --filter=@honeycomb-finance/*",
"changeset": "changeset",
"release": "changeset publish",
"version": "changeset version",
Expand Down
2 changes: 1 addition & 1 deletion monorepo/packages/airdrop/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const config: StorybookConfig = {
// make sure webpack find turborepo packages from root node_modules
updatedConfig.resolve.alias = {
...updatedConfig.resolve.alias,
'@pangolindex/shared': path.join(process.cwd(), '../../node_modules/@pangolindex/shared'),
'@honeycomb-finance/shared': path.join(process.cwd(), '../../node_modules/@honeycomb-finance/shared'),
};
}

Expand Down
2 changes: 1 addition & 1 deletion monorepo/packages/airdrop/.storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import type { Preview } from '@storybook/react';
import { ThemeProvider } from '@pangolindex/shared';
import { ThemeProvider } from '@honeycomb-finance/shared';

const InternalProvider = ({ children, theme }) => {
return <ThemeProvider theme={theme}>{children}</ThemeProvider>;
Expand Down
8 changes: 4 additions & 4 deletions monorepo/packages/airdrop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
Components to interact with Airdrop Contracts.

## Installation
`yarn add @pangolindex/airdrop @pangolindex/honeycomb-provider`
`yarn add @honeycomb-finance/airdrop @honeycomb-finance/honeycomb-provider`

or

`npm install @pangolindex/airdrop @pangolindex/honeycomb-provider`
`npm install @honeycomb-finance/airdrop @honeycomb-finance/honeycomb-provider`

### Install below dependancies as its peer dependancies

Expand All @@ -22,8 +22,8 @@ In your main file wrap your app with `HoneycombProvider` and `Web3ReactProvider`
_Use version **6.0.9** of `@web3-react/core` package._

```tsx
import { HoneycombProvider } from '@pangolindex/honeycomb-provider';
import { NetworkContextName, useActiveWeb3React } from '@pangolindex/shared';
import { HoneycombProvider } from '@honeycomb-finance/honeycomb-provider';
import { NetworkContextName, useActiveWeb3React } from '@honeycomb-finance/shared';
import { Web3ReactProvider, createWeb3ReactRoot } from '@web3-react/core';
import React from 'react';
import ReactDOM from 'react-dom';
Expand Down
12 changes: 6 additions & 6 deletions monorepo/packages/airdrop/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@pangolindex/airdrop",
"name": "@honeycomb-finance/airdrop",
"version": "0.0.0",
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
Expand Down Expand Up @@ -41,12 +41,12 @@
},
"dependencies": {
"@ethersproject/providers": "5.7.2",
"@pangolindex/core": "*",
"@honeycomb-finance/core": "*",
"@honeycomb-finance/shared": "*",
"@honeycomb-finance/state-hooks": "*",
"@honeycomb-finance/wallet-connectors": "*",
"@honeycomb-finance/walletmodal": "*",
"@pangolindex/exchange-contracts": "2.1.7",
"@pangolindex/shared": "*",
"@pangolindex/state-hooks": "*",
"@pangolindex/wallet-connectors": "*",
"@pangolindex/walletmodal": "*",
"axios": "0.26.0",
"ethers": "5.6.4",
"react-feather": "2.0.9",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Box, Button, Text } from '@pangolindex/core';
import { Box, Button, Text } from '@honeycomb-finance/core';
import { useTranslation } from '@honeycomb-finance/shared';
import { useHederaTokenAssociated } from '@honeycomb-finance/state-hooks';
import { Token } from '@pangolindex/sdk';
import { useTranslation } from '@pangolindex/shared';
import { useHederaTokenAssociated } from '@pangolindex/state-hooks';
import React from 'react';
import Title from 'src/components/Title';
import { Wrapper } from '../../Title/styleds';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Box, Button, Text } from '@pangolindex/core';
import { Box, Button, Text } from '@honeycomb-finance/core';
import { useActiveWeb3React, usePangolinWeb3 } from '@honeycomb-finance/shared';
import { useWalletModalToggleWithChainId } from '@honeycomb-finance/state-hooks';
import { network } from '@honeycomb-finance/wallet-connectors';
import { onChangeNetwork, useWalletState } from '@honeycomb-finance/walletmodal';
import { Chain } from '@pangolindex/sdk';
import { useActiveWeb3React, usePangolinWeb3 } from '@pangolindex/shared';
import { useWalletModalToggleWithChainId } from '@pangolindex/state-hooks';
import { network } from '@pangolindex/wallet-connectors';
import { onChangeNetwork, useWalletState } from '@pangolindex/walletmodal';
import React, { useCallback } from 'react';
import Title from '../../Title';
import { Wrapper } from '../../Title/styleds';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Box, Button, Text } from '@pangolindex/core';
import { Box, Button, Text } from '@honeycomb-finance/core';
import { useActiveWeb3React, usePangolinWeb3 } from '@honeycomb-finance/shared';
import { useWalletModalToggleWithChainId } from '@honeycomb-finance/state-hooks';
import { network } from '@honeycomb-finance/wallet-connectors';
import { onChangeNetwork, useWalletState } from '@honeycomb-finance/walletmodal';
import { AVALANCHE_MAINNET, ChainId } from '@pangolindex/sdk';
import { useActiveWeb3React, usePangolinWeb3 } from '@pangolindex/shared';
import { useWalletModalToggleWithChainId } from '@pangolindex/state-hooks';
import { network } from '@pangolindex/wallet-connectors';
import { onChangeNetwork, useWalletState } from '@pangolindex/walletmodal';
import React, { useCallback } from 'react';
import Title from '../../Title';
import { TextBottomWrapper, Wrapper } from '../../Title/styleds';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Box, Button, Drawer, Loader, Text } from '@pangolindex/core';
import { Box, Button, Drawer, Loader, Text } from '@honeycomb-finance/core';
import { getEtherscanLink, useChainId, useTranslation } from '@honeycomb-finance/shared';
import { AirdropType } from '@pangolindex/sdk';
import { getEtherscanLink, useChainId, useTranslation } from '@pangolindex/shared';
import React, { useContext } from 'react';
import { AlertTriangle, CheckCircle } from 'react-feather';
import GiftBox from 'src/assets/images/giftbox.png';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Box, Button, Text } from '@pangolindex/core';
import { Box, Button, Text } from '@honeycomb-finance/core';
import { useTranslation } from '@honeycomb-finance/shared';
import { useWalletModalToggleWithChainId } from '@honeycomb-finance/state-hooks';
import { Token } from '@pangolindex/sdk';
import { useTranslation } from '@pangolindex/shared';
import { useWalletModalToggleWithChainId } from '@pangolindex/state-hooks';
import React from 'react';
import Title from '../../Title';
import { Wrapper } from '../../Title/styleds';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, Text } from '@pangolindex/core';
import { Box, Text } from '@honeycomb-finance/core';
import { Token } from '@pangolindex/sdk';
import React from 'react';
import Title from '../../Title';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PNG, ZERO_ADDRESS } from '@honeycomb-finance/shared';
import { AirdropType } from '@pangolindex/sdk';
import { PNG, ZERO_ADDRESS } from '@pangolindex/shared';
import { ComponentStory } from '@storybook/react';
import React from 'react';
import { argTypes } from './argTypes';
Expand Down
6 changes: 3 additions & 3 deletions monorepo/packages/airdrop/src/components/Airdrop/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Box, Button, Loader, Text, Tooltip } from '@pangolindex/core';
import { Box, Button, Loader, Text, Tooltip } from '@honeycomb-finance/core';
import { getChainByNumber, usePangolinWeb3 } from '@honeycomb-finance/shared';
import { useHederaTokenAssociated } from '@honeycomb-finance/state-hooks';
import { AVALANCHE_MAINNET, AirdropType, Chain, NetworkType, Token, TokenAmount } from '@pangolindex/sdk';
import { getChainByNumber, usePangolinWeb3 } from '@pangolindex/shared';
import { useHederaTokenAssociated } from '@pangolindex/state-hooks';
import { formatUnits } from 'ethers/lib/utils';
import React, { useCallback, useEffect, useState } from 'react';
import { useClaimAirdrop, useMerkledropClaimedAmounts, useMerkledropProof } from '../../hooks';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PNG } from '@pangolindex/shared';
import { PNG } from '@honeycomb-finance/shared';
import { ComponentStory } from '@storybook/react';
import React from 'react';
import ComingSong from '.';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, Text } from '@pangolindex/core';
import { Box, Text } from '@honeycomb-finance/core';
import { Token } from '@pangolindex/sdk';
import React from 'react';
import Title from '../Title';
Expand Down
4 changes: 2 additions & 2 deletions monorepo/packages/airdrop/src/components/Title/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Box, Text } from '@pangolindex/core';
import { ThemeColorsType } from '@pangolindex/shared';
import { Box, Text } from '@honeycomb-finance/core';
import { ThemeColorsType } from '@honeycomb-finance/shared';
import React from 'react';
import { Separator, StyledLogo, TitleWrapper } from './styleds';

Expand Down
2 changes: 1 addition & 1 deletion monorepo/packages/airdrop/src/components/Title/styleds.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box } from '@pangolindex/core';
import { Box } from '@honeycomb-finance/core';
import styled from 'styled-components';

export const PageWrapper = styled(Box)`
Expand Down
8 changes: 4 additions & 4 deletions monorepo/packages/airdrop/src/hooks/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { TransactionResponse } from '@ethersproject/providers';
import { AirdropType, NetworkType, Token, TokenAmount } from '@pangolindex/sdk';
import {
MixPanelEvents,
calculateGasMargin,
Expand All @@ -11,9 +10,10 @@ import {
usePangolinWeb3,
usePngSymbol,
waitForTransaction,
} from '@pangolindex/shared';
import { useTransactionAdder } from '@pangolindex/state-hooks';
import { hederaFn } from '@pangolindex/wallet-connectors';
} from '@honeycomb-finance/shared';
import { useTransactionAdder } from '@honeycomb-finance/state-hooks';
import { hederaFn } from '@honeycomb-finance/wallet-connectors';
import { AirdropType, NetworkType, Token, TokenAmount } from '@pangolindex/sdk';
import axios from 'axios';
import { BigNumber } from 'ethers';
import { useState } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion monorepo/packages/bridge/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const config: StorybookConfig = {
// make sure webpack find turborepo packages from root node_modules
updatedConfig.resolve.alias = {
...updatedConfig.resolve.alias,
'@pangolindex/shared': path.join(process.cwd(), '../../node_modules/@pangolindex/shared'),
'@honeycomb-finance/shared': path.join(process.cwd(), '../../node_modules/@honeycomb-finance/shared'),
};
}

Expand Down
2 changes: 1 addition & 1 deletion monorepo/packages/bridge/.storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import type { Preview } from '@storybook/react';
import { ThemeProvider } from '@pangolindex/shared';
import { ThemeProvider } from '@honeycomb-finance/shared';

const InternalProvider = ({ children, theme }) => {
return <ThemeProvider theme={theme}>{children}</ThemeProvider>;
Expand Down
Loading

0 comments on commit a8eb8d2

Please sign in to comment.