New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@avalabs/vm-module-types

Package Overview
Dependencies
Maintainers
0
Versions
525
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@avalabs/vm-module-types - npm Package Compare versions

Comparing version 0.0.0-revert-20240621180629 to 0.0.0-revert-20240621191233

2

CHANGELOG.md
# @avalabs/vm-module-types
## 0.0.0-revert-20240621180629
## 0.0.0-revert-20240621191233

@@ -5,0 +5,0 @@ ### Patch Changes

{
"name": "@avalabs/vm-module-types",
"version": "0.0.0-revert-20240621180629",
"version": "0.0.0-revert-20240621191233",
"main": "src/index.ts",

@@ -5,0 +5,0 @@ "dependencies": {

@@ -33,2 +33,38 @@ import { object, string, boolean, z } from 'zod';

export enum RpcMethod {
/* EVM */
ETH_SEND_TRANSACTION = 'eth_sendTransaction',
SIGN_TYPED_DATA_V3 = 'eth_signTypedData_v3',
SIGN_TYPED_DATA_V4 = 'eth_signTypedData_v4',
SIGN_TYPED_DATA_V1 = 'eth_signTypedData_v1',
SIGN_TYPED_DATA = 'eth_signTypedData',
PERSONAL_SIGN = 'personal_sign',
ETH_SIGN = 'eth_sign',
WALLET_ADD_ETHEREUM_CHAIN = 'wallet_addEthereumChain',
WALLET_SWITCH_ETHEREUM_CHAIN = 'wallet_switchEthereumChain',
WALLET_GET_ETHEREUM_CHAIN = 'wallet_getEthereumChain',
}
export type RpcRequest = {
method: RpcMethod;
params: unknown;
};
export type RpcResponse<R = unknown, E extends Error = Error> =
| {
result: R;
}
| {
error: E;
};
export type GetNetworkFeeParams = {
isTestnet?: boolean;
chainId?: string;
chainName?: string;
rpcUrl?: string;
multiContractAddress?: string;
pollingInterval?: number;
};
export interface Module {

@@ -38,4 +74,5 @@ getManifest: () => Manifest | undefined;

getTransactionHistory: (params: GetTransactionHistory) => Promise<TransactionHistoryResponse>;
getNetworkFee: () => Promise<NetworkFees>;
getNetworkFee: (params: GetNetworkFeeParams) => Promise<NetworkFees>;
getAddress: () => Promise<string>;
onRpcRequest: (request: RpcRequest) => Promise<RpcResponse>;
}

@@ -42,0 +79,0 @@

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