eth-provider-types
Advanced tools
Comparing version 0.1.0-beta.0 to 0.1.0-beta.1
# eth-provider-types | ||
## 0.1.0-beta.1 | ||
### Patch Changes | ||
- [#305](https://github.com/BitskiCo/bitski-js/pull/305) [`eb505af`](https://github.com/BitskiCo/bitski-js/commit/eb505aff9cf0a3e338aec278be131df1b17fb66b) Thanks [@pzuraq](https://github.com/pzuraq)! - - Add destructor for store | ||
- Also thread `Extra` type through provider and add `requestWithExtra` so | ||
requests can be made with additional context. Also add a few missing eth | ||
methods. | ||
- Make stores able to return MaybePromise so they can be more efficient | ||
## 0.1.0-beta.0 | ||
@@ -4,0 +14,0 @@ |
@@ -64,2 +64,4 @@ /** | ||
wallet_switchEthereumChain = 'wallet_switchEthereumChain', | ||
wallet_requestPermissions = 'wallet_requestPermissions', | ||
wallet_getPermissions = 'wallet_getPermissions', | ||
} | ||
@@ -253,2 +255,15 @@ | ||
export interface Web3WalletPermission { | ||
// The name of the method corresponding to the permission | ||
parentCapability: string; | ||
// The date the permission was granted, in UNIX epoch time | ||
date?: number; | ||
} | ||
export interface RequestedPermissions { | ||
// eslint-disable-next-line @typescript-eslint/ban-types | ||
[methodName: string]: {}; // an empty object, for future extensibility | ||
} | ||
export type EthMethodParams = { | ||
@@ -332,2 +347,4 @@ [EthMethod.web3_clientVersion]: void; | ||
[EthMethod.wallet_switchEthereumChain]: [SwitchEthereumChainParameter]; | ||
[EthMethod.wallet_getPermissions]: void; | ||
[EthMethod.wallet_requestPermissions]: RequestedPermissions[]; | ||
}; | ||
@@ -393,2 +410,4 @@ | ||
[EthMethod.wallet_switchEthereumChain]: null; | ||
[EthMethod.wallet_getPermissions]: Web3WalletPermission[]; | ||
[EthMethod.wallet_requestPermissions]: Web3WalletPermission[]; | ||
}; | ||
@@ -395,0 +414,0 @@ |
{ | ||
"name": "eth-provider-types", | ||
"version": "0.1.0-beta.0", | ||
"version": "0.1.0-beta.1", | ||
"description": "TypeScript types for Ethereum providers, with types for every RPC method", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22092
455