OpenViSTAI · Agents · Blockchain · Crypto
Menu
Smart Contracts

Pm Contracts

Pm Contracts is a collection of Solidity smart contracts for the Gnosis prediction-market platform. Its repository documents npm commands for installing the package, testing, compiling contracts, migrating the basic framework through an RPC provider, and managing network artifacts.

Independent OpenViST project profile, based on linked sources.

Pm Contracts — OpenViST project profile in Smart Contracts.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when a project needs Solidity contract components for a Gnosis-style prediction-market platform and a repository-documented workflow for testing, compilation, migration or network artifacts.

Who it is for

  • Developers building or integrating prediction-market smart contracts.
  • Teams that need documented npm and Truffle workflows for compiling, testing or migrating the contract framework.

Documented uses

  • Install the contract package through npm.
  • Run the contract test suite.
  • Compile contracts to obtain ABI and bytecode.
  • Migrate the basic framework to the network associated with an RPC provider.
  • View deployed addresses and manage network information in build artifacts.
Before you choose

Requirements & limits

The repository is public and the contracts are released under LGPL-3.0. The documented test command requires Node.js version 7 or later; compile and migration commands apply to an RPC provider on port 8545.

  • The project supplies smart contracts, not a consumer-facing market interface; its README points to pm-js for interaction with the contracts.
  • Compilation produces ABI and bytecode, while migration targets the network associated with the configured RPC provider.
  • The README warns that extracting network information overwrites networks.json.
  • The README states that the contracts are provided without warranty.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Compile and migrate the basic contract framework

Use the documented npm scripts to compile contract artifacts and migrate the basic framework through an RPC provider.

Before you start

  • Install the package requirements with npm.
  • Have an RPC provider running on port 8545; the README suggests TestRPC may be running in the background.

Steps

  1. Install with the command below.

    Documented command
    npm install @gnosis.pm/pm-contracts
  2. Run the command below to produce ABI and bytecode.

    Documented command
    npm run compile
  3. Run the command below to migrate the basic framework onto the network associated with the RPC provider.

    Documented command
    npm run migrate

Expected outcome

Compiled ABI and bytecode, followed by a migration of the basic framework to the provider-associated network.

Guide limitations

  • The documented commands apply to an RPC provider on port 8545.
  • Migration targets the network associated with the configured provider; the guide does not specify provider setup.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
14 October 2026
Original website title
gnosis/pm-contracts · Official homepage title · retained in its source language