openzeppelin_testing 2.0.0

OpenZeppelin Contracts written in Cairo for Starknet, a decentralized ZK Rollup

Readme

Testing

NOTE: This package is intended to be used only as a dev dependency. For this reason it is not included as part of the openzeppelin main package, and it has its own versioning not pegged to the version of the library.

This crate provides various helper functions for declaring, deploying, and testing smart contracts using the snforge toolchain from Starknet Foundry.

Usage

The module isn’t part of the openzeppelin main package and to be accessible has to be added as a separate dependency in the Scarb.toml file:

[dev-dependencies]
openzeppelin_testing = "2.0.0"

Then it can be imported into tests:

use openzeppelin_testing;

API documentation

Metadata

Version 2.0.0

Uploaded 3 weeks ago

License non‑standard

Cairo version ^2.11.1

Size 11.6 KB

Installation

Run the following command in your project dir

scarb add openzeppelin_testing@2.0.0

Or add the following line to your Scarb.toml

openzeppelin_testing = "2.0.0"

Monthly downloads

Links

Repository github.com/OpenZeppelin/cairo-contracts

Documentation github.com/openzeppelin/cairo-contracts/blob/openzeppelin_testing-v2.0.0/packages/testing/docs/openzeppelin_testing.md

Keywords

  • openzeppelin
  • starknet
  • testing
  • utils

Owners