Skip to content
Merged
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
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# Changelog

## [0.0.2]
## [Unreleased]

- Added `mul_div` functions.
- Organized code into modules.
- Refactored test structure.
- Removed `safe_` prefixes from math functions, so the default versions are overflow-checked.
- Added functions for retrieving and asserting `AssetId` and `Amount`.
- Added functions for retrieving script hashes.

## [0.0.1]
## [0.1.0]

Initial release!
- Сhecked arithmetic operations for `u8`, `u16`, `u32`, `u64`, `u128` and `u256`.
Expand Down
110 changes: 55 additions & 55 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "simplicityhl-std"
version = "0.0.1"
version = "0.1.0"
description = "SimplicityHL Standard Library"
edition = "2024"
rust-version = "1.91.0"
Expand Down
21 changes: 21 additions & 0 deletions docs/stdlib.json
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,27 @@
"output_type": "Confidential1",
"description": "Returns the confidential input asset_id at the current_index.\n\n## Panics\nPanics if asset_id is explicit."
},
{
"simplicityhl_name": "get_script_hash",
"section": "Script hash getters",
"input_type": "u32, bool",
"output_type": "u256",
"description": "Returns the SHA256 hash of the scriptPubKey at the specified input or output.\n\n## Panics\nPanics if the specified input or output does not exist."
},
{
"simplicityhl_name": "get_input_script_hash",
"section": "Script hash getters",
"input_type": "u32",
"output_type": "u256",
"description": "Returns the SHA256 hash of the scriptPubKey of the input at the given index.\n\n## Panics\nPanics if the specified input does not exist."
},
{
"simplicityhl_name": "get_output_script_hash",
"section": "Script hash getters",
"input_type": "u32",
"output_type": "u256",
"description": "Returns the SHA256 hash of the scriptPubKey of the output at the given index.\n\n## Panics\nPanics if the specified output does not exist."
},
{
"simplicityhl_name": "not",
"section": "Binary logic",
Expand Down
Loading
Loading