Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #54 from nervosnetwork/update-docs
Browse files Browse the repository at this point in the history
docs: update ethers api constructor
  • Loading branch information
RetricSu authored Nov 1, 2021
2 parents 41b39aa + 281c241 commit 6cab685
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ class Abi {
class PolyjuiceJsonRpcProvider extends providers.JsonRpcProvider {
abi: Abi;
godwoker: Godwoker;
constructor(polyjuice_config: PolyjuiceConfig, url?: ConnectionInfo | string, network?: Networkish);
enableInstantFinalityForReceipt: boolean;
constructor(polyjuiceConfig: PolyjuiceConfig, url?: ConnectionInfo | string, network?: Networkish, enableInstantFinalityForReceipt?: boolean);
setAbi(abiItems: AbiItems): void;
setMultiAbi(abiItemsArray: AbiItems[]): void;
addAbi(_abiItems: AbiItems): void;
Expand All @@ -179,14 +180,11 @@ class PolyjuiceJsonRpcProvider extends providers.JsonRpcProvider {
prepareRequest(method: string, params: any): [string, Array<any>];
}

interface PolyjuiceWebsocketProvider extends providers.WebSocketProvider {
constructor(polyjuiceConfig: PolyjuiceConfig, url: string, network?: Networkish): any;
}

class PolyjuiceWebsocketProvider extends providers.WebSocketProvider {
export declare class PolyjuiceWebsocketProvider extends providers.WebSocketProvider {
abi: Abi;
godwoker: Godwoker;
constructor(polyjuiceConfig: PolyjuiceConfig, url: string, network?: Networkish);
enableInstantFinalityForReceipt: boolean;
constructor(polyjuiceConfig: PolyjuiceConfig, url: string, network?: Networkish, enableInstantFinalityForReceipt?: boolean);
setAbi(abiItems: AbiItems): void;
setMultiAbi(abiItemsArray: AbiItems[]): void;
addAbi(_abiItems: AbiItems): void;
Expand Down

0 comments on commit 6cab685

Please sign in to comment.