Catalog npm
PACKAGE EXPLORERView in registry

@0x/contracts-staking

npm

Staking contracts used by 0x protocol

Versions collected52
Direct dependencies38From release 2.0.45
Last observed20 Oct, 22:26 UTC

README

Current package documentation

Staking Contracts

This package implements the stake-based liquidity incentives defined by ZEIP-31.

See the specification here.

Contracts Directory Structure

The contracts can be found in contracts/src.

* Staking.sol        | This is a stateless contract that encapsulates all the staking logic.
* StakingProxy.sol   | This is a stateful contract that proxies into the Staking contract.
* ReadOnlyProxy.sol  | This is a stateless contract the makes read-only calls from the Staking Proxy to the Staking Contract.
* fees/              | This contains mixins that implement the logic for 0x Protocol fees.
* immutable/         | This contains mixins that are generally immutable. Changing these files can result in catastrophic failures. Exercise extreme caution.
* interfaces/        | This contains interfaces used throughout the entire staking system.
* libs/              | This contains libraries used by the staking contract; for example, math and signature validation.
* stake/             | This contains mixins that implement the core staking logic.
* staking_pools/     | This contains mixins that implement logic for creating and managing staking pools.
* sys/               | This contains mixins that implement system-level functionality, like scheduling and finalization.
* vaults/            | This contains the vaults (like the Zrx Token Vault).

Installation

Install

npm install @0x/contracts-staking --save

Contributing

We strongly recommend that the community help us make improvements and determine the future direction of the protocol. To report bugs within this package, please create an issue in this repository.

For proposals regarding the 0x protocol's smart contract architecture, message format, or additional functionality, go to the 0x Improvement Proposals (ZEIPs) repository and follow the contribution guidelines provided therein.

Please read our contribution guidelines before getting started.

Install Dependencies

If you don't have yarn workspaces enabled (Yarn < v1.0) - enable them:

yarn config set workspaces-experimental true

Then install dependencies

yarn install

Build

To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:

PKG=@0x/contracts-staking yarn build

Or continuously rebuild on change:

PKG=@0x/contracts-staking yarn watch

Clean

yarn clean

Lint

yarn lint

Run Tests

yarn test

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 52

Collected releases
VersionPublishedDirect dependenciesOpen version
2.0.2616 Dec 202038
2.0.259 Dec 202038
2.0.247 Dec 202038
2.0.233 Dec 202038
2.0.2219 Nov 202038
2.0.2113 Nov 202038
2.0.203 Nov 202038
2.0.193 Nov 202038
2.0.182 Nov 202038
2.0.1728 Oct 202038
2.0.1627 Oct 202038
2.0.1521 Oct 202038
2.0.1415 Jul 202038
2.0.1324 Jun 202038
2.0.123 Mar 202038
2.0.1127 Feb 202038
2.0.1026 Feb 202038
2.0.925 Feb 202038
2.0.815 Feb 202038
2.0.78 Feb 202038

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
0xproject/protocol

Shared repository data · GitHub

License detected in repository
Not collected

Repository

PENDING
0xproject/0x-monorepo

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:26 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:78dbb0a48b41fcbd9ef93302f72ebf2437788614c2b0680b035c7fd6ca7d7d84