Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #15 from ariady-putra/main
Browse files Browse the repository at this point in the history
v1.190.202405
  • Loading branch information
ariady-putra authored May 31, 2024
2 parents 39d4bce + 9a845d5 commit 625c489
Show file tree
Hide file tree
Showing 10 changed files with 485 additions and 812 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

- uses: aiken-lang/setup-aiken@v0.1.0
with:
version: v1.0.26-alpha
version: v1.0.28-alpha

- run: aiken fmt --check
- run: aiken c -D
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

A utility library to help constructing `ScriptContext`, useful for testing.

| ℹ️ | Package info | aiken-extra/tx_util v1.180.202403 | 🪲 |
| --- | --------------- | --------------------------------------------------------------------------------------------------- | --- |
| 🟢 | **Depends on** | **aiken-lang/stdlib v1.8.0** | ✔️ |
| 🟢 | **Tested with** | **[21b1e29f09](https://github.com/aiken-lang/aiken/tree/21b1e29f0951db3574ffe714c06f3fcc5cd28d51)** | ✔️ |
| ℹ️ | Package info | aiken-extra/tx_util v1.190.202405 | 🪲 |
| --- | --------------- | --------------------------------- | --- |
| 🟢 | **Depends on** | **aiken-lang/stdlib v1.9.0** | ✔️ |
| 🟢 | **Tested with** | **aiken v1.0.28-alpha** | ✔️ |

## Usage Example

Expand Down
4 changes: 2 additions & 2 deletions aiken.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

[[requirements]]
name = "aiken-lang/stdlib"
version = "1.8.0"
version = "1.9.0"
source = "github"

[[packages]]
name = "aiken-lang/stdlib"
version = "1.8.0"
version = "1.9.0"
requirements = []
source = "github"

Expand Down
13 changes: 8 additions & 5 deletions aiken.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,29 @@ MAGENTA='\033[1;35m'
WHITE='\033[1;37m'
RESET='\033[0m'

# aiken format
aiken fmt

# aiken check
echo -e "${MAGENTA}Running${RESET} ${WHITE}aiken check${RESET}:"
cargo-aiken c 2>&1 | tee ${PROJECT}.tests
aiken c 2>&1 | tee ${PROJECT}.tests
echo "" # new line

# aiken build
echo -e "${MAGENTA}Running${RESET} ${WHITE}aiken build${RESET}:"
cargo-aiken b $1
aiken b $1
echo "" # new line

# aiken blueprint & address
echo -e "${MAGENTA}Running${RESET} ${WHITE}aiken blueprint${RESET} & ${WHITE}aiken address${RESET}:"
cargo-aiken blueprint convert > ${PROJECT}.plutus
cargo-aiken address > ${PROJECT}.address
aiken blueprint convert > ${PROJECT}.plutus
aiken address > ${PROJECT}.address
echo "" # new line

# aiken docs
if [ $# -eq 0 ]; then
echo -e "${MAGENTA}Running${RESET} ${WHITE}aiken docs${RESET}:"
cargo-aiken docs
aiken docs
fi

# .gitignore
Expand Down
4 changes: 2 additions & 2 deletions aiken.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = "aiken-extra/tx_util"
version = "1.180.202403"
version = "1.190.202405"
license = "Apache-2.0"
description = "A Aiken utility library to help constructing ScriptContext"

Expand All @@ -10,5 +10,5 @@ platform = "github"

[[dependencies]]
name = "aiken-lang/stdlib"
version = "1.8.0"
version = "1.9.0"
source = "github"
28 changes: 14 additions & 14 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<meta name="theme-color" content="#eff1f5" media="(prefers-color-scheme: light)"/>
<meta name="theme-color" content="#1e1e2e" media="(prefers-color-scheme: dark)"/>
<link rel="icon" type="image/svg+xml" sizes="any" href="./favicon.svg"/>
<link rel="stylesheet" href="./css/index.css?v=1.0.26-alpha" type="text/css"/>
<link id="syntax-theme" rel="stylesheet" href="./css/atom-one-light.min.css?v=1.0.26-alpha"/>
<link rel="stylesheet" href="./css/index.css?v=1.0.28-alpha" type="text/css"/>
<link id="syntax-theme" rel="stylesheet" href="./css/atom-one-light.min.css?v=1.0.28-alpha"/>
</head>
<body class="prewrap-off theme-light drawer-closed">
<script>
Expand Down Expand Up @@ -120,13 +120,13 @@
<h2>
<a href="./">tx_util</a>
<span id="project-version">
<span>v1.180.202403 </span>
<span>v1.190.202405 </span>
</span>
<script>
"use strict";

if ("undefined" !== typeof versionNodes) {
const currentVersion = "v1.180.202403";
const currentVersion = "v1.190.202405";
if (! versionNodes.find(element => element.version === currentVersion)) {
versionNodes.unshift({ version: currentVersion, url: "#" });
}
Expand Down Expand Up @@ -205,9 +205,9 @@ <h2>Modules</h2>

<h1>tx_util</h1>
<p>A utility library to help constructing <code>ScriptContext</code>, useful for testing.</p>
<table><thead><tr><th>ℹ️</th><th>Package info</th><th>aiken-extra/tx_util v1.180.202403</th><th>🪲</th></tr></thead><tbody>
<tr><td>🟢</td><td><strong>Depends on</strong></td><td><strong>aiken-lang/stdlib v1.8.0</strong></td><td>✔️</td></tr>
<tr><td>🟢</td><td><strong>Tested with</strong></td><td><strong><a href="https://github.com/aiken-lang/aiken/tree/21b1e29f0951db3574ffe714c06f3fcc5cd28d51">21b1e29f09</a></strong></td><td>✔️</td></tr>
<table><thead><tr><th>ℹ️</th><th>Package info</th><th>aiken-extra/tx_util v1.190.202405</th><th>🪲</th></tr></thead><tbody>
<tr><td>🟢</td><td><strong>Depends on</strong></td><td><strong>aiken-lang/stdlib v1.9.0</strong></td><td>✔️</td></tr>
<tr><td>🟢</td><td><strong>Tested with</strong></td><td><strong>aiken v1.0.28-alpha</strong></td><td>✔️</td></tr>
</tbody></table>
<h2>Usage Example</h2>
<pre><code class="language-gleam">use tx_util/builder.{
Expand Down Expand Up @@ -310,13 +310,13 @@ <h2>Usage Example</h2>
</defs>
</svg>

<script src="./js/highlight.min.js?v=1.0.26-alpha"></script>
<script src="./js/highlightjs-aiken.js?v=1.0.26-alpha"></script>
<script src="./js/highlight.min.js?v=1.0.28-alpha"></script>
<script src="./js/highlightjs-aiken.js?v=1.0.28-alpha"></script>
<script>
document.querySelectorAll("pre code").forEach((elem) => {
// if (elem.className === "") {
if (elem.className === "") {
elem.classList.add("aiken");
// }
}
});
hljs.highlightAll();
document.querySelectorAll(".member-name > h2 > pre").forEach((el) => {
Expand All @@ -330,9 +330,9 @@ <h2>Usage Example</h2>
el.prepend(a);
});
</script>
<script src="./js/lunr.min.js?v=1.0.26-alpha"></script>
<script src="./js/index.js?v=1711704032"></script>
<script src="./js/lunr.min.js?v=1.0.28-alpha"></script>
<script src="./js/index.js?v=1717157473"></script>
<!-- Load the search index using JSONP to avoid CORS issues -->
<script src="./search-data.js?v=1711704032"></script>
<script src="./search-data.js?v=1717157473"></script>
</body>
</html>
7 changes: 2 additions & 5 deletions docs/js/highlightjs-aiken.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
hljs.registerLanguage("gleam", highlightJS);
hljs.registerLanguage("aiken", highlightJS);

function highlightJS(hljs) {
hljs.registerLanguage("aiken", function (hljs) {
const KEYWORDS =
"as when is const validator fn if else let use opaque pub expect trace todo error type pure fail";
const COMMAS = {
Expand Down Expand Up @@ -133,4 +130,4 @@ function highlightJS(hljs) {
NUMBER,
],
};
}
});
2 changes: 1 addition & 1 deletion docs/search-data.js

Large diffs are not rendered by default.

Loading

0 comments on commit 625c489

Please sign in to comment.