diff --git a/ecosystem/indexer-grpc/indexer-test-transactions/json_transactions/scripted_transactions/fa_double_transfer.json b/ecosystem/indexer-grpc/indexer-test-transactions/json_transactions/scripted_transactions/fa_double_transfer.json new file mode 100644 index 0000000000000..8327961029f55 --- /dev/null +++ b/ecosystem/indexer-grpc/indexer-test-transactions/json_transactions/scripted_transactions/fa_double_transfer.json @@ -0,0 +1,404 @@ +{ + "timestamp": { + "seconds": "1732752407", + "nanos": 70774000 + }, + "version": "67", + "info": { + "hash": "WSRo7BjlDt3z165dsMFMrjSFDZHFvKsY1JXaayoSb/w=", + "stateChangeHash": "70YgHm7HUKw9br0pPszGsVlxucAlA3CWBmspWaBaVjc=", + "eventRootHash": "FmWvL7p7CNYdF2eb/mjbz8+qRiRO70XR0GQsuHS1nuk=", + "gasUsed": "2230", + "success": true, + "vmStatus": "Executed successfully", + "accumulatorRootHash": "s1cwGiYnKWCvxwQbF5XxBhw+7OT3ke/l+qo6wwTRXe0=", + "changes": [ + { + "type": "TYPE_WRITE_RESOURCE", + "writeResource": { + "address": "0x6653d0f1cd711df18dcaddeaa37e528fa7034e2f1b9ac3578cf4d0abaed12547", + "stateKeyHash": "Y+AkbTsqcSTQ2DpFI3/rV8VMAqYsnqQG5r1gT/Ms7Dg=", + "type": { + "address": "0x1", + "module": "fungible_asset", + "name": "FungibleStore" + }, + "typeStr": "0x1::fungible_asset::FungibleStore", + "data": "{\"balance\":\"0\",\"frozen\":false,\"metadata\":{\"inner\":\"0x77bc07c02b7c38abc5b9d7dbad97bd1e1ff4d4b24066c652d3884918f3e244a5\"}}" + } + }, + { + "type": "TYPE_WRITE_RESOURCE", + "writeResource": { + "address": "0x6653d0f1cd711df18dcaddeaa37e528fa7034e2f1b9ac3578cf4d0abaed12547", + "stateKeyHash": "Y+AkbTsqcSTQ2DpFI3/rV8VMAqYsnqQG5r1gT/Ms7Dg=", + "type": { + "address": "0x1", + "module": "object", + "name": "ObjectCore" + }, + "typeStr": "0x1::object::ObjectCore", + "data": "{\"allow_ungated_transfer\":false,\"guid_creation_num\":\"1125899906842625\",\"owner\":\"0xcafe\",\"transfer_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x6653d0f1cd711df18dcaddeaa37e528fa7034e2f1b9ac3578cf4d0abaed12547\",\"creation_num\":\"1125899906842624\"}}}}" + } + }, + { + "type": "TYPE_WRITE_RESOURCE", + "writeResource": { + "address": "0x77bc07c02b7c38abc5b9d7dbad97bd1e1ff4d4b24066c652d3884918f3e244a5", + "stateKeyHash": "8ggtTyLWUlffI0c+9PlrlRWEH+E0245paCpwpr95z58=", + "type": { + "address": "0x1", + "module": "fungible_asset", + "name": "ConcurrentSupply" + }, + "typeStr": "0x1::fungible_asset::ConcurrentSupply", + "data": "{\"current\":{\"max_value\":\"340282366920938463463374607431768211455\",\"value\":\"1000000\"}}" + } + }, + { + "type": "TYPE_WRITE_RESOURCE", + "writeResource": { + "address": "0x77bc07c02b7c38abc5b9d7dbad97bd1e1ff4d4b24066c652d3884918f3e244a5", + "stateKeyHash": "8ggtTyLWUlffI0c+9PlrlRWEH+E0245paCpwpr95z58=", + "type": { + "address": "0x1", + "module": "fungible_asset", + "name": "Metadata" + }, + "typeStr": "0x1::fungible_asset::Metadata", + "data": "{\"decimals\":8,\"icon_uri\":\"https://example.com/favicon.ico\",\"name\":\"FA Coin\",\"project_uri\":\"https://example.com\",\"symbol\":\"FA\"}" + } + }, + { + "type": "TYPE_WRITE_RESOURCE", + "writeResource": { + "address": "0x77bc07c02b7c38abc5b9d7dbad97bd1e1ff4d4b24066c652d3884918f3e244a5", + "stateKeyHash": "8ggtTyLWUlffI0c+9PlrlRWEH+E0245paCpwpr95z58=", + "type": { + "address": "0x1", + "module": "object", + "name": "ObjectCore" + }, + "typeStr": "0x1::object::ObjectCore", + "data": "{\"allow_ungated_transfer\":true,\"guid_creation_num\":\"1125899906842625\",\"owner\":\"0x7a2e070df14c96d0808ffab6b735591221241c34f6c4b4a9fa34051f945b5197\",\"transfer_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x77bc07c02b7c38abc5b9d7dbad97bd1e1ff4d4b24066c652d3884918f3e244a5\",\"creation_num\":\"1125899906842624\"}}}}" + } + }, + { + "type": "TYPE_WRITE_RESOURCE", + "writeResource": { + "address": "0x77bc07c02b7c38abc5b9d7dbad97bd1e1ff4d4b24066c652d3884918f3e244a5", + "stateKeyHash": "8ggtTyLWUlffI0c+9PlrlRWEH+E0245paCpwpr95z58=", + "type": { + "address": "0x1", + "module": "primary_fungible_store", + "name": "DeriveRefPod" + }, + "typeStr": "0x1::primary_fungible_store::DeriveRefPod", + "data": "{\"metadata_derive_ref\":{\"self\":\"0x77bc07c02b7c38abc5b9d7dbad97bd1e1ff4d4b24066c652d3884918f3e244a5\"}}" + } + }, + { + "type": "TYPE_WRITE_RESOURCE", + "writeResource": { + "address": "0x7a2e070df14c96d0808ffab6b735591221241c34f6c4b4a9fa34051f945b5197", + "stateKeyHash": "u7kfWhwrD/Og9hIHs1cxQ/5xUBoY27xbrHZ0V3ow+7Y=", + "type": { + "address": "0x1", + "module": "coin", + "name": "CoinStore", + "genericTypeParams": [ + { + "type": "MOVE_TYPES_STRUCT", + "struct": { + "address": "0x1", + "module": "aptos_coin", + "name": "AptosCoin" + } + } + ] + }, + "typeStr": "0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>", + "data": "{\"coin\":{\"value\":\"99777000\"},\"deposit_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x7a2e070df14c96d0808ffab6b735591221241c34f6c4b4a9fa34051f945b5197\",\"creation_num\":\"2\"}}},\"frozen\":false,\"withdraw_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x7a2e070df14c96d0808ffab6b735591221241c34f6c4b4a9fa34051f945b5197\",\"creation_num\":\"3\"}}}}" + } + }, + { + "type": "TYPE_WRITE_RESOURCE", + "writeResource": { + "address": "0x7a2e070df14c96d0808ffab6b735591221241c34f6c4b4a9fa34051f945b5197", + "stateKeyHash": "d++pe1OH6esn/cYIT8Mhu7RfnAhWrznIkZCISHuCJGM=", + "type": { + "address": "0x1", + "module": "account", + "name": "Account" + }, + "typeStr": "0x1::account::Account", + "data": "{\"authentication_key\":\"0x7a2e070df14c96d0808ffab6b735591221241c34f6c4b4a9fa34051f945b5197\",\"coin_register_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x7a2e070df14c96d0808ffab6b735591221241c34f6c4b4a9fa34051f945b5197\",\"creation_num\":\"0\"}}},\"guid_creation_num\":\"4\",\"key_rotation_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x7a2e070df14c96d0808ffab6b735591221241c34f6c4b4a9fa34051f945b5197\",\"creation_num\":\"1\"}}},\"rotation_capability_offer\":{\"for\":{\"vec\":[]}},\"sequence_number\":\"1\",\"signer_capability_offer\":{\"for\":{\"vec\":[]}}}" + } + }, + { + "type": "TYPE_WRITE_RESOURCE", + "writeResource": { + "address": "0xcd1b23b223136afb13c3effc10e8ab98343f6aa3e51002a0f1ef1eb7a27db680", + "stateKeyHash": "piJGygQd5MN8BIfx0nZlKZHgVAnDJKgPdNmoAJjeFuE=", + "type": { + "address": "0x1", + "module": "fungible_asset", + "name": "FungibleStore" + }, + "typeStr": "0x1::fungible_asset::FungibleStore", + "data": "{\"balance\":\"1000000\",\"frozen\":false,\"metadata\":{\"inner\":\"0x77bc07c02b7c38abc5b9d7dbad97bd1e1ff4d4b24066c652d3884918f3e244a5\"}}" + } + }, + { + "type": "TYPE_WRITE_RESOURCE", + "writeResource": { + "address": "0xcd1b23b223136afb13c3effc10e8ab98343f6aa3e51002a0f1ef1eb7a27db680", + "stateKeyHash": "piJGygQd5MN8BIfx0nZlKZHgVAnDJKgPdNmoAJjeFuE=", + "type": { + "address": "0x1", + "module": "object", + "name": "ObjectCore" + }, + "typeStr": "0x1::object::ObjectCore", + "data": "{\"allow_ungated_transfer\":false,\"guid_creation_num\":\"1125899906842625\",\"owner\":\"0xbabe\",\"transfer_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0xcd1b23b223136afb13c3effc10e8ab98343f6aa3e51002a0f1ef1eb7a27db680\",\"creation_num\":\"1125899906842624\"}}}}" + } + }, + { + "type": "TYPE_WRITE_RESOURCE", + "writeResource": { + "address": "0xfb5c41dcb7005d617e5f341bb23e9e00a2bf70a9b8b714d186ee9a3df776cdd2", + "stateKeyHash": "ccViHZkhH4GJ+CMXpAEqINqi/bmKuLmUPeV2n8Ui4tg=", + "type": { + "address": "0x1", + "module": "fungible_asset", + "name": "FungibleStore" + }, + "typeStr": "0x1::fungible_asset::FungibleStore", + "data": "{\"balance\":\"0\",\"frozen\":false,\"metadata\":{\"inner\":\"0x77bc07c02b7c38abc5b9d7dbad97bd1e1ff4d4b24066c652d3884918f3e244a5\"}}" + } + }, + { + "type": "TYPE_WRITE_RESOURCE", + "writeResource": { + "address": "0xfb5c41dcb7005d617e5f341bb23e9e00a2bf70a9b8b714d186ee9a3df776cdd2", + "stateKeyHash": "ccViHZkhH4GJ+CMXpAEqINqi/bmKuLmUPeV2n8Ui4tg=", + "type": { + "address": "0x1", + "module": "object", + "name": "ObjectCore" + }, + "typeStr": "0x1::object::ObjectCore", + "data": "{\"allow_ungated_transfer\":false,\"guid_creation_num\":\"1125899906842625\",\"owner\":\"0x7a2e070df14c96d0808ffab6b735591221241c34f6c4b4a9fa34051f945b5197\",\"transfer_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0xfb5c41dcb7005d617e5f341bb23e9e00a2bf70a9b8b714d186ee9a3df776cdd2\",\"creation_num\":\"1125899906842624\"}}}}" + } + }, + { + "type": "TYPE_WRITE_TABLE_ITEM", + "writeTableItem": { + "stateKeyHash": "bkso1A+YoQamUWNTCSTA3LQME0nTqpFdEItNbPwd2xk=", + "handle": "0x1b854694ae746cdbd8d44186ca4929b2b337df21d1c74633be19b2710552fdca", + "key": "0x0619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935", + "data": { + "key": "\"0x619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935\"", + "keyType": "address", + "value": "\"18446744073709012725\"", + "valueType": "u128" + } + } + } + ] + }, + "epoch": "2", + "blockHeight": "32", + "type": "TRANSACTION_TYPE_USER", + "sizeInfo": { + "transactionBytes": 1199, + "eventSizeInfo": [ + { + "typeTagBytes": 57, + "totalBytes": 97 + }, + { + "typeTagBytes": 58, + "totalBytes": 98 + }, + { + "typeTagBytes": 57, + "totalBytes": 97 + }, + { + "typeTagBytes": 58, + "totalBytes": 98 + }, + { + "typeTagBytes": 57, + "totalBytes": 97 + }, + { + "typeTagBytes": 63, + "totalBytes": 103 + } + ], + "writeOpSizeInfo": [ + { + "keyBytes": 87, + "valueBytes": 246 + }, + { + "keyBytes": 87, + "valueBytes": 464 + }, + { + "keyBytes": 138, + "valueBytes": 105 + }, + { + "keyBytes": 84, + "valueBytes": 147 + }, + { + "keyBytes": 87, + "valueBytes": 246 + }, + { + "keyBytes": 87, + "valueBytes": 246 + }, + { + "keyBytes": 66, + "valueBytes": 16 + } + ] + }, + "user": { + "request": { + "sender": "0x7a2e070df14c96d0808ffab6b735591221241c34f6c4b4a9fa34051f945b5197", + "maxGasAmount": "3345", + "gasUnitPrice": "100", + "expirationTimestampSecs": { + "seconds": "1732752437" + }, + "payload": { + "type": "TYPE_SCRIPT_PAYLOAD", + "scriptPayload": { + "code": { + "bytecode": "oRzrCwcAAAoIAQAMAgwoAzRNBIEBCgWLAZIBB50C/AIImQUgBrkFjwEAAAABAAIAAwAEAAUBBgIAAAcAAAEIBwEAAQAJCAAACgsAAAsGAAAMBgACDgcBAAAFEAcAAQ0DBAABAg8CBgEAAQURBwgAAQMSCQIAAQETCwwBCAEAFAsNAAEAFQsOAAEAFg8QAAEEFwARAAEDGBITAQgBABkVAgEIAQAaFhABCAEBBQQKCQoKFAsUAQYMDAgAAwYIAAgBCwIBCAMLAgEIAwsCAQgDCAEIAQsCAQgECAUIBgACBgwKAgEIAAEEAQsHAQkAAQoCAQgIBwYIAAsHAQQICAgIAggICAgBCAQBBggAAQsCAQkAAQgFAQgGAgYIBQMBCAEBBQIFCwIBCQABCwIBCAMBCAMDBggGCwIBCQAIAQMGCAYLAgEJAAMOZnVuZ2libGVfYXNzZXQGb2JqZWN0Bm9wdGlvbhZwcmltYXJ5X2Z1bmdpYmxlX3N0b3JlBnNpZ25lcgZzdHJpbmcOQ29uc3RydWN0b3JSZWYNRnVuZ2libGVBc3NldAZPYmplY3QNRnVuZ2libGVTdG9yZQhNZXRhZGF0YQdNaW50UmVmC1RyYW5zZmVyUmVmE2NyZWF0ZV9uYW1lZF9vYmplY3QGT3B0aW9uBG5vbmUGU3RyaW5nBHV0ZjgrY3JlYXRlX3ByaW1hcnlfc3RvcmVfZW5hYmxlZF9mdW5naWJsZV9hc3NldBtvYmplY3RfZnJvbV9jb25zdHJ1Y3Rvcl9yZWYRZ2VuZXJhdGVfbWludF9yZWYVZ2VuZXJhdGVfdHJhbnNmZXJfcmVmBG1pbnQKYWRkcmVzc19vZhtlbnN1cmVfcHJpbWFyeV9zdG9yZV9leGlzdHMQZGVwb3NpdF93aXRoX3JlZhF3aXRoZHJhd193aXRoX3JlZgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABCgIDAkZBCgIIB0ZBIENvaW4KAiAfaHR0cHM6Ly9leGFtcGxlLmNvbS9mYXZpY29uLmljbwoCFBNodHRwczovL2V4YW1wbGUuY29tBSAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADK/gUgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAur4AAAFFCgAHABEADAEOAQwDCgM4AAcBEQIHABECMQgHAhECBwMRAhEDCgM4AQwKCgMRBQwLCwMRBgwMBkBCDwAAAAAADAIOCwoCEQcMBAsAEQgKCjgCDAUODAoFCwQ4Aw4MCwUKAjgEDAgHBAoKOAIMBg4MCgYLCDgDDgwLBgsCOAQMCQcFCwo4AgwHDgwLBwsJOAMC", + "abi": { + "name": "main", + "visibility": "VISIBILITY_PUBLIC", + "isEntry": true, + "params": [ + { + "type": "MOVE_TYPES_REFERENCE", + "reference": { + "to": { + "type": "MOVE_TYPES_SIGNER" + } + } + } + ] + } + } + } + }, + "signature": { + "type": "TYPE_ED25519", + "ed25519": { + "publicKey": "X3dtn8+5n300isDheC1WwnuA6rUEP5ShsSfvipASLUM=", + "signature": "oMoT4Ogp1SUNY6oh6Ng9kKDHkWkf+hBMt1Beyfqe4cvTA/K8KjumJyK6Yat7EgRgk4QgfUpRvKNFxJwRblNoCw==" + } + } + }, + "events": [ + { + "key": { + "accountAddress": "0x0" + }, + "type": { + "type": "MOVE_TYPES_STRUCT", + "struct": { + "address": "0x1", + "module": "fungible_asset", + "name": "Deposit" + } + }, + "typeStr": "0x1::fungible_asset::Deposit", + "data": "{\"amount\":\"1000000\",\"store\":\"0xfb5c41dcb7005d617e5f341bb23e9e00a2bf70a9b8b714d186ee9a3df776cdd2\"}" + }, + { + "key": { + "accountAddress": "0x0" + }, + "type": { + "type": "MOVE_TYPES_STRUCT", + "struct": { + "address": "0x1", + "module": "fungible_asset", + "name": "Withdraw" + } + }, + "typeStr": "0x1::fungible_asset::Withdraw", + "data": "{\"amount\":\"1000000\",\"store\":\"0xfb5c41dcb7005d617e5f341bb23e9e00a2bf70a9b8b714d186ee9a3df776cdd2\"}" + }, + { + "key": { + "accountAddress": "0x0" + }, + "type": { + "type": "MOVE_TYPES_STRUCT", + "struct": { + "address": "0x1", + "module": "fungible_asset", + "name": "Deposit" + } + }, + "typeStr": "0x1::fungible_asset::Deposit", + "data": "{\"amount\":\"1000000\",\"store\":\"0x6653d0f1cd711df18dcaddeaa37e528fa7034e2f1b9ac3578cf4d0abaed12547\"}" + }, + { + "key": { + "accountAddress": "0x0" + }, + "type": { + "type": "MOVE_TYPES_STRUCT", + "struct": { + "address": "0x1", + "module": "fungible_asset", + "name": "Withdraw" + } + }, + "typeStr": "0x1::fungible_asset::Withdraw", + "data": "{\"amount\":\"1000000\",\"store\":\"0x6653d0f1cd711df18dcaddeaa37e528fa7034e2f1b9ac3578cf4d0abaed12547\"}" + }, + { + "key": { + "accountAddress": "0x0" + }, + "type": { + "type": "MOVE_TYPES_STRUCT", + "struct": { + "address": "0x1", + "module": "fungible_asset", + "name": "Deposit" + } + }, + "typeStr": "0x1::fungible_asset::Deposit", + "data": "{\"amount\":\"1000000\",\"store\":\"0xcd1b23b223136afb13c3effc10e8ab98343f6aa3e51002a0f1ef1eb7a27db680\"}" + }, + { + "key": { + "accountAddress": "0x0" + }, + "type": { + "type": "MOVE_TYPES_STRUCT", + "struct": { + "address": "0x1", + "module": "transaction_fee", + "name": "FeeStatement" + } + }, + "typeStr": "0x1::transaction_fee::FeeStatement", + "data": "{\"execution_gas_units\":\"7\",\"io_gas_units\":\"7\",\"storage_fee_octas\":\"221680\",\"storage_fee_refund_octas\":\"0\",\"total_charge_gas_units\":\"2230\"}" + } + ] + } +} \ No newline at end of file diff --git a/ecosystem/indexer-grpc/indexer-test-transactions/json_transactions/scripted_transactions/fa_mint_transfer_burn.json b/ecosystem/indexer-grpc/indexer-test-transactions/json_transactions/scripted_transactions/fa_mint_transfer_burn.json index 2206cf631a561..4f0f698750d87 100644 --- a/ecosystem/indexer-grpc/indexer-test-transactions/json_transactions/scripted_transactions/fa_mint_transfer_burn.json +++ b/ecosystem/indexer-grpc/indexer-test-transactions/json_transactions/scripted_transactions/fa_mint_transfer_burn.json @@ -1,79 +1,51 @@ { "timestamp": { - "seconds": "1732672967", - "nanos": 932459000 + "seconds": "1732752394", + "nanos": 753016000 }, "version": "35", "info": { - "hash": "DGiU+N/60a/a6uuy94V86I9qRmNIKIu+FVVdY6FUS9A=", - "stateChangeHash": "OSOA2nyyEJm1CbchaFh1jqXk2U4gBc+op44dk59bFb4=", - "eventRootHash": "vDzA4XF4bCCJwq8bN/jYVp8Yinxa+CoaxRg8KoArN2Q=", + "hash": "TeqP7BOUSL4Cw6A9dPrPZIk307ZvOQTqk7SyktjQa3k=", + "stateChangeHash": "yjF48v0yCpkI1a6QlRCqw264uSQ4Iji+GGI7vYwaCCM=", + "eventRootHash": "zguCQh0yktZ64gFcK3ArJOOrDjHPVhTjf/pYU5fhJdc=", "gasUsed": "1161", "success": true, "vmStatus": "Executed successfully", - "accumulatorRootHash": "ybrUtD0TqXY/+Bhh1p+69NpelbNnUpnpgeLLyQFxWIA=", + "accumulatorRootHash": "kp/XkH7fLQsz3XWemRlICZpDjLnO8yPGyvb3c19+jHE=", "changes": [ { "type": "TYPE_WRITE_RESOURCE", "writeResource": { - "address": "0x313228f6c338fcca1b431fc6453c7288e5463b192a1b7b12914173aca3c337b7", - "stateKeyHash": "Y8Y0AitszA5qhqXL5YDf9E4PgIPbLctf+kdkZnucMyM=", + "address": "0x195f4751a5c8213e03a5568ddc8f711179edc98c2a44a5923351c815f2ee32ee", + "stateKeyHash": "u+s4Aetf6Uz24aXzSwHfIak6V1deZuGLMCZ3nw26A9U=", "type": { "address": "0x1", "module": "fungible_asset", - "name": "ConcurrentSupply" - }, - "typeStr": "0x1::fungible_asset::ConcurrentSupply", - "data": "{\"current\":{\"max_value\":\"340282366920938463463374607431768211455\",\"value\":\"0\"}}" - } - }, - { - "type": "TYPE_WRITE_RESOURCE", - "writeResource": { - "address": "0x313228f6c338fcca1b431fc6453c7288e5463b192a1b7b12914173aca3c337b7", - "stateKeyHash": "Y8Y0AitszA5qhqXL5YDf9E4PgIPbLctf+kdkZnucMyM=", - "type": { - "address": "0x1", - "module": "fungible_asset", - "name": "Metadata" + "name": "FungibleStore" }, - "typeStr": "0x1::fungible_asset::Metadata", - "data": "{\"decimals\":8,\"icon_uri\":\"https://example.com/favicon.ico\",\"name\":\"FA Coin\",\"project_uri\":\"https://example.com\",\"symbol\":\"FA\"}" + "typeStr": "0x1::fungible_asset::FungibleStore", + "data": "{\"balance\":\"0\",\"frozen\":false,\"metadata\":{\"inner\":\"0xfab779a7fb23b90d00312c9dd54194c4d147e6c391d052d07445c896b427980f\"}}" } }, { "type": "TYPE_WRITE_RESOURCE", "writeResource": { - "address": "0x313228f6c338fcca1b431fc6453c7288e5463b192a1b7b12914173aca3c337b7", - "stateKeyHash": "Y8Y0AitszA5qhqXL5YDf9E4PgIPbLctf+kdkZnucMyM=", + "address": "0x195f4751a5c8213e03a5568ddc8f711179edc98c2a44a5923351c815f2ee32ee", + "stateKeyHash": "u+s4Aetf6Uz24aXzSwHfIak6V1deZuGLMCZ3nw26A9U=", "type": { "address": "0x1", "module": "object", "name": "ObjectCore" }, "typeStr": "0x1::object::ObjectCore", - "data": "{\"allow_ungated_transfer\":true,\"guid_creation_num\":\"1125899906842625\",\"owner\":\"0x765d8c8d4d5859f43a56e2756fbf5f3d2483dbaa14f3fb62872df820d6e64eff\",\"transfer_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x313228f6c338fcca1b431fc6453c7288e5463b192a1b7b12914173aca3c337b7\",\"creation_num\":\"1125899906842624\"}}}}" + "data": "{\"allow_ungated_transfer\":false,\"guid_creation_num\":\"1125899906842625\",\"owner\":\"0xd857c1f1dc5303ffcdc47205ebddc02d485c9dce619fd4d00055d86b58143363\",\"transfer_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x195f4751a5c8213e03a5568ddc8f711179edc98c2a44a5923351c815f2ee32ee\",\"creation_num\":\"1125899906842624\"}}}}" } }, { "type": "TYPE_WRITE_RESOURCE", "writeResource": { - "address": "0x313228f6c338fcca1b431fc6453c7288e5463b192a1b7b12914173aca3c337b7", - "stateKeyHash": "Y8Y0AitszA5qhqXL5YDf9E4PgIPbLctf+kdkZnucMyM=", - "type": { - "address": "0x1", - "module": "primary_fungible_store", - "name": "DeriveRefPod" - }, - "typeStr": "0x1::primary_fungible_store::DeriveRefPod", - "data": "{\"metadata_derive_ref\":{\"self\":\"0x313228f6c338fcca1b431fc6453c7288e5463b192a1b7b12914173aca3c337b7\"}}" - } - }, - { - "type": "TYPE_WRITE_RESOURCE", - "writeResource": { - "address": "0x765d8c8d4d5859f43a56e2756fbf5f3d2483dbaa14f3fb62872df820d6e64eff", - "stateKeyHash": "ceneJQEOEzV92WirHTGbXnLP+TvF5K6btYiyF5HdKKg=", + "address": "0xd857c1f1dc5303ffcdc47205ebddc02d485c9dce619fd4d00055d86b58143363", + "stateKeyHash": "nfJ3Uaxl7f7VWyJy5+RSJKgm1neNXVt5gsGPrj96LVc=", "type": { "address": "0x1", "module": "coin", @@ -90,49 +62,77 @@ ] }, "typeStr": "0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>", - "data": "{\"coin\":{\"value\":\"99883900\"},\"deposit_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x765d8c8d4d5859f43a56e2756fbf5f3d2483dbaa14f3fb62872df820d6e64eff\",\"creation_num\":\"2\"}}},\"frozen\":false,\"withdraw_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x765d8c8d4d5859f43a56e2756fbf5f3d2483dbaa14f3fb62872df820d6e64eff\",\"creation_num\":\"3\"}}}}" + "data": "{\"coin\":{\"value\":\"99883900\"},\"deposit_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0xd857c1f1dc5303ffcdc47205ebddc02d485c9dce619fd4d00055d86b58143363\",\"creation_num\":\"2\"}}},\"frozen\":false,\"withdraw_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0xd857c1f1dc5303ffcdc47205ebddc02d485c9dce619fd4d00055d86b58143363\",\"creation_num\":\"3\"}}}}" } }, { "type": "TYPE_WRITE_RESOURCE", "writeResource": { - "address": "0x765d8c8d4d5859f43a56e2756fbf5f3d2483dbaa14f3fb62872df820d6e64eff", - "stateKeyHash": "fosKvq2RB9fkmTNvrdzHt/qGGmluI1R/CwhAP58GB3o=", + "address": "0xd857c1f1dc5303ffcdc47205ebddc02d485c9dce619fd4d00055d86b58143363", + "stateKeyHash": "IjpJdBOi/M0uwPpcz2Zg1fa61T7wSFpMl7CDWWUBMVs=", "type": { "address": "0x1", "module": "account", "name": "Account" }, "typeStr": "0x1::account::Account", - "data": "{\"authentication_key\":\"0x765d8c8d4d5859f43a56e2756fbf5f3d2483dbaa14f3fb62872df820d6e64eff\",\"coin_register_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x765d8c8d4d5859f43a56e2756fbf5f3d2483dbaa14f3fb62872df820d6e64eff\",\"creation_num\":\"0\"}}},\"guid_creation_num\":\"4\",\"key_rotation_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x765d8c8d4d5859f43a56e2756fbf5f3d2483dbaa14f3fb62872df820d6e64eff\",\"creation_num\":\"1\"}}},\"rotation_capability_offer\":{\"for\":{\"vec\":[]}},\"sequence_number\":\"1\",\"signer_capability_offer\":{\"for\":{\"vec\":[]}}}" + "data": "{\"authentication_key\":\"0xd857c1f1dc5303ffcdc47205ebddc02d485c9dce619fd4d00055d86b58143363\",\"coin_register_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0xd857c1f1dc5303ffcdc47205ebddc02d485c9dce619fd4d00055d86b58143363\",\"creation_num\":\"0\"}}},\"guid_creation_num\":\"4\",\"key_rotation_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0xd857c1f1dc5303ffcdc47205ebddc02d485c9dce619fd4d00055d86b58143363\",\"creation_num\":\"1\"}}},\"rotation_capability_offer\":{\"for\":{\"vec\":[]}},\"sequence_number\":\"1\",\"signer_capability_offer\":{\"for\":{\"vec\":[]}}}" } }, { "type": "TYPE_WRITE_RESOURCE", "writeResource": { - "address": "0xfb24be743a80eebd426967035c9023ea7e83edce89f4d7085d6d43e0c95c2f0b", - "stateKeyHash": "bntLw5n1ZIlpJmPzcUUvYBrYwMDYMchcbzDA+dlDt3s=", + "address": "0xfab779a7fb23b90d00312c9dd54194c4d147e6c391d052d07445c896b427980f", + "stateKeyHash": "idvP1CLTbDbbUgZhcHK8xwv/bY56FV4I8pfeHuUr5Ls=", "type": { "address": "0x1", "module": "fungible_asset", - "name": "FungibleStore" + "name": "ConcurrentSupply" }, - "typeStr": "0x1::fungible_asset::FungibleStore", - "data": "{\"balance\":\"0\",\"frozen\":false,\"metadata\":{\"inner\":\"0x313228f6c338fcca1b431fc6453c7288e5463b192a1b7b12914173aca3c337b7\"}}" + "typeStr": "0x1::fungible_asset::ConcurrentSupply", + "data": "{\"current\":{\"max_value\":\"340282366920938463463374607431768211455\",\"value\":\"0\"}}" + } + }, + { + "type": "TYPE_WRITE_RESOURCE", + "writeResource": { + "address": "0xfab779a7fb23b90d00312c9dd54194c4d147e6c391d052d07445c896b427980f", + "stateKeyHash": "idvP1CLTbDbbUgZhcHK8xwv/bY56FV4I8pfeHuUr5Ls=", + "type": { + "address": "0x1", + "module": "fungible_asset", + "name": "Metadata" + }, + "typeStr": "0x1::fungible_asset::Metadata", + "data": "{\"decimals\":8,\"icon_uri\":\"https://example.com/favicon.ico\",\"name\":\"FA Coin\",\"project_uri\":\"https://example.com\",\"symbol\":\"FA\"}" } }, { "type": "TYPE_WRITE_RESOURCE", "writeResource": { - "address": "0xfb24be743a80eebd426967035c9023ea7e83edce89f4d7085d6d43e0c95c2f0b", - "stateKeyHash": "bntLw5n1ZIlpJmPzcUUvYBrYwMDYMchcbzDA+dlDt3s=", + "address": "0xfab779a7fb23b90d00312c9dd54194c4d147e6c391d052d07445c896b427980f", + "stateKeyHash": "idvP1CLTbDbbUgZhcHK8xwv/bY56FV4I8pfeHuUr5Ls=", "type": { "address": "0x1", "module": "object", "name": "ObjectCore" }, "typeStr": "0x1::object::ObjectCore", - "data": "{\"allow_ungated_transfer\":false,\"guid_creation_num\":\"1125899906842625\",\"owner\":\"0x765d8c8d4d5859f43a56e2756fbf5f3d2483dbaa14f3fb62872df820d6e64eff\",\"transfer_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0xfb24be743a80eebd426967035c9023ea7e83edce89f4d7085d6d43e0c95c2f0b\",\"creation_num\":\"1125899906842624\"}}}}" + "data": "{\"allow_ungated_transfer\":true,\"guid_creation_num\":\"1125899906842625\",\"owner\":\"0xd857c1f1dc5303ffcdc47205ebddc02d485c9dce619fd4d00055d86b58143363\",\"transfer_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0xfab779a7fb23b90d00312c9dd54194c4d147e6c391d052d07445c896b427980f\",\"creation_num\":\"1125899906842624\"}}}}" + } + }, + { + "type": "TYPE_WRITE_RESOURCE", + "writeResource": { + "address": "0xfab779a7fb23b90d00312c9dd54194c4d147e6c391d052d07445c896b427980f", + "stateKeyHash": "idvP1CLTbDbbUgZhcHK8xwv/bY56FV4I8pfeHuUr5Ls=", + "type": { + "address": "0x1", + "module": "primary_fungible_store", + "name": "DeriveRefPod" + }, + "typeStr": "0x1::primary_fungible_store::DeriveRefPod", + "data": "{\"metadata_derive_ref\":{\"self\":\"0xfab779a7fb23b90d00312c9dd54194c4d147e6c391d052d07445c896b427980f\"}}" } }, { @@ -173,7 +173,7 @@ "writeOpSizeInfo": [ { "keyBytes": 87, - "valueBytes": 464 + "valueBytes": 246 }, { "keyBytes": 138, @@ -185,7 +185,7 @@ }, { "keyBytes": 87, - "valueBytes": 246 + "valueBytes": 464 }, { "keyBytes": 66, @@ -195,11 +195,11 @@ }, "user": { "request": { - "sender": "0x765d8c8d4d5859f43a56e2756fbf5f3d2483dbaa14f3fb62872df820d6e64eff", + "sender": "0xd857c1f1dc5303ffcdc47205ebddc02d485c9dce619fd4d00055d86b58143363", "maxGasAmount": "1741", "gasUnitPrice": "100", "expirationTimestampSecs": { - "seconds": "1732672998" + "seconds": "1732752425" }, "payload": { "type": "TYPE_SCRIPT_PAYLOAD", @@ -227,8 +227,8 @@ "signature": { "type": "TYPE_ED25519", "ed25519": { - "publicKey": "spiXXSfb/zAg5e5/27rYqWnU8qLVKG4JfR25dg0E3TE=", - "signature": "neaivYBEoxiBZWvjKvdRg/oQgie7W0w3+FQO957zUxHUXtZkocABqzttJnV1kcoIwMUNAstLGdPSmyG+2nylBg==" + "publicKey": "KU08yl94iErSCo4VhF6tGWQYqvSaK1IjTD/4i/uoPSI=", + "signature": "w3Va79RRl9B7rA3+e4c1BsL1mHALLYkJQPeTDUwBfs6tqW55B61XLj8bBYf5m6SPP44JGS54Sy+B17engewICg==" } } }, @@ -246,7 +246,7 @@ } }, "typeStr": "0x1::fungible_asset::Deposit", - "data": "{\"amount\":\"1000000\",\"store\":\"0xfb24be743a80eebd426967035c9023ea7e83edce89f4d7085d6d43e0c95c2f0b\"}" + "data": "{\"amount\":\"1000000\",\"store\":\"0x195f4751a5c8213e03a5568ddc8f711179edc98c2a44a5923351c815f2ee32ee\"}" }, { "key": { @@ -261,7 +261,7 @@ } }, "typeStr": "0x1::fungible_asset::Withdraw", - "data": "{\"amount\":\"1000000\",\"store\":\"0xfb24be743a80eebd426967035c9023ea7e83edce89f4d7085d6d43e0c95c2f0b\"}" + "data": "{\"amount\":\"1000000\",\"store\":\"0x195f4751a5c8213e03a5568ddc8f711179edc98c2a44a5923351c815f2ee32ee\"}" }, { "key": { diff --git a/ecosystem/indexer-grpc/indexer-test-transactions/json_transactions/scripted_transactions/simple_user_script1.json b/ecosystem/indexer-grpc/indexer-test-transactions/json_transactions/scripted_transactions/simple_user_script1.json index 64fdcd10b945c..8656175cb6d90 100644 --- a/ecosystem/indexer-grpc/indexer-test-transactions/json_transactions/scripted_transactions/simple_user_script1.json +++ b/ecosystem/indexer-grpc/indexer-test-transactions/json_transactions/scripted_transactions/simple_user_script1.json @@ -1,17 +1,17 @@ { "timestamp": { - "seconds": "1731095950", - "nanos": 496779000 + "seconds": "1732752427", + "nanos": 716542000 }, - "version": "67", + "version": "131", "info": { - "hash": "6kJvSg6J6/nzJtn+Qg0iqEu+D/LUChmq4pX5FbpJ2yE=", - "stateChangeHash": "Ud1ILaQ9/i/UVj2SIebzib9eEt/Eqz4JBYfhOoCgBfQ=", + "hash": "KpFwmiU5ttJrMUTypaifB3Ild8caulWChn2UDQqbP1A=", + "stateChangeHash": "QuedrdLgRVt8SZdyoPAbs4clpCwqCe+2UAo8+nrx1SA=", "eventRootHash": "J/kCueHhHqJXi8MVudrh82sOQ/pqY9TJ9VjLOdgel6I=", "gasUsed": "3", "success": true, "vmStatus": "Executed successfully", - "accumulatorRootHash": "FxelBtaxPVGCVulc0mkobWhQB4TqjvzFBaH5wvI71jc=", + "accumulatorRootHash": "r2FZPXOd5Djv8G3fsmDkmfWSO4ic4O6nLsoInIwSFFg=", "changes": [ { "type": "TYPE_WRITE_RESOURCE", @@ -60,7 +60,7 @@ "data": { "key": "\"0x619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935\"", "keyType": "address", - "value": "\"18446744073809350825\"", + "value": "\"18446744074009011525\"", "valueType": "u128" } } @@ -68,7 +68,7 @@ ] }, "epoch": "2", - "blockHeight": "31", + "blockHeight": "61", "type": "TRANSACTION_TYPE_USER", "sizeInfo": { "transactionBytes": 190, @@ -99,7 +99,7 @@ "maxGasAmount": "4", "gasUnitPrice": "100", "expirationTimestampSecs": { - "seconds": "1731095980" + "seconds": "1732752458" }, "payload": { "type": "TYPE_SCRIPT_PAYLOAD", @@ -128,7 +128,7 @@ "type": "TYPE_ED25519", "ed25519": { "publicKey": "ObSsyF4CbcBWRkpeoAuY+FgmDqrSt03TC4auDU2U3fU=", - "signature": "0L++p+Cn6mxmKItu2eTyVMXiZkJY0v+KgxORh5u6GgHG2nprS3cAzw2Wk4PQVEy0RXrVHsbwtdzDi4PngcIJAw==" + "signature": "rGLJfiyHpSe+xtzx6B/3PkqTsybbYGFzoToVGb9HEfN0Va0/cEV2udTtGnxGy0ZW3VG7qHnaywt9mLFYFp8DBA==" } } }, diff --git a/ecosystem/indexer-grpc/indexer-test-transactions/json_transactions/scripted_transactions/simple_user_script2.json b/ecosystem/indexer-grpc/indexer-test-transactions/json_transactions/scripted_transactions/simple_user_script2.json index 4d343ea0a5bf0..32e080a650ee9 100644 --- a/ecosystem/indexer-grpc/indexer-test-transactions/json_transactions/scripted_transactions/simple_user_script2.json +++ b/ecosystem/indexer-grpc/indexer-test-transactions/json_transactions/scripted_transactions/simple_user_script2.json @@ -1,17 +1,17 @@ { "timestamp": { - "seconds": "1731095956", - "nanos": 533018000 + "seconds": "1732752433", + "nanos": 945287000 }, - "version": "87", + "version": "151", "info": { - "hash": "JzyTL33SVpom7cI1p+7nYedPyOyLsbHsBvzZKH1upAw=", - "stateChangeHash": "Ylxp7ADO/X1goShWlx5C05rioDlBXLUc5x2qqkVxiEU=", + "hash": "T0MflJ4xr13oeDZtbIJrwVBB6+xbXWtc22gEe8mr0lM=", + "stateChangeHash": "BEruB8zGnFmiqh19p3v5OMcGbmR7i7SNqPQxLTrli2E=", "eventRootHash": "J/kCueHhHqJXi8MVudrh82sOQ/pqY9TJ9VjLOdgel6I=", "gasUsed": "3", "success": true, "vmStatus": "Executed successfully", - "accumulatorRootHash": "yPDkkszubIu8pK4a0DgL70ro/fyChX2XZYS1/6w82DQ=", + "accumulatorRootHash": "C3Lb3f2L4loI/ozhPOyPO8vEQgYtVqv1pB0ktt/AdUw=", "changes": [ { "type": "TYPE_WRITE_RESOURCE", @@ -60,7 +60,7 @@ "data": { "key": "\"0x619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935\"", "keyType": "address", - "value": "\"18446744073909449225\"", + "value": "\"18446744074109109925\"", "valueType": "u128" } } @@ -68,7 +68,7 @@ ] }, "epoch": "2", - "blockHeight": "40", + "blockHeight": "70", "type": "TRANSACTION_TYPE_USER", "sizeInfo": { "transactionBytes": 190, @@ -100,7 +100,7 @@ "maxGasAmount": "4", "gasUnitPrice": "100", "expirationTimestampSecs": { - "seconds": "1731095987" + "seconds": "1732752464" }, "payload": { "type": "TYPE_SCRIPT_PAYLOAD", @@ -129,7 +129,7 @@ "type": "TYPE_ED25519", "ed25519": { "publicKey": "ObSsyF4CbcBWRkpeoAuY+FgmDqrSt03TC4auDU2U3fU=", - "signature": "fuZvCUvBQpKFX31vInp+QsYCShaRCyMtu1dP4waPiVueuM2Jblo5InrcmWQfK+j4x9NeUpKJO5zI+YIC27SbAQ==" + "signature": "+939tVIjj3xsPAcg44upEZkSjnaheRT92WjUC6gN4R6y3w+GsT/wkH9RzVjHkQCREACErqbFPw7XgR/4D2JuDg==" } } }, diff --git a/ecosystem/indexer-grpc/indexer-test-transactions/json_transactions/scripted_transactions/simple_user_script3.json b/ecosystem/indexer-grpc/indexer-test-transactions/json_transactions/scripted_transactions/simple_user_script3.json index 4aca3be5af462..2b8128ffb31ba 100644 --- a/ecosystem/indexer-grpc/indexer-test-transactions/json_transactions/scripted_transactions/simple_user_script3.json +++ b/ecosystem/indexer-grpc/indexer-test-transactions/json_transactions/scripted_transactions/simple_user_script3.json @@ -1,23 +1,23 @@ { "timestamp": { - "seconds": "1732672975", - "nanos": 261345000 + "seconds": "1732752414", + "nanos": 344797000 }, - "version": "57", + "version": "89", "info": { - "hash": "1kLYjLwrzJF1XkkoSWG6m+EOvIkzkijdAmHc+frQImQ=", - "stateChangeHash": "h4Bop9rEeFcWLdIdxJr+aWdLDW2OJ/cqulIqA06dLDc=", + "hash": "0Grfy/3XflrDlM1pN9ROC4DcC8LUaE14lYdA5hZv94g=", + "stateChangeHash": "OSCXnaT5m3N/W6XcSsBMYgURA+ItiZfCdPK0jQ1QxsU=", "eventRootHash": "J/kCueHhHqJXi8MVudrh82sOQ/pqY9TJ9VjLOdgel6I=", "gasUsed": "3", "success": true, "vmStatus": "Executed successfully", - "accumulatorRootHash": "HusghxoSOCUrHGTtp4OaZ3qBwShyrk28S5ZBCe71fbI=", + "accumulatorRootHash": "rDQPrWw9UolILsSMP07nXU9BZJ+JWHJlReNjcVxV4Tk=", "changes": [ { "type": "TYPE_WRITE_RESOURCE", "writeResource": { - "address": "0x8f0de18409d6fca18c72fac4062fc0f9baa6404296fed93a3ad0250fb671f8b3", - "stateKeyHash": "2Ne4/4Qg7OpxqV5LI4CB9VlZutr1u5HaXhbSTzYWYw8=", + "address": "0x765d8c8d4d5859f43a56e2756fbf5f3d2483dbaa14f3fb62872df820d6e64eff", + "stateKeyHash": "ceneJQEOEzV92WirHTGbXnLP+TvF5K6btYiyF5HdKKg=", "type": { "address": "0x1", "module": "coin", @@ -34,21 +34,21 @@ ] }, "typeStr": "0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>", - "data": "{\"coin\":{\"value\":\"99999700\"},\"deposit_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x8f0de18409d6fca18c72fac4062fc0f9baa6404296fed93a3ad0250fb671f8b3\",\"creation_num\":\"2\"}}},\"frozen\":false,\"withdraw_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x8f0de18409d6fca18c72fac4062fc0f9baa6404296fed93a3ad0250fb671f8b3\",\"creation_num\":\"3\"}}}}" + "data": "{\"coin\":{\"value\":\"99999700\"},\"deposit_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x765d8c8d4d5859f43a56e2756fbf5f3d2483dbaa14f3fb62872df820d6e64eff\",\"creation_num\":\"2\"}}},\"frozen\":false,\"withdraw_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x765d8c8d4d5859f43a56e2756fbf5f3d2483dbaa14f3fb62872df820d6e64eff\",\"creation_num\":\"3\"}}}}" } }, { "type": "TYPE_WRITE_RESOURCE", "writeResource": { - "address": "0x8f0de18409d6fca18c72fac4062fc0f9baa6404296fed93a3ad0250fb671f8b3", - "stateKeyHash": "CruPmGDHh8XlpNdvv1soHpZeHrF/hdy9+k4liPo15BE=", + "address": "0x765d8c8d4d5859f43a56e2756fbf5f3d2483dbaa14f3fb62872df820d6e64eff", + "stateKeyHash": "fosKvq2RB9fkmTNvrdzHt/qGGmluI1R/CwhAP58GB3o=", "type": { "address": "0x1", "module": "account", "name": "Account" }, "typeStr": "0x1::account::Account", - "data": "{\"authentication_key\":\"0x8f0de18409d6fca18c72fac4062fc0f9baa6404296fed93a3ad0250fb671f8b3\",\"coin_register_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x8f0de18409d6fca18c72fac4062fc0f9baa6404296fed93a3ad0250fb671f8b3\",\"creation_num\":\"0\"}}},\"guid_creation_num\":\"4\",\"key_rotation_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x8f0de18409d6fca18c72fac4062fc0f9baa6404296fed93a3ad0250fb671f8b3\",\"creation_num\":\"1\"}}},\"rotation_capability_offer\":{\"for\":{\"vec\":[]}},\"sequence_number\":\"1\",\"signer_capability_offer\":{\"for\":{\"vec\":[]}}}" + "data": "{\"authentication_key\":\"0x765d8c8d4d5859f43a56e2756fbf5f3d2483dbaa14f3fb62872df820d6e64eff\",\"coin_register_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x765d8c8d4d5859f43a56e2756fbf5f3d2483dbaa14f3fb62872df820d6e64eff\",\"creation_num\":\"0\"}}},\"guid_creation_num\":\"4\",\"key_rotation_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x765d8c8d4d5859f43a56e2756fbf5f3d2483dbaa14f3fb62872df820d6e64eff\",\"creation_num\":\"1\"}}},\"rotation_capability_offer\":{\"for\":{\"vec\":[]}},\"sequence_number\":\"1\",\"signer_capability_offer\":{\"for\":{\"vec\":[]}}}" } }, { @@ -60,7 +60,7 @@ "data": { "key": "\"0x619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935\"", "keyType": "address", - "value": "\"18446744073709235425\"", + "value": "\"18446744073809012325\"", "valueType": "u128" } } @@ -68,7 +68,7 @@ ] }, "epoch": "2", - "blockHeight": "27", + "blockHeight": "42", "type": "TRANSACTION_TYPE_USER", "sizeInfo": { "transactionBytes": 190, @@ -95,11 +95,11 @@ }, "user": { "request": { - "sender": "0x8f0de18409d6fca18c72fac4062fc0f9baa6404296fed93a3ad0250fb671f8b3", + "sender": "0x765d8c8d4d5859f43a56e2756fbf5f3d2483dbaa14f3fb62872df820d6e64eff", "maxGasAmount": "4", "gasUnitPrice": "100", "expirationTimestampSecs": { - "seconds": "1732673005" + "seconds": "1732752444" }, "payload": { "type": "TYPE_SCRIPT_PAYLOAD", @@ -127,8 +127,8 @@ "signature": { "type": "TYPE_ED25519", "ed25519": { - "publicKey": "7wW+3hX0IuFsAALjzui01DQVGNmcRpU1KhhpsHeYZPs=", - "signature": "+me7d5O4YGWWVVHrr8ByGeWF83oZ/S6LCnlEIH4FnITO3eoDu1U4qQllX+hJURRn1R6rVjU8ZKaw9BRXGJvtBQ==" + "publicKey": "spiXXSfb/zAg5e5/27rYqWnU8qLVKG4JfR25dg0E3TE=", + "signature": "g4fW/Liaw2li3GQpwKqjSn/g/9nPsLewSV9Xfh2mqGhqqYp8CjKfZWaoY5xnDW25+I2xMY9qX20mM9SN0UcDBQ==" } } }, diff --git a/ecosystem/indexer-grpc/indexer-test-transactions/json_transactions/scripted_transactions/simple_user_script4.json b/ecosystem/indexer-grpc/indexer-test-transactions/json_transactions/scripted_transactions/simple_user_script4.json index 2a28f57eea78f..ceeb655d2ec61 100644 --- a/ecosystem/indexer-grpc/indexer-test-transactions/json_transactions/scripted_transactions/simple_user_script4.json +++ b/ecosystem/indexer-grpc/indexer-test-transactions/json_transactions/scripted_transactions/simple_user_script4.json @@ -1,23 +1,23 @@ { "timestamp": { - "seconds": "1732672981", - "nanos": 856611000 + "seconds": "1732752420", + "nanos": 683733000 }, - "version": "77", + "version": "109", "info": { - "hash": "kXQ14XDqfcKlqro7h6UnIYBU7ReXHC1f1dh4cqrA9Wc=", - "stateChangeHash": "Lcw2QcDIjyWNLv4WjU3hZRLkFqRYzhyRVs6flb5HF48=", + "hash": "wRDhIULIsprwu5kAQH0lrzCNH/hOXaGiwp+IkYZnrsA=", + "stateChangeHash": "VXDLlx4UXl+5kFAps8EMPPt/lEBF9OwbqtBXnjwzyZM=", "eventRootHash": "J/kCueHhHqJXi8MVudrh82sOQ/pqY9TJ9VjLOdgel6I=", "gasUsed": "3", "success": true, "vmStatus": "Executed successfully", - "accumulatorRootHash": "gnscCFfMFb90l70guVpWFI6dGl4pspC5ynpsbp2WBEw=", + "accumulatorRootHash": "N3sY2AwsTq74Qb3un7ZuTs9PFgUnWflI1u1LcSe+M3Y=", "changes": [ { "type": "TYPE_WRITE_RESOURCE", "writeResource": { - "address": "0x501b015c58f2a1a62a330a6da80dfee723f528f719d25a4232751986f9a9f43f", - "stateKeyHash": "mblV8kItKhzWpJyNZcf9X5l3EmRe3m4NrXTdtzITQ6k=", + "address": "0x8f0de18409d6fca18c72fac4062fc0f9baa6404296fed93a3ad0250fb671f8b3", + "stateKeyHash": "2Ne4/4Qg7OpxqV5LI4CB9VlZutr1u5HaXhbSTzYWYw8=", "type": { "address": "0x1", "module": "coin", @@ -34,21 +34,21 @@ ] }, "typeStr": "0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>", - "data": "{\"coin\":{\"value\":\"99999700\"},\"deposit_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x501b015c58f2a1a62a330a6da80dfee723f528f719d25a4232751986f9a9f43f\",\"creation_num\":\"2\"}}},\"frozen\":false,\"withdraw_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x501b015c58f2a1a62a330a6da80dfee723f528f719d25a4232751986f9a9f43f\",\"creation_num\":\"3\"}}}}" + "data": "{\"coin\":{\"value\":\"99999700\"},\"deposit_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x8f0de18409d6fca18c72fac4062fc0f9baa6404296fed93a3ad0250fb671f8b3\",\"creation_num\":\"2\"}}},\"frozen\":false,\"withdraw_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x8f0de18409d6fca18c72fac4062fc0f9baa6404296fed93a3ad0250fb671f8b3\",\"creation_num\":\"3\"}}}}" } }, { "type": "TYPE_WRITE_RESOURCE", "writeResource": { - "address": "0x501b015c58f2a1a62a330a6da80dfee723f528f719d25a4232751986f9a9f43f", - "stateKeyHash": "+VS7DLwWFCETA4QQAND9ZVqc3IugzikHe1YU0T9rVo0=", + "address": "0x8f0de18409d6fca18c72fac4062fc0f9baa6404296fed93a3ad0250fb671f8b3", + "stateKeyHash": "CruPmGDHh8XlpNdvv1soHpZeHrF/hdy9+k4liPo15BE=", "type": { "address": "0x1", "module": "account", "name": "Account" }, "typeStr": "0x1::account::Account", - "data": "{\"authentication_key\":\"0x501b015c58f2a1a62a330a6da80dfee723f528f719d25a4232751986f9a9f43f\",\"coin_register_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x501b015c58f2a1a62a330a6da80dfee723f528f719d25a4232751986f9a9f43f\",\"creation_num\":\"0\"}}},\"guid_creation_num\":\"4\",\"key_rotation_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x501b015c58f2a1a62a330a6da80dfee723f528f719d25a4232751986f9a9f43f\",\"creation_num\":\"1\"}}},\"rotation_capability_offer\":{\"for\":{\"vec\":[]}},\"sequence_number\":\"1\",\"signer_capability_offer\":{\"for\":{\"vec\":[]}}}" + "data": "{\"authentication_key\":\"0x8f0de18409d6fca18c72fac4062fc0f9baa6404296fed93a3ad0250fb671f8b3\",\"coin_register_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x8f0de18409d6fca18c72fac4062fc0f9baa6404296fed93a3ad0250fb671f8b3\",\"creation_num\":\"0\"}}},\"guid_creation_num\":\"4\",\"key_rotation_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x8f0de18409d6fca18c72fac4062fc0f9baa6404296fed93a3ad0250fb671f8b3\",\"creation_num\":\"1\"}}},\"rotation_capability_offer\":{\"for\":{\"vec\":[]}},\"sequence_number\":\"1\",\"signer_capability_offer\":{\"for\":{\"vec\":[]}}}" } }, { @@ -60,7 +60,7 @@ "data": { "key": "\"0x619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935\"", "keyType": "address", - "value": "\"18446744073809235025\"", + "value": "\"18446744073909011925\"", "valueType": "u128" } } @@ -68,7 +68,7 @@ ] }, "epoch": "2", - "blockHeight": "36", + "blockHeight": "51", "type": "TRANSACTION_TYPE_USER", "sizeInfo": { "transactionBytes": 190, @@ -95,11 +95,11 @@ }, "user": { "request": { - "sender": "0x501b015c58f2a1a62a330a6da80dfee723f528f719d25a4232751986f9a9f43f", + "sender": "0x8f0de18409d6fca18c72fac4062fc0f9baa6404296fed93a3ad0250fb671f8b3", "maxGasAmount": "4", "gasUnitPrice": "100", "expirationTimestampSecs": { - "seconds": "1732673012" + "seconds": "1732752451" }, "payload": { "type": "TYPE_SCRIPT_PAYLOAD", @@ -127,8 +127,8 @@ "signature": { "type": "TYPE_ED25519", "ed25519": { - "publicKey": "ySyOe0Rn5inKjNIBohVk3jnup8vkW1m/038QtW4Kcow=", - "signature": "CGV33Y0/bikBWNw3LC0+d831fiNYnZghAkXrqPoFNCH6SCUBAXYUywE4SkTRZa4hp3Da0GHymrCd32aLNdE7Cw==" + "publicKey": "7wW+3hX0IuFsAALjzui01DQVGNmcRpU1KhhpsHeYZPs=", + "signature": "0X9bVOKu0cJvabk5JyrFgGXHDYuEc20Nh9L7eY8fw+gy12roELRmNPZdUlEr6BDkc67OKHLgpNB/Q/iNuPirCw==" } } }, diff --git a/ecosystem/indexer-grpc/indexer-transaction-generator/README.md b/ecosystem/indexer-grpc/indexer-transaction-generator/README.md index d2988015abb0c..597850b618fff 100644 --- a/ecosystem/indexer-grpc/indexer-transaction-generator/README.md +++ b/ecosystem/indexer-grpc/indexer-transaction-generator/README.md @@ -65,5 +65,10 @@ You can check the example [here](imported_transactions). Each sender_address specified in script transaction config is a place holder string; the actual account address will be allocated by account manager. +The accounts in `testing_accounts.yaml` will be used to run scripted transaction. +They are persistedin config so each scripted transaction's generated output stays consistent between +`aptos-indexer-transaction-generator` runs. You can generate more testing accounts using +Aptos CLI by running `aptos init --profile local`. + TODO: account manager handles address as script argument. diff --git a/ecosystem/indexer-grpc/indexer-transaction-generator/imported_transactions/move_fixtures/fa_double_transfer.yaml b/ecosystem/indexer-grpc/indexer-transaction-generator/imported_transactions/move_fixtures/fa_double_transfer.yaml new file mode 100644 index 0000000000000..35871efc024e2 --- /dev/null +++ b/ecosystem/indexer-grpc/indexer-transaction-generator/imported_transactions/move_fixtures/fa_double_transfer.yaml @@ -0,0 +1,5 @@ +transactions: + - output_name: fa_double_transfer + script_path: fa_double_transfer + sender_address: __ACCOUNT_A__ + \ No newline at end of file diff --git a/ecosystem/indexer-grpc/indexer-transaction-generator/imported_transactions/move_fixtures/fa_double_transfer/Move.toml b/ecosystem/indexer-grpc/indexer-transaction-generator/imported_transactions/move_fixtures/fa_double_transfer/Move.toml new file mode 100644 index 0000000000000..e699cdc33a1e6 --- /dev/null +++ b/ecosystem/indexer-grpc/indexer-transaction-generator/imported_transactions/move_fixtures/fa_double_transfer/Move.toml @@ -0,0 +1,9 @@ +[package] +name = "fa_double_transfer" +version = "1.0.0" +authors = [] + +[addresses] + +[dependencies] +AptosFramework = { local = "../../../../../../aptos-move/framework/aptos-framework" } diff --git a/ecosystem/indexer-grpc/indexer-transaction-generator/imported_transactions/move_fixtures/fa_double_transfer/script.mv b/ecosystem/indexer-grpc/indexer-transaction-generator/imported_transactions/move_fixtures/fa_double_transfer/script.mv new file mode 100644 index 0000000000000..28c804ec247b2 Binary files /dev/null and b/ecosystem/indexer-grpc/indexer-transaction-generator/imported_transactions/move_fixtures/fa_double_transfer/script.mv differ diff --git a/ecosystem/indexer-grpc/indexer-transaction-generator/imported_transactions/move_fixtures/fa_double_transfer/sources/main.move b/ecosystem/indexer-grpc/indexer-transaction-generator/imported_transactions/move_fixtures/fa_double_transfer/sources/main.move new file mode 100644 index 0000000000000..5f09fee77e2f7 --- /dev/null +++ b/ecosystem/indexer-grpc/indexer-transaction-generator/imported_transactions/move_fixtures/fa_double_transfer/sources/main.move @@ -0,0 +1,45 @@ +script { + use std::signer; + use std::string::{utf8}; + use std::option; + + use aptos_framework::object::{Self, object_from_constructor_ref}; + use aptos_framework::fungible_asset::{Self, Metadata}; + use aptos_framework::primary_fungible_store::{Self}; + + const ASSET_SYMBOL: vector = b"FA"; + + fun main(admin: &signer) { + let constructor_ref = &object::create_named_object(admin, ASSET_SYMBOL); + primary_fungible_store::create_primary_store_enabled_fungible_asset( + constructor_ref, + option::none(), + utf8(b"FA Coin"), /* name */ + utf8(ASSET_SYMBOL), /* symbol */ + 8, /* decimals */ + utf8(b"https://example.com/favicon.ico"), /* icon */ + utf8(b"https://example.com"), /* project */ + ); + let metadata = object_from_constructor_ref(constructor_ref); + + // Create mint/transfer refs to allow creator to manage the fungible asset. + let mint_ref = fungible_asset::generate_mint_ref(constructor_ref); + let transfer_ref = fungible_asset::generate_transfer_ref(constructor_ref); + + // Mint to account A + let amount = 1000000; + let fa = fungible_asset::mint(&mint_ref, amount); + let fa_store_a = primary_fungible_store::ensure_primary_store_exists(signer::address_of(admin), metadata); + fungible_asset::deposit_with_ref(&transfer_ref, fa_store_a, fa); + + // Withdraw and transfer to account B + let fa_withdrawn = fungible_asset::withdraw_with_ref(&transfer_ref, fa_store_a, amount); + let fa_store_b = primary_fungible_store::ensure_primary_store_exists(@0xcafe, metadata); + fungible_asset::deposit_with_ref(&transfer_ref, fa_store_b, fa_withdrawn); + + // Withdraw and transfer to account C + let fa_withdrawn = fungible_asset::withdraw_with_ref(&transfer_ref, fa_store_b, amount); + let fa_store_c = primary_fungible_store::ensure_primary_store_exists(@0xbabe, metadata); + fungible_asset::deposit_with_ref(&transfer_ref, fa_store_c, fa_withdrawn); + } +} diff --git a/ecosystem/indexer-grpc/indexer-transaction-generator/imported_transactions/move_fixtures/simple_user_script/sources/main.move b/ecosystem/indexer-grpc/indexer-transaction-generator/imported_transactions/move_fixtures/simple_user_script/sources/main.move index 68fa0f4d90fd9..baa8e7a2a0c6b 100644 --- a/ecosystem/indexer-grpc/indexer-transaction-generator/imported_transactions/move_fixtures/simple_user_script/sources/main.move +++ b/ecosystem/indexer-grpc/indexer-transaction-generator/imported_transactions/move_fixtures/simple_user_script/sources/main.move @@ -1,4 +1,4 @@ script { - fun main(src: &signer) { + fun main(_: &signer) { } } diff --git a/ecosystem/indexer-grpc/indexer-transaction-generator/imported_transactions/move_fixtures/simple_user_script2/sources/main.move b/ecosystem/indexer-grpc/indexer-transaction-generator/imported_transactions/move_fixtures/simple_user_script2/sources/main.move index 68fa0f4d90fd9..baa8e7a2a0c6b 100644 --- a/ecosystem/indexer-grpc/indexer-transaction-generator/imported_transactions/move_fixtures/simple_user_script2/sources/main.move +++ b/ecosystem/indexer-grpc/indexer-transaction-generator/imported_transactions/move_fixtures/simple_user_script2/sources/main.move @@ -1,4 +1,4 @@ script { - fun main(src: &signer) { + fun main(_: &signer) { } } diff --git a/ecosystem/indexer-grpc/indexer-transaction-generator/imported_transactions/testing_accounts.yaml b/ecosystem/indexer-grpc/indexer-transaction-generator/imported_transactions/testing_accounts.yaml index cec489415cde8..f0cbcdd8cfe70 100644 --- a/ecosystem/indexer-grpc/indexer-transaction-generator/imported_transactions/testing_accounts.yaml +++ b/ecosystem/indexer-grpc/indexer-transaction-generator/imported_transactions/testing_accounts.yaml @@ -13,4 +13,10 @@ accounts: - private_key: "0xf24423f014e6f2fdd1914d6961b49a2cfc9eac59b88a57457e4cd9424fc140c8" public_key: "0xb298975d27dbff3020e5ee7fdbbad8a969d4f2a2d5286e097d1db9760d04dd31" account: 765d8c8d4d5859f43a56e2756fbf5f3d2483dbaa14f3fb62872df820d6e64eff + - private_key: "0xd5dc637987a9ca85f52be2ff583a408ae5747a99f2fe85de416c9339e669a86b" + public_key: "0x5f776d9fcfb99f7d348ac0e1782d56c27b80eab5043f94a1b127ef8a90122d43" + account: 7a2e070df14c96d0808ffab6b735591221241c34f6c4b4a9fa34051f945b5197 + - private_key: "0x9a2a409701f7ca41251cc2a4a0442ec44a450133b0d23564fc09191e763fd551" + public_key: "0x294d3cca5f78884ad20a8e15845ead196418aaf49a2b52234c3ff88bfba83d22" + account: d857c1f1dc5303ffcdc47205ebddc02d485c9dce619fd4d00055d86b58143363 \ No newline at end of file diff --git a/ecosystem/indexer-grpc/indexer-transaction-generator/src/config.rs b/ecosystem/indexer-grpc/indexer-transaction-generator/src/config.rs index 356e3502d7fb4..8f6e483bd7268 100644 --- a/ecosystem/indexer-grpc/indexer-transaction-generator/src/config.rs +++ b/ecosystem/indexer-grpc/indexer-transaction-generator/src/config.rs @@ -74,6 +74,7 @@ impl IndexerCliArgs { continue; } let path = entry.path(); + println!("\nFound path: {:?}\n", path.display()); if path.extension().unwrap_or_default() == "yaml" { let file_name = path.file_name().unwrap().to_str().unwrap(); let script_transactions_raw: String = tokio::fs::read_to_string(&path).await?;