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

Introduce framework-agnostic TransactionSigner and TypeDataSigner interfaces which replace the previous usage of the signer/provider #84

Merged
merged 16 commits into from
Feb 23, 2024
Merged
14 changes: 9 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
# Changelog

## 1.4.0 (2023-12-08)
## 1.5.0 (2024-02-16)

- 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
- Introduce framework-agnostic `TransactionSigner` and `TypeDataSigner` interfaces which replace the previous usage of the signer/provider

## 1.4.2 (2024-02-03)

- Remove nonce from serialization/deserialization of offchain attestations

## 1.4.1 (2024-02-02)

- Check for ethers v6 compatibility

## 1.4.2 (2024-02-03)
## 1.4.0 (2023-12-08)

- Remove nonce from serialization/deserialization of offchain attestations
- 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
6 changes: 3 additions & 3 deletions dist/eas.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Overrides } from 'ethers';
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, SignerOrProvider, Transaction } from './transaction';
import { Base, Transaction, TransactionSigner } from './transaction';
export { Overrides } from 'ethers';
export * from './request';
export interface Attestation {
Expand All @@ -19,15 +19,15 @@ export interface Attestation {
data: string;
}
export interface EASOptions {
signerOrProvider?: SignerOrProvider;
signer?: TransactionSigner;
proxy?: EIP712Proxy;
}
export declare class EAS extends Base<EASContract> {
private proxy?;
private delegated?;
private offchain?;
constructor(address: string, options?: EASOptions);
connect(signerOrProvider: SignerOrProvider): this;
connect(signer: TransactionSigner): this;
getVersion(): Promise<string>;
getAttestation(uid: string): Promise<Attestation>;
isAttestationValid(uid: string): Promise<boolean>;
Expand Down
8 changes: 4 additions & 4 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.

6 changes: 3 additions & 3 deletions dist/eip712-proxy.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { EIP712Proxy as EIP712ProxyContract } from '@ethereum-attestation-servic
import { Overrides } from 'ethers';
import { DelegatedProxy } from './offchain';
import { DelegatedProxyAttestationRequest, DelegatedProxyRevocationRequest, MultiDelegatedProxyAttestationRequest, MultiDelegatedProxyRevocationRequest } from './request';
import { Base, SignerOrProvider, Transaction } from './transaction';
import { Base, Transaction, TransactionSigner } from './transaction';
export interface EIP712ProxyOptions {
signerOrProvider?: SignerOrProvider;
signer?: TransactionSigner;
}
export declare class EIP712Proxy extends Base<EIP712ProxyContract> {
private delegated?;
constructor(address: string, options?: EIP712ProxyOptions);
connect(signerOrProvider: SignerOrProvider): this;
connect(signer: TransactionSigner): this;
getVersion(): Promise<string>;
getEAS(): Promise<string>;
getName(): Promise<string>;
Expand Down
8 changes: 4 additions & 4 deletions dist/eip712-proxy.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/eip712-proxy.js.map

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

1 change: 1 addition & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ export * from './offchain';
export * from './request';
export * from './schema-encoder';
export * from './schema-registry';
export * from './transaction';
export * from './utils';
1 change: 1 addition & 0 deletions dist/index.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/index.js.map

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

6 changes: 3 additions & 3 deletions dist/indexer.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Indexer as IndexerContract } from '@ethereum-attestation-service/eas-contracts';
import { Overrides } from 'ethers';
import { Base, SignerOrProvider, Transaction } from './transaction';
import { Base, Transaction, TransactionSigner } from './transaction';
export interface IndexerOptions {
signerOrProvider?: SignerOrProvider;
signer?: TransactionSigner;
}
export interface UIDOptions {
uid: string;
Expand Down Expand Up @@ -46,7 +46,7 @@ export interface GetSchemaAttestationUIDCountOptions {
export declare class Indexer extends Base<IndexerContract> {
private delegated?;
constructor(address: string, options?: IndexerOptions);
connect(signerOrProvider: SignerOrProvider): this;
connect(signer: TransactionSigner): this;
getVersion(): Promise<string>;
getEAS(): Promise<string>;
indexAttestation({ uid }: IndexAttestationOptions, overrides?: Overrides): Promise<Transaction<void>>;
Expand Down
8 changes: 4 additions & 4 deletions dist/indexer.js

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

Loading
Loading