You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following describes how to use the Contracts Wizard programmatic API in your own applications.
4
+
5
+
## Cairo
6
+
7
+
### Installation
8
+
9
+
`npm install @openzeppelin/wizard-cairo`
10
+
11
+
### Functions
12
+
13
+
#### `printERC20`
14
+
```js
15
+
functionprintERC20(opts?:ERC20Options): string
16
+
```
17
+
Returns a string representation of an ERC20 contract generated using the provided options. If `opts` is not provided, uses [`erc20defaults`](#erc20defaults).
18
+
19
+
#### `printERC721`
20
+
```js
21
+
function printERC721(opts?: ERC721Options): string
22
+
```
23
+
Returns a string representation of an ERC721 contract generated using the provided options. If `opts` is not provided, uses [`erc721defaults`](#erc721defaults).
24
+
25
+
### Defaults
26
+
27
+
#### `erc20defaults`
28
+
```js
29
+
const erc20defaults: Required<ERC20Options>
30
+
```
31
+
The default options that are used for [`printERC20`](#printerc20).
32
+
33
+
#### `erc721defaults`
34
+
```js
35
+
const erc721defaults: Required<ERC721Options>
36
+
```
37
+
The default options that are used for [`printERC721`](#printerc721).
38
+
39
+
## Solidity
40
+
41
+
Contracts Wizard API for Solidity is not available yet. Please reach out to us on [issue #129](https://github.com/OpenZeppelin/contracts-wizard/issues/129) if you would be interested in it.
0 commit comments