
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@intercoin/contest
Advanced tools
Helps people contribute money to a project, and choose judges to distribute it for various solutions.
Helps people contribute money to a project, and choose judges to distribute it for various solutions.
when deploy it is need to pass parameters in to init method Params:
| name | type | description |
|---|---|---|
| stagesCount | uint256 | count of stages for Contest |
| stagesMinAmount | uint256 | array of minimum amount that need to reach at each stage. length array should be the same as stagesCount |
| contestPeriodInSeconds | uint256 | duration in seconds for contest period(exclude before reach minimum amount) |
| votePeriodInSeconds | uint256 | duration in seconds for voting period |
| revokePeriodInSeconds | uint256 | duration in seconds for revoking period |
| percentForWinners | uint256[] | array of values in percentages of overall amount that will gain winners |
| judges | address[] | array of judges' addresses. if empty than everyone can vote |
| name | type | value | description |
|---|---|---|---|
| revokeFee | uint256 | 10e4 | 10% mul at 1e6. penalty for revoke tokens |
once installed will be use methods:
| method name | called by | contract | description |
|---|---|---|---|
| isContestOnline | anyone | boths | Checking online Contest |
| pledge | anyone | Constest.sol only | can be used to send external token into the contract, and issue internal token balance |
| pledgeETH | anyone | ConstestETHOnly.sol only | can be used to send ETH into the contract, and issue internal token balance |
| delegate | anyone outside the contestant list | boths | user can delegate own vote |
| vote | anyone on the judge list (if judgelist empty anyone outside the contestant list) | boths | vote for contestant |
| claim | anyone on the contestant list | boths | claim funds |
| enter | anyone | boths | sender is become a contestant |
| leave | anyone on the contestant list | boths | sender leave from contest |
| revoke | anyone outside the contestant list | boths | revoke own vote or delegation |
Checking online Contest Params:
| name | type | description |
|---|---|---|
| stageID | uint256 | Stage number |
can be used only with Constest.sol to send external token into the contract, and issue internal token balance Params:
| name | type | description |
|---|---|---|
| amount | uint256 | amount to pledge |
| stageID | uint256 | Stage number |
can be used only with ConstestETHOnly.sol to send ETH into the contract, and issue internal token balance
Note that ETH need to send with transaction/ not directly to contract via native recieve()
Params:
| name | type | description |
|---|---|---|
| amount | uint256 | amount to pledge |
| stageID | uint256 | Stage number |
Params:
| name | type | description |
|---|---|---|
| judge | address | address of judge which user want to delegate own vote |
| stageID | uint256 | Stage number |
Params:
| name | type | description |
|---|---|---|
| contestantAddress | address | address of contestant which user want to vote |
| stageID | uint256 | Stage number |
Params:
| name | type | description |
|---|---|---|
| stageID | uint256 | Stage number |
Params:
| name | type | description |
|---|---|---|
| stageID | uint256 | Stage number |
Params:
| name | type | description |
|---|---|---|
| stageID | uint256 | Stage number |
Params:
| name | type | description |
|---|---|---|
| stageID | uint256 | Stage number |
ContestStart. Starting Contest Period with StageID = 0
enter() and become contestantleave() and remove itself from contestant listpledge() if didn't not become contestant earliercontestPeriodInSeconds seconds. and stop there
StageStartAnnouncedvotePeriodInSeconds seconds.
revokePeriodInSeconds seconds.
stageID).
ContestWinnerAnnouncedstagesCountFAQs
Helps people contribute money to a project, and choose judges to distribute it for various solutions.
We found that @intercoin/contest demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.