Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scisamir/fractionalized-nft
https://github.com/scisamir/fractionalized-nft
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/scisamir/fractionalized-nft
- Owner: scisamir
- Created: 2024-11-25T15:20:26.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-02T23:40:56.000Z (about 2 months ago)
- Last Synced: 2024-12-03T00:28:19.062Z (about 2 months ago)
- Language: TypeScript
- Size: 204 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fractionalized-nft
Write validators in the `validators` folder, and supporting functions in the `lib` folder using `.ak` as a file extension.
```aiken
validator my_first_validator {
spend(_datum: Option, _redeemer: Data, _output_reference: Data, _context: Data) {
True
}
}
```## Building
```sh
aiken build
```## Configuring
**aiken.toml**
```toml
[config.default]
network_id = 41
```Or, alternatively, write conditional environment modules under `env`.
## Testing
You can write tests in any module using the `test` keyword. For example:
```aiken
use configtest foo() {
config.network_id + 1 == 42
}
```To run all tests, simply do:
```sh
aiken check
```To run only tests matching the string `foo`, do:
```sh
aiken check -m foo
```## Documentation
If you're writing a library, you might want to generate an HTML documentation for it.
Use:
```sh
aiken docs
```## Resources
Find more on the [Aiken's user manual](https://aiken-lang.org).