Skip to content

Commit

Permalink
Merge pull request #117 from lidofinance/feature/si-1277-old-sdk-add-…
Browse files Browse the repository at this point in the history
…new-sdk-link-to-all-packages-readmes

Feature/si 1277 old sdk add new sdk link to all packages readmes
  • Loading branch information
Jeday authored Apr 2, 2024
2 parents b6b9887 + 740175d commit 5b2a2d6
Show file tree
Hide file tree
Showing 12 changed files with 49 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# ⚠️DEPRECATION WARNING⚠️

This project is being slowly deprecated and may not receive further updates.
Check out [modern Lido SDK](https://github.com/lidofinance/lido-ethereum-sdk/pulls) to access latest functionality. It is actively maintained and is built for interacting with Lido Protocol.

# Lido JS SDK

JS SDK for Lido Finance projects.
Expand Down
5 changes: 5 additions & 0 deletions packages/constants/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# ⚠️DEPRECATION WARNING⚠️

This project is being slowly deprecated and may not receive further updates.
Check out [modern Lido SDK](https://github.com/lidofinance/lido-ethereum-sdk/pulls) to access latest functionality. It is actively maintained and is built for interacting with Lido Protocol.

# Constants

Constants for Lido Finance projects.
Expand Down
3 changes: 3 additions & 0 deletions packages/constants/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export enum CHAINS {
Optimism = 10,
Fuji = 43113,
Avalanche = 43114,
Sepolia = 11155111,
}

export const CHAINS_IDS = [
Expand All @@ -25,6 +26,7 @@ export const CHAINS_IDS = [
CHAINS.Rinkeby,
CHAINS.Goerli,
CHAINS.Kovan,
CHAINS.Sepolia,
];

export const CHAINS_COLORS: {
Expand All @@ -36,6 +38,7 @@ export const CHAINS_COLORS: {
[CHAINS.Goerli]: '#3099f2',
[CHAINS.Holesky]: '#AA346A',
[CHAINS.Kovan]: '#9064ff',
[CHAINS.Sepolia]: '#FFD700',
};

export const getChainColor = (chainId: CHAINS): string => {
Expand Down
5 changes: 5 additions & 0 deletions packages/constants/src/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ export const TOKENS_BY_NETWORK: {
[TOKENS.STETH]: '0x3F1c547b21f65e10480dE3ad8E19fAAC46C95034',
[TOKENS.LDO]: '0x14ae7daeecdf57034f3E9db8564e46Dba8D97344',
},
[CHAINS.Sepolia]: {
[TOKENS.WSTETH]: '0xB82381A3fBD3FaFA77B3a7bE693342618240067b',
[TOKENS.STETH]: '0x3e3FE7dBc6B4C189E7128855dD526361c49b40Af',
[TOKENS.LDO]: '0xd06dF83b8ad6D89C86a187fba4Eae918d497BdCB',
},
};

export const getTokenAddress = (chainId: CHAINS, token: TOKENS): string => {
Expand Down
1 change: 1 addition & 0 deletions packages/constants/src/withdrawal_queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const WITHDRAWAL_QUEUE_BY_NETWORK: {
[CHAINS.Mainnet]: '0x889edC2eDab5f40e902b864aD4d7AdE8E412F9B1',
[CHAINS.Goerli]: '0xCF117961421cA9e546cD7f50bC73abCdB3039533',
[CHAINS.Holesky]: '0xc7cc160b58F8Bb0baC94b80847E2CF2800565C50',
[CHAINS.Sepolia]: '0x1583C7b3f4C3B008720E6BcE5726336b0aB25fdd',
};

export const getWithdrawalQueueAddress = (chainId: CHAINS): string => {
Expand Down
5 changes: 5 additions & 0 deletions packages/contracts/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# ⚠️DEPRECATION WARNING⚠️

This project is being slowly deprecated and may not receive further updates.
Check out [modern Lido SDK](https://github.com/lidofinance/lido-ethereum-sdk/pulls) to access latest functionality. It is actively maintained and is built for interacting with Lido Protocol.

# Contracts

Contracts for Lido Finance projects.
Expand Down
5 changes: 5 additions & 0 deletions packages/fetch/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# ⚠️DEPRECATION WARNING⚠️

This project is being slowly deprecated and may not receive further updates.
Check out [modern Lido SDK](https://github.com/lidofinance/lido-ethereum-sdk/pulls) to access latest functionality. It is actively maintained and is built for interacting with Lido Protocol.

# Fetchers

Fetchers for Lido Finance projects.
Expand Down
4 changes: 4 additions & 0 deletions packages/fetch/src/providersUrls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export const getInfuraRPCUrl = (chainId: CHAINS, apiKey: string): string => {
return `https://kovan.infura.io/v3/${apiKey}`;
case CHAINS.Holesky:
return `https://holesky.infura.io/v3/${apiKey}`;
case CHAINS.Sepolia:
return `https://sepolia.infura.io/v3/${apiKey}`;
default:
invariant(false, 'Chain is not supported');
}
Expand All @@ -38,6 +40,8 @@ export const getAlchemyRPCUrl = (chainId: CHAINS, apiKey: string): string => {
return `https://eth-kovan.alchemyapi.io/v2/${apiKey}`;
case CHAINS.Holesky:
return `https://eth-holesky.alchemyapi.io/v2/${apiKey}`;
case CHAINS.Sepolia:
return `https://eth-sepolia.g.alchemy.com/v2/${apiKey}`;
default:
invariant(false, 'Chain is not supported');
}
Expand Down
5 changes: 5 additions & 0 deletions packages/helpers/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# ⚠️DEPRECATION WARNING⚠️

This project is being slowly deprecated and may not receive further updates.
Check out [modern Lido SDK](https://github.com/lidofinance/lido-ethereum-sdk/pulls) to access latest functionality. It is actively maintained and is built for interacting with Lido Protocol.

# Helpers

Helpers for Lido Finance projects.
Expand Down
1 change: 1 addition & 0 deletions packages/helpers/src/etherscan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const ETHERSCAN_PREFIX_BY_NETWORK: {
[CHAINS.Goerli]: 'goerli.',
[CHAINS.Kovan]: 'kovan.',
[CHAINS.Holesky]: 'holesky.',
[CHAINS.Sepolia]: 'sepolia.',
};

export const getEtherscanPrefix = (chainId: CHAINS): string => {
Expand Down
5 changes: 5 additions & 0 deletions packages/providers/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# ⚠️DEPRECATION WARNING⚠️

This project is being slowly deprecated and may not receive further updates.
Check out [modern Lido SDK](https://github.com/lidofinance/lido-ethereum-sdk/pulls) to access latest functionality. It is actively maintained and is built for interacting with Lido Protocol.

# Providers

Providers for Lido Finance projects.
Expand Down
5 changes: 5 additions & 0 deletions packages/react/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# ⚠️DEPRECATION WARNING⚠️

This project is being slowly deprecated and may not receive further updates.
Check out [modern Lido SDK](https://github.com/lidofinance/lido-ethereum-sdk/pulls) to access latest functionality. It is actively maintained and is built for interacting with Lido Protocol.

# React helpers

React helpers for Lido Finance projects.
Expand Down

0 comments on commit 5b2a2d6

Please sign in to comment.