-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #498 from multiversx/return-data-8
Recover return data of smart contract (new implementation)
- Loading branch information
Showing
10 changed files
with
12,039 additions
and
70 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
# Testdata | ||
|
||
## Files `transactions.mainnet.json` | ||
|
||
Transactions were sampled from the mainnet BigQuery dataset: | ||
|
||
```sql | ||
DECLARE | ||
TIMESTAMP_START DATE DEFAULT '2024-09-01'; | ||
DECLARE | ||
TIMESTAMP_END DATE DEFAULT '2024-09-03'; | ||
-- Contract execute, with success | ||
( | ||
SELECT | ||
`_id`, | ||
'execute_success' `kind` | ||
FROM | ||
`multiversx-blockchain-etl.crypto_multiversx_mainnet_eu.transactions` | ||
WHERE | ||
DATE(`timestamp`) >= TIMESTAMP_START | ||
AND DATE(`timestamp`) <= TIMESTAMP_END | ||
AND `isScCall` = TRUE | ||
AND ARRAY_LENGTH(`esdtValues`) = 0 | ||
AND `status` = 'success' | ||
AND RAND() < 0.25 | ||
LIMIT | ||
250 ) | ||
UNION ALL | ||
-- Contract execute, with error | ||
( | ||
SELECT | ||
`_id`, | ||
'execute_error' `kind` | ||
FROM | ||
`multiversx-blockchain-etl.crypto_multiversx_mainnet_eu.transactions` | ||
WHERE | ||
DATE(`timestamp`) >= TIMESTAMP_START | ||
AND DATE(`timestamp`) <= TIMESTAMP_END | ||
AND `isScCall` = TRUE | ||
AND ARRAY_LENGTH(`esdtValues`) = 0 | ||
AND `status` = 'fail' | ||
AND RAND() < 0.25 | ||
LIMIT | ||
250 ) | ||
UNION ALL | ||
-- Contract transfer & execute, with success | ||
( | ||
SELECT | ||
`_id`, | ||
'transfer_execute_success' `kind` | ||
FROM | ||
`multiversx-blockchain-etl.crypto_multiversx_mainnet_eu.transactions` | ||
WHERE | ||
DATE(`timestamp`) >= TIMESTAMP_START | ||
AND DATE(`timestamp`) <= TIMESTAMP_END | ||
AND `isScCall` = TRUE | ||
AND ARRAY_LENGTH(`esdtValues`) > 0 | ||
AND `status` = 'success' | ||
AND RAND() < 0.25 | ||
LIMIT | ||
250 ) | ||
UNION ALL | ||
-- Contract transfer & execute, with error | ||
( | ||
SELECT | ||
`_id`, | ||
'transfer_execute_error' `kind` | ||
FROM | ||
`multiversx-blockchain-etl.crypto_multiversx_mainnet_eu.transactions` | ||
WHERE | ||
DATE(`timestamp`) >= TIMESTAMP_START | ||
AND DATE(`timestamp`) <= TIMESTAMP_END | ||
AND `isScCall` = TRUE | ||
AND ARRAY_LENGTH(`esdtValues`) > 0 | ||
AND `status` = 'fail' | ||
AND RAND() < 0.25 | ||
LIMIT | ||
250) | ||
UNION ALL | ||
-- Relayed, with success | ||
( | ||
SELECT | ||
`_id`, | ||
'relayed_success' `kind` | ||
FROM | ||
`multiversx-blockchain-etl.crypto_multiversx_mainnet_eu.transactions` | ||
WHERE | ||
DATE(`timestamp`) >= TIMESTAMP_START | ||
AND DATE(`timestamp`) <= TIMESTAMP_END | ||
AND `isRelayed` = TRUE | ||
AND `status` = 'success' | ||
AND RAND() < 0.25 | ||
LIMIT | ||
50) | ||
UNION ALL | ||
-- Relayed, with failure | ||
( | ||
SELECT | ||
`_id`, | ||
'relayed_error' `kind` | ||
FROM | ||
`multiversx-blockchain-etl.crypto_multiversx_mainnet_eu.transactions` | ||
WHERE | ||
DATE(`timestamp`) >= TIMESTAMP_START | ||
AND DATE(`timestamp`) <= TIMESTAMP_END | ||
AND `isRelayed` = TRUE | ||
AND `status` = 'fail' | ||
AND RAND() < 0.25 | ||
LIMIT | ||
50) | ||
``` |
Oops, something went wrong.