Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlexiFaucet v1 #130

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions basic/flexi_faucet/.cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build]
rustdocflags = ["--document-private-items"]
2 changes: 2 additions & 0 deletions basic/flexi_faucet/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/target
*~
28 changes: 28 additions & 0 deletions basic/flexi_faucet/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[package]
name = "flexi_faucet"
version = "1.0.0"
edition = "2021"

[dependencies]
sbor = { git = "https://github.com/radixdlt/radixdlt-scrypto", tag = "v0.11.0" }
scrypto = { git = "https://github.com/radixdlt/radixdlt-scrypto", tag = "v0.11.0" }

[dev-dependencies]
transaction = { git = "https://github.com/radixdlt/radixdlt-scrypto", tag = "v0.11.0" }
radix-engine = { git = "https://github.com/radixdlt/radixdlt-scrypto", tag = "v0.11.0" }
scrypto-unit = { git = "https://github.com/radixdlt/radixdlt-scrypto", tag = "v0.11.0" }

[profile.release]
opt-level = 's' # Optimize for size.
lto = true # Enable Link Time Optimization.
codegen-units = 1 # Reduce number of codegen units to increase optimizations.
panic = 'abort' # Abort on panic.
strip = "debuginfo" # Strip debug info.
overflow-checks = true # Panic in the case of an overflow.

[lib]
crate-type = ["cdylib", "lib"]

[workspace]
# Set the package crate as its own empty workspace, to hide it from any potential ancestor workspace
# Remove this [workspace] section if you intend the package to be part of a Cargo workspace
19 changes: 19 additions & 0 deletions basic/flexi_faucet/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# FlexiFaucet - A flexible faucet with multiple configuration options

## How to build the blueprint
Make sure you have the necessary toolchain installed, see
[here](https://docs-babylon.radixdlt.com/main/getting-started-developers/getting-started-developers.html)
for details. You will need Scrypto 0.11.0.
- From the command line, in the `flexifaucet` directory, run `scrypto build`

### How to run the test suite
- From the command line, in the `flexifaucet` directory, run `scrypto test`

The test suite includes transaction manifest building for the
blueprint's public API.

### How to generate the documentation
- From the command line, in the `flexifaucet` directory, run `cargo doc`

The generated web pages contain detailed documentation on how the
blueprint works.
Loading