@artman325/releasemanager

2.0.0 • Public • Published

IntercoinContract

System for Deploying Intercoin Smart Contracts, Factories and Instances

Installation

Node

npm install @openzeppelin/contracts-ethereum-package

Deploy

when deploy it is no need to pass parameters in to constructor

Overview

Once installed will be use methods:

method name called by description
IntercoinContract.sol
init owner initializing after deploy
produceFactory owner creating factory possible to create contract instance
registerInstance only factories created by IntercoinContract registering contracts created by factories
checkInstance anyone checking contracts created by factory
renounceOwnership owner Leaves the contract without owner.
It will not be possible to call `onlyOwner` functions anymore.
Factory.sol
init owner initializing after deploy
produce anyone creating contract insance

Methods (IntercoinContract.sol)

init

initializing after deploy

produceFactory

creating factory possible to create contract instance Emitted event ProducedFactory(address addr)
Params:

name type description
contractInstance address contract's address which need to clone

Return Values:

name type description
factoryInstance address factory's address

registerInstance

Registering contracts creating by factories Params:

name type description
addr address[] address of contract instance

Return Values:

name type description
success bool true if registered successful

checkInstance

checking contracts created by factory Params:

name type description
addr address[] address of contract instance

Return Values:

name type description
success bool true if registered successfully before

renounceOwnership

Leaves the contract without owner

Methods (Factory.sol)

init

initializing after deploy

produce

creating factory possible to create contract instance Emitted event Produced(address indexed caller, address indexed addr)
Return Values:

name type description
addr address contract's address

Lifecycle

  1. owner deploy contract which need to be cloned. got contract address
  2. owner deploy IntercoinContract and call method init()
  3. create factory
    • owner call method produceFactory(<contract address>) at IntercoinContract.
    • emitted event ProducedFactory(<factory address>)
  4. creating contract
    • anyone can call method produce() at newly created factory
    • emitted event Produce(<contract address>)
  5. now user can call init at newly created contract and would to be owner

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.00latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.00
1.1.30
1.1.20
1.1.10
1.1.00

Package Sidebar

Install

npm i @artman325/releasemanager

Weekly Downloads

0

Version

2.0.0

License

ISC

Unpacked Size

70.2 kB

Total Files

13

Last publish

Collaborators

  • artman325