npm

@pooltogether/pooltogether-proxy-factory-package
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

pooltogether-proxy-factory-package

Typescript wrapper to use PoolTogether's Generic Minimal Proxy Factory for deploying contracts.

How it works

Import this package into your repo using: yarn add -D @pooltogether/pooltogether-proxy-factory-package

Import in the deployments script:

import { factoryDeploy } from "@pooltogether/pooltogether-proxy-factory-package"

or

const { factoryDeploy } = require("@pooltogether/pooltogether-proxy-factory-package")

Pass the paramaters required:

interface DeploySettings {
    implementationAddress: string
    contractName: string
    overWrite?: boolean
    signer?: any 
    initializeData?: any
    provider: any 
}

Installation

Install the repo and dependencies by running: yarn

Testing

Run the unit tests locally with: yarn test

Coverage

Generate the test coverage report with: yarn coverage

Todo:

  • use peerDependency for pooltgoether-proxy-factory
  • Write script that extracts deployed generic proxy factory addresses automatically
  • update tpes for DeploySettings interface
  • do we need both the signer and the provider
  • prublish non beta version

Readme

Keywords

none

Package Sidebar

Install

npm i @pooltogether/pooltogether-proxy-factory-package

Weekly Downloads

65

Version

1.0.1

License

MIT

Unpacked Size

27.3 kB

Total Files

14

Last publish

Collaborators

  • asselstine