SkillAgentSearch skills...

Solarray

A blazing-fast helper library for convenient Solidity dynamic arrays

Install / Use

/learn @evmcheb/Solarray
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

solarray ☀️

Wish Solidity had more concise array initialisation?

Solarray is a blazing-fast helper library for convenient Solidity dynamic arrays. Useful for writing foundry test cases that involve arrays.

Usage

uint8[] memory nums = Solarray.uint8s(1, 2, 3);
address[] memory tokens = Solarray.addresses(address(0), address(1));

Supports 1-8 arguments for most of the common types.

Installation

forge install evmcheb/solarray

Usage

import {Solarray} from "solarray/Solarray.sol";

Adding new types

If you want to include a new type, you can use the generator.py script that I used to make the helper library.

View on GitHub
GitHub Stars125
CategoryDevelopment
Updated3mo ago
Forks9

Languages

Solidity

Security Score

77/100

Audited on Dec 8, 2025

No findings