-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EI-519][indexer][testing] Implement scripted transaction generation (#…
…14569) * script transaction * modify the output path by append the network name --------- Co-authored-by: yuunlimm <dla0267@gmail.com>
- Loading branch information
1 parent
1036592
commit b163f03
Showing
27 changed files
with
924 additions
and
107 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
1 change: 1 addition & 0 deletions
1
ecosystem/indexer-grpc/indexer-transaction-generator/example_tests/README.md
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 @@ | ||
This folder demonstrates the testing folder structure. |
3 changes: 3 additions & 0 deletions
3
...ystem/indexer-grpc/indexer-transaction-generator/example_tests/imported_transactions.yaml
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,3 @@ | ||
# Empty configs to import. | ||
{ | ||
} |
1 change: 1 addition & 0 deletions
1
...ndexer-grpc/indexer-transaction-generator/example_tests/move_fixtures/README.md
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 @@ | ||
This folder hosts all the example move scripts. |
8 changes: 8 additions & 0 deletions
8
...er-grpc/indexer-transaction-generator/example_tests/move_fixtures/simple_user_script.yaml
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,8 @@ | ||
transactions: | ||
- output_name: simple_user_script1 | ||
script_path: simple_user_script | ||
sender_address: __ACCOUNT_A__ | ||
- output_name: simple_user_script2 | ||
script_path: simple_user_script2 | ||
sender_address: __ACCOUNT_A__ | ||
|
15 changes: 15 additions & 0 deletions
15
...pc/indexer-transaction-generator/example_tests/move_fixtures/simple_user_script/Move.toml
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,15 @@ | ||
[package] | ||
name = "test_case" | ||
version = "1.0.0" | ||
authors = [] | ||
|
||
[addresses] | ||
|
||
[dev-addresses] | ||
|
||
[dependencies.AptosFramework] | ||
git = "https://github.com/aptos-labs/aptos-core.git" | ||
rev = "mainnet" | ||
subdir = "aptos-move/framework/aptos-framework" | ||
|
||
[dev-dependencies] |
Binary file added
BIN
+21 Bytes
...pc/indexer-transaction-generator/example_tests/move_fixtures/simple_user_script/script.mv
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
...er-transaction-generator/example_tests/move_fixtures/simple_user_script/sources/main.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,4 @@ | ||
script { | ||
fun main(src: &signer) { | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...r-grpc/indexer-transaction-generator/example_tests/move_fixtures/simple_user_script2.yaml
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,8 @@ | ||
transactions: | ||
- output_name: simple_user_script3 | ||
script_path: simple_user_script | ||
sender_address: __ACCOUNT_A__ | ||
- output_name: simple_user_script4 | ||
script_path: simple_user_script2 | ||
sender_address: __ACCOUNT_B__ | ||
|
15 changes: 15 additions & 0 deletions
15
...c/indexer-transaction-generator/example_tests/move_fixtures/simple_user_script2/Move.toml
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,15 @@ | ||
[package] | ||
name = "test_case" | ||
version = "1.0.0" | ||
authors = [] | ||
|
||
[addresses] | ||
|
||
[dev-addresses] | ||
|
||
[dependencies.AptosFramework] | ||
git = "https://github.com/aptos-labs/aptos-core.git" | ||
rev = "mainnet" | ||
subdir = "aptos-move/framework/aptos-framework" | ||
|
||
[dev-dependencies] |
Binary file added
BIN
+21 Bytes
...c/indexer-transaction-generator/example_tests/move_fixtures/simple_user_script2/script.mv
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
...r-transaction-generator/example_tests/move_fixtures/simple_user_script2/sources/main.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,4 @@ | ||
script { | ||
fun main(src: &signer) { | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
ecosystem/indexer-grpc/indexer-transaction-generator/example_tests/testing_accounts.yaml
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,16 @@ | ||
# This file serves the accounts to use during account generation. | ||
# These are generated in localnet and safe to share. | ||
accounts: | ||
- private_key: "0x99978d48e7b2d50d0a7a3273db0929447ae59635e71118fa256af654c0ce56c9" | ||
public_key: "0x39b4acc85e026dc056464a5ea00b98f858260eaad2b74dd30b86ae0d4d94ddf5" | ||
account: a531b7fdd7917f73ca216d89a8d9ce0cf7e7cfb9086ca6f6cbf9521532748d16 | ||
- private_key: "0xe77498ac20ca67e8f642a6521077c8d5cba54853e7bed1e2c33b67e5a7b6c76e" | ||
public_key: "0xc92c8e7b4467e629ca8cd201a21564de39eea7cbe45b59bfd37f10b56e0a728c" | ||
account: 501b015c58f2a1a62a330a6da80dfee723f528f719d25a4232751986f9a9f43f | ||
- private_key: "0x76a641118ffb5ca5f9de4fe414a7d216d89616e74bec2c445324a2f0ab609ab6" | ||
public_key: "0xef05bede15f422e16c0002e3cee8b4d4341518d99c4695352a1869b0779864fb" | ||
account: 8f0de18409d6fca18c72fac4062fc0f9baa6404296fed93a3ad0250fb671f8b3 | ||
- private_key: "0xf24423f014e6f2fdd1914d6961b49a2cfc9eac59b88a57457e4cd9424fc140c8" | ||
public_key: "0xb298975d27dbff3020e5ee7fdbbad8a969d4f2a2d5286e097d1db9760d04dd31" | ||
account: 765d8c8d4d5859f43a56e2756fbf5f3d2483dbaa14f3fb62872df820d6e64eff | ||
|
Oops, something went wrong.