eip-1193 0.2.4 → 0.3.0

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.
Files changed (2) hide show
  1. package/index.d.ts +21 -21
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -20,12 +20,12 @@ export type EIP1193Transaction = {
20
20
 
21
21
  export type EIP1193TransactionData = {
22
22
  from: EIP1193Account;
23
- to: EIP1193Account;
24
- gas: EIP1193QUANTITY;
25
- gasPrice: EIP1193QUANTITY;
26
- value: EIP1193QUANTITY;
27
- data: EIP1193DATA;
28
- nonce: EIP1193QUANTITY;
23
+ to?: EIP1193Account;
24
+ gas?: EIP1193QUANTITY;
25
+ gasPrice?: EIP1193QUANTITY;
26
+ value?: EIP1193QUANTITY;
27
+ data?: EIP1193DATA;
28
+ nonce?: EIP1193QUANTITY;
29
29
  };
30
30
 
31
31
  export type EIP1193SyncingStatus = {
@@ -452,21 +452,21 @@ export type EIP1193Request =
452
452
  | EIP1193GasPriceRequest;
453
453
 
454
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>;
455
+ | EIP1193ChainId
456
+ | EIP1193SyncingStatus | false
457
+ | EIP1193QUANTITY
458
+ | EIP1193BlockWithTransactions
459
+ | EIP1193Transaction
460
+ | EIP1193TransactionReceipt
461
+ | EIP1193Block
462
+ | EIP1193Log[]
463
+ | EIP1193DATA
464
+ | EIP1193ChainId
465
+ | EIP1193Accounts
466
+ | EIP1193SwitchChainError
467
+ | EIP1193AddChainError
468
+ | string
469
+ | boolean;
470
470
 
471
471
  export type EIP1193GenericRequest = {
472
472
  method: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eip-1193",
3
- "version": "0.2.4",
3
+ "version": "0.3.0",
4
4
  "description": "Types for EIP-1193",
5
5
  "keywords": [],
6
6
  "author": "",