Giter Site home page Giter Site logo

saber-hq / merkle-distributor Goto Github PK

View Code? Open in Web Editor NEW
184.0 184.0 60.0 3.64 MB

๐Ÿ“ฆ A smart contract that distributes a balance of tokens according to a Merkle root

License: GNU General Public License v3.0

JavaScript 0.73% Shell 3.71% Nix 3.68% Rust 19.91% TypeScript 71.97%

merkle-distributor's People

Contributors

dependabot[bot] avatar etodanik avatar macalinao avatar michaelhly avatar paul-schaaf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

merkle-distributor's Issues

anchor build fails

Problem
When i try to run anchor build, i get the following error:

error: target is not supported, for more information see: https://docs.rs/getrandom/#unsupported-targets
--> src/lib.rs:267:9
|
267 | / compile_error!("
268 | | target is not supported, for more information see:
269 | | https://docs.rs/getrandom/#unsupported-targets
270 | | ");
| |__________^

error[E0107]: struct takes 0 lifetime arguments but 1 lifetime argument was supplied
--> src/lib.rs:375:20
|
375 | StdoutLock(io::StdoutLock<'a>),
| ^^^^^^^^^^---- help: remove these generics
| |
| expected 0 lifetime arguments

error[E0107]: struct takes 0 lifetime arguments but 1 lifetime argument was supplied
--> src/lib.rs:376:20
|
376 | StderrLock(io::StderrLock<'a>),
| ^^^^^^^^^^---- help: remove these generics
| |
| expected 0 lifetime arguments

For more information about this error, try rustc --explain E0107.
error: could not compile termcolor (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error[E0425]: cannot find function is in this scope
--> src/lib.rs:98:6
|
98 | !is(stream)
| ^^ not found in this scope

For more information about this error, try rustc --explain E0425.
error: could not compile atty (lib) due to previous error
error[E0433]: failed to resolve: use of undeclared crate or module imp
--> src/lib.rs:291:5
|
291 | imp::getrandom_inner(dest)
| ^^^ use of undeclared crate or module imp

For more information about this error, try rustc --explain E0433.
error[E0422]: cannot find struct, variant or union type LineColumn in crate proc_macro
--> /Users/prajwalv/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.37/src/wrapper.rs:485:33
|
485 | let proc_macro::LineColumn { line, column } = s.start();
| ^^^^^^^^^^ not found in proc_macro
|
help: consider importing one of these items
|
1 + use crate::LineColumn;
|
1 + use crate::fallback::LineColumn;
|
help: if you import LineColumn, refer to it directly
|
485 - let proc_macro::LineColumn { line, column } = s.start();
485 + let LineColumn { line, column } = s.start();
|

error[E0422]: cannot find struct, variant or union type LineColumn in crate proc_macro
--> /Users/prajwalv/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.37/src/wrapper.rs:502:33
|
502 | let proc_macro::LineColumn { line, column } = s.end();
| ^^^^^^^^^^ not found in proc_macro
|
help: consider importing one of these items
|
1 + use crate::LineColumn;
|
1 + use crate::fallback::LineColumn;
|
help: if you import LineColumn, refer to it directly
|
502 - let proc_macro::LineColumn { line, column } = s.end();
502 + let LineColumn { line, column } = s.end();
|

error: could not compile getrandom (lib) due to 2 previous errors
For more information about this error, try rustc --explain E0422.
error: could not compile proc-macro2 (lib) due to 2 previous errors

Proposed Solution

Usage instructions?

It's a little bit unclear how to use this. There is clearly a need for a JSON file with the amounts and the owner addresses. It would be very good to add something about this to README.

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.