-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[framework] Adds publisher module (#7196)
Finalizes the experiment myself and @amnn started; and proposes a `publisher` module. The goal of this module is to enable recognition of the Publisher authority. Potentially it could be used for: 1. Setting rules / registering a type in a system, such as metadata, AFTER the module was published 2. Authorizing admin actions (effectively replacing AdminCap which is often added manually)
- Loading branch information
Showing
8 changed files
with
486 additions
and
24 deletions.
There are no files selected for viewing
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
12 changes: 12 additions & 0 deletions
12
crates/sui-framework/deps/move-stdlib/sources/address.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,12 @@ | ||
// Copyright (c) Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
/// Provides a way to get address length since it's a | ||
/// platform-specific parameter. | ||
module std::address { | ||
/// Should be converted to a native function. | ||
/// Current implementation only works for Sui. | ||
public fun length(): u64 { | ||
20 | ||
} | ||
} |
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
Oops, something went wrong.
091949f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Owned Transactions Benchmark Results
Shared Transactions Benchmark Results
Narwhal Benchmark Results