# soliutils

> Basic contracts that I reuse often

Latest version **0.0.6** (published 2022-08-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install soliutils
pnpm add soliutils
yarn add soliutils
bun add soliutils
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2022-08-30 |
| First published | 2022-06-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Francesco Sullo |
| Maintainers | sullof |

## Links

- npm: https://www.npmjs.com/package/soliutils
- Repository: https://github.com/sullof/soliutils
- Homepage: https://github.com/sullof/soliutils#readme
- Issues: https://github.com/sullof/soliutils/issues
- npm.io page: https://npm.io/package/soliutils

## Dependencies (2)

- [@openzeppelin/contracts](https://npm.io/package/@openzeppelin/contracts.md) ^4.0.0
- [@openzeppelin/contracts-upgradeable](https://npm.io/package/@openzeppelin/contracts-upgradeable.md) ^4.4.1

## Recent versions

- 0.0.6 (latest) — 2022-08-30
- 0.0.5 — 2022-08-05
- 0.0.4 — 2022-07-17
- 0.0.3 — 2022-06-17
- 0.0.2 — 2022-06-17
- 0.0.1 — 2022-06-17

## README

# soliutils

A collection of basic contracts that I reuse all the time

## Install an usage

Install with
```
npm i -D soliutils @openzeppelin/contracts-upgradeable

```
and use as usual. For example, the UUPSUgradeable template:
```solidity
import "@secrez/soliutils/contracts/UUPSUpgradeableTemplate.sol";

contract YourUpgradeableContract is UUPSUpgradeableTemplate {

  function initialize() public initializer {
    __UUPSUpgradableTemplate_init();
  }

  function _authorizeUpgrade(address newImplementation) internal virtual override onlyOwner {}
  
...
```

## History

**0.0.6**

- Emit `emit ImplementationUpgraded(newImplementation);` in `_authorizeUpgrade`

**0.0.3**

- Just set adding `ERC721Receiver.sol` and `UUPSUpgradeableTemplate.sol` and fixed some minor issue

## License

MIT

## Copyright

(c) 2021 [Francesco Sullo](https://francesco.sullo.co)

---
_Source: https://npm.io/package/soliutils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
