npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@keep-network/tbtc-v2-starknet

v1.0.2

Published

StarkNet cross-chain integration for tBTC v2

Downloads

5

Readme

tBTC v2 StarkNet Cross-Chain Integration

StarkNet cross-chain integration for tBTC v2, enabling Bitcoin deposits directly to StarkNet Layer 2.

Prerequisites

  • Node.js >= 14.0.0
  • Yarn package manager

Installation

yarn install

Environment Configuration

Required environment variables:

L1_CHAIN_API_URL=https://1rpc.io/sepolia
L1_ACCOUNTS_PRIVATE_KEYS=your_private_key_here  # for sepolia (comma-separated)
CONTRACT_OWNER_ACCOUNT_PRIVATE_KEY=your_key     # for mainnet
ETHERSCAN_API_KEY=your_etherscan_api_key

Available Commands

Development

yarn clean      # Clean build artifacts and cache
yarn build      # Compile contracts
yarn test       # Run tests with external deployments
yarn test:integration  # Run integration tests

Deployment

yarn deploy:test     # Deploy with test stubs
yarn deploy:sepolia  # Deploy to Sepolia testnet
yarn deploy:mainnet  # Deploy to mainnet

Verification

yarn verify --network <network>  # Verify contracts on Etherscan

Artifacts

yarn export-artifacts:sepolia   # Export Sepolia deployment artifacts
yarn export-artifacts:mainnet   # Export mainnet deployment artifacts

Network Configuration

Sepolia Testnet

  • StarkGate Bridge: 0xF6217de888fD6E6b2CbFBB2370973BE4c36a152D
  • StarkNet tBTC Token: 0x05f09ee6e942b869aa159287924156cb9bc4510a447c0cc80a898780434d5c2c

Mainnet

  • StarkGate Bridge: 0x2111A49ebb717959059693a3698872a0aE9866b9
  • StarkNet tBTC Token: 0x04daa17763b286d1e59b97c283c0b8c949994c361e426a28f743c67bdfe9a32f

Architecture

The StarkNetBitcoinDepositor contract uses OpenZeppelin's transparent proxy pattern and integrates with:

  • tBTC Bridge: Core Bitcoin deposit processing
  • tBTC Vault: Token minting and custody
  • StarkGate Bridge: L1→L2 messaging infrastructure
  • StarkNet tBTC Token: L2 token representation

Deployment Notes

  1. Test on Sepolia before mainnet deployment
  2. Update mainnet StarkNet tBTC token address in deployment script
  3. Contracts are automatically verified on Etherscan when ETHERSCAN_API_KEY is configured

License

GPL-3.0-only