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.45Registry latest16 Aug 202138
2.0.4411 Aug 202138
2.0.436 Aug 202138
2.0.4222 Jun 202138
2.0.4111 Jun 202138
2.0.402 Jun 202138
2.0.3925 May 202138
2.0.3821 May 202138
2.0.375 May 202138
2.0.3628 Apr 202138
2.0.351 Apr 202138
2.0.3417 Mar 202138
2.0.34-multiplex.016 Mar 202138
2.0.3324 Feb 202138
2.0.3210 Feb 202138
2.0.3126 Jan 202138
2.0.3013 Jan 202138
2.0.294 Jan 202138
2.0.2823 Dec 202038
2.0.2717 Dec 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