Skip to content

Commit

Permalink
[aptos-genesis] Add new Genesis builder for using the new Genesis tool
Browse files Browse the repository at this point in the history
The new genesis tool can now be used for tests because it's integrated
with the builder paradigm used by forge and the local test node.

Closes: #1417
  • Loading branch information
gregnazario authored and aptos-bot committed Jun 17, 2022
1 parent fc28e9f commit 19a3a0a
Show file tree
Hide file tree
Showing 49 changed files with 1,210 additions and 1,074 deletions.
49 changes: 40 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ members = [
"crates/aptos-crypto",
"crates/aptos-crypto-derive",
"crates/aptos-faucet",
"crates/aptos-genesis",
"crates/aptos-id-generator",
"crates/aptos-infallible",
"crates/aptos-keygen",
Expand Down
2 changes: 1 addition & 1 deletion api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ regex = "1.5.5"
reqwest = { version = "0.11.10", features = ["blocking", "json"], default_features = false }

aptos-crypto = { path = "../crates/aptos-crypto" }
aptos-genesis-tool = { path = "../config/management/genesis", features = ["testing"] }
aptos-genesis = { path = "../crates/aptos-genesis", features = ["testing"] }
aptos-global-constants = { path = "../config/global-constants" }
aptos-mempool = { path = "../mempool", features = ["fuzzing"] }
aptos-proptest-helpers = { path = "../crates/aptos-proptest-helpers" }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"sequence_number": "0",
"authentication_key": "0x8e0d19280063fa870fe4dbb85cc724091a398451c5c11e1e76e64cdc7b588510"
"authentication_key": "0xcef8ffd1ab9017e96132df8a56b22de39a8155e1c3fc32affbbf93eb624b532a"
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@
}
}
],
"id": "0xe52bfb76e51cca8b4e9016838657edfae09cb9a71eb219025c4c87a67c4aaa86",
"id": "0x4e9016838657edfae09cb9a71eb219025c4c87a67c4aaa86f20ac0aa792bc121",
"epoch": "0",
"round": "1",
"previous_block_votes": [
false
],
"proposer": "0x5a3f08d4b5f5d0643b9e1d698afbd0ab5d373e7a7b2c54f6a5dda9d04236fb5b",
"proposer": "0x66b22b7465af92a9dc8d07d2878716d9dffbbb280830a7d8cf80334b5da812ef",
"timestamp": "1"
},
{
Expand All @@ -87,7 +87,7 @@
"data": {
"type": "0x1::Account::Account",
"data": {
"authentication_key": "0x8e0d19280063fa870fe4dbb85cc724091a398451c5c11e1e76e64cdc7b588510",
"authentication_key": "0xcef8ffd1ab9017e96132df8a56b22de39a8155e1c3fc32affbbf93eb624b532a",
"self_address": "0xa550c18",
"sequence_number": "1"
}
Expand Down Expand Up @@ -132,20 +132,20 @@
},
{
"type": "write_resource",
"address": "0xd30c067c5c317672314ed69ebe81008891c7aca019294ce52d2524891b8026ea",
"address": "0x34bf7e2d17674feb234371a7ea58efd715f0e56ba20ebf13789480d9d643afaf",
"state_key_hash": "",
"data": {
"type": "0x1::Account::Account",
"data": {
"authentication_key": "0xd30c067c5c317672314ed69ebe81008891c7aca019294ce52d2524891b8026ea",
"self_address": "0xd30c067c5c317672314ed69ebe81008891c7aca019294ce52d2524891b8026ea",
"authentication_key": "0x34bf7e2d17674feb234371a7ea58efd715f0e56ba20ebf13789480d9d643afaf",
"self_address": "0x34bf7e2d17674feb234371a7ea58efd715f0e56ba20ebf13789480d9d643afaf",
"sequence_number": "0"
}
}
},
{
"type": "write_resource",
"address": "0xd30c067c5c317672314ed69ebe81008891c7aca019294ce52d2524891b8026ea",
"address": "0x34bf7e2d17674feb234371a7ea58efd715f0e56ba20ebf13789480d9d643afaf",
"state_key_hash": "",
"data": {
"type": "0x1::Coin::CoinEvents",
Expand All @@ -155,7 +155,7 @@
"guid": {
"guid": {
"id": {
"addr": "0xd30c067c5c317672314ed69ebe81008891c7aca019294ce52d2524891b8026ea",
"addr": "0x34bf7e2d17674feb234371a7ea58efd715f0e56ba20ebf13789480d9d643afaf",
"creation_num": "0"
}
},
Expand All @@ -167,7 +167,7 @@
},
{
"type": "write_resource",
"address": "0xd30c067c5c317672314ed69ebe81008891c7aca019294ce52d2524891b8026ea",
"address": "0x34bf7e2d17674feb234371a7ea58efd715f0e56ba20ebf13789480d9d643afaf",
"state_key_hash": "",
"data": {
"type": "0x1::Coin::CoinStore<0x1::TestCoin::TestCoin>",
Expand All @@ -180,7 +180,7 @@
"guid": {
"guid": {
"id": {
"addr": "0xd30c067c5c317672314ed69ebe81008891c7aca019294ce52d2524891b8026ea",
"addr": "0x34bf7e2d17674feb234371a7ea58efd715f0e56ba20ebf13789480d9d643afaf",
"creation_num": "1"
}
},
Expand All @@ -192,7 +192,7 @@
"guid": {
"guid": {
"id": {
"addr": "0xd30c067c5c317672314ed69ebe81008891c7aca019294ce52d2524891b8026ea",
"addr": "0x34bf7e2d17674feb234371a7ea58efd715f0e56ba20ebf13789480d9d643afaf",
"creation_num": "2"
}
},
Expand All @@ -204,7 +204,7 @@
},
{
"type": "write_resource",
"address": "0xd30c067c5c317672314ed69ebe81008891c7aca019294ce52d2524891b8026ea",
"address": "0x34bf7e2d17674feb234371a7ea58efd715f0e56ba20ebf13789480d9d643afaf",
"state_key_hash": "",
"data": {
"type": "0x1::GUID::Generator",
Expand All @@ -224,17 +224,17 @@
"function": "0x1::Account::create_account",
"type_arguments": [],
"arguments": [
"0xd30c067c5c317672314ed69ebe81008891c7aca019294ce52d2524891b8026ea"
"0x34bf7e2d17674feb234371a7ea58efd715f0e56ba20ebf13789480d9d643afaf"
]
},
"signature": {
"type": "ed25519_signature",
"public_key": "0x20fdbac9b10b7587bba7b5bc163bce69e796d71e4ed44c10fcb4488689f7a144",
"signature": "0x2496d9a46e38adcadfb09e2aa27882f3f1bbe52b1087ce75ae3bae2b4bad1f4ca8a40fed59608be896e6d56b83f1b0a76aade5b352b4f081ad3d914cb8436205"
"public_key": "0x14418f867a0bd6d42abb2daa50cd68a5a869ce208282481f57504f630510d0d3",
"signature": "0x3d03661e4b3fffc4048c41046479b708e445116e391fc417ddc961b33a6752c238b5a794dc5c2af60f0741692bb4fc677203ca96a4dc7758296880e1489ca807"
},
"events": [
{
"key": "0x0000000000000000d30c067c5c317672314ed69ebe81008891c7aca019294ce52d2524891b8026ea",
"key": "0x000000000000000034bf7e2d17674feb234371a7ea58efd715f0e56ba20ebf13789480d9d643afaf",
"sequence_number": "0",
"type": "0x1::Coin::RegisterEvent",
"data": {
Expand Down
Loading

0 comments on commit 19a3a0a

Please sign in to comment.