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.
This reduces storage explosion on new accounts by 33%. Unfortunately there's a huge amount of quirks: * created aptos_account as an entity that knows about everything * moved coin out of account and into aptos_account to avoid cyclical dependencies * removed coins, since we now are going a different route with dependencies * moved guid and events to framework as they are now directly dependent on account
- Loading branch information
Showing
104 changed files
with
1,458 additions
and
1,375 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
api/goldens/aptos_api__tests__invalid_post_request_test__test_invalid_payload_type.json
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"message": "parse request payload error: Expected input type \"TransactionPayload\", found {\"type\":\"invalid\",\"function\":\"0x1::account::create_account\",\"type_arguments\":[],\"arguments\":[\"0x00000000000000000000000001234567\"]}. (occurred while parsing \"UserTransactionRequestInner\") (occurred while parsing \"EncodeSubmissionRequest\")", | ||
"message": "parse request payload error: Expected input type \"TransactionPayload\", found {\"type\":\"invalid\",\"function\":\"0x1::aptos_account::create_account\",\"type_arguments\":[],\"arguments\":[\"0x00000000000000000000000001234567\"]}. (occurred while parsing \"UserTransactionRequestInner\") (occurred while parsing \"EncodeSubmissionRequest\")", | ||
"error_code": "web_framework_error", | ||
"vm_error_code": null | ||
} |
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
25 changes: 23 additions & 2 deletions
25
api/goldens/aptos_api__tests__state_test__test_get_account_resource.json
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 |
---|---|---|
@@ -1,6 +1,27 @@ | ||
{ | ||
"type": "0x1::guid::Generator", | ||
"type": "0x1::account::Account", | ||
"data": { | ||
"counter": "3" | ||
"authentication_key": "0xcef8ffd1ab9017e96132df8a56b22de39a8155e1c3fc32affbbf93eb624b532a", | ||
"coin_register_events": { | ||
"counter": "1", | ||
"guid": { | ||
"id": { | ||
"addr": "0xa550c18", | ||
"creation_num": "0" | ||
} | ||
} | ||
}, | ||
"guid_creation_num": "3", | ||
"rotation_capability_offer": { | ||
"for": { | ||
"vec": [] | ||
} | ||
}, | ||
"sequence_number": "0", | ||
"signer_capability_offer": { | ||
"for": { | ||
"vec": [] | ||
} | ||
} | ||
} | ||
} |
25 changes: 23 additions & 2 deletions
25
api/goldens/aptos_api__tests__state_test__test_get_account_resource_with_version.json
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 |
---|---|---|
@@ -1,6 +1,27 @@ | ||
{ | ||
"type": "0x1::guid::Generator", | ||
"type": "0x1::account::Account", | ||
"data": { | ||
"counter": "3" | ||
"authentication_key": "0xcef8ffd1ab9017e96132df8a56b22de39a8155e1c3fc32affbbf93eb624b532a", | ||
"coin_register_events": { | ||
"counter": "1", | ||
"guid": { | ||
"id": { | ||
"addr": "0xa550c18", | ||
"creation_num": "0" | ||
} | ||
} | ||
}, | ||
"guid_creation_num": "3", | ||
"rotation_capability_offer": { | ||
"for": { | ||
"vec": [] | ||
} | ||
}, | ||
"sequence_number": "0", | ||
"signer_capability_offer": { | ||
"for": { | ||
"vec": [] | ||
} | ||
} | ||
} | ||
} |
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.