mirror of
https://github.com/status-im/EIPs.git
synced 2025-02-23 20:28:21 +00:00
Automatically merged updates to draft EIP(s) 1193 (#2772)
Hi, I'm a bot! This change was automatically merged because: - It only modifies existing Draft or Last Call EIP(s) - The PR was approved or written by at least one author of each modified EIP - The build is passing
This commit is contained in:
parent
65e0950653
commit
c89c31bec6
@ -71,8 +71,8 @@ All API entities **MUST** adhere to the types and interfaces defined in this sec
|
||||
|
||||
```typescript
|
||||
interface RequestArguments {
|
||||
method: string;
|
||||
params?: unknown[] | object;
|
||||
readonly method: string;
|
||||
readonly params?: readonly unknown[] | object;
|
||||
}
|
||||
|
||||
Provider.request(args: RequestArguments): Promise<unknown>;
|
||||
@ -119,7 +119,6 @@ If an RPC method defined in a finalized EIP is not supported, it **SHOULD** be r
|
||||
|
||||
```typescript
|
||||
interface ProviderRpcError extends Error {
|
||||
message: string;
|
||||
code: number;
|
||||
data?: unknown;
|
||||
}
|
||||
@ -176,8 +175,8 @@ When emitted, the `message` event **MUST** be emitted with an object argument of
|
||||
|
||||
```typescript
|
||||
interface ProviderMessage {
|
||||
type: string;
|
||||
data: unknown;
|
||||
readonly type: string;
|
||||
readonly data: unknown;
|
||||
}
|
||||
```
|
||||
|
||||
@ -189,10 +188,10 @@ If the Provider receives a subscription message from e.g. an `eth_subscribe` sub
|
||||
|
||||
```typescript
|
||||
interface EthSubscription extends ProviderMessage {
|
||||
type: 'eth_subscription';
|
||||
data: {
|
||||
subscription: string;
|
||||
result: unknown;
|
||||
readonly type: 'eth_subscription';
|
||||
readonly data: {
|
||||
readonly subscription: string;
|
||||
readonly result: unknown;
|
||||
};
|
||||
}
|
||||
```
|
||||
@ -212,7 +211,7 @@ This event **MUST** be emitted with an object of the following form:
|
||||
|
||||
```typescript
|
||||
interface ProviderConnectInfo {
|
||||
chainId: string;
|
||||
readonly chainId: string;
|
||||
}
|
||||
```
|
||||
|
||||
@ -333,8 +332,8 @@ Makes an Ethereum RPC method call.
|
||||
|
||||
```typescript
|
||||
interface RequestArguments {
|
||||
method: string;
|
||||
params?: unknown[] | object;
|
||||
readonly method: string;
|
||||
readonly params?: readonly unknown[] | object;
|
||||
}
|
||||
|
||||
Provider.request(args: RequestArguments): Promise<unknown>;
|
||||
@ -371,7 +370,7 @@ The Provider emits `connect` when it:
|
||||
|
||||
```typescript
|
||||
interface ProviderConnectInfo {
|
||||
chainId: string;
|
||||
readonly chainId: string;
|
||||
}
|
||||
|
||||
Provider.on('connect', listener: (connectInfo: ProviderConnectInfo) => void): Provider;
|
||||
@ -416,8 +415,8 @@ Messages may include JSON-RPC notifications, GraphQL subscriptions, and/or any o
|
||||
|
||||
```typescript
|
||||
interface ProviderMessage {
|
||||
type: string;
|
||||
data: unknown;
|
||||
readonly type: string;
|
||||
readonly data: unknown;
|
||||
}
|
||||
|
||||
Provider.on('message', listener: (message: ProviderMessage) => void): Provider;
|
||||
|
Loading…
x
Reference in New Issue
Block a user