-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: l1 execution #516
Merged
Merged
feat: l1 execution #516
Changes from 39 commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
e1eb4e5
fix: eth relayer
33b96f9
refactor: use deserialization for payload
172745f
fix: l1 avatar payload serialization
b73dec3
fix: enforce timestamp exceed max voting timestamp
d23e659
feat: working L1 avatar execution
72ab36e
chore: mock core contracts and avatar execution for testing
e0077ed
chore: deps management
944a551
chore: test/ dir with lq exec test
813fd0e
chore: more deps managment
b63ed4d
chore: hardhat config
082c97c
chore: formatting
73e3e58
Merge branch 'develop' into fix_l1_exec
Orland0x 4770766
Merge branch 'develop' into fix_l1_exec
804a88c
chore: L1 Avatar unit forge tests
8d8454e
chore: deps and cleanup
cd9cda0
chore: temp remove deps.sol
afdb9af
fix: relayer imports
af30b06
chore: foundry deps
70be85b
chore: fix typo
4b29fb5
chore: re-add stark sig auth test
5ca5da2
chore: l1 execution revert tests
360357a
chore: l1 execution bash script
9090930
chore: updated deps
4ab65ec
chore: updated to latest safe versions for setup and pull artifacts f…
818b037
chore: cleanup test
f54fcac
chore: updated sol imports
13ac9ac
Merge branch 'develop' into fix_l1_exec
1132599
feat: get strategy type on eth relayer
3a22511
chore: fixe remappings
d1a3b3e
chore: More test coverage and CI integration
571ec08
chore: cleanup
fa6c7d0
chore: PR fixes
777942d
chore: more coverage and refactor
95d9631
chore: checks on space manager during init
498879d
chore: fixed revert string
1c055a5
chore: update .env.example
Orland0x eda97bd
Merge branch 'develop' into fix_l1_exec
091b857
chore: moved safe utils to external sub dir
a36f69a
chore formatting
4ce5bce
feat: quorum setter and test
a34512e
vhore: test invalid space call exec strat
ddafb71
chore: formatting
3f2d438
chore: fix revert msg in test
27f5b1c
feat: setters for Starknet Core and Eth Relayer contracts and tests
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
NETWORK_URL= | ||
STARKNET_NETWORK_URL= | ||
ETH_NETWORK_URL= | ||
ADDRESS= | ||
PK= | ||
STARKNET_SIERRA_COMPILE_PATH= | ||
# Needed for Devnet Postman Endpoint to work | ||
OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES |
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,160 @@ | ||
{ | ||
"allowed_libfuncs": [ | ||
"alloc_local", | ||
"array_append", | ||
"array_get", | ||
"array_len", | ||
"array_new", | ||
"array_pop_front", | ||
"array_pop_front_consume", | ||
"array_slice", | ||
"array_snapshot_pop_back", | ||
"array_snapshot_pop_front", | ||
"bitwise", | ||
"bool_and_impl", | ||
"bool_not_impl", | ||
"bool_or_impl", | ||
"bool_to_felt252", | ||
"bool_xor_impl", | ||
"branch_align", | ||
"call_contract_syscall", | ||
"class_hash_const", | ||
"class_hash_to_felt252", | ||
"class_hash_try_from_felt252", | ||
"contract_address_const", | ||
"contract_address_to_felt252", | ||
"contract_address_try_from_felt252", | ||
"deploy_syscall", | ||
"disable_ap_tracking", | ||
"downcast", | ||
"drop", | ||
"dup", | ||
"ec_neg", | ||
"ec_point_from_x_nz", | ||
"ec_point_is_zero", | ||
"ec_point_try_new_nz", | ||
"ec_point_unwrap", | ||
"ec_point_zero", | ||
"ec_state_add", | ||
"ec_state_add_mul", | ||
"ec_state_init", | ||
"ec_state_try_finalize_nz", | ||
"emit_event_syscall", | ||
"enable_ap_tracking", | ||
"enum_init", | ||
"enum_match", | ||
"enum_snapshot_match", | ||
"felt252_add", | ||
"felt252_const", | ||
"felt252_dict_entry_finalize", | ||
"felt252_dict_entry_get", | ||
"felt252_dict_new", | ||
"felt252_dict_squash", | ||
"felt252_div", | ||
"felt252_is_zero", | ||
"felt252_mul", | ||
"felt252_sub", | ||
"finalize_locals", | ||
"function_call", | ||
"get_block_hash_syscall", | ||
"get_builtin_costs", | ||
"get_execution_info_syscall", | ||
"hades_permutation", | ||
"into_box", | ||
"jump", | ||
"keccak_syscall", | ||
"library_call_syscall", | ||
"match_nullable", | ||
"null", | ||
"nullable_from_box", | ||
"pedersen", | ||
"rename", | ||
"replace_class_syscall", | ||
"revoke_ap_tracking", | ||
"secp256k1_add_syscall", | ||
"secp256k1_get_xy_syscall", | ||
"secp256k1_get_point_from_x_syscall", | ||
"secp256k1_mul_syscall", | ||
"secp256k1_new_syscall", | ||
"send_message_to_l1_syscall", | ||
"snapshot_take", | ||
"storage_address_from_base", | ||
"storage_address_from_base_and_offset", | ||
"storage_address_to_felt252", | ||
"storage_address_try_from_felt252", | ||
"storage_base_address_const", | ||
"storage_base_address_from_felt252", | ||
"storage_read_syscall", | ||
"storage_write_syscall", | ||
"store_local", | ||
"store_temp", | ||
"struct_construct", | ||
"struct_deconstruct", | ||
"struct_snapshot_deconstruct", | ||
"u256_safe_divmod", | ||
"u256_sqrt", | ||
"u256_is_zero", | ||
"u128_const", | ||
"u128_eq", | ||
"u128_is_zero", | ||
"u128_overflowing_add", | ||
"u128_overflowing_sub", | ||
"u128_safe_divmod", | ||
"u128_sqrt", | ||
"u128_byte_reverse", | ||
"u128_to_felt252", | ||
"u128_guarantee_mul", | ||
"u128_mul_guarantee_verify", | ||
"u128s_from_felt252", | ||
"u16_bitwise", | ||
"u16_const", | ||
"u16_eq", | ||
"u16_is_zero", | ||
"u16_overflowing_add", | ||
"u16_overflowing_sub", | ||
"u16_safe_divmod", | ||
"u16_sqrt", | ||
"u16_to_felt252", | ||
"u16_try_from_felt252", | ||
"u16_wide_mul", | ||
"u32_bitwise", | ||
"u32_const", | ||
"u32_eq", | ||
"u32_is_zero", | ||
"u32_overflowing_add", | ||
"u32_overflowing_sub", | ||
"u32_safe_divmod", | ||
"u32_sqrt", | ||
"u32_to_felt252", | ||
"u32_try_from_felt252", | ||
"u32_wide_mul", | ||
"u512_safe_divmod_by_u256", | ||
"u64_bitwise", | ||
"u64_const", | ||
"u64_eq", | ||
"u64_is_zero", | ||
"u64_overflowing_add", | ||
"u64_overflowing_sub", | ||
"u64_safe_divmod", | ||
"u64_sqrt", | ||
"u64_to_felt252", | ||
"u64_try_from_felt252", | ||
"u64_wide_mul", | ||
"u8_bitwise", | ||
"u8_const", | ||
"u8_eq", | ||
"u8_is_zero", | ||
"u8_overflowing_add", | ||
"u8_overflowing_sub", | ||
"u8_safe_divmod", | ||
"u8_sqrt", | ||
"u8_to_felt252", | ||
"u8_try_from_felt252", | ||
"u8_wide_mul", | ||
"unbox", | ||
"unwrap_non_zero", | ||
"upcast", | ||
"withdraw_gas", | ||
"withdraw_gas_all" | ||
] | ||
} |
Submodule openzeppelin-contracts
added at
fd81a9
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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
@gnosis.pm/safe-contracts=lib/safe-contracts | ||
@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts | ||
@gnosis.pm/zodiac/=lib/zodiac/ | ||
@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts | ||
@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts | ||
@safe-global/safe-contracts/=lib/safe-contracts/ |
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,7 @@ | ||
/// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity ^0.8.19; | ||
|
||
import "@safe-global/safe-contracts/contracts/SafeL2.sol"; | ||
import "@safe-global/safe-contracts/contracts/proxies/SafeProxyFactory.sol"; | ||
import "@gnosis.pm/zodiac/contracts/factory/ModuleProxyFactory.sol"; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
? who's pk is this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The address above it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
haha yeah I figured but I just wanted to make sure this was indeed a random
pk
and not one of yours :)