Skip to content

Commit

Permalink
Merge pull request #92 from ethereum-attestation-service/eip712-fixes…
Browse files Browse the repository at this point in the history
…-2.1.0

Fix delegated attestations backward compatibility issues for older deployments
  • Loading branch information
lbeder authored Apr 13, 2024
2 parents ef088c1 + 574f75d commit b246947
Show file tree
Hide file tree
Showing 29 changed files with 2,377 additions and 1,617 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
cache: 'pnpm'

- name: Install SDK dependencies
Expand Down
22 changes: 16 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,37 @@
# Changelog

## 2.0.1-beta.1 (2024-04-04)
## 2.1.0-beta.1

- Automatically derive the EIP712 version via the domain separator
- Improve delegated attestation backward compatibility

## 2.0.1-beta.1

- Fix signer assignment during `connect` (2.0.0-beta.1 regression).

## 2.0.0-beta.1 (2024-03-21)
## 2.0.0-beta.1

- Don't automatically broadcast transactions. In order to broadcast transactions, it's now always necessary to call the `wait()` function.

## 1.5.0 (2024-02-16)
## 1.6.0

- Automatically derive the EIP712 version via the domain separator
- Improve delegated attestation backward compatibility

## 1.5.0

- Introduce framework-agnostic `TransactionSigner` and `TypeDataSigner` interfaces which replace the previous usage of the signer/provider
- Fix recipient being mandatory in `attest()` calls

## 1.4.2 (2024-02-03)
## 1.4.2

- Remove nonce from serialization/deserialization of offchain attestations

## 1.4.1 (2024-02-02)
## 1.4.1

- Check for ethers v6 compatibility

## 1.4.0 (2023-12-08)
## 1.4.0

- Add customizable salt to offchain attestations to reduce the chance of predictable UIDs (which may be abused in some very specific use-cases)
- Remove unnecessary offchain attestation version input from the `signOffchainAttestation` API
4 changes: 4 additions & 0 deletions dist/eas.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { EIP712Proxy } from './eip712-proxy';
import { Delegated, Offchain } from './offchain';
import { AttestationRequest, DelegatedAttestationRequest, DelegatedProxyAttestationRequest, DelegatedProxyRevocationRequest, DelegatedRevocationRequest, MultiAttestationRequest, MultiDelegatedAttestationRequest, MultiDelegatedProxyAttestationRequest, MultiDelegatedProxyRevocationRequest, MultiDelegatedRevocationRequest, MultiRevocationRequest, RevocationRequest } from './request';
import { Base, Transaction, TransactionSigner } from './transaction';
export { Overrides } from 'ethers';
export * from './request';
export interface Attestation {
uid: string;
Expand All @@ -25,6 +26,8 @@ export declare class EAS extends Base<EASContract> {
private proxy?;
private delegated?;
private offchain?;
private version?;
private legacyEAS;
constructor(address: string, options?: EASOptions);
connect(signer: TransactionSigner): this;
getVersion(): Promise<string>;
Expand Down Expand Up @@ -58,4 +61,5 @@ export declare class EAS extends Base<EASContract> {
getRevokeTypeHash(): Promise<string>;
private setDelegated;
private setOffchain;
private isLegacyContract;
}
235 changes: 169 additions & 66 deletions dist/eas.js

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

Loading

0 comments on commit b246947

Please sign in to comment.