Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release framework v11 #2683

Merged
merged 2 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions frameworks/bitcoin-move/doc/bitcoin.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
<b>use</b> <a href="">0x2::timestamp</a>;
<b>use</b> <a href="">0x3::address_mapping</a>;
<b>use</b> <a href="">0x3::bitcoin_address</a>;
<b>use</b> <a href="">0x3::chain_id</a>;
<b>use</b> <a href="inscription_updater.md#0x4_inscription_updater">0x4::inscription_updater</a>;
<b>use</b> <a href="network.md#0x4_network">0x4::network</a>;
<b>use</b> <a href="pending_block.md#0x4_pending_block">0x4::pending_block</a>;
Expand Down Expand Up @@ -139,11 +140,11 @@ The reorg is too deep, we need to stop the system and fix the issue



<a name="0x4_bitcoin_ORDINAL_PAUSE_HEIGHT"></a>
<a name="0x4_bitcoin_ORDINALS_PAUSE_HEIGHT"></a>



<pre><code><b>const</b> <a href="bitcoin.md#0x4_bitcoin_ORDINAL_PAUSE_HEIGHT">ORDINAL_PAUSE_HEIGHT</a>: u64 = 861150;
<pre><code><b>const</b> <a href="bitcoin.md#0x4_bitcoin_ORDINALS_PAUSE_HEIGHT">ORDINALS_PAUSE_HEIGHT</a>: u64 = 861150;
</code></pre>


Expand Down
6 changes: 6 additions & 0 deletions frameworks/framework-release/released/10/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Rooch Move Framework v10

* [bitcoin_move] Add `update_reorg_block_count` function to `pending_block`.
* [moveos_std] Add `has_upgrade_permission` and `ensure_upgrade_permission` function to `module_store`.
* [rooch_framework] Binding bitcoin address when transfer.
* [bitcoin_move] Add assert to ensure threshold for multisign_account.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
8 changes: 8 additions & 0 deletions frameworks/framework-release/released/11/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Rooch Move Framework v11

* [bitcoin_move] Do not frozen the Inscription when burn.
* [bitcoin_move] Add `remove_metaprotocol_attachment` and `exists_metaprotocol_attachment` function to `ord`.
* [moveos_std] Implement `to_json` in `json` module.
* [moveos_std] Add `exists_new_events` and `subscriber_info` function to `event_queue`.
* [bitcoin_move] Temporary pause the ordinals protocol.
* [rooch_nursery] Implement bitseed merge and runner.
Binary file not shown.
24 changes: 24 additions & 0 deletions frameworks/moveos-stdlib/doc/event_queue.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
- [Function `subscribe`](#0x2_event_queue_subscribe)
- [Function `unsubscribe`](#0x2_event_queue_unsubscribe)
- [Function `remove_expired_events`](#0x2_event_queue_remove_expired_events)
- [Function `subscriber_info`](#0x2_event_queue_subscriber_info)
- [Function `exists_new_events`](#0x2_event_queue_exists_new_events)


<pre><code><b>use</b> <a href="">0x1::option</a>;
Expand Down Expand Up @@ -201,3 +203,25 @@ Anyone can call this function to remove the expired events

<pre><code><b>public</b> <b>fun</b> <a href="event_queue.md#0x2_event_queue_remove_expired_events">remove_expired_events</a>&lt;E: <b>copy</b>, drop, store&gt;(queue_name: <a href="_String">string::String</a>)
</code></pre>



<a name="0x2_event_queue_subscriber_info"></a>

## Function `subscriber_info`



<pre><code><b>public</b> <b>fun</b> <a href="event_queue.md#0x2_event_queue_subscriber_info">subscriber_info</a>&lt;E: <b>copy</b>, drop, store&gt;(subscriber_obj: &<a href="object.md#0x2_object_Object">object::Object</a>&lt;<a href="event_queue.md#0x2_event_queue_Subscriber">event_queue::Subscriber</a>&lt;E&gt;&gt;): (u64, u64, u64)
</code></pre>



<a name="0x2_event_queue_exists_new_events"></a>

## Function `exists_new_events`



<pre><code><b>public</b> <b>fun</b> <a href="event_queue.md#0x2_event_queue_exists_new_events">exists_new_events</a>&lt;E: <b>copy</b>, drop, store&gt;(subscriber_obj: &<a href="object.md#0x2_object_Object">object::Object</a>&lt;<a href="event_queue.md#0x2_event_queue_Subscriber">event_queue::Subscriber</a>&lt;E&gt;&gt;): bool
</code></pre>
8 changes: 5 additions & 3 deletions frameworks/moveos-stdlib/sources/event_queue.move
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,13 @@ module moveos_std::event_queue {
let subscriber_sequence_number = subscriber.sequence_number;
// If the subscriber_obj is exsited, the queue must be existed
let event_queue_obj = borrow_object<EventQueue<E>>(subscriber.queue_id);
let head_sequence_number = object::borrow(event_queue_obj).head_sequence_number;
let tail_sequence_number = object::borrow(event_queue_obj).tail_sequence_number;
let event_queue = object::borrow(event_queue_obj);
let head_sequence_number = event_queue.head_sequence_number;
let tail_sequence_number = event_queue.tail_sequence_number;
(subscriber_sequence_number, head_sequence_number, tail_sequence_number)
}

public fun exist_new_events<E: copy + drop + store>(subscriber_obj: &Object<Subscriber<E>>): bool {
public fun exists_new_events<E: copy + drop + store>(subscriber_obj: &Object<Subscriber<E>>): bool {
let subscriber = object::borrow(subscriber_obj);
let subscriber_sequence_number = subscriber.sequence_number;
// If the subscriber_obj is exsited, the queue must be existed
Expand All @@ -207,6 +208,7 @@ module moveos_std::event_queue {
};
return object::contains_field(event_queue_obj, subscriber_sequence_number)
}

fun internal_remove_expired_events<E: copy + drop + store>(event_queue_obj: &mut Object<EventQueue<E>>){
let head_sequence_number = object::borrow(event_queue_obj).head_sequence_number;
let tail_sequence_number = object::borrow(event_queue_obj).tail_sequence_number;
Expand Down
Loading