3
3
** A library for secure smart contract development** written in Rust for
4
4
[ Arbitrum Stylus] ( https://docs.arbitrum.io/stylus/stylus-gentle-introduction ) .
5
5
6
- > [ !WARNING]
7
- > This project is still in a very early and experimental phase. It has never
8
- > been audited nor thoroughly reviewed for security vulnerabilities. Do not use
9
- > in production.
10
-
11
6
## Features
12
7
13
8
- Security-first smart contracts, ported from the [ ` openzeppelin-contracts ` ]
23
18
24
19
## Usage
25
20
26
- The library has not been published yet to ` crates.io ` , and this will be the case
27
- until we reach a stable version. However, one can [ specify a git dependency] in
28
- a ` Cargo.toml ` , like so:
21
+ You can import OpenZeppelin Contracts from crates.io by adding the following
22
+ line to your ` Cargo.toml ` (We recommend pinning to a specific version):
29
23
30
24
``` toml
31
25
[dependencies ]
32
- openzeppelin-stylus = { git = " https://github.com/OpenZeppelin/rust-contracts-stylus " }
26
+ openzeppelin-stylus = " 0.1.0 "
33
27
```
34
28
35
- We recommend pinning to a specific version -- expect rapid iteration.
29
+ Optionally, you can specify a git dependency if you want to have the latest
30
+ changes from the ` main ` branch:
31
+
32
+ ``` toml
33
+ [dependencies ]
34
+ openzeppelin-stylus = { git = " https://github.com/OpenZeppelin/rust-contracts-stylus" }
35
+ ```
36
36
37
37
Once defined as a dependency, use one of our pre-defined implementations by
38
38
importing them:
@@ -48,7 +48,7 @@ sol_storage! {
48
48
}
49
49
}
50
50
51
- #[external ]
51
+ #[public ]
52
52
#[inherit(Erc20 )]
53
53
impl Erc20Example { }
54
54
```
@@ -65,7 +65,7 @@ For more information on what this library will include in the future, see our
65
65
[ specify a git dependency ] : https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#specifying-dependencies-from-git-repositories
66
66
[ examples ] : ./examples
67
67
[ basic ] : ./examples/basic
68
- [ roadmap ] : https://github.com/OpenZeppelin/rust-contracts-stylus/milestone/1
68
+ [ roadmap ] : https://github.com/OpenZeppelin/rust-contracts-stylus/milestone/2
69
69
70
70
## Contribute
71
71
@@ -75,10 +75,7 @@ the [contribution guide](CONTRIBUTING.md)!
75
75
76
76
## Security
77
77
78
- > [ !WARNING]
79
- > This project is still in a very early and experimental phase. It has never
80
- > been audited nor thoroughly reviewed for security vulnerabilities. Do not use
81
- > in production.
78
+ Past audits can be found in [ ` audits/ ` ] ( ./audits ) .
82
79
83
80
Refer to our [ Security Policy] ( SECURITY.md ) for more details.
84
81
0 commit comments