Skip to content

Commit

Permalink
feat: complete the eas module
Browse files Browse the repository at this point in the history
  • Loading branch information
Behzad-rabiei committed Aug 1, 2024
1 parent a04e5a0 commit e239f82
Show file tree
Hide file tree
Showing 12 changed files with 1,048 additions and 130 deletions.
7 changes: 3 additions & 4 deletions src/EAS/constants/attestation.constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { TypedData } from '../interfaces/attestation.interfaces'
import { parseAbiParameters } from 'viem'

export const ATTEST_TYPED_SIGNATURE =
Expand All @@ -7,7 +6,7 @@ export const REVOKE_TYPED_SIGNATURE =
'Revoke(address revoker,bytes32 schema,bytes32 uid,uint256 value,uint256 nonce,uint64 deadline)'
export const ATTEST_PRIMARY_TYPE = 'Attest'
export const REVOKE_PRIMARY_TYPE = 'Revoke'
export const ATTEST_TYPE: TypedData[] = [
export const ATTEST_TYPE = [
{ name: 'attester', type: 'address' },
{ name: 'schema', type: 'bytes32' },
{ name: 'recipient', type: 'address' },
Expand All @@ -19,7 +18,7 @@ export const ATTEST_TYPE: TypedData[] = [
{ name: 'nonce', type: 'uint256' },
{ name: 'deadline', type: 'uint64' },
]
export const REVOKE_TYPE: TypedData[] = [
export const REVOKE_TYPE = [
{ name: 'revoker', type: 'address' },
{ name: 'schema', type: 'bytes32' },
{ name: 'uid', type: 'bytes32' },
Expand All @@ -28,5 +27,5 @@ export const REVOKE_TYPE: TypedData[] = [
{ name: 'deadline', type: 'uint64' },
]
export const SCHEMA_TYPES = parseAbiParameters(
'string hash, string provider, string payload'
'bytes32 key, string provider, string secret'
)
Loading

0 comments on commit e239f82

Please sign in to comment.