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

@alpsfinance/core

v0.0.4

Published

This is the official Alps Finance smart contract repository.

Downloads

63

Readme

Alps Smart Contracts 💚

Truffle CI NPM Publish CI npm (scoped) License: AGPL v3

This is the official repository for Alps Finance Smart Contracts using Truffle Framework.

Built with 💚 from Alps Finance Developers.

Table of Contents

🛠️ Pre-requisites

1. Node.js

To install the latest version of Node.js, click here and follow the steps.

2. NPM/Yarn

If you plan to use NPM as your package manager, then you can skip this step because NPM comes with Node.js. Otherwise, if you would like to use yarn, then run the following command to install yarn:

npm i -g yarn

3. Truffle

To install truffle, run the following command:

// NPM
npm i -g truffle

// Yarn
yarn global add truffle

4. Moralis Admin Account

To get your free Moralis Admin Account, click here to register.

👨‍💻 Getting Started

1. Install Dependencies

# NPM
npm i

# Yarn
yarn

2. Environment Variables

Copy .env.example file and rename it to .env and fill in the environment variables.

ETHERSCAN_API_KEY=xxx
POLYGONSCAN_API_KEY=xxx
BSCSCAN_API_KEY=xxx
FTMSCAN_API_KEY=xxx
SNOWTRACE_API_KEY=xxx
MORALIS_SPEEDY_NODES_KEY=xxx
ARCHIVE=false

3. Compile the Smart Contracts

# NPM
npm run compile

# Yarn
yarn compile

🚀 Deployment

In order to deploy the smart contracts, run the following command.

# NPM
npm run migrate --network <network-name>

# Yarn
yarn migrate --network <network-name>

where network-name is based on truffle-config.js. Once the smart contracts are successfully deployed on-chain, then optionally verify the smart contracts with the following command.

# NPM
npm run verify <smart-contract-name> --network <network-name>

# Yarn
yarn verify <smart-contract-name> --network <network-name>

where smart-contract-name is the name of the smart contract from Solidity that you would like to verify and network-name is similar to above.

⚗️ Testing

All the testing scripts are under the test folder. To run the test run the following commands:

// NPM
$ npm run test

// Yarn
$ yarn test

📜 License

GNU Affero General Public License v3.0