Skip to content

Commit

Permalink
Merge pull request #116 from ethereum-attestation-service/signer-only
Browse files Browse the repository at this point in the history
Support initializing/connecting SDK objects with/to non-signer providers
  • Loading branch information
lbeder authored Aug 27, 2024
2 parents cbdd1d6 + 1a88cbe commit 017ee20
Show file tree
Hide file tree
Showing 28 changed files with 563 additions and 238 deletions.
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"trailingComma": "none",
"arrowParens": "always",
"bracketSpacing": true,
"importOrderParserPlugins": ["typescript", "decorators-legacy"],
"importOrderTypeScriptVersion": "5.0.0"
}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.6.0

- Support initializing/connecting SDK objects with/to non-signer providers

## 2.5.0

- Add schema verification function
Expand Down
7 changes: 4 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, Transaction, TransactionSigner } from './transaction';
import { Base, Transaction, TransactionProvider, TransactionSigner } from './transaction';
export { Overrides } from 'ethers';
export * from './request';
export interface Attestation {
Expand All @@ -19,17 +19,18 @@ export interface Attestation {
data: string;
}
export interface EASOptions {
signer?: TransactionSigner;
signer?: TransactionSigner | TransactionProvider;
proxy?: EIP712Proxy;
}
export declare const RequireProxy: (_target: unknown, _propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
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;
connect(signer: TransactionSigner | TransactionProvider): this;
getVersion(): Promise<string>;
getAttestation(uid: string): Promise<Attestation>;
isAttestationValid(uid: string): Promise<boolean>;
Expand Down
166 changes: 114 additions & 52 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 017ee20

Please sign in to comment.