Skip to content

Commit

Permalink
add more test transactions (aptos-labs#15757)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuunlimm authored Jan 17, 2025
1 parent d52887a commit 0ba0bf6
Show file tree
Hide file tree
Showing 15 changed files with 3,092 additions and 60 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,20 @@ pub const IMPORTED_MAINNET_TXNS_2175935_USER_TXN_MULTI_ED25519: &[u8] = include_
"/src/json_transactions/imported_mainnet_txns/2175935_user_txn_multi_ed25519.json"
));

pub const IMPORTED_MAINNET_TXNS_2200077877_ACCOUNT_RESTORATION_ROTATED_TO_SINGLE_SECP256K1: &[u8] = include_bytes!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/json_transactions/imported_mainnet_txns/2200077877_account_restoration_rotated_to_single_secp256k1.json"));

pub const IMPORTED_MAINNET_TXNS_1831971037_STAKE_DELEGATION_POOL: &[u8] = include_bytes!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/src/json_transactions/imported_mainnet_txns/1831971037_stake_delegation_pool.json"
));

pub const IMPORTED_MAINNET_TXNS_527013476_USER_TXN_SINGLE_SENDER_SECP256K1_ECDSA: &[u8] = include_bytes!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/json_transactions/imported_mainnet_txns/527013476_user_txn_single_sender_secp256k1_ecdsa.json"));

pub const IMPORTED_MAINNET_TXNS_118489_PROPOSAL_VOTE: &[u8] = include_bytes!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/src/json_transactions/imported_mainnet_txns/118489_proposal_vote.json"
));

pub const IMPORTED_MAINNET_TXNS_1058723093_TOKEN_V1_MINT_WITHDRAW_DEPOSIT_EVENTS: &[u8] = include_bytes!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/json_transactions/imported_mainnet_txns/1058723093_token_v1_mint_withdraw_deposit_events.json"));

pub const IMPORTED_MAINNET_TXNS_1845035942_DEFAULT_CURRENT_TABLE_ITEMS: &[u8] =
Expand All @@ -42,6 +49,11 @@ pub const IMPORTED_MAINNET_TXNS_125600867_STAKE_DELEGATION_POOL: &[u8] = include

pub const IMPORTED_MAINNET_TXNS_513424821_DEFAULT_BLOCK_METADATA_TRANSACTIONS: &[u8] = include_bytes!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/json_transactions/imported_mainnet_txns/513424821_default_block_metadata_transactions.json"));

pub const IMPORTED_MAINNET_TXNS_103958588_MULTI_AGENTS: &[u8] = include_bytes!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/src/json_transactions/imported_mainnet_txns/103958588_multi_agents.json"
));

pub const IMPORTED_MAINNET_TXNS_999929475_COIN_AND_FA_TRANSFERS: &[u8] = include_bytes!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/src/json_transactions/imported_mainnet_txns/999929475_coin_and_fa_transfers.json"
Expand All @@ -54,6 +66,14 @@ pub const IMPORTED_MAINNET_TXNS_11648867_TOKEN_V1_BURN_EVENT: &[u8] = include_by

pub const IMPORTED_MAINNET_TXNS_1056780409_ANS_CURRENT_ANS_PRIMARY_NAME_V2: &[u8] = include_bytes!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/json_transactions/imported_mainnet_txns/1056780409_ans_current_ans_primary_name_v2.json"));

pub const IMPORTED_MAINNET_TXNS_2200077591_ACCOUNT_RESTORATION_SINGLE_ED25519: &[u8] = include_bytes!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/json_transactions/imported_mainnet_txns/2200077591_account_restoration_single_ed25519.json"));

pub const IMPORTED_MAINNET_TXNS_2212040150_TRANSACTION_WITHOUT_EVENTS: &[u8] =
include_bytes!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/src/json_transactions/imported_mainnet_txns/2212040150_transaction_without_events.json"
));

pub const IMPORTED_MAINNET_TXNS_464961735_USER_TXN_SINGLE_KEY_ED25519: &[u8] =
include_bytes!(concat!(
env!("CARGO_MANIFEST_DIR"),
Expand All @@ -77,6 +97,11 @@ pub const IMPORTED_MAINNET_TXNS_999930475_TOKEN_V2_CONCURRENT_MINT: &[u8] =
"/src/json_transactions/imported_mainnet_txns/999930475_token_v2_concurrent_mint.json"
));

pub const IMPORTED_MAINNET_TXNS_124094774_DELEGATED_POOL_BALANCE: &[u8] = include_bytes!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/src/json_transactions/imported_mainnet_txns/124094774_delegated_pool_balance.json"
));

pub const IMPORTED_MAINNET_TXNS_97963136_TOKEN_V2_CANCEL_OFFER: &[u8] = include_bytes!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/src/json_transactions/imported_mainnet_txns/97963136_token_v2_cancel_offer.json"
Expand Down Expand Up @@ -110,6 +135,8 @@ pub const IMPORTED_MAINNET_TXNS_303690531_ANS_LOOKUP_V2: &[u8] = include_bytes!(
"/src/json_transactions/imported_mainnet_txns/303690531_ans_lookup_v2.json"
));

pub const IMPORTED_MAINNET_TXNS_2200077800_ACCOUNT_RESTORATION_ROTATED_TO_MULTI_KEY: &[u8] = include_bytes!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/json_transactions/imported_mainnet_txns/2200077800_account_restoration_rotated_to_multi_key.json"));

pub const IMPORTED_MAINNET_TXNS_1803170308_USER_TXN_MULTI_KEY_KEYLESS: &[u8] =
include_bytes!(concat!(
env!("CARGO_MANIFEST_DIR"),
Expand Down Expand Up @@ -147,6 +174,11 @@ pub const IMPORTED_MAINNET_TXNS_141135867_TOKEN_V1_OFFER: &[u8] = include_bytes!

pub const IMPORTED_MAINNET_TXNS_976087151_USER_TXN_SINGLE_SENDER_KEYLESS: &[u8] = include_bytes!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/json_transactions/imported_mainnet_txns/976087151_user_txn_single_sender_keyless.json"));

pub const IMPORTED_MAINNET_TXNS_2080538_ANS_LOOKUP_V1: &[u8] = include_bytes!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/src/json_transactions/imported_mainnet_txns/2080538_ans_lookup_v1.json"
));

pub const IMPORTED_MAINNET_TXNS_139449359_STAKE_REACTIVATE: &[u8] = include_bytes!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/src/json_transactions/imported_mainnet_txns/139449359_stake_reactivate.json"
Expand Down Expand Up @@ -201,25 +233,32 @@ pub const ALL_IMPORTED_MAINNET_TXNS: &[&[u8]] = &[
IMPORTED_MAINNET_TXNS_590098441_USER_TXN_SINGLE_SENDER_ED25519,
IMPORTED_MAINNET_TXNS_145959468_ACCOUNT_TRANSACTION,
IMPORTED_MAINNET_TXNS_2175935_USER_TXN_MULTI_ED25519,
IMPORTED_MAINNET_TXNS_2200077877_ACCOUNT_RESTORATION_ROTATED_TO_SINGLE_SECP256K1,
IMPORTED_MAINNET_TXNS_1831971037_STAKE_DELEGATION_POOL,
IMPORTED_MAINNET_TXNS_527013476_USER_TXN_SINGLE_SENDER_SECP256K1_ECDSA,
IMPORTED_MAINNET_TXNS_118489_PROPOSAL_VOTE,
IMPORTED_MAINNET_TXNS_1058723093_TOKEN_V1_MINT_WITHDRAW_DEPOSIT_EVENTS,
IMPORTED_MAINNET_TXNS_1845035942_DEFAULT_CURRENT_TABLE_ITEMS,
IMPORTED_MAINNET_TXNS_125600867_STAKE_DELEGATION_POOL,
IMPORTED_MAINNET_TXNS_513424821_DEFAULT_BLOCK_METADATA_TRANSACTIONS,
IMPORTED_MAINNET_TXNS_103958588_MULTI_AGENTS,
IMPORTED_MAINNET_TXNS_999929475_COIN_AND_FA_TRANSFERS,
IMPORTED_MAINNET_TXNS_11648867_TOKEN_V1_BURN_EVENT,
IMPORTED_MAINNET_TXNS_1056780409_ANS_CURRENT_ANS_PRIMARY_NAME_V2,
IMPORTED_MAINNET_TXNS_2200077591_ACCOUNT_RESTORATION_SINGLE_ED25519,
IMPORTED_MAINNET_TXNS_2212040150_TRANSACTION_WITHOUT_EVENTS,
IMPORTED_MAINNET_TXNS_464961735_USER_TXN_SINGLE_KEY_ED25519,
IMPORTED_MAINNET_TXNS_438536688_ANS_CURRENT_ANS_LOOKUP_V2,
IMPORTED_MAINNET_TXNS_578318306_OBJECTS_WRITE_RESOURCE,
IMPORTED_MAINNET_TXNS_999930475_TOKEN_V2_CONCURRENT_MINT,
IMPORTED_MAINNET_TXNS_124094774_DELEGATED_POOL_BALANCE,
IMPORTED_MAINNET_TXNS_97963136_TOKEN_V2_CANCEL_OFFER,
IMPORTED_MAINNET_TXNS_152449628_COIN_INFO_WRITE,
IMPORTED_MAINNET_TXNS_602320562_TOKEN_V2_APTOS_TOKEN_MINT,
IMPORTED_MAINNET_TXNS_1830706009_STAKER_GOVERNANCE_RECORD,
IMPORTED_MAINNET_TXNS_423176063_ACCOUNT_TRANSACTION_DELETE,
IMPORTED_MAINNET_TXNS_303690531_ANS_LOOKUP_V2,
IMPORTED_MAINNET_TXNS_2200077800_ACCOUNT_RESTORATION_ROTATED_TO_MULTI_KEY,
IMPORTED_MAINNET_TXNS_1803170308_USER_TXN_MULTI_KEY_KEYLESS,
IMPORTED_MAINNET_TXNS_508365567_FA_V1_EVENTS,
IMPORTED_MAINNET_TXNS_1806220919_OBJECT_UNTRANSFERABLE,
Expand All @@ -229,6 +268,7 @@ pub const ALL_IMPORTED_MAINNET_TXNS: &[&[u8]] = &[
IMPORTED_MAINNET_TXNS_84023785_TOKEN_V2_CLAIM_OFFER,
IMPORTED_MAINNET_TXNS_141135867_TOKEN_V1_OFFER,
IMPORTED_MAINNET_TXNS_976087151_USER_TXN_SINGLE_SENDER_KEYLESS,
IMPORTED_MAINNET_TXNS_2080538_ANS_LOOKUP_V1,
IMPORTED_MAINNET_TXNS_139449359_STAKE_REACTIVATE,
IMPORTED_MAINNET_TXNS_308783012_FA_TRANSFER,
IMPORTED_MAINNET_TXNS_453498957_TOKEN_V2_MINT_AND_TRANSFER_EVENT_V1,
Expand Down Expand Up @@ -298,6 +338,11 @@ pub const IMPORTED_TESTNET_TXNS_1_GENESIS: &[u8] = include_bytes!(concat!(
"/src/json_transactions/imported_testnet_txns/1_genesis.json"
));

pub const IMPORTED_TESTNET_TXNS_769222973_MULTISIG: &[u8] = include_bytes!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/src/json_transactions/imported_testnet_txns/769222973_multisig.json"
));

pub const IMPORTED_TESTNET_TXNS_1200394037_FA_V2_FROZEN_EVENT: &[u8] = include_bytes!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/src/json_transactions/imported_testnet_txns/1200394037_fa_v2_frozen_event.json"
Expand All @@ -314,6 +359,7 @@ pub const ALL_IMPORTED_TESTNET_TXNS: &[&[u8]] = &[
IMPORTED_TESTNET_TXNS_5523474016_VALIDATOR_TXN,
IMPORTED_TESTNET_TXNS_2_NEW_BLOCK_EVENT,
IMPORTED_TESTNET_TXNS_1_GENESIS,
IMPORTED_TESTNET_TXNS_769222973_MULTISIG,
IMPORTED_TESTNET_TXNS_1200394037_FA_V2_FROZEN_EVENT,
];

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,242 @@
{
"timestamp": {
"seconds": "1679156666",
"nanos": 242260000
},
"version": "103958588",
"info": {
"hash": "zRZisYjmPQmK/cgRi0lgCbh94lbMWwBzSlWgulvHUXE=",
"stateChangeHash": "Jv7xmCx7njwxAcIGBYT9GNvCsQLOxCv+DFDX40KD/O0=",
"eventRootHash": "WBj2eLwtoSMY8gkFNoUJrTeCfOYpgxVp8ZY4fsAsNi4=",
"gasUsed": "996",
"success": true,
"vmStatus": "Executed successfully",
"accumulatorRootHash": "7nnqtU001FC6xYzyv5rRQeiN1dvsjKWbgBzoKQ2QVo8=",
"changes": [
{
"type": "TYPE_WRITE_RESOURCE",
"writeResource": {
"address": "0x214e588b8a8260a97420bf729c0d06d9691f3a1bab65b65f65e61227004505c1",
"stateKeyHash": "mDQFtJmfsWEztOhVyvHw6WiUdn+PJ7w/31JFk2oMjl4=",
"type": {
"address": "0x1",
"module": "coin",
"name": "CoinStore",
"genericTypeParams": [
{
"type": "MOVE_TYPES_STRUCT",
"struct": {
"address": "0xfbab9fb68bd2103925317b6a540baa20087b1e7a7a4eb90badee04abb6b5a16f",
"module": "blt",
"name": "Blt"
}
}
]
},
"typeStr": "0x1::coin::CoinStore<0xfbab9fb68bd2103925317b6a540baa20087b1e7a7a4eb90badee04abb6b5a16f::blt::Blt>",
"data": "{\"coin\":{\"value\":\"0\"},\"deposit_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x214e588b8a8260a97420bf729c0d06d9691f3a1bab65b65f65e61227004505c1\",\"creation_num\":\"4\"}}},\"frozen\":false,\"withdraw_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x214e588b8a8260a97420bf729c0d06d9691f3a1bab65b65f65e61227004505c1\",\"creation_num\":\"5\"}}}}"
}
},
{
"type": "TYPE_WRITE_RESOURCE",
"writeResource": {
"address": "0x214e588b8a8260a97420bf729c0d06d9691f3a1bab65b65f65e61227004505c1",
"stateKeyHash": "hM4il8rmTBhgpm8bRBe+amOBpOzoY8pp0+MC+WhNJV8=",
"type": {
"address": "0x1",
"module": "account",
"name": "Account"
},
"typeStr": "0x1::account::Account",
"data": "{\"authentication_key\":\"0x214e588b8a8260a97420bf729c0d06d9691f3a1bab65b65f65e61227004505c1\",\"coin_register_events\":{\"counter\":\"2\",\"guid\":{\"id\":{\"addr\":\"0x214e588b8a8260a97420bf729c0d06d9691f3a1bab65b65f65e61227004505c1\",\"creation_num\":\"0\"}}},\"guid_creation_num\":\"6\",\"key_rotation_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x214e588b8a8260a97420bf729c0d06d9691f3a1bab65b65f65e61227004505c1\",\"creation_num\":\"1\"}}},\"rotation_capability_offer\":{\"for\":{\"vec\":[]}},\"sequence_number\":\"0\",\"signer_capability_offer\":{\"for\":{\"vec\":[]}}}"
}
},
{
"type": "TYPE_WRITE_RESOURCE",
"writeResource": {
"address": "0x66e46c568a91a9ff082dd5eb39920c6e451415ef17301457bd771b3bfd056971",
"stateKeyHash": "aYq41wULwlXL0jqEPM2JyoLa96c+Mf0fE6+FLr9GrR8=",
"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\":\"11657700\"},\"deposit_events\":{\"counter\":\"12\",\"guid\":{\"id\":{\"addr\":\"0x66e46c568a91a9ff082dd5eb39920c6e451415ef17301457bd771b3bfd056971\",\"creation_num\":\"2\"}}},\"frozen\":false,\"withdraw_events\":{\"counter\":\"72\",\"guid\":{\"id\":{\"addr\":\"0x66e46c568a91a9ff082dd5eb39920c6e451415ef17301457bd771b3bfd056971\",\"creation_num\":\"3\"}}}}"
}
},
{
"type": "TYPE_WRITE_RESOURCE",
"writeResource": {
"address": "0x66e46c568a91a9ff082dd5eb39920c6e451415ef17301457bd771b3bfd056971",
"stateKeyHash": "dI+ssr7akla6uj7fgJI4HC5RpsleZKdlnGzSUHXCFx4=",
"type": {
"address": "0x1",
"module": "account",
"name": "Account"
},
"typeStr": "0x1::account::Account",
"data": "{\"authentication_key\":\"0x66e46c568a91a9ff082dd5eb39920c6e451415ef17301457bd771b3bfd056971\",\"coin_register_events\":{\"counter\":\"1\",\"guid\":{\"id\":{\"addr\":\"0x66e46c568a91a9ff082dd5eb39920c6e451415ef17301457bd771b3bfd056971\",\"creation_num\":\"0\"}}},\"guid_creation_num\":\"4\",\"key_rotation_events\":{\"counter\":\"0\",\"guid\":{\"id\":{\"addr\":\"0x66e46c568a91a9ff082dd5eb39920c6e451415ef17301457bd771b3bfd056971\",\"creation_num\":\"1\"}}},\"rotation_capability_offer\":{\"for\":{\"vec\":[]}},\"sequence_number\":\"206\",\"signer_capability_offer\":{\"for\":{\"vec\":[]}}}"
}
},
{
"type": "TYPE_WRITE_TABLE_ITEM",
"writeTableItem": {
"stateKeyHash": "bkso1A+YoQamUWNTCSTA3LQME0nTqpFdEItNbPwd2xk=",
"handle": "0x1b854694ae746cdbd8d44186ca4929b2b337df21d1c74633be19b2710552fdca",
"key": "0x0619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935",
"data": {
"key": "\"0x619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935\"",
"keyType": "address",
"value": "\"102500662852386424\"",
"valueType": "u128"
}
}
}
]
},
"epoch": "1885",
"blockHeight": "40088443",
"type": "TRANSACTION_TYPE_USER",
"sizeInfo": {
"transactionBytes": 623,
"eventSizeInfo": [
{
"typeTagBytes": 60,
"totalBytes": 148
}
],
"writeOpSizeInfo": [
{
"keyBytes": 125,
"valueBytes": 105
},
{
"keyBytes": 84,
"valueBytes": 147
},
{
"keyBytes": 138,
"valueBytes": 105
},
{
"keyBytes": 84,
"valueBytes": 147
},
{
"keyBytes": 66,
"valueBytes": 16
}
]
},
"user": {
"request": {
"sender": "0x66e46c568a91a9ff082dd5eb39920c6e451415ef17301457bd771b3bfd056971",
"sequenceNumber": "205",
"maxGasAmount": "50000",
"gasUnitPrice": "101",
"expirationTimestampSecs": {
"seconds": "1709078400"
},
"payload": {
"type": "TYPE_SCRIPT_PAYLOAD",
"scriptPayload": {
"code": {
"bytecode": "oRzrCwUAAAAGAQACAwIGBAgCBQoKBxQWCCogAAAAAQMBAQAAAgIMDAABCQABBgwMbWFuYWdlZF9jb2luCHJlZ2lzdGVyAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAAABAw4BOAAC",
"abi": {
"name": "main",
"visibility": "VISIBILITY_PUBLIC",
"isEntry": true,
"genericTypeParams": [
{}
],
"params": [
{
"type": "MOVE_TYPES_SIGNER"
},
{
"type": "MOVE_TYPES_SIGNER"
}
]
}
},
"typeArguments": [
{
"type": "MOVE_TYPES_STRUCT",
"struct": {
"address": "0xfbab9fb68bd2103925317b6a540baa20087b1e7a7a4eb90badee04abb6b5a16f",
"module": "blt",
"name": "Blt"
}
}
]
}
},
"signature": {
"type": "TYPE_MULTI_AGENT",
"multiAgent": {
"sender": {
"type": "TYPE_ED25519",
"ed25519": {
"publicKey": "0FuLU6dy8E3l2eg5/cRSoOA0z0ye88S6ZgRpTYmdsSo=",
"signature": "5ea7EvzkyEHbr1Fg2ICLiXop7tUACbyGQhkQ2yCsDxns8UUuExopKOosMQj60W+or0Timz/ml/sIwFah4roqDA=="
}
},
"secondarySignerAddresses": [
"0x214e588b8a8260a97420bf729c0d06d9691f3a1bab65b65f65e61227004505c1"
],
"secondarySigners": [
{
"type": "TYPE_MULTI_ED25519",
"multiEd25519": {
"publicKeys": [
"BUfR0Y8jG9loVB4CquGTBE0Gr3qMxUdj03xuQieUkLs=",
"aF/6Wxfr8csy2D3GXII8sOOKdIkqz6Wfu1VZjtsdGk4=",
"aF/6Wxfr8csy2D3GXII8sOOKdIkqz6Wfu1VZjtsdGk4=",
"Az2udl4ueEbO0pji8z3d9YoINsWasEsGmvofLKFfnW4="
],
"signatures": [
"3PQIl9DjAf/E00X+9Qtt1dahkidYHSV0i4akKsSIk2NMHGxoiXgMY7ZCivwa1MXqa6Eb1INlcCNj91/qLosaBA==",
"3ENohVxIPNwiFWHSU8Bk7SFaNej3yOTSewFD9mxL62OP01shng5SoGd7e0IxYryqRy7yg02ni+owayWHJ6BqBg=="
],
"threshold": 2,
"publicKeyIndices": [
0,
3
]
}
}
]
}
}
},
"events": [
{
"key": {
"accountAddress": "0x214e588b8a8260a97420bf729c0d06d9691f3a1bab65b65f65e61227004505c1"
},
"sequenceNumber": "1",
"type": {
"type": "MOVE_TYPES_STRUCT",
"struct": {
"address": "0x1",
"module": "account",
"name": "CoinRegisterEvent"
}
},
"typeStr": "0x1::account::CoinRegisterEvent",
"data": "{\"type_info\":{\"account_address\":\"0xfbab9fb68bd2103925317b6a540baa20087b1e7a7a4eb90badee04abb6b5a16f\",\"module_name\":\"0x626c74\",\"struct_name\":\"0x426c74\"}}"
}
]
}
}
Loading

0 comments on commit 0ba0bf6

Please sign in to comment.