Coder Social home page Coder Social logo

make-software / casper-event-standard Goto Github PK

View Code? Open in Web Editor NEW
6.0 5.0 6.0 39 KB

The smart contract level events for Casper Network.

Home Page: https://crates.io/crates/casper-event-standard

License: Apache License 2.0

Rust 95.13% Just 4.87%
blockchain blockchain-technology casper-network smart-contracts ces

casper-event-standard's Issues

Typo: `lenght` -> `length`

I noticed 3 misspelled occurrences in the code:

let lenght: u32 = storage::read(length_uref)
.unwrap_or_revert()
.unwrap_or_revert();
let seed = event_dict_seed();
let event_bytes = event.to_bytes().unwrap_or_revert();
let event_bytes: Bytes = event_bytes.into();
storage::dictionary_put(seed, &lenght.to_string(), event_bytes);
storage::write(length_uref, lenght + 1);

Change default branch

The current default branch is outdated, which makes contributing hard. Consider changing it to the latest release or updating the dev branch.

`Event` macro not working for generic struct

Below code gives an error

#[derive(Event, Debug, PartialEq, Eq)]
pub struct TokenListed<T> {
    pub collection: Address,
    pub token_id: T,
    pub owner: Address,
    pub price: U512,
}

Here T is a generic type where T: CLTyped + ToBytes + FromBytes

image

Cargo.lock is not stored in repository

Building this library is not reproducible, and fails due to nightly toolchain incompatibilities.

For years official Rust guides were recommending to not commit lock files for libraries (only for applications), however this changed year ago - see rust-lang/cargo#8728.

Now it is agreed that lock files should be always stored in VCS, but simply not published in libraries artifacts.

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.