Giter Club home page Giter Club logo

nekoton's Introduction

Logo

nekoton โ€ƒ Workflow badge License Apache badge Docs badge

About

Broxus SDK with TIP3 wallets support and a bunch of helpers.

Usage

cargo add nekoton

Prerequisites

  • Rust 1.65+
  • wasm-pack 0.9.1+ (to test build for wasm target)
  • protoc 3.12.4+ (to generate .rs files from .proto)

Modifying protobuffers

Occasionally, you may need to change the .proto files that define request/response data format. In this case, you will need to add a few steps to the above workflow.

  • Install the protoc compiler.
  • Run cargo run -p gen-protos regularly (or after every edit to a .proto file). The gen-protos binary will use the prost-build library to compile the .proto files into .rs files.
  • If you are adding a new .proto file, you will need to edit the list of these files in gen-protos/src/main.rs.

The .rs files generated from .proto files are included in the repository, and there is a Github CI check that will complain if they do not match.

Contributing

We welcome contributions to the project! If you notice any issues or errors, feel free to open an issue or submit a pull request.

License

This project is licensed under the License Apache.

nekoton's People

Contributors

0xdeafbeef avatar mrwad3r avatar pashinov avatar qroc avatar rexagon avatar serejkaaa512 avatar smagman avatar tugunchinov avatar voledyaev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nekoton's Issues

Allow partial `UnpackAbi` for structs

#[derive(KnownParamType, UnpackAbi)]
struct MyStruct {
  #[abi(skip, uint128, name = "field1")]
  #[abi(skip, uint128, name = "field2")]
  #[abi(uint8)]
  required_field: u8,

  #[abi(skip, uint128, name = "field4")]
  _: (),
}

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.