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 scenario test txns for fungible asset processor #15422

Merged
merged 5 commits into from
Dec 4, 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
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,283 @@
{
"timestamp": {
"seconds": "1732752725",
"nanos": 407952000
},
"version": "35",
"info": {
"hash": "ayRIeRnfkgKGyIpCineUBPs4ehrliH8unvneE+3Kdy4=",
"stateChangeHash": "+3sO3Xe8keMQBqigBaLQjzyIOn9q7rjFa6WfnIi9Ssg=",
"eventRootHash": "zguCQh0yktZ64gFcK3ArJOOrDjHPVhTjf/pYU5fhJdc=",
"gasUsed": "1161",
"success": true,
"vmStatus": "Executed successfully",
"accumulatorRootHash": "ohk3aLs2jJLjb5zxSsO3DHfJAEsWGwlOhWTLWlekMT0=",
"changes": [
{
"type": "TYPE_WRITE_RESOURCE",
"writeResource": {
"address": "0x195f4751a5c8213e03a5568ddc8f711179edc98c2a44a5923351c815f2ee32ee",
"stateKeyHash": "u+s4Aetf6Uz24aXzSwHfIak6V1deZuGLMCZ3nw26A9U=",
"type": {
"address": "0x1",
"module": "fungible_asset",
"name": "FungibleStore"
},
"typeStr": "0x1::fungible_asset::FungibleStore",
"data": "{\"balance\":\"0\",\"frozen\":false,\"metadata\":{\"inner\":\"0xfab779a7fb23b90d00312c9dd54194c4d147e6c391d052d07445c896b427980f\"}}"
}
},
{
"type": "TYPE_WRITE_RESOURCE",
"writeResource": {
"address": "0x195f4751a5c8213e03a5568ddc8f711179edc98c2a44a5923351c815f2ee32ee",
"stateKeyHash": "u+s4Aetf6Uz24aXzSwHfIak6V1deZuGLMCZ3nw26A9U=",
"type": {
"address": "0x1",
"module": "object",
"name": "ObjectCore"
},
"typeStr": "0x1::object::ObjectCore",
"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": "0xd857c1f1dc5303ffcdc47205ebddc02d485c9dce619fd4d00055d86b58143363",
"stateKeyHash": "nfJ3Uaxl7f7VWyJy5+RSJKgm1neNXVt5gsGPrj96LVc=",
"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\":\"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": "0xd857c1f1dc5303ffcdc47205ebddc02d485c9dce619fd4d00055d86b58143363",
"stateKeyHash": "IjpJdBOi/M0uwPpcz2Zg1fa61T7wSFpMl7CDWWUBMVs=",
"type": {
"address": "0x1",
"module": "account",
"name": "Account"
},
"typeStr": "0x1::account::Account",
"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": "0xfab779a7fb23b90d00312c9dd54194c4d147e6c391d052d07445c896b427980f",
"stateKeyHash": "idvP1CLTbDbbUgZhcHK8xwv/bY56FV4I8pfeHuUr5Ls=",
"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": "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": "0xfab779a7fb23b90d00312c9dd54194c4d147e6c391d052d07445c896b427980f",
"stateKeyHash": "idvP1CLTbDbbUgZhcHK8xwv/bY56FV4I8pfeHuUr5Ls=",
"type": {
"address": "0x1",
"module": "object",
"name": "ObjectCore"
},
"typeStr": "0x1::object::ObjectCore",
"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\"}}"
}
},
{
"type": "TYPE_WRITE_TABLE_ITEM",
"writeTableItem": {
"stateKeyHash": "bkso1A+YoQamUWNTCSTA3LQME0nTqpFdEItNbPwd2xk=",
"handle": "0x1b854694ae746cdbd8d44186ca4929b2b337df21d1c74633be19b2710552fdca",
"key": "0x0619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935",
"data": {
"key": "\"0x619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935\"",
"keyType": "address",
"value": "\"18446744073709335625\"",
"valueType": "u128"
}
}
}
]
},
"epoch": "2",
"blockHeight": "17",
"type": "TRANSACTION_TYPE_USER",
"sizeInfo": {
"transactionBytes": 1111,
"eventSizeInfo": [
{
"typeTagBytes": 57,
"totalBytes": 97
},
{
"typeTagBytes": 58,
"totalBytes": 98
},
{
"typeTagBytes": 63,
"totalBytes": 103
}
],
"writeOpSizeInfo": [
{
"keyBytes": 87,
"valueBytes": 246
},
{
"keyBytes": 138,
"valueBytes": 105
},
{
"keyBytes": 84,
"valueBytes": 147
},
{
"keyBytes": 87,
"valueBytes": 464
},
{
"keyBytes": 66,
"valueBytes": 16
}
]
},
"user": {
"request": {
"sender": "0xd857c1f1dc5303ffcdc47205ebddc02d485c9dce619fd4d00055d86b58143363",
"maxGasAmount": "1741",
"gasUnitPrice": "100",
"expirationTimestampSecs": {
"seconds": "1732752755"
},
"payload": {
"type": "TYPE_SCRIPT_PAYLOAD",
"scriptPayload": {
"code": {
"bytecode": "oRzrCwcAAAoIAQAMAgwsAzhTBIsBCgWVAYkBB54CjgMIrAUgBswFSwAAAAEAAgADAAQABQEGAgAABwYAAAgAAAEJBwEAAQAKCAAACwsAAAwGAAANBgACDwcBAAAFEQcAAQ4DBAABAhACBgEAAQUSBwgAAQMTCQIAAQEUCwwBCAEAFQsNAAEAFgsOAAEAFwsPAAEAGBARAAEEGQASAAEDGhMUAQgBABsWAgEIAQAcFwIBCAEBBQQKCgoLFQwVAQYMCQgAAwgBBggACAILAwEIBAsDAQgFCAYIBwACBgwKAgEIAAEEAQsIAQkAAQoCAQgJBwYIAAsIAQQICQgJAggJCAkBCAUBBggAAQsDAQkAAQgGAQgBAQgHAgYIBgMBCAIBBQIFCwMBCQABCwMBCAQBCAQDBggHCwMBCQAIAgMGCAELAwEJAAMOZnVuZ2libGVfYXNzZXQGb2JqZWN0Bm9wdGlvbhZwcmltYXJ5X2Z1bmdpYmxlX3N0b3JlBnNpZ25lcgZzdHJpbmcOQ29uc3RydWN0b3JSZWYHQnVyblJlZg1GdW5naWJsZUFzc2V0Bk9iamVjdA1GdW5naWJsZVN0b3JlCE1ldGFkYXRhB01pbnRSZWYLVHJhbnNmZXJSZWYTY3JlYXRlX25hbWVkX29iamVjdAZPcHRpb24Ebm9uZQZTdHJpbmcEdXRmOCtjcmVhdGVfcHJpbWFyeV9zdG9yZV9lbmFibGVkX2Z1bmdpYmxlX2Fzc2V0G29iamVjdF9mcm9tX2NvbnN0cnVjdG9yX3JlZhFnZW5lcmF0ZV9taW50X3JlZhFnZW5lcmF0ZV9idXJuX3JlZhVnZW5lcmF0ZV90cmFuc2Zlcl9yZWYEbWludAphZGRyZXNzX29mG2Vuc3VyZV9wcmltYXJ5X3N0b3JlX2V4aXN0cxBkZXBvc2l0X3dpdGhfcmVmCWJ1cm5fZnJvbQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABCgIDAkZBCgIIB0ZBIENvaW4KAiAfaHR0cHM6Ly9leGFtcGxlLmNvbS9mYXZpY29uLmljbwoCFBNodHRwczovL2V4YW1wbGUuY29tAAABMgoABwARAAwBDgEMBAoEOAAHARECBwARAjEIBwIRAgcDEQIRAwoEOAEMBwoEEQUMCAoEEQYMAwsEEQcMCQZAQg8AAAAAAAwCDggKAhEIDAULABEJCwc4AgwGDgkKBgsFOAMOAwsGCwI4BAI=",
"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": "KU08yl94iErSCo4VhF6tGWQYqvSaK1IjTD/4i/uoPSI=",
"signature": "kr6k4+df1lIe1fYDQ89POnorMV1YGSI8hL5aYeUNvtPBODiBUvpxPGq4wyG+HNbUpNHWtwS40NfZ/kYZjOwRDQ=="
}
}
},
"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\":\"0x195f4751a5c8213e03a5568ddc8f711179edc98c2a44a5923351c815f2ee32ee\"}"
},
{
"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\":\"0x195f4751a5c8213e03a5568ddc8f711179edc98c2a44a5923351c815f2ee32ee\"}"
},
{
"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\":\"5\",\"io_gas_units\":\"5\",\"storage_fee_octas\":\"115200\",\"storage_fee_refund_octas\":\"0\",\"total_charge_gas_units\":\"1161\"}"
}
]
}
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"timestamp": {
"seconds": "1731095950",
"nanos": 496779000
"seconds": "1732752760",
"nanos": 733718000
},
"version": "67",
"version": "135",
"info": {
"hash": "6kJvSg6J6/nzJtn+Qg0iqEu+D/LUChmq4pX5FbpJ2yE=",
"stateChangeHash": "Ud1ILaQ9/i/UVj2SIebzib9eEt/Eqz4JBYfhOoCgBfQ=",
"hash": "RQzeD2EQM+QpZiLInBzM9l4Z5t0BWPGf33k40KrvmkM=",
"stateChangeHash": "UieS5RIQtmLQQfs+NnTlQVgBiPBaq0hVAuCorH9MmQs=",
"eventRootHash": "J/kCueHhHqJXi8MVudrh82sOQ/pqY9TJ9VjLOdgel6I=",
"gasUsed": "3",
"success": true,
"vmStatus": "Executed successfully",
"accumulatorRootHash": "FxelBtaxPVGCVulc0mkobWhQB4TqjvzFBaH5wvI71jc=",
"accumulatorRootHash": "TI595vYByB/07beHZjlqhEKIp0oiAeA1wYzi3rkqOkI=",
"changes": [
{
"type": "TYPE_WRITE_RESOURCE",
Expand Down Expand Up @@ -60,15 +60,15 @@
"data": {
"key": "\"0x619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935\"",
"keyType": "address",
"value": "\"18446744073809350825\"",
"value": "\"18446744074009011525\"",
"valueType": "u128"
}
}
}
]
},
"epoch": "2",
"blockHeight": "31",
"blockHeight": "63",
"type": "TRANSACTION_TYPE_USER",
"sizeInfo": {
"transactionBytes": 190,
Expand Down Expand Up @@ -99,7 +99,7 @@
"maxGasAmount": "4",
"gasUnitPrice": "100",
"expirationTimestampSecs": {
"seconds": "1731095980"
"seconds": "1732752791"
},
"payload": {
"type": "TYPE_SCRIPT_PAYLOAD",
Expand Down Expand Up @@ -128,7 +128,7 @@
"type": "TYPE_ED25519",
"ed25519": {
"publicKey": "ObSsyF4CbcBWRkpeoAuY+FgmDqrSt03TC4auDU2U3fU=",
"signature": "0L++p+Cn6mxmKItu2eTyVMXiZkJY0v+KgxORh5u6GgHG2nprS3cAzw2Wk4PQVEy0RXrVHsbwtdzDi4PngcIJAw=="
"signature": "cQVhPPiCjuBaiGb5VmdZB7I546Ys7Ye2/zuUlNDHhFF/33O1wgy/fG/5G37EgnnP2J8ePfyIXeC9kEZUe6a8BQ=="
}
}
},
Expand Down
Loading
Loading