
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
escrowcontract
Advanced tools
A smart contract with the ability to exchange one token against others.
A smart contract with the ability to exchange one token against others.
when deploy it is need to pass parameters in to init method that started new escrow mechanism
Params:
| name | type | description |
|---|---|---|
| participants | address[] | addresses list of participants who will exchange own tokens. see Note#1 |
| tokens | address[] | addresses list of tokens. see Note#1 |
| minimums | uint256 | minimum amount list of tokens. see Note#1 |
| duration | uint256 | escrow duration in seconds. started after escrow have been locked up |
| quorumCount | uint256 | how participants need to deposit minimum tokens that escrow will be locked up |
| swapFrom | address[] | addresses list or participants which tokens will be swapped from. see Note#2 |
| swapTo | address[] | addresses list or participants which tokens will be swapped to. see Note#2 |
| swapBackAfterEscrow | bool | if true, participants can withdraw own deposited tokens after escrow expired |
once installed will be use methods to exchange Note that contract accept tokens, it should be approve before
Params:
| name | type | description |
|---|---|---|
| tokens | address | address of token. |
Params:
| name | type | description |
|---|---|---|
| recipient | address | recipient address |
| token | address | address of token. |
| amount | uint256 | amount |
there are no parameters
there are no parameters
swapBackAfterEscrow is true)Notes:
participants=['0x1111...']
tokens=['0x222...']
minimums=[100]
if will be added participant#2 with address '0x3333...' and want to trade 200 tokens with address '0x4444...' than
participants=['0x1111...','0x3333...']
tokens=['0x222...','0x4444...']
minimums=[100,200]
and so on 2. swapFrom/swapTo are combined and linked arrays with the same length too
FAQs
A smart contract with the ability to exchange one token against others.
We found that escrowcontract 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

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.