-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update contracts and ABIs for preprod and testnet (#115)
- Loading branch information
Showing
5 changed files
with
267 additions
and
227 deletions.
There are no files selected for viewing
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,37 @@ | ||
## Generating contracts from BlockLake | ||
|
||
```sql | ||
-- base query | ||
with all_contracts as ( | ||
select | ||
contract_address, | ||
proxy_contract_address, | ||
block_number | ||
from proxy_contracts | ||
where contract_address in ( | ||
-- core contracts for network (e.g. mainnet, testnet, preprod) | ||
'0xacc1fb458a1317e886db376fc8141540537e68fe', | ||
'0x30770d7e3e71112d7a6b7259542d1f680a70e315', | ||
'0xdfb5f6ce42aaa7830e94ecfccad411bef4d4d5b6', | ||
'0xa44151489861fe9e3055d95adc98fbd462b948e7', | ||
'0x055733000064333caddbc92763c58bf0192ffebf' | ||
) | ||
), | ||
distinct_contracts as ( | ||
select distinct contract_address from all_contracts | ||
union all | ||
select distinct proxy_contract_address from all_contracts | ||
) | ||
|
||
|
||
-- proxy contracts | ||
select | ||
contract_address, | ||
contract_abi, | ||
bytecode_hash | ||
from contracts | ||
where contract_address in (select contract_address from distinct_contracts) | ||
|
||
-- implementation contracts | ||
select * from all_contracts | ||
``` |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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