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

@gnosis.pm/safe-apps-sdk

Package Overview
Dependencies
Maintainers
6
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gnosis.pm/safe-apps-sdk - npm Package Compare versions

Comparing version 4.1.0-next.0 to 4.1.0-next.1

7

CHANGELOG.md
# @gnosis.pm/safe-apps-sdk
## 4.1.0-next.1
### Minor Changes
- f9d1a18: Support eth_gasPrice rpc method
## 4.1.0-next.0
### Minor Changes
- 9f91d38: Add getTransactionCount eth rpc method

7

dist/package.json
{
"name": "@gnosis.pm/safe-apps-sdk",
"version": "4.1.0-next.0",
"version": "4.1.0-next.1",
"description": "SDK developed to integrate third-party apps with Safe-Multisig app.",

@@ -20,4 +20,3 @@ "main": "dist/src/index.js",

"build": "yarn rimraf dist && tsc && yarn format-dist",
"lint": "tslint -p tsconfig.json",
"prepublishOnly": "yarn build"
"lint": "tslint -p tsconfig.json"
},

@@ -29,3 +28,3 @@ "author": "Gnosis (https://gnosis.io)",

"@types/jest": "^26.0.24",
"@types/node": "^16.3.3",
"@types/node": "^16.4.10",
"rimraf": "^3.0.2"

@@ -32,0 +31,0 @@ },

export declare const RPC_CALLS: {
readonly eth_call: "eth_call";
readonly eth_gasPrice: "eth_gasPrice";
readonly eth_getLogs: "eth_getLogs";

@@ -4,0 +5,0 @@ readonly eth_getBalance: "eth_getBalance";

@@ -6,2 +6,3 @@ "use strict";

eth_call: 'eth_call',
eth_gasPrice: 'eth_gasPrice',
eth_getLogs: 'eth_getLogs',

@@ -8,0 +9,0 @@ eth_getBalance: 'eth_getBalance',

import { BlockNumberArg, Communicator, Log, BlockTransactionString, BlockTransactionObject, Web3TransactionObject, TransactionConfig, Web3TransactionReceiptObject, PastLogsOptions } from '../types';
declare class Eth {
call: (params: [TransactionConfig, (string | undefined)?]) => Promise<string>;
getBalance: (params: [string, (string | undefined)?]) => Promise<string>;
getCode: (params: [string, (string | undefined)?]) => Promise<string>;
getStorageAt: (params: [string, number, (string | undefined)?]) => Promise<string>;
getPastLogs: (params: [PastLogsOptions]) => Promise<Log[]>;
getBlockByHash: (params: [string, (boolean | undefined)?]) => Promise<BlockTransactionObject | BlockTransactionString>;
getBlockByNumber: (params: [BlockNumberArg, (boolean | undefined)?]) => Promise<BlockTransactionObject | BlockTransactionString>;
getTransactionByHash: (params: [string]) => Promise<Web3TransactionObject>;
getTransactionReceipt: (params: [string]) => Promise<Web3TransactionReceiptObject>;
getTransactionCount: (params: [string, (string | undefined)?]) => Promise<number>;
call: (params?: [TransactionConfig, (string | undefined)?] | undefined) => Promise<string>;
getBalance: (params?: [string, (string | undefined)?] | undefined) => Promise<string>;
getCode: (params?: [string, (string | undefined)?] | undefined) => Promise<string>;
getStorageAt: (params?: [string, number, (string | undefined)?] | undefined) => Promise<string>;
getPastLogs: (params?: [PastLogsOptions] | undefined) => Promise<Log[]>;
getBlockByHash: (params?: [string, (boolean | undefined)?] | undefined) => Promise<BlockTransactionObject | BlockTransactionString>;
getBlockByNumber: (params?: [BlockNumberArg, (boolean | undefined)?] | undefined) => Promise<BlockTransactionObject | BlockTransactionString>;
getTransactionByHash: (params?: [string] | undefined) => Promise<Web3TransactionObject>;
getTransactionReceipt: (params?: [string] | undefined) => Promise<Web3TransactionReceiptObject>;
getTransactionCount: (params?: [string, (string | undefined)?] | undefined) => Promise<string>;
getGasPrice: (params?: never[] | undefined) => Promise<string>;
private readonly communicator;

@@ -14,0 +15,0 @@ constructor(communicator: Communicator);

@@ -51,4 +51,8 @@ "use strict";

});
this.getGasPrice = this.buildRequest({
call: constants_1.RPC_CALLS.eth_gasPrice,
});
}
buildRequest({ call, formatters }) {
buildRequest(args) {
const { call, formatters } = args;
return async (params) => {

@@ -64,3 +68,3 @@ if (formatters && Array.isArray(params)) {

call,
params,
params: params || [],
};

@@ -67,0 +71,0 @@ const response = await this.communicator.send(methods_1.Methods.rpcCall, payload);

@@ -5,3 +5,3 @@ import { RPC_CALLS } from '../eth/constants';

call: RpcCallNames;
params: P;
params: P | never[];
};

@@ -8,0 +8,0 @@ export interface Log {

{
"name": "@gnosis.pm/safe-apps-sdk",
"version": "4.1.0-next.0",
"version": "4.1.0-next.1",
"description": "SDK developed to integrate third-party apps with Safe-Multisig app.",

@@ -20,4 +20,3 @@ "main": "dist/src/index.js",

"build": "yarn rimraf dist && tsc && yarn format-dist",
"lint": "tslint -p tsconfig.json",
"prepublishOnly": "yarn build"
"lint": "tslint -p tsconfig.json"
},

@@ -29,3 +28,3 @@ "author": "Gnosis (https://gnosis.io)",

"@types/jest": "^26.0.24",
"@types/node": "^16.3.3",
"@types/node": "^16.4.10",
"rimraf": "^3.0.2"

@@ -32,0 +31,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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