Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Sdk tests (#554) #565

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:

jobs:
Integration-tests:
runs-on: ubuntu-latest # Ensure the correct runner is used
runs-on: runs-on,runner=2cpu-linux-x64,run-id=${{ github.run_id }}

steps:
- name: Checkout code
Expand Down Expand Up @@ -66,5 +66,5 @@ jobs:

# Run Integration Tests
- name: Run Integration Tests
run: cargo test --manifest-path integration-tests/Cargo.toml
run: cargo test --manifest-path integration-tests/Cargo.toml -- --nocapture
working-directory: rust
16 changes: 8 additions & 8 deletions rust/Cargo.lock

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

6 changes: 3 additions & 3 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ testing-transactions = { path = "testing-transactions" }

ahash = { version = "0.8.7", features = ["serde"] }
anyhow = "1.0.86"
aptos-indexer-processor-sdk = { git = "https://github.com/aptos-labs/aptos-indexer-processor-sdk.git", rev = "1f989c65abbd5cf00a0631a30755ef05818e1894" }
aptos-indexer-processor-sdk-server-framework = { git = "https://github.com/aptos-labs/aptos-indexer-processor-sdk.git", rev = "1f989c65abbd5cf00a0631a30755ef05818e1894" }
aptos-indexer-processor-sdk = { git = "https://github.com/aptos-labs/aptos-indexer-processor-sdk.git", rev = "41dd3e52235032d447f736664d28b9ec4fd0a299" }
aptos-indexer-processor-sdk-server-framework = { git = "https://github.com/aptos-labs/aptos-indexer-processor-sdk.git", rev = "41dd3e52235032d447f736664d28b9ec4fd0a299" }
aptos-protos = { git = "https://github.com/aptos-labs/aptos-core.git", rev = "5c48aee129b5a141be2792ffa3d9bd0a1a61c9cb" }
aptos-system-utils = { git = "https://github.com/aptos-labs/aptos-core.git", rev = "202bdccff2b2d333a385ae86a4fcf23e89da9f62" }
aptos-indexer-test-transactions = { git = "https://github.com/aptos-labs/aptos-core.git", rev = "3099bbe1e100be815ca0cb262cd7eceef9c75dad" }
aptos-indexer-testing-framework = { git = "https://github.com/aptos-labs/aptos-indexer-processor-sdk.git", rev = "1f989c65abbd5cf00a0631a30755ef05818e1894" }
aptos-indexer-testing-framework = { git = "https://github.com/aptos-labs/aptos-indexer-processor-sdk.git", rev = "41dd3e52235032d447f736664d28b9ec4fd0a299" }

async-trait = "0.1.53"
backtrace = "0.3.58"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
{
"table_handle": "0x1b854694ae746cdbd8d44186ca4929b2b337df21d1c74633be19b2710552fdca",
"key_hash": "61ff6dde49d23af0395c534ca7bee92391910cd0ac4e4ba3d35a2619e49a1775",
"key": "0x0619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935",
"decoded_key": "0x619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935",
"decoded_value": "106177548228160480",
"is_deleted": false,
"last_transaction_version": 308783012
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[
{
"transaction_version": 308783012,
"write_set_change_index": 8,
"transaction_block_height": 106350614,
"key": "0x0619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935",
"table_handle": "0x1b854694ae746cdbd8d44186ca4929b2b337df21d1c74633be19b2710552fdca",
"decoded_key": "0x619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935",
"decoded_value": "106177548228160480",
"is_deleted": false
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{
"handle": "0x1b854694ae746cdbd8d44186ca4929b2b337df21d1c74633be19b2710552fdca",
"key_type": "address",
"value_type": "u128"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"object_address": "0x6fd8ee875fb55e03b1f9643d3f229f0b077a71cfe7ffc8ba7e09ff4392950e5c",
"owner_address": "0x9dbbb06745c8f0242199bf5ce60ace04ff3bad41a9c697440009c9689587e694",
"state_key_hash": "0xf45d26a295db9ee2d220932bfa9c535fba8fb2a1364dd834b31bec750088289f",
"allow_ungated_transfer": true,
"last_guid_creation_num": "1125899906842626",
"last_transaction_version": 308783012,
"is_deleted": false,
"untransferrable": false
},
{
"object_address": "0xc791df699189a8fdfb4faaacf834f036d37670d6fd1ef06d3efb2d14c081512a",
"owner_address": "0x7efbc33cf69ad534412eab0ccd0f5fbec7793bdebf08a3620afe8e5f89ef13a0",
"state_key_hash": "0x89831c962a6d8ef922a58688dd7b949b1b83557241b0de2b1daf874f590b5667",
"allow_ungated_transfer": false,
"last_guid_creation_num": "1125899906842628",
"last_transaction_version": 308783012,
"is_deleted": false,
"untransferrable": true
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
[
{
"transaction_version": 308783012,
"write_set_change_index": 2,
"object_address": "0x6fd8ee875fb55e03b1f9643d3f229f0b077a71cfe7ffc8ba7e09ff4392950e5c",
"owner_address": "0x9dbbb06745c8f0242199bf5ce60ace04ff3bad41a9c697440009c9689587e694",
"state_key_hash": "0xf45d26a295db9ee2d220932bfa9c535fba8fb2a1364dd834b31bec750088289f",
"guid_creation_num": "1125899906842626",
"allow_ungated_transfer": true,
"is_deleted": false,
"untransferrable": false
},
{
"transaction_version": 308783012,
"write_set_change_index": 3,
"object_address": "0x6fd8ee875fb55e03b1f9643d3f229f0b077a71cfe7ffc8ba7e09ff4392950e5c",
"owner_address": "0x9dbbb06745c8f0242199bf5ce60ace04ff3bad41a9c697440009c9689587e694",
"state_key_hash": "0xf45d26a295db9ee2d220932bfa9c535fba8fb2a1364dd834b31bec750088289f",
"guid_creation_num": "1125899906842626",
"allow_ungated_transfer": true,
"is_deleted": false,
"untransferrable": false
},
{
"transaction_version": 308783012,
"write_set_change_index": 5,
"object_address": "0xc791df699189a8fdfb4faaacf834f036d37670d6fd1ef06d3efb2d14c081512a",
"owner_address": "0x7efbc33cf69ad534412eab0ccd0f5fbec7793bdebf08a3620afe8e5f89ef13a0",
"state_key_hash": "0x89831c962a6d8ef922a58688dd7b949b1b83557241b0de2b1daf874f590b5667",
"guid_creation_num": "1125899906842628",
"allow_ungated_transfer": false,
"is_deleted": false,
"untransferrable": true
},
{
"transaction_version": 308783012,
"write_set_change_index": 6,
"object_address": "0xc791df699189a8fdfb4faaacf834f036d37670d6fd1ef06d3efb2d14c081512a",
"owner_address": "0x7efbc33cf69ad534412eab0ccd0f5fbec7793bdebf08a3620afe8e5f89ef13a0",
"state_key_hash": "0x89831c962a6d8ef922a58688dd7b949b1b83557241b0de2b1daf874f590b5667",
"guid_creation_num": "1125899906842628",
"allow_ungated_transfer": false,
"is_deleted": false,
"untransferrable": true
},
{
"transaction_version": 308783012,
"write_set_change_index": 7,
"object_address": "0xc791df699189a8fdfb4faaacf834f036d37670d6fd1ef06d3efb2d14c081512a",
"owner_address": "0x7efbc33cf69ad534412eab0ccd0f5fbec7793bdebf08a3620afe8e5f89ef13a0",
"state_key_hash": "0x89831c962a6d8ef922a58688dd7b949b1b83557241b0de2b1daf874f590b5667",
"guid_creation_num": "1125899906842628",
"allow_ungated_transfer": false,
"is_deleted": false,
"untransferrable": true
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"transaction_version": 308783012,
"multi_agent_index": 0,
"multi_sig_index": 0,
"transaction_block_height": 106350614,
"signer": "0x28f87126ce5c2ead81ec4fef494c73d545757a9a634eb54d36ae5a9737f4f287",
"is_sender_primary": true,
"type_": "ed25519_signature",
"public_key": "0x28259cd61970d3ef1e620df6a33cb5c95b9a09b7ae43415f55679691c3af1630",
"signature": "0x833798fac881cbc33887e3fd57e9d38e59e51d04e2fde293e48c9f1e642269a0edc403fdfc64a0bf39584368900b490c80d366c631261aedd42e3121ad364f01",
"threshold": 1,
"public_key_indices": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"version": 308783012,
"block_height": 106350614,
"parent_signature_type": "ed25519_signature",
"sender": "0x28f87126ce5c2ead81ec4fef494c73d545757a9a634eb54d36ae5a9737f4f287",
"sequence_number": 15108,
"max_gas_amount": "900",
"expiration_timestamp_secs": "2023-10-24T09:48:02",
"gas_unit_price": "100",
"timestamp": "2023-10-24T09:08:03.606880",
"entry_function_id_str": "0x8d2d7bcde13b2513617df3f98cdd5d0e4b9f714c6308b9204fe18ad900d92609::mint::resource_mint_token_memo",
"epoch": 4534
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[
{
"version": 1,
"block_height": 1,
"id": "0x01f4392dc07a74b39eaea58b912855cbbd1ab67e5089ae6166329e883c2085f0",
"round": 3,
"epoch": 1,
"previous_block_votes_bitvec": [
0
],
"proposer": "0xdffe3c93b756bf6fec59b052d6fe71b40c3f9b7899d69ab06ba385b1c6728d16",
"failed_proposer_indices": [
2,
1
],
"timestamp": "2022-09-09T01:24:17.227425"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[
{
"transaction_version": 1,
"write_set_change_index": 15,
"transaction_block_height": 1,
"key": "0x0619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935",
"table_handle": "0x1b854694ae746cdbd8d44186ca4929b2b337df21d1c74633be19b2710552fdca",
"decoded_key": "0x619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935",
"decoded_value": "18448344078275751615",
"is_deleted": false
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"handle": "0x1b854694ae746cdbd8d44186ca4929b2b337df21d1c74633be19b2710552fdca",
"key_type": "address",
"value_type": "u128"
},
{
"handle": "0x15ee8af17d949286d38de4eb223262852b6150022e25478ca31111d38939c7e9",
"key_type": "u64",
"value_type": "vector<0x1::smart_table::Entry<address, u64>>"
},
{
"handle": "0x5e32abbab0789e8f6c5f559946d0e77e2de62d76f878b77a8cbab5327dac1e0a",
"key_type": "u64",
"value_type": "vector<0x1::smart_table::Entry<address, u128>>"
},
{
"handle": "0xad589a70930e065131f7b748607ca8a3e998149c9e15134bcf2b608b7fca003e",
"key_type": "u64",
"value_type": "vector<0x1::smart_table::Entry<address, u64>>"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Loading