forked from aptos-labs/aptos-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AptosFramework] add TransactionPublishingOption and support module p…
…ublishing
- Loading branch information
Showing
46 changed files
with
645 additions
and
26 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+124 Bytes
(110%)
...ramework/releases/artifacts/current/build/AptosFramework/bytecode_modules/AptosAccount.mv
Binary file not shown.
Binary file added
BIN
+346 Bytes
...tifacts/current/build/AptosFramework/bytecode_modules/AptosTransactionPublishingOption.mv
Binary file not shown.
Binary file modified
BIN
+63 Bytes
(100%)
...tos-framework/releases/artifacts/current/build/AptosFramework/bytecode_modules/Genesis.mv
Binary file not shown.
Binary file modified
BIN
+35 Bytes
(110%)
...ptos-framework/releases/artifacts/current/build/AptosFramework/bytecode_modules/Marker.mv
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
...artifacts/current/build/AptosFramework/docs/AptosTransactionPublishingOption.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
|
||
<a name="0x1_AptosTransactionPublishingOption"></a> | ||
|
||
# Module `0x1::AptosTransactionPublishingOption` | ||
|
||
|
||
|
||
- [Function `initialize`](#0x1_AptosTransactionPublishingOption_initialize) | ||
- [Function `set_module_publishing_allowed`](#0x1_AptosTransactionPublishingOption_set_module_publishing_allowed) | ||
|
||
|
||
<pre><code><b>use</b> <a href="../../../../../../../aptos-framework/releases/artifacts/current/build/MoveStdlib/docs/Capability.md#0x1_Capability">0x1::Capability</a>; | ||
<b>use</b> <a href="../../../../../../../aptos-framework/releases/artifacts/current/build/CoreFramework/docs/DiemTransactionPublishingOption.md#0x1_DiemTransactionPublishingOption">0x1::DiemTransactionPublishingOption</a>; | ||
<b>use</b> <a href="Marker.md#0x1_Marker">0x1::Marker</a>; | ||
</code></pre> | ||
|
||
|
||
|
||
<a name="0x1_AptosTransactionPublishingOption_initialize"></a> | ||
|
||
## Function `initialize` | ||
|
||
|
||
|
||
<pre><code><b>public</b> <b>fun</b> <a href="AptosTransactionPublishingOption.md#0x1_AptosTransactionPublishingOption_initialize">initialize</a>(core_resource_account: &signer, script_allow_list: vector<vector<u8>>, module_publishing_allowed: bool) | ||
</code></pre> | ||
|
||
|
||
|
||
<details> | ||
<summary>Implementation</summary> | ||
|
||
|
||
<pre><code><b>public</b> <b>fun</b> <a href="AptosTransactionPublishingOption.md#0x1_AptosTransactionPublishingOption_initialize">initialize</a>( | ||
core_resource_account: &signer, | ||
script_allow_list: vector<vector<u8>>, | ||
module_publishing_allowed: bool, | ||
) { | ||
<a href="../../../../../../../aptos-framework/releases/artifacts/current/build/CoreFramework/docs/DiemTransactionPublishingOption.md#0x1_DiemTransactionPublishingOption_initialize">DiemTransactionPublishingOption::initialize</a><ChainMarker>(core_resource_account, script_allow_list, module_publishing_allowed); | ||
} | ||
</code></pre> | ||
|
||
|
||
|
||
</details> | ||
|
||
<a name="0x1_AptosTransactionPublishingOption_set_module_publishing_allowed"></a> | ||
|
||
## Function `set_module_publishing_allowed` | ||
|
||
|
||
|
||
<pre><code><b>public</b> <b>fun</b> <a href="AptosTransactionPublishingOption.md#0x1_AptosTransactionPublishingOption_set_module_publishing_allowed">set_module_publishing_allowed</a>(account: &signer, is_allowed: bool) | ||
</code></pre> | ||
|
||
|
||
|
||
<details> | ||
<summary>Implementation</summary> | ||
|
||
|
||
<pre><code><b>public</b> <b>fun</b> <a href="AptosTransactionPublishingOption.md#0x1_AptosTransactionPublishingOption_set_module_publishing_allowed">set_module_publishing_allowed</a>(account: &signer, is_allowed: bool) { | ||
<a href="../../../../../../../aptos-framework/releases/artifacts/current/build/CoreFramework/docs/DiemTransactionPublishingOption.md#0x1_DiemTransactionPublishingOption_set_module_publishing_allowed">DiemTransactionPublishingOption::set_module_publishing_allowed</a>(is_allowed, <a href="../../../../../../../aptos-framework/releases/artifacts/current/build/MoveStdlib/docs/Capability.md#0x1_Capability_acquire">Capability::acquire</a>(account, &<a href="Marker.md#0x1_Marker_get">Marker::get</a>())); | ||
} | ||
</code></pre> | ||
|
||
|
||
|
||
</details> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+505 Bytes
(100%)
...s-framework/releases/artifacts/current/build/AptosFramework/source_maps/AptosAccount.mvsm
Binary file not shown.
Binary file added
BIN
+1.17 KB
.../artifacts/current/build/AptosFramework/source_maps/AptosTransactionPublishingOption.mvsm
Binary file not shown.
Binary file modified
BIN
+371 Bytes
(100%)
.../aptos-framework/releases/artifacts/current/build/AptosFramework/source_maps/Genesis.mvsm
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...k/aptos-framework/releases/artifacts/current/build/AptosFramework/source_maps/Marker.mvsm
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...ases/artifacts/current/build/AptosFramework/sources/AptosTransactionPublishingOption.move
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module AptosFramework::AptosTransactionPublishingOption { | ||
use Std::Capability; | ||
use AptosFramework::Marker::{Self, ChainMarker}; | ||
use CoreFramework::DiemTransactionPublishingOption; | ||
|
||
public fun initialize( | ||
core_resource_account: &signer, | ||
script_allow_list: vector<vector<u8>>, | ||
module_publishing_allowed: bool, | ||
) { | ||
DiemTransactionPublishingOption::initialize<ChainMarker>(core_resource_account, script_allow_list, module_publishing_allowed); | ||
} | ||
|
||
public fun set_module_publishing_allowed(account: &signer, is_allowed: bool) { | ||
DiemTransactionPublishingOption::set_module_publishing_allowed(is_allowed, Capability::acquire(account, &Marker::get())); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+34 Bytes
(100%)
...s-framework/releases/artifacts/current/build/CoreFramework/bytecode_modules/DiemConfig.mv
Binary file not shown.
Binary file added
BIN
+802 Bytes
...artifacts/current/build/CoreFramework/bytecode_modules/DiemTransactionPublishingOption.mv
Binary file not shown.
Oops, something went wrong.