Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eth-provider-types

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eth-provider-types - npm Package Compare versions

Comparing version 0.1.0-beta.0 to 0.1.0-beta.1

10

CHANGELOG.md
# 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 @@

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc