From 543a304a43e87714e873dacb04bbe072c339ad0a Mon Sep 17 00:00:00 2001 From: Craig Everett Date: Fri, 22 Nov 2024 14:31:15 +0900 Subject: [PATCH] New build script (old deps were wonky) --- .docssite/build | 16 ++++++++ .docssite/docs/favicon.png | Bin 1045 -> 1546 bytes .docssite/hook.py | 7 ---- .docssite/mkdocs.yml | 37 ++++++++--------- docs/sophia_stdlib.md | 81 +++++++++---------------------------- 5 files changed, 54 insertions(+), 87 deletions(-) create mode 100755 .docssite/build delete mode 100644 .docssite/hook.py diff --git a/.docssite/build b/.docssite/build new file mode 100755 index 0000000..cedcf96 --- /dev/null +++ b/.docssite/build @@ -0,0 +1,16 @@ +#! /usr/bin/bash + +if mkdocs=$(command -v mkdocs) + then + echo "mkdocs found at $mkdocs" + else + echo "Could not find a mkdocs installation!" + echo "mkdocs must be installed and available in \$PATH to proceed." + exit 95 +fi + +rm docs/*.md +cp ../docs/*.md docs/ +cp ../CHANGELOG.md docs/ + +mkdocs build diff --git a/.docssite/docs/favicon.png b/.docssite/docs/favicon.png index e81502d439e5fd8e4d9795a9ac2daada69c71053..2cf5940f30176cd10804e2f253880764ac6ac38e 100644 GIT binary patch delta 1529 zcmVO3l1ID-@6w*#dTB?C)vb&n- zhG>9_c3QSeqO5*cc6F^9iJgvhfCy+5-xg6&5N3MsbM`~qJAb#G0gB-HbnkijpZ{~t z^9pAnRZiQ?N@wG*&jv$&NYISmKX-*~ht`5P11P%PxVj?!_qx6xmB94dpPy7Z)-;H4 zpFnto*#mu!Y_73q+mg@DDS^pOd+8)S@t}yc0+;}xiVFNo1q-EG#K$^@%H!YXPORIr zZOM0MNg!@Toqy?dsIC!V@{m^H9l=`Olbrh>fasl@su6iiU}nJQOF16$x2o2sIu~?}ia=HEmY5~( zIz(>HgXkeensX9#lpc#7rG`KbAHClYat4UiZ{2Pj}Y6U6eqqrfrH^ z+KlL2L99Xbaa8`SZtl@k*W$wkWSibxkD6F-V)o4=ZPT3g2@^D1kH`Z+>A*NpAnC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P<{nWAKG$7NGt1vDTxwIorYA~z?m*s8)-32d$vkPQ;nS5g2gDap1~as*kZ5aAo3 z;GAESs$i;TrkiYNY@uLosb^?vX<=ldqhMrUXr^yqsc&eaYhY+)U}!BPbD zzk=sFD+UIpR!6#*-mlngTv_|`r=ZTEqB93H?i~DX(Yg4?+W9jMf0UZ` zFp}q>X-)IvA0oE3f)!l9H!7UJyQAy4fn2FY|Mr4yPM;zz8Zs;QHAzb}FWXYvxb+7k zSLU1+f1{s~dwM!6_<}#!^gZeIdwkVylK!#unSWH$9?k4A6y(0xS($P8N)W4*ab@wQ z{G;&fB&mJ92$>YRNddm~2Ga!7^Z^lO7EeXncA%%JmW#mMY<|?#&<*pNvdiD1B|M!3XbD4;^ z_OIif$|rKWRWEANk9jI#eHRz`_WoFXrcPXW@{1)(ZJp^wuNgV+9J2nwW&NR4URDIl`J$I2*{gl6Tu3vuN7gZ<;YnOJdX%GLx&W@Si(9l?VI^LEau$#QsxixJZ>GFe@AIX|O|0z}H_ncF5h4-7Lb6n) : unit +AENS.preclaim(owner : address, commitment_hash : hash, ) : unit ``` The [signature](./sophia_features.md#delegation-signature) should be a serialized structure containing `network id`, `owner address`, and `Contract.address`. -From Ceres (i.e. FATE VM version 3) the +The [signature](./sophia_features.md#delegation-signature) can also be generic (allowing _all_, existing and future, names to be delegated with one signature), i.e. containing `network id`, `owner address`, `Contract.address`. @@ -180,14 +157,14 @@ signature), i.e. containing `network id`, `owner address`, `Contract.address`. ##### claim ``` -AENSv2.claim(owner : address, name : string, salt : int, name_fee : int, ) : unit +AENS.claim(owner : address, name : string, salt : int, name_fee : int, ) : unit ``` The [signature](./sophia_features.md#delegation-signature) should be a serialized structure containing `network id`, `owner address`, and `Contract.address`. Using the private key of `owner address` for signing. -From Ceres (i.e. FATE VM version 3) the +The [signature](./sophia_features.md#delegation-signature) can also be generic (allowing _all_, existing and future, names to be delegated with one signature), i.e. containing `network id`, `owner address`, `name_hash`, and @@ -196,7 +173,7 @@ signature), i.e. containing `network id`, `owner address`, `name_hash`, and ##### transfer ``` -AENSv2.transfer(owner : address, new_owner : address, name : string, ) : unit +AENS.transfer(owner : address, new_owner : address, name : string, ) : unit ``` Transfers name to the new owner. @@ -205,7 +182,7 @@ The [signature](./sophia_features.md#delegation-signature) should be a serialized structure containing `network id`, `owner address`, and `Contract.address`. Using the private key of `owner address` for signing. -From Ceres (i.e. FATE VM version 3) the +The [signature](./sophia_features.md#delegation-signature) can also be generic (allowing _all_, existing and future, names to be delegated with one signature), i.e. containing `network id`, `owner address`, `name_hash`, and @@ -214,7 +191,7 @@ signature), i.e. containing `network id`, `owner address`, `name_hash`, and ##### revoke ``` -AENSv2.revoke(owner : address, name : string, ) : unit +AENS.revoke(owner : address, name : string, ) : unit ``` Revokes the name to extend the ownership time. @@ -223,7 +200,7 @@ The [signature](./sophia_features.md#delegation-signature) should be a serialized structure containing `network id`, `owner address`, and `Contract.address`. Using the private key of `owner address` for signing. -From Ceres (i.e. FATE VM version 3) the +The [signature](./sophia_features.md#delegation-signature) can also be generic (allowing _all_, existing and future, names to be delegated with one signature), i.e. containing `network id`, `owner address`, `name_hash`, and @@ -232,21 +209,21 @@ signature), i.e. containing `network id`, `owner address`, `name_hash`, and ##### update ``` -AENSv2.update(owner : address, name : string, expiry : option(Chain.ttl), client_ttl : option(int), - new_ptrs : option(map(string, AENSv2.pointee)), ) : unit +AENS.update(owner : address, name : string, expiry : option(Chain.ttl), client_ttl : option(int), + new_ptrs : option(map(string, AENS.pointee)), ) : unit ``` Updates the name. If the optional parameters are set to `None` that parameter will not be updated, for example if `None` is passed as `expiry` the expiry block of the name is not changed. -Note: Changed to consume `AENSv2.pointee` in v8.0 (Ceres protocol upgrade). +Note: Changed to consume `AENS.pointee` in v8.0 The [signature](./sophia_features.md#delegation-signature) should be a serialized structure containing `network id`, `owner address`, and `Contract.address`. Using the private key of `owner address` for signing. -From Ceres (i.e. FATE VM version 3) the +The [signature](./sophia_features.md#delegation-signature) can also be generic (allowing _all_, existing and future, names to be delegated with one signature), i.e. containing `network id`, `owner address`, `name_hash`, and @@ -289,10 +266,7 @@ namespace Chain = Auth.tx_hash : option(hash) ``` -Gets the transaction hash during authentication. Note: `Auth.tx_hash` -computation differs between protocol versions (changed in Ceres!), see -[serialisation](https://gitlab.com/ioecs/protocol/-/blob/master/serializations.md) -specification for details. +Gets the transaction hash during authentication. ### Bits @@ -934,23 +908,6 @@ Turns a list of pairs of form `(key, value)` into a map These need to be explicitly included (with `.aes` suffix) -### AENSCompat - -#### pointee\_to\_V2 -``` -AENSCompat.pointee_to_V2(p : AENS.pointee) : AENSv2.pointee -``` - -Translate old pointee format to new, this is always possible. - -#### pointee\_from\_V2 -``` -AENSCompat.pointee_from_V2(p2 : AENSv2.pointee) : option(AENS.pointee) -``` - -Translate new pointee format to old, `DataPt` can't be translated, so `None` is returned in this case. - - ### BLS12\_381 #### Types