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 token v1 tests for token v2 processor #588

Merged
merged 5 commits into from
Nov 5, 2024
Merged
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
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ config.yaml
cursor.txt
build
node_modules/
lcov.info

# Rust specific ignores
# Please follow https://help.github.com/en/articles/ignoring-files to create a global
Expand Down
8 changes: 4 additions & 4 deletions rust/Cargo.lock

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

2 changes: 1 addition & 1 deletion rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ aptos-indexer-processor-sdk = { git = "https://github.com/aptos-labs/aptos-index
aptos-indexer-processor-sdk-server-framework = { git = "https://github.com/aptos-labs/aptos-indexer-processor-sdk.git", rev = "c8f12a75c3648fba889c3da657ff713cd5e676dc" }
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 = "7429012893b530e6880877750ade5b879858285d" }
aptos-indexer-test-transactions = { git = "https://github.com/aptos-labs/aptos-core.git", rev = "48f26a88b24f7e8351714150e7a4c2f980c1ba6d" }
aptos-indexer-testing-framework = { git = "https://github.com/aptos-labs/aptos-indexer-processor-sdk.git", rev = "c8f12a75c3648fba889c3da657ff713cd5e676dc" }
async-trait = "0.1.53"
backtrace = "0.3.58"
Expand Down
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 @@
[]
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,96 @@
[
{
"table_handle": "0x1b854694ae746cdbd8d44186ca4929b2b337df21d1c74633be19b2710552fdca",
"key_hash": "61ff6dde49d23af0395c534ca7bee92391910cd0ac4e4ba3d35a2619e49a1775",
"key": "0x0619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935",
"decoded_key": "0x619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935",
"decoded_value": "110825801751155699",
"is_deleted": false,
"last_transaction_version": 1058723093
},
{
"table_handle": "0x28418760527ca583ca1dea9807b21574952f9eac6f2cbef9369f0c87f1940497",
"key_hash": "806ddaf24ffff81a226637c94d1af97f5d416be4b306f66831e9e3334c35bf6b",
"key": "0x092d2f7ad00630e4dfffcca01bee12c84edf004720347fb1fd57016d2cc8d3f80947616c7865204f4154194170746f73204349532078204a6f756c652046696e616e6365",
"decoded_key": {
"name": "Aptos CIS x Joule Finance",
"creator": "0x92d2f7ad00630e4dfffcca01bee12c84edf004720347fb1fd57016d2cc8d3f8",
"collection": "Galxe OAT"
},
"decoded_value": {
"uri": "https://graphigo.prd.galaxy.eco/metadata/aptos/0x092d2f7ad00630e4dfffcca01bee12c84edf004720347fb1fd57016d2cc8d3f8/GCoqbtkpAd.json",
"name": "Aptos CIS x Joule Finance",
"supply": "2893",
"maximum": "10000000000",
"royalty": {
"payee_address": "0x92d2f7ad00630e4dfffcca01bee12c84edf004720347fb1fd57016d2cc8d3f8",
"royalty_points_numerator": "0",
"royalty_points_denominator": "0"
},
"description": "",
"mutability_config": {
"uri": true,
"maximum": true,
"royalty": true,
"properties": false,
"description": false
},
"default_properties": {
"map": {
"data": [
{
"key": "Galxe Campaign",
"value": {
"type": "0x1::string::String",
"value": "0x0a47436f7162746b704164"
}
}
]
}
},
"largest_property_version": "0"
},
"is_deleted": false,
"last_transaction_version": 1058723093
},
{
"table_handle": "0x9005cc042f0a553e12e63d2e67da6e4522dbec500eb798ff3199066f3590a03e",
"key_hash": "9bf0cc9076e25587fc7e102446702e6ed470c102031fd10f5c79164146be888d",
"key": "0xc5f39f3500000000",
"decoded_key": "899675077",
"decoded_value": true,
"is_deleted": false,
"last_transaction_version": 1058723093
},
{
"table_handle": "0xe2d4df48ee30234ecfd2e53216b000e485a304809099f77af060fb4a31153e77",
"key_hash": "8cdc37f890a20e5ad59318a1d20345a65f7d9772350623b55188abf6f91c51e1",
"key": "0x092d2f7ad00630e4dfffcca01bee12c84edf004720347fb1fd57016d2cc8d3f80947616c7865204f4154194170746f73204349532078204a6f756c652046696e616e63650000000000000000",
"decoded_key": {
"token_data_id": {
"name": "Aptos CIS x Joule Finance",
"creator": "0x92d2f7ad00630e4dfffcca01bee12c84edf004720347fb1fd57016d2cc8d3f8",
"collection": "Galxe OAT"
},
"property_version": "0"
},
"decoded_value": {
"id": {
"token_data_id": {
"name": "Aptos CIS x Joule Finance",
"creator": "0x92d2f7ad00630e4dfffcca01bee12c84edf004720347fb1fd57016d2cc8d3f8",
"collection": "Galxe OAT"
},
"property_version": "0"
},
"amount": "1",
"token_properties": {
"map": {
"data": []
}
}
},
"is_deleted": false,
"last_transaction_version": 1058723093
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
[
{
"key": "0x0619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935",
"transaction_version": 1058723093,
"write_set_change_index": 6,
"transaction_block_height": 207536557,
"table_handle": "0x1b854694ae746cdbd8d44186ca4929b2b337df21d1c74633be19b2710552fdca",
"decoded_key": "0x619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935",
"decoded_value": "110825801751155699",
"is_deleted": false
},
{
"key": "0x092d2f7ad00630e4dfffcca01bee12c84edf004720347fb1fd57016d2cc8d3f80947616c7865204f4154194170746f73204349532078204a6f756c652046696e616e6365",
"transaction_version": 1058723093,
"write_set_change_index": 7,
"transaction_block_height": 207536557,
"table_handle": "0x28418760527ca583ca1dea9807b21574952f9eac6f2cbef9369f0c87f1940497",
"decoded_key": {
"name": "Aptos CIS x Joule Finance",
"creator": "0x92d2f7ad00630e4dfffcca01bee12c84edf004720347fb1fd57016d2cc8d3f8",
"collection": "Galxe OAT"
},
"decoded_value": {
"uri": "https://graphigo.prd.galaxy.eco/metadata/aptos/0x092d2f7ad00630e4dfffcca01bee12c84edf004720347fb1fd57016d2cc8d3f8/GCoqbtkpAd.json",
"name": "Aptos CIS x Joule Finance",
"supply": "2893",
"maximum": "10000000000",
"royalty": {
"payee_address": "0x92d2f7ad00630e4dfffcca01bee12c84edf004720347fb1fd57016d2cc8d3f8",
"royalty_points_numerator": "0",
"royalty_points_denominator": "0"
},
"description": "",
"mutability_config": {
"uri": true,
"maximum": true,
"royalty": true,
"properties": false,
"description": false
},
"default_properties": {
"map": {
"data": [
{
"key": "Galxe Campaign",
"value": {
"type": "0x1::string::String",
"value": "0x0a47436f7162746b704164"
}
}
]
}
},
"largest_property_version": "0"
},
"is_deleted": false
},
{
"key": "0xc5f39f3500000000",
"transaction_version": 1058723093,
"write_set_change_index": 8,
"transaction_block_height": 207536557,
"table_handle": "0x9005cc042f0a553e12e63d2e67da6e4522dbec500eb798ff3199066f3590a03e",
"decoded_key": "899675077",
"decoded_value": true,
"is_deleted": false
},
{
"key": "0x092d2f7ad00630e4dfffcca01bee12c84edf004720347fb1fd57016d2cc8d3f80947616c7865204f4154194170746f73204349532078204a6f756c652046696e616e63650000000000000000",
"transaction_version": 1058723093,
"write_set_change_index": 9,
"transaction_block_height": 207536557,
"table_handle": "0xe2d4df48ee30234ecfd2e53216b000e485a304809099f77af060fb4a31153e77",
"decoded_key": {
"token_data_id": {
"name": "Aptos CIS x Joule Finance",
"creator": "0x92d2f7ad00630e4dfffcca01bee12c84edf004720347fb1fd57016d2cc8d3f8",
"collection": "Galxe OAT"
},
"property_version": "0"
},
"decoded_value": {
"id": {
"token_data_id": {
"name": "Aptos CIS x Joule Finance",
"creator": "0x92d2f7ad00630e4dfffcca01bee12c84edf004720347fb1fd57016d2cc8d3f8",
"collection": "Galxe OAT"
},
"property_version": "0"
},
"amount": "1",
"token_properties": {
"map": {
"data": []
}
}
},
"is_deleted": false
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Loading
Loading