Skip to content

Commit

Permalink
Merge pull request #119 from ethereum-attestation-service/refactor-utils
Browse files Browse the repository at this point in the history
Refactor: Move getUID, getSchemaUID, and getOffchainUID to EAS, SchemaRegistry, and Offchain respectively
  • Loading branch information
lbeder authored Oct 6, 2024
2 parents 1afc7e2 + 1dd42d8 commit a704273
Show file tree
Hide file tree
Showing 23 changed files with 328 additions and 281 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.7.0

- Move getUID, getSchemaUID, and getOffchainUID to EAS, SchemaRegistry, and Offchain respectively

## 2.6.1

- Fix exports
Expand Down
1 change: 1 addition & 0 deletions dist/eas.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export declare class EAS extends Base<EASContract> {
getNonce(address: string): Promise<bigint>;
getAttestTypeHash(): Promise<string>;
getRevokeTypeHash(): Promise<string>;
static getAttestationUID: (schema: string, recipient: string, attester: string, time: bigint, expirationTime: bigint, revocable: boolean, refUID: string, data: string, bump: number) => string;
private setDelegated;
private setOffchain;
private isLegacyContract;
Expand Down
3 changes: 3 additions & 0 deletions dist/eas.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/eas.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/offchain/offchain.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ export declare class Offchain extends TypedDataHandler {
signOffchainAttestation(params: OffchainAttestationParams, signer: TypeDataSigner, options?: OffchainAttestationOptions): Promise<SignedOffchainAttestation>;
verifyOffchainAttestationSignature(attester: string, attestation: SignedOffchainAttestation): boolean;
private getOffchainUID;
static getOffchainUID(version: OffchainAttestationVersion, attestation: SignedOffchainAttestation): string;
static getOffchainUID(version: number, schema: string, recipient: string, time: bigint, expirationTime: bigint, revocable: boolean, refUID: string, data: string, salt?: string): string;
}
67 changes: 63 additions & 4 deletions dist/offchain/offchain.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a704273

Please sign in to comment.