Skip to content

Commit

Permalink
remove skip core
Browse files Browse the repository at this point in the history
  • Loading branch information
yogurtandjam committed Oct 14, 2024
1 parent 1df5b5a commit fa38dc0
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 187 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@
"@reduxjs/toolkit": "^2.2.5",
"@scure/bip32": "^1.3.0",
"@scure/bip39": "^1.2.0",
"@skip-router/core": "^5.1.0",
"@skip-go/client": "0.10.3",
"@solana/web3.js": "^1.93.0",
"@statsig/js-client": "1.4.0",
Expand Down
185 changes: 4 additions & 181 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/lib/__test__/fixtures/skipCctpDeposit.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TxStatusResponseJSON } from '@skip-router/core';
import { TxStatusResponseJSON } from '@skip-client';

export const depositFromUsdcEthPending = {
transfers: [
Expand Down
2 changes: 1 addition & 1 deletion src/lib/__test__/fixtures/skipCctpWithdrawal.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TxStatusResponseJSON } from '@skip-router/core';
import { TxStatusResponseJSON } from '@skip-client';

export const withdrawToUsdcEthPending = {
transfers: [
Expand Down
2 changes: 1 addition & 1 deletion src/lib/__test__/fixtures/skipNonCctpDeposit.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TxStatusResponseJSON } from '@skip-router/core';
import { TxStatusResponseJSON } from '@skip-client';

export const depositFromEthereumEthSubmitted = {
transfers: [
Expand Down
2 changes: 1 addition & 1 deletion src/lib/__test__/fixtures/skipNonCctpWithdrawal.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TxStatusResponseJSON } from '@skip-router/core';
import { TxStatusResponseJSON } from '@skip-client';

export const withdrawToBinanceBNBSubmitted = {
transfers: [
Expand Down
14 changes: 13 additions & 1 deletion src/lib/skip.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import {
AxelarTransferInfoJSON,
CCTPTransferInfoJSON,
SkipClient,
TrackTxResponseJSON,
TransferEventJSON,
TransferInfoJSON,
TransferStatusJSON,
TxStatusResponseJSON,
} from '@skip-router/core';
} from '@skip-go/client';

import {
RouteStatus,
Expand Down Expand Up @@ -238,3 +239,14 @@ export const fetchTransferStatus = ({
}) => {
return fetchSkipStatus({ transactionHash: transactionId, chainId: fromChainId, baseUrl });
};

export const skipClient = new SkipClient({
endpointOptions: {
getRpcEndpointForChain: async (chainId: string) => {
if (chainId === 'noble-1') return 'https://noble-yx-rpc.polkachu.com/';
if (chainId === 'dydx-mainnet-1') return 'https://dydx-ops-rpc.kingnodes.com';
if (chainId === '43114') return 'https://api.avax.network/ext/bc/C/rpc';
return 'https://dydx-ops-rpc.kingnodes.com';
},
},
});

0 comments on commit fa38dc0

Please sign in to comment.