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 🙏

© 2024 – Pkg Stats / Ryan Hefner

dlc-wasm-wallet

v0.4.8

Published

A test backend to: * generating offer messages for numerical contracts * receiving accept messages and returning sign messages from them

Downloads

15

Readme

DLC-protocol-wallet

A test backend to:

  • generating offer messages for numerical contracts
  • receiving accept messages and returning sign messages from them

Run with:

cargo run

Run against dev test environment:

STORAGE_API_ENDPOINT="https://dev-oracle.dlc.link/storage-api" FUNDED_URL="https://stacks-observer-mocknet.herokuapp.com/funded" BTC_RPC_URL="electrs-btc2.dlc.link:18443/wallet/alice" RPC_USER="devnet2" RPC_PASS="devnet2" ORACLE_URL="https://dev-oracle.dlc.link/oracle" STORAGE_API_ENABLED=true RUST_LOG=warn,dlc_protocol_wallet=info cargo run

Run against a full local stack (dlc.link devs only):

STORAGE_API_ENDPOINT="http://localhost:8100" FUNDED_URL="http://localhost:8889/funded" BTC_RPC_URL="localhost:28443/wallet/alice" RPC_USER="devnet2" RPC_PASS="devnet2" ORACLE_URL="http://localhost:8080" RUST_BACKTRACE=full STORAGE_API_ENABLED=true RUST_LOG=warn,dlc_protocol_wallet=info cargo run
  • Note, you can change the RUST_LOG to RUST_LOG=warn,dlc_protocol_wallet=debug for more debugging of this app's functioning.

Docker Compose example:

  • go into the docker folder and create a .env file like this (you can make a duplicate of the .env.template file and rename it to .env):
CONTRACT_CLEANUP_ENABLED: "false",
ELECTRUM_API_URL: "https://dev-oracle.dlc.link/electrs/",
BITCOIN_NETWORK: "regtest",
DOCKER_PUBLIC_REGISTRY_PREFIX=public.ecr.aws/dlc-link/,
FUNDED_URL: "https://stacks-observer-mocknet.herokuapp.com/funded",
ORACLE_URL: "https://dev-oracle.dlc.link/oracle",
RUST_LOG: "warn,dlc_protocol_wallet=debug",
RUST_BACKTRACE: "full",
STORAGE_API_ENABLED: "true",
STORAGE_API_ENDPOINT: "https://dev-oracle.dlc.link/storage-api",

Then run:

docker-compose up -d

If you run into an authentication error when pulling down the docker image like this:

Error response from daemon: pull access denied for public.ecr.aws/dlc-link/dlc-protocol-wallet, repository does not exist or may require 'docker login': denied: Your authorization token has expired. Reauthenticate and try again

Run the authentication command like this: aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws

as per this article: https://docs.aws.amazon.com/AmazonECR/latest/public/public-registries.html#public-registry-auth

API documentation:

See wallet.yaml - the content can be copied to swagger editor

Build Error

https://github.com/rust-lang/rust/issues/110475

If seeing something like: error[E0275]: overflow evaluating the requirement F: FnMut<(&Pk,)> then consider reverting back your nightly build of Rust to something like: rustup override set nightly-2023-03-31