diff --git a/aptos-framework/doc/object.md b/aptos-framework/doc/object.md index bee580194..98c8cafe4 100644 --- a/aptos-framework/doc/object.md +++ b/aptos-framework/doc/object.md @@ -61,6 +61,8 @@ make it so that a reference to a global object can be returned from a function. - [Function `verify_ungated_and_descendant`](#0x1_object_verify_ungated_and_descendant) - [Function `owner`](#0x1_object_owner) - [Function `is_owner`](#0x1_object_is_owner) +- [Specification](#@Specification_1) + - [Function `exists_at`](#@Specification_1_exists_at)
use 0x1::account;
@@ -1377,5 +1379,25 @@ Return true if the provided address is the current owner.
 
 
 
+
+
+## Specification
+
+
+
+
+### Function `exists_at`
+
+
+
fun exists_at<T: key>(object: address): bool
+
+ + + + +
pragma opaque;
+aborts_if false;
+
+ [move-book]: https://move-language.github.io/move/introduction.html diff --git a/aptos-framework/sources/object.spec.move b/aptos-framework/sources/object.spec.move new file mode 100644 index 000000000..fb94179d4 --- /dev/null +++ b/aptos-framework/sources/object.spec.move @@ -0,0 +1,9 @@ +spec aptos_framework::object { + spec exists_at { + pragma opaque; + aborts_if false; + // TODO: Disabled the following post-condition due to an issue with + // the use of a type parameter in `exists` in spec. + // ensures result == exists(object); + } +}