Giter Site home page Giter Site logo

open-stylus's Introduction

open-stylus

Abstracted OpenZeppelin smart contracts written in Rust for Arbitrum Stylus.

Project description

open-stylus is a library of smart contracts written in Rust for Arbitrum Stylus. It aims to abstract some parts of the OpenZeppelin code and adapt it to Rust for Stylus.

Arbitrum Stylus is a new technology that allows developers to write EVM-compatible smart contracts in many different programming languages, such as Rust, C, and C++, by using WebAssembly (WASM) as a second, coequal virtual machine. This enables faster, cheaper, and more efficient computation and memory usage on Arbitrum chains.

Installation and usage

To use open-stylus, you need to have the following prerequisites installed:

  • Rust: The programming language used to write the smart contracts. You can install it from here.
  • Cargo: The Rust package manager and build tool. You can install it from here.
  • Stylus: The Arbitrum toolchain for compiling and deploying smart contracts. You can install it from here.

To install open-stylus, you can clone this repository and run the following command in the root directory:

cargo install --path .

This will install the open-stylus library as a dependency in your project.

To use open-stylus, you can import the modules you need in your Rust code. For example, to use the ERC20 module, you can write:

Rust

use open_stylus::acess::Ownable;

Then, you can create and interact with ERC20 tokens using the methods provided by the module. For example, to create a new token with a name, symbol, and initial supply, you can write:

Rust

Contributing

open-stylus is an open source project and welcomes contributions from anyone who is interested in improving it. If you want to contribute to open-stylus, you can follow these steps:

  • Fork this repository and clone it to your local machine.
  • Create a new branch for your feature or bug fix.
  • Format your code using cargo fmt and lint it using cargo clippy.
  • Commit your changes and push them to your fork.
  • Create a pull request to the main branch of this repository.

Please make sure to follow the code style, testing, and documentation guidelines of this project. You can also check the issues page for any open tasks or suggestions.

License

open-stylus is licensed under the MIT License.


I hope this template helps you write a good README file for your open-stylus project. If you have any questions or feedback, please let me know. ๐Ÿ˜Š
Warning: This code is unaudited. Use it at your own risk.

open-stylus's People

Contributors

malik672 avatar

Stargazers

Asante Ntiro avatar Suthan Somadeva avatar zerosnacks avatar  avatar Jack McPherson avatar V.O.T avatar Georgios Konstantopoulos avatar  avatar Shuhui Luo avatar

Watchers

 avatar

Forkers

gmh5225 mansoorop

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.