eip-1193 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +29 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export type EIP1193Block = {
|
|
|
37
37
|
miner: EIP1193Account;
|
|
38
38
|
difficulty: EIP1193QUANTITY;
|
|
39
39
|
totalDifficulty: EIP1193QUANTITY;
|
|
40
|
-
|
|
40
|
+
extraData: EIP1193DATA;
|
|
41
41
|
size: EIP1193QUANTITY;
|
|
42
42
|
gasLimit: EIP1193QUANTITY;
|
|
43
43
|
gasUsed: EIP1193QUANTITY;
|
|
@@ -583,6 +583,34 @@ export type EIP1193ProviderWithoutEvents<T = EIP1193Request> = {
|
|
|
583
583
|
// request(args: EIP1193GenericRequest): Promise<unknown>;
|
|
584
584
|
};
|
|
585
585
|
|
|
586
|
+
// export interface EIP1193ProviderWithBasicEvents<T = EIP1193Request>
|
|
587
|
+
// extends BareEIP1193Provider<T> {
|
|
588
|
+
// on(
|
|
589
|
+
// eventName: "disconnect",
|
|
590
|
+
// listener: Listener<EIP1193ProviderRpcError>
|
|
591
|
+
// ): this;
|
|
592
|
+
// on(eventName: "accountsChanged", listener: Listener<EIP1193Account[]>): this;
|
|
593
|
+
// on(eventName: "chainChanged", listener: Listener<EIP1193ChainId>): this;
|
|
594
|
+
// on(eventName: "connect", listener: Listener<EIP1193ConnectInfoMessage>): this;
|
|
595
|
+
|
|
596
|
+
// removeListener(
|
|
597
|
+
// eventName: "disconnect",
|
|
598
|
+
// listener: Listener<EIP1193ProviderRpcError>
|
|
599
|
+
// ): this;
|
|
600
|
+
// removeListener(
|
|
601
|
+
// eventName: "accountsChanged",
|
|
602
|
+
// listener: Listener<EIP1193Account[]>
|
|
603
|
+
// ): this;
|
|
604
|
+
// removeListener(
|
|
605
|
+
// eventName: "chainChanged",
|
|
606
|
+
// listener: Listener<EIP1193ChainId>
|
|
607
|
+
// ): this;
|
|
608
|
+
// removeListener(
|
|
609
|
+
// eventName: "connect",
|
|
610
|
+
// listener: Listener<EIP1193ConnectInfoMessage>
|
|
611
|
+
// ): this;
|
|
612
|
+
// }
|
|
613
|
+
|
|
586
614
|
export interface EIP1193Provider<T = EIP1193Request>
|
|
587
615
|
extends EIP1193ProviderWithoutEvents<T> {
|
|
588
616
|
on(eventName: "message", listener: Listener<EIP1193Message>): this;
|