Skip to content

Commit

Permalink
Merge branch 'main' into hidotmatrix/fix/newDesign
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/old_components/jay-test.tsx
  • Loading branch information
fewensa committed Aug 8, 2024
2 parents 5d0061e + 340e2e0 commit 7cfdac6
Show file tree
Hide file tree
Showing 9 changed files with 5,582 additions and 1,012 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
vercel_token: ${{ secrets.VERCEL_TOKEN }}
vercel_group: itering
preview_output: true
alias_domain: "crosschain-dev"
alias_domain: "paralink-dev"
project_name: "crosschain-ui"
script_run: false
dist_path: .
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-stg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
vercel_token: ${{ secrets.VERCEL_TOKEN }}
vercel_group: itering
preview_output: true
alias_domain: "crosschain-stg"
alias_domain: "paralink-stg"
project_name: "crosschain-ui"
script_run: false
dist_path: .
Expand Down
6,233 changes: 5,563 additions & 670 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"@floating-ui/react": "^0.26.1",
"@polkadot/api": "^10.10.1",
"@polkadot/api": "^12.3.1",
"@polkadot/react-identicon": "^3.6.3",
"@rainbow-me/rainbowkit": "^1.1.3",
"@talismn/connect-wallets": "^1.2.3",
Expand Down
3 changes: 2 additions & 1 deletion src/config/chains/hydradx-chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export const hydradxChain: ChainConfig = {
/**
* Substrate
*/
endpoint: "wss://rpc.hydradx.cloud",
// endpoint: "wss://rpc.hydradx.cloud",
endpoint: "wss://hydradx-rpc.dwellir.com",
parachainId: ParachainID.HYDRADX,
};
1 change: 1 addition & 0 deletions src/hooks/use-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export function useApi(chain: ChainConfig) {
setApi(_api);
};
const failedListener = () => {
console.error(new Error(`API has been disconnected from the endpoint(${chain.endpoint})`));
setApi(undefined);
};

Expand Down
5 changes: 4 additions & 1 deletion src/libs/bridge/base.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import "@polkadot/api-augment";
import "@polkadot/types-augment";

import { Asset, AssetID, ChainConfig, Cross } from "@/types";
import { ApiPromise } from "@polkadot/api";
import { BN_ZERO, bnToBn, isFunction } from "@polkadot/util";
Expand Down Expand Up @@ -149,7 +152,7 @@ export abstract class BaseBridge {
],
},
},
}) as Promise<Option<u128>>);
}) as unknown as Promise<Option<u128>>);
amount = limitOption.isSome ? limitOption.unwrap().toBn() : amount;
}
return { currency: { symbol, name, decimals }, amount };
Expand Down
335 changes: 0 additions & 335 deletions src/old_components/jay-test.tsx

This file was deleted.

Loading

0 comments on commit 7cfdac6

Please sign in to comment.