diff --git a/CHANGELOG.md b/CHANGELOG.md index 80f05ac..77e8d2b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # v0.x.y +# v0.5.0 + - Updated toml to Aiken 1.1.0, stdlib main (v2.0.0 should be the tagged release) - addresses.from_wallet check if wallet is valid else it fails - All math related modules will be in the maths folder diff --git a/README.md b/README.md index 0b60f80..c0fa1c8 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ To start using the library, follow these steps: 1. Import the library with the command: ```bash -aiken packages add logical-mechanism/Assist --version v0.5.0 +aiken packages add logical-mechanism/assist --version v0.5.0 ``` - Stay up to date by updating the version to the newest tag when applicable, i.e. `v0.5.0` -> `v0.5.x`. diff --git a/docs/cardano/addresses.html b/docs/cardano/addresses.html index f5342d6..cf8cec1 100644 --- a/docs/cardano/addresses.html +++ b/docs/cardano/addresses.html @@ -331,6 +331,14 @@

Modules

+
  • + moment +
  • + + + + +
  • prefixes
  • @@ -582,9 +590,9 @@

    create_script_ad
         
         
         
    -    
    +    
         
    -    
    +    
         
         
         
    -    
    +    
         
    -    
    +    
         
         
         
    -    
    +    
         
    -    
    +    
         
         
         
    -    
    +    
         
    -    
    +    
         
         
         
    -    
    +    
         
    -    
    +    
         
         
         
    -    
    +    
         
    -    
    +    
         
         
         
    -    
    +    
         
    -    
    +    
         
         
         
    -    
    +    
         
    -    
    +    
         
         
         
    -    
    +    
         
    -    
    +    
         
         
         
    -    
    +    
         
    -    
    +    
         
         
         
    -    
    +    
         
    -    
    +    
         
         
         
    -    
    +    
         
    -    
    +    
         
         
         
    -    
    +    
         
    -    
    +    
         
    +
    +    
    +
    +    
    +
    +    
    + + +
    + +

    + types/moment +

    + + + +
    +

    + Types +

    + + +
    +
    +

    + + Moment + +

    + + + +
    +
    +

    A finite moment of time represented as simple start and end integers.

    +
    + +

    Constructors

    +
      + +
    • +
      + +
      Moment { start: Int, end: Int }
      +
      + +
    • + +
    + +
    +
    + +
    +
    +

    + + Moments + +

    + + + +
    +
    +

    A finite list of moments of time.

    +
    + +

    Alias

    +
    + +
    Moments = List<Moment>
    +
    + +
    +
    + +
    + + + + + +
    +

    + Functions +

    + + +
    +
    +

    shift(m: Moment, t: Int) -> Moment

    + + + +
    +

    Shifts a moment by some integer amount. This is great for incrementing +a fixed moment of time, maybe like an epoch boundary by five days.

    +
    moment.shift(this_moment, a_day)
    +
    +
    +
    + + + +
    +
    +

    is_logical(m: Moment) -> Bool

    + + + +
    +

    Check if a moment data structure is logical.

    +
    moment.is_logical(datum.moment)
    +
    +
    +
    + + + +
    +
    +

    is_contained(m: Moment, vr: ValidityRange) -> Bool

    + + + +
    +

    Check if a validity range is contained within some moment. +This assumes inclusivity.

    +

    |start–|lower––upper|–end|

    +
    moment.is_contained(datum.moment, this_tx.validity_range)
    +
    +
    +
    + + + +
    +
    +

    is_after(m: Moment, vr: ValidityRange) -> Bool

    + + + +
    +

    Check if a validity range of a tx is after a moment. +This assumes exclusivity.

    +

    |start––end|–|lower––upper|

    +
    moment.is_after(datum.moment, this_tx.validity_range)
    +
    +
    +
    + + + +
    +
    +

    is_before(m: Moment, vr: ValidityRange) -> Bool

    + + + +
    +

    Check if a validity range of a tx is before a moment. +This assumes exclusivity.

    +

    |lower––upper|–|start––end|

    +
    moment.is_before(datum.moment, this_tx.validity_range)
    +
    +
    +
    + + +
    + + +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + Search + + + + + + + Document + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/types/prefixes.html b/docs/types/prefixes.html index 7a5c09f..599d4e7 100644 --- a/docs/types/prefixes.html +++ b/docs/types/prefixes.html @@ -322,6 +322,14 @@

    Modules

    +
  • + moment +
  • + + + + +
  • prefixes
  • @@ -549,9 +557,9 @@

    seed: ByteArray = #"5eed0e1f
         
         
         
    -    
    +    
         
    -    
    +    
         
         
         
    -    
    +    
         
    -    
    +    
         
         
         
    -    
    +    
         
    -    
    +    
         
         
         
    -    
    +    
         
    -    
    +    
         
         
         
    -    
    +    
         
    -    
    +    
         
         
         
    -    
    +    
         
    -    
    +