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

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

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading