
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@intercoin/income
Advanced tools
Implements UBI and other types of income, used to claim currency in other external contracts
Implements UBI and other types of income, used to claim currency in other external contracts
when deploy it is need to pass parameters in to init method
Params:
| name | type | description |
|---|---|---|
| token | address | token's address. if token = address(0) then contract will trying to claim ETH |
once installed will be use methods:
adding recipient to contract. Only for Owner
Params:
| name | type | description |
|---|---|---|
| recipient | address | recipient's address |
lockups for recipient. Only for Owner
Params:
| name | type | description |
|---|---|---|
| recipient | address | recipient's address |
| restrictions | tuple[] | array or RestrictParam tuples |
RestrictParam tuple
| name | type | description |
|---|---|---|
| amount | uint256 | amount |
| untilTime | uint256 | time in unixtimestamp |
| gradual | bool | gradual |
adding manager to recipient. Only for Owner
Params:
| name | type | description |
|---|---|---|
| recipient | address | recipient's address |
| manager | address | manager's address |
removing manager from recipient. Only for Owner
Params:
| name | type | description |
|---|---|---|
| recipient | address | recipient's address |
| manager | address | manager's address |
setup allowed amount to recipient claim
Params:
| name | type | description |
|---|---|---|
| recipient | address | recipient's address |
| amount | uint256 | amount |
call by recipient to claim funds
Params:
| name | type | description |
|---|---|---|
| recipient | address | recipient's address |
Returned params:
| name | type | description |
|---|---|---|
| maximum | uint256 | maximum funds that was setup by owner |
| payed | uint256 | already paid funds. mean that recipient already claimed them |
| locked | uint256 | fudns that restricted by owner |
| allowedByManager | uint256 | funds allowed by manager. recipient can claim them |
Create IncomeContract with param 'token' = <0x0000000000000000000000000000000000000000>. That mean that contract will be work with ethers. And send some ethers to IncomeContract.
so owner want to pay some recipient 10eth per week for 2 months(8 weeks). Need to do several steps:
addRecipient(<recipient address>)addManager(<recipient address>,<manager address>)setLockup(<recipient address>, <array or restriction's tuples>). one tuple is [amount,untilTime,gradual].
So it will be smth like this[
[<10e18>,<time_now + 1week in seconds>, false],
[<10e18>,<time_now + 2week in seconds>, false],
[<10e18>,<time_now + 3week in seconds>, false],
[<10e18>,<time_now + 4week in seconds>, false],
[<10e18>,<time_now + 5week in seconds>, false],
[<10e18>,<time_now + 6week in seconds>, false],
[<10e18>,<time_now + 7week in seconds>, false],
[<10e18>,<time_now + 8week in seconds>, false]
]
pay not more that 20eth. for example he invoking method pay(<recipient address>,<12e18>). reciepient can claim only 12 ethFAQs
Implements UBI and other types of income, used to claim currency in other external contracts
We found that @intercoin/income 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.