stake.link is a Liquid Staking protocol for the Chainlink, Polygon and Espresso networks. stake.link consists of the highest-quality node operators and validators to ensure a seamless and secure way to put tokens to stake.
By building on top of Chainlink Staking stake.link offers a way for users to stake their LINK across Chainlink Node Operators and the community pool, receiving stLINK, the liquid staking receipt token that rebases rewards. stLINK is always backed by the amount of LINK staked 1:1.
stake.link delegates staked POL across Polygon validators, with users receiving stPOL, the liquid staking receipt token that rebases rewards. stPOL is always backed by the amount of POL staked 1:1.
stake.link delegates staked ESP across Espresso validators, with users receiving stESP, the liquid staking receipt token that rebases rewards. stESP is always backed by the amount of ESP staked 1:1.
For more detailed technical documentation:
$ nvm install 22
$ nvm use 22$ yarn- Set env vars
MAINNET_RPC_URLandPOLYGON_RPC_URLfor the networks you would like to connect to, andETHERSCAN_API_KEYfor contract verification - To sign deployments and scripts with a Ledger, add its address to
ledgerAccountsinhardhat.config.ts - Set env var
HARDHAT_NETWORK(or pass--network) to the network you want to deploy to and/or interact with (default islocalhost)
To run a local hardhat node, run:
$ yarn startTo run a local hardhat node, deploy all contracts, and send a series of transactions that mock user behaviour, run:
$ yarn start-test-envTo do the same against a node that is already running, run:
$ yarn deploy
$ yarn setup-test-envDeployed addresses are written to deployments/localhost.json.
Production deployment and upgrade scripts live in scripts/prod, grouped by product and release. To run one against a network, run:
$ npx hardhat run scripts/prod/<product>/<release>/<script>.ts --network mainnetDeployed addresses are recorded in deployments/<network>.json.
To run all contract tests, run:
$ yarn testTo generate a coverage report in coverage/, run:
$ yarn test --coverage