1.4.4 • Published 7 months ago

@aragon/osx-artifacts v1.4.4

Weekly downloads
-
License
AGPL-3.0-or-later
Repository
github
Last release
7 months ago

Aragon OSx artifacts

This package contains the ABI definitions of the OSx contracts, as well as the address of the protocol instances deployed on each network. Install it with:

yarn add @aragon/osx-artifacts

Usage

// ABI definitions
import {
    DAOABI,
    IDAOABI,
    DAOFactoryABI,
    DAORegistryABI,
    PluginRepoABI,
    PluginRepoFactoryABI,
    PluginRepoRegistryABI,
    PluginSetupProcessorABI,
    PermissionManagerABI
} from "@aragon/osx-artifacts";

console.log("DAO ABI", DAOABI);

// Protocol addresses per-network
import { addresses } from "@aragon/osx-artifacts";

console.log(addresses.daoFactory.mainnet);

You can also open addresses.json directly.

Development

Building the package

Install the dependencies and generate the local ABI definitions.

yarn --ignore-scripts
yarn build

The build script will: 1. Move to packages/contracts. 2. Install its dependencies. 3. Compile the contracts using Hardhat. 4. Generate their ABI. 5. Extract their ABI and embed it into on src/abi.ts.

Syncing the deployment addresses

Clone OSx Commons in a folder next to this repo.

# cd npm-artifacts
yarn sync-addresses

Publishing

  • Access the repo's GitHub Actions panel
  • Click on "Publish Artifacts"
  • Select the corresponding release-v* branch as the source

This action will:

  • Create a git tag like v1.2, following package.json's version field
  • Publish the package to NPM

Documentation

You can find all documentation regarding how to use this plugin in Aragon's documentation here.

Contributing

If you like what we're doing and would love to support, please review our CONTRIBUTING_GUIDE.md here. We'd love to build with you.

Security

If you believe you've found a security issue, we encourage you to notify us. We welcome working with you to resolve the issue promptly.

Security Contact Email: sirt@aragon.org

Please do not use the issue tracker for security issues.

1.4.0-alpha

11 months ago

1.4.4

7 months ago

1.4.3

8 months ago

1.4.2

9 months ago

1.4.1

9 months ago

1.4.0

9 months ago

1.3.1

2 years ago

1.3.0

2 years ago

1.3.0-rc0.4

2 years ago

1.3.0-rc0

2 years ago

1.3.0-rc0.1

2 years ago

1.3.0-rc0.3

2 years ago

1.3.0-rc0.2

2 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.0.0

3 years ago