eip-1193 0.2.3 → 0.2.4
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 +31 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -18,6 +18,16 @@ export type EIP1193Transaction = {
|
|
|
18
18
|
s: EIP1193QUANTITY;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
+
export type EIP1193TransactionData = {
|
|
22
|
+
from: EIP1193Account;
|
|
23
|
+
to: EIP1193Account;
|
|
24
|
+
gas: EIP1193QUANTITY;
|
|
25
|
+
gasPrice: EIP1193QUANTITY;
|
|
26
|
+
value: EIP1193QUANTITY;
|
|
27
|
+
data: EIP1193DATA;
|
|
28
|
+
nonce: EIP1193QUANTITY;
|
|
29
|
+
};
|
|
30
|
+
|
|
21
31
|
export type EIP1193SyncingStatus = {
|
|
22
32
|
startingBlock: EIP1193QUANTITY;
|
|
23
33
|
currentBlock: EIP1193QUANTITY;
|
|
@@ -250,12 +260,12 @@ export type EIP1193LegacySignRequest = {
|
|
|
250
260
|
|
|
251
261
|
export type EIP1193SignTransactionRequest = {
|
|
252
262
|
readonly method: "eth_signTransaction";
|
|
253
|
-
readonly params: [
|
|
263
|
+
readonly params: [EIP1193TransactionData];
|
|
254
264
|
};
|
|
255
265
|
|
|
256
266
|
export type EIP1193SendTransactionRequest = {
|
|
257
267
|
readonly method: "eth_sendTransaction";
|
|
258
|
-
readonly params: [
|
|
268
|
+
readonly params: [EIP1193TransactionData];
|
|
259
269
|
};
|
|
260
270
|
|
|
261
271
|
export type EIP1193SendRawTransactionRequest = {
|
|
@@ -438,7 +448,25 @@ export type EIP1193Request =
|
|
|
438
448
|
| ERIP1193SwitchChainRequest
|
|
439
449
|
| ERIP1193AddChainRequest
|
|
440
450
|
| EIP1193SubscribeRequest
|
|
441
|
-
| EIP1193UnsubscribeRequest
|
|
451
|
+
| EIP1193UnsubscribeRequest
|
|
452
|
+
| EIP1193GasPriceRequest;
|
|
453
|
+
|
|
454
|
+
export type EIP1193Response =
|
|
455
|
+
| Promise<EIP1193ChainId>
|
|
456
|
+
| Promise<EIP1193SyncingStatus | false>
|
|
457
|
+
| Promise<EIP1193QUANTITY>
|
|
458
|
+
| Promise<EIP1193BlockWithTransactions>
|
|
459
|
+
| Promise<EIP1193Transaction>
|
|
460
|
+
| Promise<EIP1193TransactionReceipt>
|
|
461
|
+
| Promise<EIP1193Block>
|
|
462
|
+
| Promise<EIP1193Log[]>
|
|
463
|
+
| Promise<EIP1193DATA>
|
|
464
|
+
| Promise<EIP1193ChainId>
|
|
465
|
+
| Promise<EIP1193Accounts>
|
|
466
|
+
| Promise<EIP1193SwitchChainError>
|
|
467
|
+
| Promise<EIP1193AddChainError>
|
|
468
|
+
| Promise<string>
|
|
469
|
+
| Promise<boolean>;
|
|
442
470
|
|
|
443
471
|
export type EIP1193GenericRequest = {
|
|
444
472
|
method: string;
|