Skip to content

Commit

Permalink
fa double transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
rtso committed Dec 4, 2024
1 parent 994f361 commit 4aeaab9
Show file tree
Hide file tree
Showing 15 changed files with 597 additions and 122 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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\"}}"
}
},
{
Expand Down Expand Up @@ -173,7 +173,7 @@
"writeOpSizeInfo": [
{
"keyBytes": 87,
"valueBytes": 464
"valueBytes": 246
},
{
"keyBytes": 138,
Expand All @@ -185,7 +185,7 @@
},
{
"keyBytes": 87,
"valueBytes": 246
"valueBytes": 464
},
{
"keyBytes": 66,
Expand All @@ -195,11 +195,11 @@
},
"user": {
"request": {
"sender": "0x765d8c8d4d5859f43a56e2756fbf5f3d2483dbaa14f3fb62872df820d6e64eff",
"sender": "0xd857c1f1dc5303ffcdc47205ebddc02d485c9dce619fd4d00055d86b58143363",
"maxGasAmount": "1741",
"gasUnitPrice": "100",
"expirationTimestampSecs": {
"seconds": "1732672998"
"seconds": "1732752425"
},
"payload": {
"type": "TYPE_SCRIPT_PAYLOAD",
Expand Down Expand Up @@ -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=="
}
}
},
Expand All @@ -246,7 +246,7 @@
}
},
"typeStr": "0x1::fungible_asset::Deposit",
"data": "{\"amount\":\"1000000\",\"store\":\"0xfb24be743a80eebd426967035c9023ea7e83edce89f4d7085d6d43e0c95c2f0b\"}"
"data": "{\"amount\":\"1000000\",\"store\":\"0x195f4751a5c8213e03a5568ddc8f711179edc98c2a44a5923351c815f2ee32ee\"}"
},
{
"key": {
Expand All @@ -261,7 +261,7 @@
}
},
"typeStr": "0x1::fungible_asset::Withdraw",
"data": "{\"amount\":\"1000000\",\"store\":\"0xfb24be743a80eebd426967035c9023ea7e83edce89f4d7085d6d43e0c95c2f0b\"}"
"data": "{\"amount\":\"1000000\",\"store\":\"0x195f4751a5c8213e03a5568ddc8f711179edc98c2a44a5923351c815f2ee32ee\"}"
},
{
"key": {
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -60,15 +60,15 @@
"data": {
"key": "\"0x619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935\"",
"keyType": "address",
"value": "\"18446744073809350825\"",
"value": "\"18446744074009011525\"",
"valueType": "u128"
}
}
}
]
},
"epoch": "2",
"blockHeight": "31",
"blockHeight": "61",
"type": "TRANSACTION_TYPE_USER",
"sizeInfo": {
"transactionBytes": 190,
Expand Down Expand Up @@ -99,7 +99,7 @@
"maxGasAmount": "4",
"gasUnitPrice": "100",
"expirationTimestampSecs": {
"seconds": "1731095980"
"seconds": "1732752458"
},
"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": "rGLJfiyHpSe+xtzx6B/3PkqTsybbYGFzoToVGb9HEfN0Va0/cEV2udTtGnxGy0ZW3VG7qHnaywt9mLFYFp8DBA=="
}
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -60,15 +60,15 @@
"data": {
"key": "\"0x619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935\"",
"keyType": "address",
"value": "\"18446744073909449225\"",
"value": "\"18446744074109109925\"",
"valueType": "u128"
}
}
}
]
},
"epoch": "2",
"blockHeight": "40",
"blockHeight": "70",
"type": "TRANSACTION_TYPE_USER",
"sizeInfo": {
"transactionBytes": 190,
Expand Down Expand Up @@ -100,7 +100,7 @@
"maxGasAmount": "4",
"gasUnitPrice": "100",
"expirationTimestampSecs": {
"seconds": "1731095987"
"seconds": "1732752464"
},
"payload": {
"type": "TYPE_SCRIPT_PAYLOAD",
Expand Down Expand Up @@ -129,7 +129,7 @@
"type": "TYPE_ED25519",
"ed25519": {
"publicKey": "ObSsyF4CbcBWRkpeoAuY+FgmDqrSt03TC4auDU2U3fU=",
"signature": "fuZvCUvBQpKFX31vInp+QsYCShaRCyMtu1dP4waPiVueuM2Jblo5InrcmWQfK+j4x9NeUpKJO5zI+YIC27SbAQ=="
"signature": "+939tVIjj3xsPAcg44upEZkSjnaheRT92WjUC6gN4R6y3w+GsT/wkH9RzVjHkQCREACErqbFPw7XgR/4D2JuDg=="
}
}
},
Expand Down
Loading

0 comments on commit 4aeaab9

Please sign in to comment.