Skip to content

Commit

Permalink
Merge pull request #28 from logicalmechanism/threshold-based-value-ca…
Browse files Browse the repository at this point in the history
…lculations

prep for 0.2.3 and added new features
  • Loading branch information
logicalmechanism authored Jul 31, 2023
2 parents 103a21e + 595e79d commit 13c8bcf
Show file tree
Hide file tree
Showing 23 changed files with 404 additions and 154 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
artifacts/
# Aiken's project working directory
build/

plutus.json
20 changes: 14 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
# v0.2.3

- Added in a function to calculate the total amount of some specific token inside all the transaction inputs.
- Two new prefixes are now added, callable and database.
- The 555 prefix is being depreciated and will be removed in v0.2.4.
- Added in a function to check if a mint is occurring inside a transaction.

# v0.2.2

Minting functions for exact mints and by_prefix mints. A experimental cip68 prefix has been added to prefixes.
- Added minting functions for exact mints and by_prefix mints.
- A experimental cip68 prefix has been added to prefixes.

# v0.2.1

CIP68 prefixes have been fixed. The unique token name function still produces correct names but any length checks needs to be adjusted. New prefix length is now 4.
- CIP68 prefixes have been fixed. The unique token name function still produces correct names but any length checks needs to be adjusted. New prefix length is now 4.

# v0.1.6

Does not work with Aiken versions below v1.0.7-alpha Aiken and v1.1.0 Stdlib.
- Does not work with Aiken versions below v1.0.7-alpha Aiken and v1.1.0 Stdlib.

## Changes

Fake Tx is updated with new `MintedValue` type.
Value add is now value merge. All Values functions have been updated.
- Fake Tx is updated with new `MintedValue` type.
- Value add is now value merge. All Values functions have been updated.

# v0.1.5 and below

Works with v1.0.6-alpha Aiken and v1.0.0 Stdlib
- Works with v1.0.6-alpha Aiken and v1.0.0 Stdlib
2 changes: 1 addition & 1 deletion aiken.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = "aiken-lang/assist"
version = "0.2.2"
version = "0.2.3"
license = "Apache-2.0"
description = "Aiken Assist Library"

Expand Down
18 changes: 9 additions & 9 deletions docs/assist/addresses.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.10-alpha" type="text/css"/>
<link id="syntax-theme" rel="stylesheet" href="../css/atom-one-light.min.css?v=1.0.10-alpha"/>
<link rel="stylesheet" href="../css/index.css?v=1.0.13-alpha" type="text/css"/>
<link id="syntax-theme" rel="stylesheet" href="../css/atom-one-light.min.css?v=1.0.13-alpha"/>
</head>
<body class="prewrap-off theme-light drawer-closed">
<script>
Expand Down Expand Up @@ -120,13 +120,13 @@
<h2>
<a href="../">assist</a>
<span id="project-version">
<span>v0.2.2 </span>
<span>v0.2.3 </span>
</span>
<script>
"use strict";

if ("undefined" !== typeof versionNodes) {
const currentVersion = "v0.2.2";
const currentVersion = "v0.2.3";
if (! versionNodes.find(element => element.version === currentVersion)) {
versionNodes.unshift({ version: currentVersion, url: "#" });
}
Expand Down Expand Up @@ -409,8 +409,8 @@ <h2 id="create_script_address"><pre class="hljs language-aiken">create_script_ad
</defs>
</svg>

<script src="../js/highlight.min.js?v=1.0.10-alpha"></script>
<script src="../js/highlightjs-aiken.js?v=1.0.10-alpha"></script>
<script src="../js/highlight.min.js?v=1.0.13-alpha"></script>
<script src="../js/highlightjs-aiken.js?v=1.0.13-alpha"></script>
<script>
document.querySelectorAll("pre code").forEach((elem) => {
if (elem.className === "") {
Expand All @@ -429,9 +429,9 @@ <h2 id="create_script_address"><pre class="hljs language-aiken">create_script_ad
el.prepend(a);
});
</script>
<script src="../js/lunr.min.js?v=1.0.10-alpha"></script>
<script src="../js/index.js?v=1687197382"></script>
<script src="../js/lunr.min.js?v=1.0.13-alpha"></script>
<script src="../js/index.js?v=1690839085"></script>
<!-- Load the search index using JSONP to avoid CORS issues -->
<script src="../search-data.js?v=1687197382"></script>
<script src="../search-data.js?v=1690839085"></script>
</body>
</html>
18 changes: 9 additions & 9 deletions docs/assist/certificates.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.10-alpha" type="text/css"/>
<link id="syntax-theme" rel="stylesheet" href="../css/atom-one-light.min.css?v=1.0.10-alpha"/>
<link rel="stylesheet" href="../css/index.css?v=1.0.13-alpha" type="text/css"/>
<link id="syntax-theme" rel="stylesheet" href="../css/atom-one-light.min.css?v=1.0.13-alpha"/>
</head>
<body class="prewrap-off theme-light drawer-closed">
<script>
Expand Down Expand Up @@ -120,13 +120,13 @@
<h2>
<a href="../">assist</a>
<span id="project-version">
<span>v0.2.2 </span>
<span>v0.2.3 </span>
</span>
<script>
"use strict";

if ("undefined" !== typeof versionNodes) {
const currentVersion = "v0.2.2";
const currentVersion = "v0.2.3";
if (! versionNodes.find(element => element.version === currentVersion)) {
versionNodes.unshift({ version: currentVersion, url: "#" });
}
Expand Down Expand Up @@ -383,8 +383,8 @@ <h2 id="create_credential_delegation"><pre class="hljs language-aiken">create_cr
</defs>
</svg>

<script src="../js/highlight.min.js?v=1.0.10-alpha"></script>
<script src="../js/highlightjs-aiken.js?v=1.0.10-alpha"></script>
<script src="../js/highlight.min.js?v=1.0.13-alpha"></script>
<script src="../js/highlightjs-aiken.js?v=1.0.13-alpha"></script>
<script>
document.querySelectorAll("pre code").forEach((elem) => {
if (elem.className === "") {
Expand All @@ -403,9 +403,9 @@ <h2 id="create_credential_delegation"><pre class="hljs language-aiken">create_cr
el.prepend(a);
});
</script>
<script src="../js/lunr.min.js?v=1.0.10-alpha"></script>
<script src="../js/index.js?v=1687197382"></script>
<script src="../js/lunr.min.js?v=1.0.13-alpha"></script>
<script src="../js/index.js?v=1690839085"></script>
<!-- Load the search index using JSONP to avoid CORS issues -->
<script src="../search-data.js?v=1687197382"></script>
<script src="../search-data.js?v=1690839085"></script>
</body>
</html>
18 changes: 9 additions & 9 deletions docs/assist/count.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.10-alpha" type="text/css"/>
<link id="syntax-theme" rel="stylesheet" href="../css/atom-one-light.min.css?v=1.0.10-alpha"/>
<link rel="stylesheet" href="../css/index.css?v=1.0.13-alpha" type="text/css"/>
<link id="syntax-theme" rel="stylesheet" href="../css/atom-one-light.min.css?v=1.0.13-alpha"/>
</head>
<body class="prewrap-off theme-light drawer-closed">
<script>
Expand Down Expand Up @@ -120,13 +120,13 @@
<h2>
<a href="../">assist</a>
<span id="project-version">
<span>v0.2.2 </span>
<span>v0.2.3 </span>
</span>
<script>
"use strict";

if ("undefined" !== typeof versionNodes) {
const currentVersion = "v0.2.2";
const currentVersion = "v0.2.3";
if (! versionNodes.find(element => element.version === currentVersion)) {
versionNodes.unshift({ version: currentVersion, url: "#" });
}
Expand Down Expand Up @@ -441,8 +441,8 @@ <h2 id="outputs_by_datum"><pre class="hljs language-aiken">outputs_by_datum(outp
</defs>
</svg>

<script src="../js/highlight.min.js?v=1.0.10-alpha"></script>
<script src="../js/highlightjs-aiken.js?v=1.0.10-alpha"></script>
<script src="../js/highlight.min.js?v=1.0.13-alpha"></script>
<script src="../js/highlightjs-aiken.js?v=1.0.13-alpha"></script>
<script>
document.querySelectorAll("pre code").forEach((elem) => {
if (elem.className === "") {
Expand All @@ -461,9 +461,9 @@ <h2 id="outputs_by_datum"><pre class="hljs language-aiken">outputs_by_datum(outp
el.prepend(a);
});
</script>
<script src="../js/lunr.min.js?v=1.0.10-alpha"></script>
<script src="../js/index.js?v=1687197382"></script>
<script src="../js/lunr.min.js?v=1.0.13-alpha"></script>
<script src="../js/index.js?v=1690839085"></script>
<!-- Load the search index using JSONP to avoid CORS issues -->
<script src="../search-data.js?v=1687197382"></script>
<script src="../search-data.js?v=1690839085"></script>
</body>
</html>
18 changes: 9 additions & 9 deletions docs/assist/credentials.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.10-alpha" type="text/css"/>
<link id="syntax-theme" rel="stylesheet" href="../css/atom-one-light.min.css?v=1.0.10-alpha"/>
<link rel="stylesheet" href="../css/index.css?v=1.0.13-alpha" type="text/css"/>
<link id="syntax-theme" rel="stylesheet" href="../css/atom-one-light.min.css?v=1.0.13-alpha"/>
</head>
<body class="prewrap-off theme-light drawer-closed">
<script>
Expand Down Expand Up @@ -120,13 +120,13 @@
<h2>
<a href="../">assist</a>
<span id="project-version">
<span>v0.2.2 </span>
<span>v0.2.3 </span>
</span>
<script>
"use strict";

if ("undefined" !== typeof versionNodes) {
const currentVersion = "v0.2.2";
const currentVersion = "v0.2.3";
if (! versionNodes.find(element => element.version === currentVersion)) {
versionNodes.unshift({ version: currentVersion, url: "#" });
}
Expand Down Expand Up @@ -382,8 +382,8 @@ <h2 id="create_stake_credential"><pre class="hljs language-aiken">create_stake_c
</defs>
</svg>

<script src="../js/highlight.min.js?v=1.0.10-alpha"></script>
<script src="../js/highlightjs-aiken.js?v=1.0.10-alpha"></script>
<script src="../js/highlight.min.js?v=1.0.13-alpha"></script>
<script src="../js/highlightjs-aiken.js?v=1.0.13-alpha"></script>
<script>
document.querySelectorAll("pre code").forEach((elem) => {
if (elem.className === "") {
Expand All @@ -402,9 +402,9 @@ <h2 id="create_stake_credential"><pre class="hljs language-aiken">create_stake_c
el.prepend(a);
});
</script>
<script src="../js/lunr.min.js?v=1.0.10-alpha"></script>
<script src="../js/index.js?v=1687197382"></script>
<script src="../js/lunr.min.js?v=1.0.13-alpha"></script>
<script src="../js/index.js?v=1690839085"></script>
<!-- Load the search index using JSONP to avoid CORS issues -->
<script src="../search-data.js?v=1687197382"></script>
<script src="../search-data.js?v=1690839085"></script>
</body>
</html>
18 changes: 9 additions & 9 deletions docs/assist/data.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.10-alpha" type="text/css"/>
<link id="syntax-theme" rel="stylesheet" href="../css/atom-one-light.min.css?v=1.0.10-alpha"/>
<link rel="stylesheet" href="../css/index.css?v=1.0.13-alpha" type="text/css"/>
<link id="syntax-theme" rel="stylesheet" href="../css/atom-one-light.min.css?v=1.0.13-alpha"/>
</head>
<body class="prewrap-off theme-light drawer-closed">
<script>
Expand Down Expand Up @@ -120,13 +120,13 @@
<h2>
<a href="../">assist</a>
<span id="project-version">
<span>v0.2.2 </span>
<span>v0.2.3 </span>
</span>
<script>
"use strict";

if ("undefined" !== typeof versionNodes) {
const currentVersion = "v0.2.2";
const currentVersion = "v0.2.3";
if (! versionNodes.find(element => element.version === currentVersion)) {
versionNodes.unshift({ version: currentVersion, url: "#" });
}
Expand Down Expand Up @@ -401,8 +401,8 @@ <h2 id="output_datum"><pre class="hljs language-aiken">output_datum(possible_out
</defs>
</svg>

<script src="../js/highlight.min.js?v=1.0.10-alpha"></script>
<script src="../js/highlightjs-aiken.js?v=1.0.10-alpha"></script>
<script src="../js/highlight.min.js?v=1.0.13-alpha"></script>
<script src="../js/highlightjs-aiken.js?v=1.0.13-alpha"></script>
<script>
document.querySelectorAll("pre code").forEach((elem) => {
if (elem.className === "") {
Expand All @@ -421,9 +421,9 @@ <h2 id="output_datum"><pre class="hljs language-aiken">output_datum(possible_out
el.prepend(a);
});
</script>
<script src="../js/lunr.min.js?v=1.0.10-alpha"></script>
<script src="../js/index.js?v=1687197382"></script>
<script src="../js/lunr.min.js?v=1.0.13-alpha"></script>
<script src="../js/index.js?v=1690839085"></script>
<!-- Load the search index using JSONP to avoid CORS issues -->
<script src="../search-data.js?v=1687197382"></script>
<script src="../search-data.js?v=1690839085"></script>
</body>
</html>
18 changes: 9 additions & 9 deletions docs/assist/find.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.10-alpha" type="text/css"/>
<link id="syntax-theme" rel="stylesheet" href="../css/atom-one-light.min.css?v=1.0.10-alpha"/>
<link rel="stylesheet" href="../css/index.css?v=1.0.13-alpha" type="text/css"/>
<link id="syntax-theme" rel="stylesheet" href="../css/atom-one-light.min.css?v=1.0.13-alpha"/>
</head>
<body class="prewrap-off theme-light drawer-closed">
<script>
Expand Down Expand Up @@ -120,13 +120,13 @@
<h2>
<a href="../">assist</a>
<span id="project-version">
<span>v0.2.2 </span>
<span>v0.2.3 </span>
</span>
<script>
"use strict";

if ("undefined" !== typeof versionNodes) {
const currentVersion = "v0.2.2";
const currentVersion = "v0.2.3";
if (! versionNodes.find(element => element.version === currentVersion)) {
versionNodes.unshift({ version: currentVersion, url: "#" });
}
Expand Down Expand Up @@ -554,8 +554,8 @@ <h2 id="stake_reward_by_sc"><pre class="hljs language-aiken">stake_reward_by_sc(
</defs>
</svg>

<script src="../js/highlight.min.js?v=1.0.10-alpha"></script>
<script src="../js/highlightjs-aiken.js?v=1.0.10-alpha"></script>
<script src="../js/highlight.min.js?v=1.0.13-alpha"></script>
<script src="../js/highlightjs-aiken.js?v=1.0.13-alpha"></script>
<script>
document.querySelectorAll("pre code").forEach((elem) => {
if (elem.className === "") {
Expand All @@ -574,9 +574,9 @@ <h2 id="stake_reward_by_sc"><pre class="hljs language-aiken">stake_reward_by_sc(
el.prepend(a);
});
</script>
<script src="../js/lunr.min.js?v=1.0.10-alpha"></script>
<script src="../js/index.js?v=1687197382"></script>
<script src="../js/lunr.min.js?v=1.0.13-alpha"></script>
<script src="../js/index.js?v=1690839085"></script>
<!-- Load the search index using JSONP to avoid CORS issues -->
<script src="../search-data.js?v=1687197382"></script>
<script src="../search-data.js?v=1690839085"></script>
</body>
</html>
Loading

0 comments on commit 13c8bcf

Please sign in to comment.