-
Notifications
You must be signed in to change notification settings - Fork 23
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
[WIP] AGW linking #179
base: main
Are you sure you want to change the base?
[WIP] AGW linking #179
Conversation
|
@@ -1,6 +1,8 @@ | |||
import AGWAccountAbi from '../abis/AGWAccount.js'; | |||
import { | |||
AGW_REGISTRY_ADDRESS, | |||
CANONICAL_DELEGATE_REGISTRY_ADDRESS, |
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.
Can we also export the BRIDGEHUB_ADDRESS
here?
PR-Codex overview
This PR introduces new constants and functionalities related to delegation rights and contract interactions in the
agw-client
package, enhancing the handling of linked accounts and delegation mechanisms.Detailed summary
BRIDGEHUB_ADDRESS
,CANONICAL_DELEGATE_REGISTRY_ADDRESS
,CANONICAL_EXCLUSIVE_DELEGATE_RESOLVER_ADDRESS
,AGW_LINK_DELEGATION_RIGHTS
, andNON_EXPIRING_DELEGATION_RIGHTS
.getLinkedAgw
function to retrieve linked accounts based on delegation rights.getLinkedAgw
functions.linkToAgw
function to handle linking accounts with new delegation rights.ExclusiveDelegateResolverAbi
andDelegateRegistryAbi
to define smart contract interfaces for delegation.BridgeHubAbi
andZkSyncAbi
for transaction handling and state management.