diff --git a/crates/query/fixtures/tron/chunk/blocks.parquet b/crates/query/fixtures/tron/chunk/blocks.parquet new file mode 100644 index 0000000..6e03d96 --- /dev/null +++ b/crates/query/fixtures/tron/chunk/blocks.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ebb4a9962f21e90094329746a2669768b4f0bf688318bac78bf97af1443a9d52 +size 59284 diff --git a/crates/query/fixtures/tron/chunk/internal_transactions.parquet b/crates/query/fixtures/tron/chunk/internal_transactions.parquet new file mode 100644 index 0000000..eff8478 --- /dev/null +++ b/crates/query/fixtures/tron/chunk/internal_transactions.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a4d614ee0fdea8650d676c3db647e82b8ccd35a572a79921f1177722f1a616d4 +size 431296 diff --git a/crates/query/fixtures/tron/chunk/logs.parquet b/crates/query/fixtures/tron/chunk/logs.parquet new file mode 100644 index 0000000..834a61a --- /dev/null +++ b/crates/query/fixtures/tron/chunk/logs.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:083a3473d48677c9919c7b578ca6962506be4e7a5f11bfa6a598faf81d2afb78 +size 1764370 diff --git a/crates/query/fixtures/tron/chunk/transactions.parquet b/crates/query/fixtures/tron/chunk/transactions.parquet new file mode 100644 index 0000000..367abb6 --- /dev/null +++ b/crates/query/fixtures/tron/chunk/transactions.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2be94f2aab5c49b821b07fa1cff7129aa7ff3ea1606fc3f74ebfaa83c2245f0f +size 46869474 diff --git a/crates/query/fixtures/tron/queries/all_fields/query.json b/crates/query/fixtures/tron/queries/all_fields/query.json new file mode 100644 index 0000000..8a583ba --- /dev/null +++ b/crates/query/fixtures/tron/queries/all_fields/query.json @@ -0,0 +1,74 @@ +{ + "type": "tron", + "fromBlock": 82644089, + "toBlock": 82644098, + "fields": { + "block": { + "number": true, + "hash": true, + "parentHash": true, + "txTrieRoot": true, + "version": true, + "timestamp": true, + "witnessAddress": true, + "witnessSignature": true + }, + "transaction": { + "transactionIndex": true, + "hash": true, + "ret": true, + "signature": true, + "type": true, + "parameter": true, + "permissionId": true, + "refBlockBytes": true, + "refBlockHash": true, + "feeLimit": true, + "expiration": true, + "timestamp": true, + "rawDataHex": true, + "fee": true, + "contractResult": true, + "contractAddress": true, + "resMessage": true, + "withdrawAmount": true, + "unfreezeAmount": true, + "withdrawExpireAmount": true, + "cancelUnfreezeV2Amount": true, + "result": true, + "energyFee": true, + "energyUsage": true, + "energyUsageTotal": true, + "netUsage": true, + "netFee": true, + "originEnergyUsage": true, + "energyPenaltyTotal": true + }, + "log": { + "transactionIndex": true, + "logIndex": true, + "address": true, + "data": true, + "topics": true + }, + "internalTransaction": { + "transactionIndex": true, + "internalTransactionIndex": true, + "hash": true, + "callerAddress": true, + "transferToAddress": true, + "callValueInfo": true, + "note": true, + "rejected": true, + "extra": true + } + }, + "triggerSmartContractTransactions": [ + { + "contract": ["4139dd12a54e2bab7c82aa14a1e158b34263d2d510"], + "sighash": ["6f21b898"], + "logs": true, + "internalTransactions": true + } + ] +} diff --git a/crates/query/fixtures/tron/queries/all_fields/result.json b/crates/query/fixtures/tron/queries/all_fields/result.json new file mode 100644 index 0000000..46fea9c --- /dev/null +++ b/crates/query/fixtures/tron/queries/all_fields/result.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be77a399e5462674e6968dc89c1c4ffd343b8b5c41d7579eadccdb999bf4a90c +size 155815 diff --git a/crates/query/fixtures/tron/queries/include_all_blocks/query.json b/crates/query/fixtures/tron/queries/include_all_blocks/query.json new file mode 100644 index 0000000..666edc7 --- /dev/null +++ b/crates/query/fixtures/tron/queries/include_all_blocks/query.json @@ -0,0 +1,28 @@ +{ + "type": "tron", + "fromBlock": 82644089, + "toBlock": 82644098, + "includeAllBlocks": true, + "fields": { + "block": { + "number": true, + "hash": true, + "parentHash": true, + "timestamp": true, + "witnessAddress": true + }, + "log": { + "transactionIndex": true, + "logIndex": true, + "address": true, + "data": true, + "topics": true + } + }, + "logs": [ + { + "address": ["39dd12a54e2bab7c82aa14a1e158b34263d2d510"], + "topic0": ["fe6f7f8574ad66f5a9001635fa07c426dbed515866253867ebd1ca6ac43f0d12"] + } + ] +} diff --git a/crates/query/fixtures/tron/queries/include_all_blocks/result.json b/crates/query/fixtures/tron/queries/include_all_blocks/result.json new file mode 100644 index 0000000..7549964 --- /dev/null +++ b/crates/query/fixtures/tron/queries/include_all_blocks/result.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:33df2ad04a75af42b46427eaed32efe91724ba0363411ae77567ba04aa631263 +size 14019 diff --git a/crates/query/fixtures/tron/queries/internal_transactions/query.json b/crates/query/fixtures/tron/queries/internal_transactions/query.json new file mode 100644 index 0000000..ae92a6b --- /dev/null +++ b/crates/query/fixtures/tron/queries/internal_transactions/query.json @@ -0,0 +1,32 @@ +{ + "type": "tron", + "fromBlock": 82644089, + "toBlock": 82644098, + "fields": { + "block": { + "number": true, + "hash": true + }, + "transaction": { + "transactionIndex": true, + "hash": true, + "type": true + }, + "internalTransaction": { + "transactionIndex": true, + "internalTransactionIndex": true, + "hash": true, + "callerAddress": true, + "transferToAddress": true, + "callValueInfo": true, + "note": true, + "rejected": true + } + }, + "internalTransactions": [ + { + "caller": ["41b4090d337ef8fbf880c1c287412cfb72324d711e"], + "transaction": true + } + ] +} diff --git a/crates/query/fixtures/tron/queries/internal_transactions/result.json b/crates/query/fixtures/tron/queries/internal_transactions/result.json new file mode 100644 index 0000000..d3a0fb9 --- /dev/null +++ b/crates/query/fixtures/tron/queries/internal_transactions/result.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:59569cb6e31d91ac79a2cd0087936f155ab6ddc79c5c65ad92e20a52f982c2c7 +size 16699 diff --git a/crates/query/fixtures/tron/queries/logs_with_transaction/query.json b/crates/query/fixtures/tron/queries/logs_with_transaction/query.json new file mode 100644 index 0000000..f5a6ebd --- /dev/null +++ b/crates/query/fixtures/tron/queries/logs_with_transaction/query.json @@ -0,0 +1,32 @@ +{ + "type": "tron", + "fromBlock": 82644089, + "toBlock": 82644089, + "fields": { + "block": { + "number": true, + "hash": true + }, + "log": { + "transactionIndex": true, + "logIndex": true, + "address": true, + "data": true, + "topics": true + }, + "transaction": { + "transactionIndex": true, + "hash": true, + "type": true, + "contractAddress": true, + "energyUsageTotal": true + } + }, + "logs": [ + { + "address": ["a614f803b6fd780986a42c78ec9c7f77e6ded13c"], + "topic0": ["ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"], + "transaction": true + } + ] +} diff --git a/crates/query/fixtures/tron/queries/logs_with_transaction/result.json b/crates/query/fixtures/tron/queries/logs_with_transaction/result.json new file mode 100644 index 0000000..fa772eb --- /dev/null +++ b/crates/query/fixtures/tron/queries/logs_with_transaction/result.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f05c91f55dfc55e0e676ef0e9ebfa6fd076c4c08ab5924c6ecc32414d7394a5b +size 68486 diff --git a/crates/query/fixtures/tron/queries/topics_filtering/query.json b/crates/query/fixtures/tron/queries/topics_filtering/query.json new file mode 100644 index 0000000..c1a01a8 --- /dev/null +++ b/crates/query/fixtures/tron/queries/topics_filtering/query.json @@ -0,0 +1,25 @@ +{ + "type": "tron", + "fromBlock": 82644089, + "toBlock": 82644090, + "fields": { + "block": { + "number": true, + "hash": true, + "timestamp": true + }, + "log": { + "transactionIndex": true, + "logIndex": true, + "address": true, + "data": true, + "topics": true + } + }, + "logs": [ + { + "address": ["a614f803b6fd780986a42c78ec9c7f77e6ded13c"], + "topic0": ["ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"] + } + ] +} diff --git a/crates/query/fixtures/tron/queries/topics_filtering/result.json b/crates/query/fixtures/tron/queries/topics_filtering/result.json new file mode 100644 index 0000000..af944e5 --- /dev/null +++ b/crates/query/fixtures/tron/queries/topics_filtering/result.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cb1ed7039a5a7cb2327b70b1d74e142ee299b82591d4f29ecfd3bb128c20ae5a +size 113838 diff --git a/crates/query/fixtures/tron/queries/transactions_by_type/query.json b/crates/query/fixtures/tron/queries/transactions_by_type/query.json new file mode 100644 index 0000000..57962fe --- /dev/null +++ b/crates/query/fixtures/tron/queries/transactions_by_type/query.json @@ -0,0 +1,52 @@ +{ + "type": "tron", + "fromBlock": 82644089, + "toBlock": 82644439, + "fields": { + "block": { + "number": true, + "hash": true + }, + "transaction": { + "transactionIndex": true, + "hash": true, + "ret": true, + "signature": true, + "type": true, + "parameter": true, + "permissionId": true, + "refBlockBytes": true, + "refBlockHash": true, + "feeLimit": true, + "expiration": true, + "timestamp": true, + "rawDataHex": true, + "fee": true, + "contractResult": true, + "contractAddress": true, + "resMessage": true, + "withdrawAmount": true, + "unfreezeAmount": true, + "withdrawExpireAmount": true, + "cancelUnfreezeV2Amount": true, + "result": true, + "energyFee": true, + "energyUsage": true, + "energyUsageTotal": true, + "netUsage": true, + "netFee": true, + "originEnergyUsage": true, + "energyPenaltyTotal": true + } + }, + "transactions": [ + { + "type": [ + "WithdrawBalanceContract", + "UnfreezeBalanceV2Contract", + "WithdrawExpireUnfreezeContract", + "CancelAllUnfreezeV2Contract" + ] + } + ] +} diff --git a/crates/query/fixtures/tron/queries/transactions_by_type/result.json b/crates/query/fixtures/tron/queries/transactions_by_type/result.json new file mode 100644 index 0000000..96f57e2 --- /dev/null +++ b/crates/query/fixtures/tron/queries/transactions_by_type/result.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c5514c34e798899930a6714a91df35da6b7e19f96ef6650d328ee9500736449d +size 137679 diff --git a/crates/query/fixtures/tron/queries/transfer_asset_transactions/query.json b/crates/query/fixtures/tron/queries/transfer_asset_transactions/query.json new file mode 100644 index 0000000..e6449c2 --- /dev/null +++ b/crates/query/fixtures/tron/queries/transfer_asset_transactions/query.json @@ -0,0 +1,25 @@ +{ + "type": "tron", + "fromBlock": 82644089, + "toBlock": 82644089, + "fields": { + "block": { + "number": true, + "hash": true + }, + "transaction": { + "transactionIndex": true, + "hash": true, + "type": true, + "parameter": true, + "fee": true, + "netUsage": true, + "netFee": true + } + }, + "transferAssetTransactions": [ + { + "asset": ["31303035313134"] + } + ] +} diff --git a/crates/query/fixtures/tron/queries/transfer_asset_transactions/result.json b/crates/query/fixtures/tron/queries/transfer_asset_transactions/result.json new file mode 100644 index 0000000..c7b0675 --- /dev/null +++ b/crates/query/fixtures/tron/queries/transfer_asset_transactions/result.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a400f2fc6ae48c2d83a30c0894b24fa82f4378ce59066a0910b06da26ff81feb +size 45068 diff --git a/crates/query/fixtures/tron/queries/transfer_transactions/query.json b/crates/query/fixtures/tron/queries/transfer_transactions/query.json new file mode 100644 index 0000000..69155b4 --- /dev/null +++ b/crates/query/fixtures/tron/queries/transfer_transactions/query.json @@ -0,0 +1,29 @@ +{ + "type": "tron", + "fromBlock": 82644089, + "toBlock": 82644098, + "fields": { + "block": { + "number": true, + "hash": true, + "timestamp": true + }, + "transaction": { + "transactionIndex": true, + "hash": true, + "type": true, + "parameter": true, + "feeLimit": true, + "fee": true, + "netFee": true, + "netUsage": true, + "timestamp": true, + "expiration": true + } + }, + "transferTransactions": [ + { + "owner": ["4192ddf3501ad77cfd87c32594207c8fcbe107b4bd"] + } + ] +} diff --git a/crates/query/fixtures/tron/queries/transfer_transactions/result.json b/crates/query/fixtures/tron/queries/transfer_transactions/result.json new file mode 100644 index 0000000..e150f0e --- /dev/null +++ b/crates/query/fixtures/tron/queries/transfer_transactions/result.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:061d190251901f9ac789e40395930e8a52202c9883d83479470517566b352f92 +size 3194 diff --git a/crates/query/fixtures/tron/queries/trigger_smart_contract/query.json b/crates/query/fixtures/tron/queries/trigger_smart_contract/query.json new file mode 100644 index 0000000..084005a --- /dev/null +++ b/crates/query/fixtures/tron/queries/trigger_smart_contract/query.json @@ -0,0 +1,28 @@ +{ + "type": "tron", + "fromBlock": 82644089, + "toBlock": 82644089, + "fields": { + "block": { + "number": true, + "hash": true + }, + "transaction": { + "transactionIndex": true, + "hash": true, + "type": true, + "parameter": true, + "feeLimit": true, + "fee": true, + "energyUsageTotal": true, + "netUsage": true, + "result": true + } + }, + "triggerSmartContractTransactions": [ + { + "contract": ["41a614f803b6fd780986a42c78ec9c7f77e6ded13c"], + "sighash": ["a9059cbb"] + } + ] +} diff --git a/crates/query/fixtures/tron/queries/trigger_smart_contract/result.json b/crates/query/fixtures/tron/queries/trigger_smart_contract/result.json new file mode 100644 index 0000000..a0add9e --- /dev/null +++ b/crates/query/fixtures/tron/queries/trigger_smart_contract/result.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:11c1c22187312b2b9267ba74f80f13adbc7c81c9516fe1f6752f51b78f0e95e6 +size 62933 diff --git a/crates/query/fixtures/tron/queries/trigger_smart_contract_with_relations/query.json b/crates/query/fixtures/tron/queries/trigger_smart_contract_with_relations/query.json new file mode 100644 index 0000000..7748982 --- /dev/null +++ b/crates/query/fixtures/tron/queries/trigger_smart_contract_with_relations/query.json @@ -0,0 +1,38 @@ +{ + "type": "tron", + "fromBlock": 82644089, + "toBlock": 82644120, + "fields": { + "block": { + "number": true, + "hash": true + }, + "transaction": { + "transactionIndex": true, + "hash": true, + "type": true, + "contractAddress": true + }, + "log": { + "transactionIndex": true, + "logIndex": true, + "address": true, + "topics": true + }, + "internalTransaction": { + "transactionIndex": true, + "internalTransactionIndex": true, + "callerAddress": true, + "transferToAddress": true, + "callValueInfo": true + } + }, + "triggerSmartContractTransactions": [ + { + "contract": ["4139dd12a54e2bab7c82aa14a1e158b34263d2d510"], + "sighash": ["6f21b898"], + "logs": true, + "internalTransactions": true + } + ] +} diff --git a/crates/query/fixtures/tron/queries/trigger_smart_contract_with_relations/result.json b/crates/query/fixtures/tron/queries/trigger_smart_contract_with_relations/result.json new file mode 100644 index 0000000..7f78e0d --- /dev/null +++ b/crates/query/fixtures/tron/queries/trigger_smart_contract_with_relations/result.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1d5a35da3269eb3567a65afb7a30f8c375e090e3beb8a67eaf7a07a670da6544 +size 301047