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

@gammaswap/v1-periphery

v1.2.4

Published

Periphery contracts for the GammaSwap V1 protocol

Downloads

21

Readme

Description

This is the repository for the periphery smart contracts of the GammaSwap V1 protocol.

This repository contains concrete implementations of periphery contracts to interact with deployed GammaPools.

Contracts in this repository do not contain core GammaSwap logic. Instead, they enhance the functionality of existing core logic by implementing safety checks when calling certain GammaPool functions and increase composability by extending the ERC721 implementation towards GammaPool loans.

The GammaPool contracts in the v1-core repo do not need the contracts in this repository in order to work, but this repository does depend on the contracts in v1-core.

Users are encouraged to interact with the GammaPools via the contracts in this repository to ensure a safe user experience.

Steps to Run GammaSwap Tests Locally

  1. Run yarn to install GammaSwap dependencies
  2. Run yarn test to run hardhat tests
  3. Run yarn fuzz to run foundry tests (Need foundry binaries installed locally)

To deploy contracts to local live network use v1-deployment repository

Note

To install foundry locally go to getfoundry.sh

Solidity Versions

Code is tested with solidity version 0.8.21 but paris evm version because arbitrum does not support shanghai evm

Concrete contracts support only solidity version 0.8.21.

Abstract contracts support solidity version 0.8.4 and up.

Interfaces support solidity version 0.8.0 and up.

Publishing NPM Packages

To publish an npm package follow the following steps

  1. Bump the package.json version to the next level (either major, minor, or patch version)
  2. commit to the main branch adding 'publish package' in the comment section of the commit (e.g. when merging a pull request)

Rules for updating package.json version

  1. If change does not break interface, then it's a patch version update
  2. If change breaks interface, then it's a minor version update
  3. If change is for a new product release to public, it's a major version update