npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@intercoin/control

v1.0.2

Published

Smart contract providing the collectively way to manage by calling any method from external contract

Downloads

5

Readme

ControlContract

Lets a community collectively manage a wallet and tokens by calliing any method from external contract

Deploy

when deploy it is no need to pass parameters in to constructor, but need to run method init immediately after deploy

Once installed will be use methods:

Methods

init

should be executed by creator immediately after deploy. can be executed only the one time

Params: name | type | description --|--|-- communityAddr|address|address of community contract GroupRolesSetting[]|tuple| array of groups. Each group should contain two roles: who can invoke and who can endorse.[[invokeRoleGroup1,endorseRoleGroup1], ...]

invoke

method will initiate a creation transaction. return invokeID - invoke identificator and invokeIDWei - value in wei that can be send to contract directly to endorse Params: name | type | description --|--|-- contractAddress|address|address of external token method|hexadecimal string|method of external token that would be executed params|hexadecimal string|params of external token's method

endorse

endorsed transaction by invokeID Params: name | type | description --|--|-- invokeID|uint256|invoke identificator

addMethod

allow participant with invokeRoleName/endorseRoleName to invoke/endorse transaction with method of contractAddress Note that attemptштп add method with different fraction/minimum will revert. so can be added only one time. But roles can be added it any time, just add the same fraction/minimum Params: name | type | description --|--|-- contractAddress|address|address of external token method|hexadecimal string|method of external token that would be executed invokeRoleName|string| invoke role name endorseRoleName|string| endorse role name minimum|uint256|minimum fraction|uint256|fraction value mul by 1e10

Events

OperationInvoked

happens while calling method invoke Params: name | type | description --|--|-- invokeID|uint256|invokeID invokeIDWei|uint40|invokeIDWei contractAddress|address| token's address method|hexadecimal string| method of external token that would be executed params|hexadecimal string| method's params

OperationEndorsed

happens while calling method endorse or sending eth directly to contract Params: name | type | description --|--|-- invokeID|uint256|invokeID invokeIDWei|uint40|invokeIDWei

OperationExecuted

happens when transaction should be executed Params: name | type | description --|--|-- invokeID|uint256|invokeID invokeIDWei|uint40|invokeIDWei

HeartBeat

happens when active group do smth Params: name | type | description --|--|-- groupIndex|uint256|group's index that has been active now time|uint256|timestamp in GMT time

CurrentGroupIndexChanged

happens when group regained ownership Params: name | type | description --|--|-- from|uint256|group index of old owner to|uint256|group index of new owner time|uint256|timestamp in GMT time

Contracts MD

ControlContract.md ControlContract.md