Skip to content

Commit

Permalink
update the folder name to be consistent (#14856)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuunlimm authored Oct 3, 2024
1 parent b6c01b9 commit 1608db6
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 31 deletions.
7 changes: 5 additions & 2 deletions ecosystem/indexer-grpc/indexer-test-transactions/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fn main() {

create_directory_if_missing("json_transactions/imported_mainnet_txns");
create_directory_if_missing("json_transactions/imported_testnet_txns");
create_directory_if_missing("json_transactions/scripted_txns");
create_directory_if_missing("json_transactions/scripted_transactions");

all_transactions_code.push_str(&process_directory(
"imported_mainnet_txns",
Expand All @@ -22,7 +22,10 @@ fn main() {
"imported_testnet_txns",
"imported_testnet_txns",
));
all_transactions_code.push_str(&process_directory("generated_txns", "generated_txns"));
all_transactions_code.push_str(&process_directory(
"scripted_transactions",
"scripted_transactions",
));

fs::write(dest_path, all_transactions_code).unwrap();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"timestamp": {
"seconds": "1727421325",
"nanos": 197950000
"seconds": "1727820423",
"nanos": 374924000
},
"version": "65",
"info": {
"hash": "EVjdz6VT0ucfIThWYuM1275MjzHyEgSJP5RVaC8NlBA=",
"stateChangeHash": "i/eXRYj+jS/niJmWwd2iTvSzQm8s4S1qvyN06q0K3qU=",
"hash": "HVkZSbpJSlZwoFhNjwQIZVRP98gL/FflFz0XDr1s/jQ=",
"stateChangeHash": "3soporrHMTRz3yCupvKV3zTuT08yUmHu0fDCQ7t9Z14=",
"eventRootHash": "J/kCueHhHqJXi8MVudrh82sOQ/pqY9TJ9VjLOdgel6I=",
"gasUsed": "3",
"success": true,
"vmStatus": "Executed successfully",
"accumulatorRootHash": "oZCcacA0QaSJ73RZXyUy2VF0qSleXwVfxGZ+oen4qkQ=",
"accumulatorRootHash": "x7tsbu3sxHcS4gRpYWlhR++sAahWzRGE0pQEzcZ7sN4=",
"changes": [
{
"type": "TYPE_WRITE_RESOURCE",
Expand Down Expand Up @@ -99,7 +99,7 @@
"maxGasAmount": "4",
"gasUnitPrice": "100",
"expirationTimestampSecs": {
"seconds": "1727421355"
"seconds": "1727820453"
},
"payload": {
"type": "TYPE_SCRIPT_PAYLOAD",
Expand Down Expand Up @@ -128,7 +128,7 @@
"type": "TYPE_ED25519",
"ed25519": {
"publicKey": "ObSsyF4CbcBWRkpeoAuY+FgmDqrSt03TC4auDU2U3fU=",
"signature": "zKv0luBq+y21hWdUPNwXgr3IMqa/bOu2F6EEOsKE8Nj/hHTpufL9cRw1qw9HFqg1jPYjHrkj4CHz0AEpMzohDw=="
"signature": "IU2OKSpVrg5lkxDIaQcu2bof2350i1ZK1Fa5fnQDD69b511fgTzhLo3HxKBfUWPRVSHz4r4F3069tzbt2QRGAg=="
}
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"timestamp": {
"seconds": "1727421331",
"nanos": 441046000
"seconds": "1727820429",
"nanos": 295697000
},
"version": "85",
"info": {
"hash": "PW14bLZ3tJ0R17SjNgnmkojeN1M9kHGQ7HqplAGrNMI=",
"stateChangeHash": "2x+QMF/oSpT68TbIeBfM9ii9C/BBxxaynIA9o5YyFWE=",
"hash": "q13GWfM8FlYaXVhA7NMVDn/xk0+k5DmQ02RaWRBqIyY=",
"stateChangeHash": "hD3RRNs1JLei2+pGUGnfhBTFaiG53wVQSddrWWbNEeI=",
"eventRootHash": "J/kCueHhHqJXi8MVudrh82sOQ/pqY9TJ9VjLOdgel6I=",
"gasUsed": "3",
"success": true,
"vmStatus": "Executed successfully",
"accumulatorRootHash": "nuQFa0uh8LYnJpm/ZCZltSy8QIsy/RZ62yR1EmI+Jhk=",
"accumulatorRootHash": "QYI3MKmiAbxczpvK5hz+ViHMVpr1fz1tXfnESqq+isM=",
"changes": [
{
"type": "TYPE_WRITE_RESOURCE",
Expand Down Expand Up @@ -100,7 +100,7 @@
"maxGasAmount": "4",
"gasUnitPrice": "100",
"expirationTimestampSecs": {
"seconds": "1727421361"
"seconds": "1727820459"
},
"payload": {
"type": "TYPE_SCRIPT_PAYLOAD",
Expand Down Expand Up @@ -129,7 +129,7 @@
"type": "TYPE_ED25519",
"ed25519": {
"publicKey": "ObSsyF4CbcBWRkpeoAuY+FgmDqrSt03TC4auDU2U3fU=",
"signature": "KU0rMZs8n95eJcX0vkVDRIMKt/kaJjPP4ttdTms5mniusNLILqM7qPqC2bDImRmmYhNRtJ4+BJcxn+T76rRsBQ=="
"signature": "6AjqLiElP1/XJ/cA5JLYn4ZhKlFCWP1mez4RUnsu8VMlrySXcTCmiQcdTyK1dlCwygPCd8bpPK556oLfXD/FCA=="
}
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"timestamp": {
"seconds": "1727421312",
"nanos": 921233000
"seconds": "1727820411",
"nanos": 25131000
},
"version": "23",
"info": {
"hash": "2RmO+iRS2emMjOVhnZpv9ZwJNM9y63TCwaYLobNg+RA=",
"stateChangeHash": "VMJsni+6OOtOvYbW9TkmqnbaKPjmkniZXoySrY2J0Zw=",
"hash": "GZknxbrVbJ5aNZM9oxo8z2rn7vXPdCvI6xnNXFwTCbI=",
"stateChangeHash": "WVt5Qp5hqlE5kot3+/OaitmDhrCxSBoOAD11eWHj3Vs=",
"eventRootHash": "J/kCueHhHqJXi8MVudrh82sOQ/pqY9TJ9VjLOdgel6I=",
"gasUsed": "3",
"success": true,
"vmStatus": "Executed successfully",
"accumulatorRootHash": "1yTie36mbirBFeepzuuC/bLZbFAJqNqwR1emhQKMVs4=",
"accumulatorRootHash": "aXWm4P5j68oLt6Ti0vzFIib/dLvCzgTgBBQE33QBR7o=",
"changes": [
{
"type": "TYPE_WRITE_RESOURCE",
Expand Down Expand Up @@ -99,7 +99,7 @@
"maxGasAmount": "4",
"gasUnitPrice": "100",
"expirationTimestampSecs": {
"seconds": "1727421342"
"seconds": "1727820441"
},
"payload": {
"type": "TYPE_SCRIPT_PAYLOAD",
Expand Down Expand Up @@ -128,7 +128,7 @@
"type": "TYPE_ED25519",
"ed25519": {
"publicKey": "spiXXSfb/zAg5e5/27rYqWnU8qLVKG4JfR25dg0E3TE=",
"signature": "Fsmy9//Uha51qhZGM0d4YPmGVXCjU7aIsFqjZ5cw8ieC47atfHpktEA164wc+i6PSAuj9TIoH4r/xi6dpclWAA=="
"signature": "bp1zbI6WAhlpVcvHStPchYhxufqxtxRVy+/BMs253MCe7fqK8dXJVTseyfz12GQN7MEax0+6ywn8WrKJ6e7bDg=="
}
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"timestamp": {
"seconds": "1727421318",
"nanos": 640581000
"seconds": "1727820416",
"nanos": 759819000
},
"version": "43",
"info": {
"hash": "kq1i+DudMSQSPMed3N2xiuVq4RIeBTm5vyvl/29VBwA=",
"stateChangeHash": "zwtBKlKw9jZwEznxm9VtQucWtXtPf7vzbodt6SHcIRk=",
"hash": "kloPL+AJzlOiHUD8DctUWeIZY3habQK1KrpM1+QnlnE=",
"stateChangeHash": "x2csE3/ogps+13tND7qzDszafZ96xYXGIwFYnkx77Ag=",
"eventRootHash": "J/kCueHhHqJXi8MVudrh82sOQ/pqY9TJ9VjLOdgel6I=",
"gasUsed": "3",
"success": true,
"vmStatus": "Executed successfully",
"accumulatorRootHash": "91KHbKiUBC+o2jUqg0zFiNjVa1V4YpYqcX23oh6xWGo=",
"accumulatorRootHash": "dXORuqtTul46Lyl8Q5HORdGaKR6461GPCPSdsL20lLw=",
"changes": [
{
"type": "TYPE_WRITE_RESOURCE",
Expand Down Expand Up @@ -99,7 +99,7 @@
"maxGasAmount": "4",
"gasUnitPrice": "100",
"expirationTimestampSecs": {
"seconds": "1727421348"
"seconds": "1727820446"
},
"payload": {
"type": "TYPE_SCRIPT_PAYLOAD",
Expand Down Expand Up @@ -128,7 +128,7 @@
"type": "TYPE_ED25519",
"ed25519": {
"publicKey": "7wW+3hX0IuFsAALjzui01DQVGNmcRpU1KhhpsHeYZPs=",
"signature": "BWUCSlTwShIrM508yRGjhb2vAymDu+08DYtyn/oh3YuB7ptCeeaYAQg4GdzDQuGkBQixnjoWHVzA/tdgDWsuAQ=="
"signature": "nsZra2UgS2lbtSWogQG39J89KyK6f49h46acnn+rZD87OmJAzYux/9poCzoqiVyUEvJTShJ0RjUFKKxO6aUdAA=="
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mod tests {

#[test]
fn test_generate_transactions() {
let json_bytes = GENERATED_TXNS_SIMPLE_USER_SCRIPT1;
let json_bytes = SCRIPTED_TRANSACTIONS_SIMPLE_USER_SCRIPT1;
// Check that the transaction is valid JSON
let transaction = serde_json::from_slice::<Transaction>(json_bytes).unwrap();

Expand Down
10 changes: 10 additions & 0 deletions ecosystem/indexer-grpc/indexer-transaction-generator/example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import_config:
testnet:
# Transaction Stream endpoint addresss.
transaction_stream_endpoint: https://grpc.testnet.aptoslabs.com:443
# (Optional) The key to use with developers.aptoslabs.com
api_key: aptoslabs_L7pzPsqiShp_EwzUCbhb6ehTe8PSvFp6ZeUr3B3gBdGaX
# A map from versions to dump and their output names.
versions_to_import:
1: v1_genesis
278556781: coin_register_fa_metadata_278556781

0 comments on commit 1608db6

Please sign in to comment.