Skip to content

Commit

Permalink
[move] remove framework bloat (#209)
Browse files Browse the repository at this point in the history
Co-authored-by: 0o-de-lally <1364012+0o-de-lally@users.noreply.github.com>
  • Loading branch information
0xzoz and 0o-de-lally authored Mar 12, 2024
1 parent 4035750 commit 8ce78e3
Show file tree
Hide file tree
Showing 13 changed files with 11 additions and 5 deletions.
10 changes: 7 additions & 3 deletions framework/libra-framework/sources/modified_source/account.move
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,19 @@ module diem_framework::account {

// use diem_std::debug::print;

#[test_only]
friend diem_framework::diem_account;
friend diem_framework::coin;
friend diem_framework::genesis;
friend diem_framework::resource_account;
friend diem_framework::transaction_validation;
//////// 0L ////////
friend ol_framework::ol_account;
friend diem_framework::multisig_account;

#[test_only]
friend diem_framework::diem_account;

friend diem_framework::resource_account;
//////// end 0L ////////

/// Resource representing an account.
struct Account has key, store {
authentication_key: vector<u8>,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

/// A resource account is used to manage resources independent of an account managed by a user.
/// This contains several utilities to make using resource accounts more effective.
///
Expand Down Expand Up @@ -58,6 +59,7 @@
/// module.resource_signer_cap = option::some(resource_signer_cap);
/// }
/// ```

module diem_framework::resource_account {
use std::error;
use std::signer;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
spec diem_framework::diem_coin {
spec diem_framework::diem_coin {
spec module {
pragma verify = true;
pragma aborts_if_is_strict;
Expand All @@ -8,7 +8,7 @@ spec diem_framework::diem_coin {
pragma aborts_if_is_partial;
let addr = signer::address_of(diem_framework);
ensures exists<MintCapStore>(addr);
ensures exists<coin::CoinInfo<DiemCoin>>(addr);
ensures exists<coin::CoinInfo<GasCoin>>(addr);
}

spec destroy_mint_cap {
Expand Down
Binary file removed framework/releases/release-6.9.6.mrb
Binary file not shown.

0 comments on commit 8ce78e3

Please sign in to comment.