Skip to content
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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
945 changes: 945 additions & 0 deletions packages/agw-client/src/abis/BridgeHubAbi.ts

Large diffs are not rendered by default.

837 changes: 837 additions & 0 deletions packages/agw-client/src/abis/DelegateRegistry.ts

Large diffs are not rendered by default.

153 changes: 153 additions & 0 deletions packages/agw-client/src/abis/ExclusiveDelegateResolver.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
export const ExclusiveDelegateResolverAbi = [
{
type: 'function',
name: 'DELEGATE_REGISTRY',
inputs: [],
outputs: [
{
name: '',
type: 'address',
internalType: 'address',
},
],
stateMutability: 'view',
},
{
type: 'function',
name: 'GLOBAL_DELEGATION',
inputs: [],
outputs: [
{
name: '',
type: 'bytes24',
internalType: 'bytes24',
},
],
stateMutability: 'view',
},
{
type: 'function',
name: 'decodeRightsExpiration',
inputs: [
{
name: 'rights',
type: 'bytes32',
internalType: 'bytes32',
},
],
outputs: [
{
name: '',
type: 'bytes24',
internalType: 'bytes24',
},
{
name: '',
type: 'uint40',
internalType: 'uint40',
},
],
stateMutability: 'pure',
},
{
type: 'function',
name: 'delegatedWalletsByRights',
inputs: [
{
name: 'wallet',
type: 'address',
internalType: 'address',
},
{
name: 'rights',
type: 'bytes24',
internalType: 'bytes24',
},
],
outputs: [
{
name: '',
type: 'address[]',
internalType: 'address[]',
},
],
stateMutability: 'view',
},
{
type: 'function',
name: 'exclusiveOwnerByRights',
inputs: [
{
name: 'contractAddress',
type: 'address',
internalType: 'address',
},
{
name: 'tokenId',
type: 'uint256',
internalType: 'uint256',
},
{
name: 'rights',
type: 'bytes24',
internalType: 'bytes24',
},
],
outputs: [
{
name: 'owner',
type: 'address',
internalType: 'address',
},
],
stateMutability: 'view',
},
{
type: 'function',
name: 'exclusiveWalletByRights',
inputs: [
{
name: 'vault',
type: 'address',
internalType: 'address',
},
{
name: 'rights',
type: 'bytes24',
internalType: 'bytes24',
},
],
outputs: [
{
name: '',
type: 'address',
internalType: 'address',
},
],
stateMutability: 'view',
},
{
type: 'function',
name: 'generateRightsWithExpiration',
inputs: [
{
name: 'rightsIdentifier',
type: 'bytes24',
internalType: 'bytes24',
},
{
name: 'expiration',
type: 'uint40',
internalType: 'uint40',
},
],
outputs: [
{
name: '',
type: 'bytes32',
internalType: 'bytes32',
},
],
stateMutability: 'pure',
},
] as const;

Check warning on line 153 in packages/agw-client/src/abis/ExclusiveDelegateResolver.ts

View check run for this annotation

Codecov / codecov/patch

packages/agw-client/src/abis/ExclusiveDelegateResolver.ts#L2-L153

Added lines #L2 - L153 were not covered by tests
Loading
Loading