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

@fireblocks/fireblocks-web3-provider

Package Overview
Dependencies
Maintainers
0
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fireblocks/fireblocks-web3-provider - npm Package Compare versions

Comparing version 1.3.11 to 1.3.12

16

dist/package.json
{
"name": "@fireblocks/fireblocks-web3-provider",
"version": "1.3.11",
"version": "1.3.12",
"description": "EIP-1193 Compatible Ethereum provider for Fireblocks",

@@ -32,3 +32,3 @@ "repository": "github:fireblocks/fireblocks-web3-provider",

"prepublishOnly": "npm run build",
"generate-types": "npx typechain --target=ethers-v5 --out-dir src/contracts 'src/abi/*.json'"
"generate-types": "npx typechain --target=ethers-v6 --out-dir src/contracts 'src/abi/*.json'"
},

@@ -41,3 +41,3 @@ "files": [

"devDependencies": {
"@typechain/ethers-v5": "^10.2.0",
"@typechain/ethers-v6": "^0.5.1",
"@types/chai": "4.3.1",

@@ -54,3 +54,3 @@ "@types/debug": "^4.1.7",

"tslint-plugin-prettier": "2.3.0",
"typechain": "^8.1.1",
"typechain": "^8.3.2",
"typescript": "4.7.4",

@@ -62,8 +62,8 @@ "web3": "^4.1.2"

"axios": "^1.6.2",
"debug": "^4.3.4",
"ethers": "^5.7.2",
"fireblocks-sdk": "^5.18.0",
"https-proxy-agent": "^7.0.2",
"debug": "^4.3.7",
"ethers": "^6.13.4",
"fireblocks-sdk": "^5.33.0",
"https-proxy-agent": "^7.0.5",
"web3-providers-http": "1.8.0"
}
}

@@ -1,16 +0,23 @@

import type { Listener } from "@ethersproject/providers";
import type { Event, EventFilter } from "ethers";
export interface TypedEvent<TArgsArray extends Array<any> = any, TArgsObject = any> extends Event {
args: TArgsArray & TArgsObject;
import type { FunctionFragment, Typed, EventFragment, ContractTransaction, ContractTransactionResponse, DeferredTopicFilter, EventLog, TransactionRequest, LogDescription } from "ethers";
export interface TypedDeferredTopicFilter<_TCEvent extends TypedContractEvent> extends DeferredTopicFilter {
}
export interface TypedEventFilter<_TEvent extends TypedEvent> extends EventFilter {
export interface TypedContractEvent<InputTuple extends Array<any> = any, OutputTuple extends Array<any> = any, OutputObject = any> {
(...args: Partial<InputTuple>): TypedDeferredTopicFilter<TypedContractEvent<InputTuple, OutputTuple, OutputObject>>;
name: string;
fragment: EventFragment;
getFragment(...args: Partial<InputTuple>): EventFragment;
}
export interface TypedListener<TEvent extends TypedEvent> {
(...listenerArg: [...__TypechainArgsArray<TEvent>, TEvent]): void;
declare type __TypechainAOutputTuple<T> = T extends TypedContractEvent<infer _U, infer W> ? W : never;
declare type __TypechainOutputObject<T> = T extends TypedContractEvent<infer _U, infer _W, infer V> ? V : never;
export interface TypedEventLog<TCEvent extends TypedContractEvent> extends Omit<EventLog, "args"> {
args: __TypechainAOutputTuple<TCEvent> & __TypechainOutputObject<TCEvent>;
}
declare type __TypechainArgsArray<T> = T extends TypedEvent<infer U> ? U : never;
export interface OnEvent<TRes> {
<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>, listener: TypedListener<TEvent>): TRes;
(eventName: string, listener: Listener): TRes;
export interface TypedLogDescription<TCEvent extends TypedContractEvent> extends Omit<LogDescription, "args"> {
args: __TypechainAOutputTuple<TCEvent> & __TypechainOutputObject<TCEvent>;
}
export declare type TypedListener<TCEvent extends TypedContractEvent> = (...listenerArg: [
...__TypechainAOutputTuple<TCEvent>,
TypedEventLog<TCEvent>,
...undefined[]
]) => void;
export declare type MinEthersFactory<C, ARGS> = {

@@ -21,4 +28,25 @@ deploy(...a: ARGS[]): Promise<C>;

export declare type GetARGsTypeFromFactory<F> = F extends MinEthersFactory<any, any> ? Parameters<F["deploy"]> : never;
export declare type PromiseOrValue<T> = T | Promise<T>;
export declare type StateMutability = "nonpayable" | "payable" | "view";
export declare type BaseOverrides = Omit<TransactionRequest, "to" | "data">;
export declare type NonPayableOverrides = Omit<BaseOverrides, "value" | "blockTag" | "enableCcipRead">;
export declare type PayableOverrides = Omit<BaseOverrides, "blockTag" | "enableCcipRead">;
export declare type ViewOverrides = Omit<TransactionRequest, "to" | "data">;
export declare type Overrides<S extends StateMutability> = S extends "nonpayable" ? NonPayableOverrides : S extends "payable" ? PayableOverrides : ViewOverrides;
export declare type PostfixOverrides<A extends Array<any>, S extends StateMutability> = A | [...A, Overrides<S>];
export declare type ContractMethodArgs<A extends Array<any>, S extends StateMutability> = PostfixOverrides<{
[I in keyof A]-?: A[I] | Typed;
}, S>;
export declare type DefaultReturnType<R> = R extends Array<any> ? R[0] : R;
export interface TypedContractMethod<A extends Array<any> = Array<any>, R = any, S extends StateMutability = "payable"> {
(...args: ContractMethodArgs<A, S>): S extends "view" ? Promise<DefaultReturnType<R>> : Promise<ContractTransactionResponse>;
name: string;
fragment: FunctionFragment;
getFragment(...args: ContractMethodArgs<A, S>): FunctionFragment;
populateTransaction(...args: ContractMethodArgs<A, S>): Promise<ContractTransaction>;
staticCall(...args: ContractMethodArgs<A, "view">): Promise<DefaultReturnType<R>>;
send(...args: ContractMethodArgs<A, S>): Promise<ContractTransactionResponse>;
estimateGas(...args: ContractMethodArgs<A, S>): Promise<bigint>;
staticCallResult(...args: ContractMethodArgs<A, "view">): Promise<R>;
}
export {};
//# sourceMappingURL=common.d.ts.map

@@ -1,3 +0,2 @@

import { Signer } from "ethers";
import type { Provider } from "@ethersproject/providers";
import { type ContractRunner } from "ethers";
import type { NativeMetaTransaction, NativeMetaTransactionInterface } from "../NativeMetaTransaction";

@@ -111,4 +110,4 @@ export declare class NativeMetaTransaction__factory {

static createInterface(): NativeMetaTransactionInterface;
static connect(address: string, signerOrProvider: Signer | Provider): NativeMetaTransaction;
static connect(address: string, runner?: ContractRunner | null): NativeMetaTransaction;
}
//# sourceMappingURL=NativeMetaTransaction__factory.d.ts.map

@@ -147,6 +147,6 @@ "use strict";

static createInterface() {
return new ethers_1.utils.Interface(_abi);
return new ethers_1.Interface(_abi);
}
static connect(address, signerOrProvider) {
return new ethers_1.Contract(address, _abi, signerOrProvider);
static connect(address, runner) {
return new ethers_1.Contract(address, _abi, runner);
}

@@ -153,0 +153,0 @@ }

@@ -1,24 +0,10 @@

import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, PayableOverrides, PopulatedTransaction, Signer, utils } from "ethers";
import type { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
import type { Listener, Provider } from "@ethersproject/providers";
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "./common";
export interface NativeMetaTransactionInterface extends utils.Interface {
functions: {
"ERC712_VERSION()": FunctionFragment;
"executeMetaTransaction(address,bytes,bytes32,bytes32,uint8)": FunctionFragment;
"getChainId()": FunctionFragment;
"getNonce(address)": FunctionFragment;
"name()": FunctionFragment;
};
getFunction(nameOrSignatureOrTopic: "ERC712_VERSION" | "executeMetaTransaction" | "getChainId" | "getNonce" | "name"): FunctionFragment;
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "./common";
export interface NativeMetaTransactionInterface extends Interface {
getFunction(nameOrSignature: "ERC712_VERSION" | "executeMetaTransaction" | "getChainId" | "getNonce" | "name"): FunctionFragment;
getEvent(nameOrSignatureOrTopic: "MetaTransactionExecuted" | "Unpaused"): EventFragment;
encodeFunctionData(functionFragment: "ERC712_VERSION", values?: undefined): string;
encodeFunctionData(functionFragment: "executeMetaTransaction", values: [
PromiseOrValue<string>,
PromiseOrValue<BytesLike>,
PromiseOrValue<BytesLike>,
PromiseOrValue<BytesLike>,
PromiseOrValue<BigNumberish>
]): string;
encodeFunctionData(functionFragment: "executeMetaTransaction", values: [AddressLike, BytesLike, BytesLike, BytesLike, BigNumberish]): string;
encodeFunctionData(functionFragment: "getChainId", values?: undefined): string;
encodeFunctionData(functionFragment: "getNonce", values: [PromiseOrValue<string>]): string;
encodeFunctionData(functionFragment: "getNonce", values: [AddressLike]): string;
encodeFunctionData(functionFragment: "name", values?: undefined): string;

@@ -30,89 +16,84 @@ decodeFunctionResult(functionFragment: "ERC712_VERSION", data: BytesLike): Result;

decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
events: {
"MetaTransactionExecuted(address,address,bytes)": EventFragment;
"Unpaused(address)": EventFragment;
};
getEvent(nameOrSignatureOrTopic: "MetaTransactionExecuted"): EventFragment;
getEvent(nameOrSignatureOrTopic: "Unpaused"): EventFragment;
}
export interface MetaTransactionExecutedEventObject {
userAddress: string;
relayerAddress: string;
functionSignature: string;
export declare namespace MetaTransactionExecutedEvent {
type InputTuple = [
userAddress: AddressLike,
relayerAddress: AddressLike,
functionSignature: BytesLike
];
type OutputTuple = [
userAddress: string,
relayerAddress: string,
functionSignature: string
];
interface OutputObject {
userAddress: string;
relayerAddress: string;
functionSignature: string;
}
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
type Filter = TypedDeferredTopicFilter<Event>;
type Log = TypedEventLog<Event>;
type LogDescription = TypedLogDescription<Event>;
}
export declare type MetaTransactionExecutedEvent = TypedEvent<[
string,
string,
string
], MetaTransactionExecutedEventObject>;
export declare type MetaTransactionExecutedEventFilter = TypedEventFilter<MetaTransactionExecutedEvent>;
export interface UnpausedEventObject {
account: string;
export declare namespace UnpausedEvent {
type InputTuple = [account: AddressLike];
type OutputTuple = [account: string];
interface OutputObject {
account: string;
}
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
type Filter = TypedDeferredTopicFilter<Event>;
type Log = TypedEventLog<Event>;
type LogDescription = TypedLogDescription<Event>;
}
export declare type UnpausedEvent = TypedEvent<[string], UnpausedEventObject>;
export declare type UnpausedEventFilter = TypedEventFilter<UnpausedEvent>;
export interface NativeMetaTransaction extends BaseContract {
connect(signerOrProvider: Signer | Provider | string): this;
attach(addressOrName: string): this;
deployed(): Promise<this>;
connect(runner?: ContractRunner | null): NativeMetaTransaction;
waitForDeployment(): Promise<this>;
interface: NativeMetaTransactionInterface;
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
listeners(eventName?: string): Array<Listener>;
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
removeAllListeners(eventName?: string): this;
off: OnEvent<this>;
on: OnEvent<this>;
once: OnEvent<this>;
removeListener: OnEvent<this>;
functions: {
ERC712_VERSION(overrides?: CallOverrides): Promise<[string]>;
executeMetaTransaction(userAddress: PromiseOrValue<string>, functionSignature: PromiseOrValue<BytesLike>, sigR: PromiseOrValue<BytesLike>, sigS: PromiseOrValue<BytesLike>, sigV: PromiseOrValue<BigNumberish>, overrides?: PayableOverrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
getChainId(overrides?: CallOverrides): Promise<[BigNumber]>;
getNonce(user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[BigNumber] & {
nonce: BigNumber;
}>;
name(overrides?: CallOverrides): Promise<[string]>;
};
ERC712_VERSION(overrides?: CallOverrides): Promise<string>;
executeMetaTransaction(userAddress: PromiseOrValue<string>, functionSignature: PromiseOrValue<BytesLike>, sigR: PromiseOrValue<BytesLike>, sigS: PromiseOrValue<BytesLike>, sigV: PromiseOrValue<BigNumberish>, overrides?: PayableOverrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
getChainId(overrides?: CallOverrides): Promise<BigNumber>;
getNonce(user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
name(overrides?: CallOverrides): Promise<string>;
callStatic: {
ERC712_VERSION(overrides?: CallOverrides): Promise<string>;
executeMetaTransaction(userAddress: PromiseOrValue<string>, functionSignature: PromiseOrValue<BytesLike>, sigR: PromiseOrValue<BytesLike>, sigS: PromiseOrValue<BytesLike>, sigV: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
getChainId(overrides?: CallOverrides): Promise<BigNumber>;
getNonce(user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
name(overrides?: CallOverrides): Promise<string>;
};
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
listeners(eventName?: string): Promise<Array<Listener>>;
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
ERC712_VERSION: TypedContractMethod<[], [string], "view">;
executeMetaTransaction: TypedContractMethod<[
userAddress: AddressLike,
functionSignature: BytesLike,
sigR: BytesLike,
sigS: BytesLike,
sigV: BigNumberish
], [
string
], "payable">;
getChainId: TypedContractMethod<[], [bigint], "view">;
getNonce: TypedContractMethod<[user: AddressLike], [bigint], "view">;
name: TypedContractMethod<[], [string], "view">;
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
getFunction(nameOrSignature: "ERC712_VERSION"): TypedContractMethod<[], [string], "view">;
getFunction(nameOrSignature: "executeMetaTransaction"): TypedContractMethod<[
userAddress: AddressLike,
functionSignature: BytesLike,
sigR: BytesLike,
sigS: BytesLike,
sigV: BigNumberish
], [
string
], "payable">;
getFunction(nameOrSignature: "getChainId"): TypedContractMethod<[], [bigint], "view">;
getFunction(nameOrSignature: "getNonce"): TypedContractMethod<[user: AddressLike], [bigint], "view">;
getFunction(nameOrSignature: "name"): TypedContractMethod<[], [string], "view">;
getEvent(key: "MetaTransactionExecuted"): TypedContractEvent<MetaTransactionExecutedEvent.InputTuple, MetaTransactionExecutedEvent.OutputTuple, MetaTransactionExecutedEvent.OutputObject>;
getEvent(key: "Unpaused"): TypedContractEvent<UnpausedEvent.InputTuple, UnpausedEvent.OutputTuple, UnpausedEvent.OutputObject>;
filters: {
"MetaTransactionExecuted(address,address,bytes)"(userAddress?: null, relayerAddress?: null, functionSignature?: null): MetaTransactionExecutedEventFilter;
MetaTransactionExecuted(userAddress?: null, relayerAddress?: null, functionSignature?: null): MetaTransactionExecutedEventFilter;
"Unpaused(address)"(account?: null): UnpausedEventFilter;
Unpaused(account?: null): UnpausedEventFilter;
"MetaTransactionExecuted(address,address,bytes)": TypedContractEvent<MetaTransactionExecutedEvent.InputTuple, MetaTransactionExecutedEvent.OutputTuple, MetaTransactionExecutedEvent.OutputObject>;
MetaTransactionExecuted: TypedContractEvent<MetaTransactionExecutedEvent.InputTuple, MetaTransactionExecutedEvent.OutputTuple, MetaTransactionExecutedEvent.OutputObject>;
"Unpaused(address)": TypedContractEvent<UnpausedEvent.InputTuple, UnpausedEvent.OutputTuple, UnpausedEvent.OutputObject>;
Unpaused: TypedContractEvent<UnpausedEvent.InputTuple, UnpausedEvent.OutputTuple, UnpausedEvent.OutputObject>;
};
estimateGas: {
ERC712_VERSION(overrides?: CallOverrides): Promise<BigNumber>;
executeMetaTransaction(userAddress: PromiseOrValue<string>, functionSignature: PromiseOrValue<BytesLike>, sigR: PromiseOrValue<BytesLike>, sigS: PromiseOrValue<BytesLike>, sigV: PromiseOrValue<BigNumberish>, overrides?: PayableOverrides & {
from?: PromiseOrValue<string>;
}): Promise<BigNumber>;
getChainId(overrides?: CallOverrides): Promise<BigNumber>;
getNonce(user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
name(overrides?: CallOverrides): Promise<BigNumber>;
};
populateTransaction: {
ERC712_VERSION(overrides?: CallOverrides): Promise<PopulatedTransaction>;
executeMetaTransaction(userAddress: PromiseOrValue<string>, functionSignature: PromiseOrValue<BytesLike>, sigR: PromiseOrValue<BytesLike>, sigS: PromiseOrValue<BytesLike>, sigV: PromiseOrValue<BigNumberish>, overrides?: PayableOverrides & {
from?: PromiseOrValue<string>;
}): Promise<PopulatedTransaction>;
getChainId(overrides?: CallOverrides): Promise<PopulatedTransaction>;
getNonce(user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
name(overrides?: CallOverrides): Promise<PopulatedTransaction>;
};
}
//# sourceMappingURL=NativeMetaTransaction.d.ts.map

@@ -401,4 +401,4 @@ "use strict";

const { data, from, to } = transaction;
const ethersProvider = new ethers.providers.Web3Provider(this);
const NativeMetaTransactionContract = factories_1.NativeMetaTransaction__factory.connect(to, ethersProvider.getSigner(this.gaslessGasTankVaultAddress));
const ethersProvider = new ethers.BrowserProvider(this);
const NativeMetaTransactionContract = factories_1.NativeMetaTransaction__factory.connect(to, await ethersProvider.getSigner(this.gaslessGasTankVaultAddress));
const nonce = Number(await NativeMetaTransactionContract.getNonce(from));

@@ -426,3 +426,3 @@ const name = await NativeMetaTransactionContract.name();

};
const signature = ethers.utils.splitSignature(await ethersProvider.getSigner(from)._signTypedData(domain, types, req));
const signature = ethers.Signature.from(await (await ethersProvider.getSigner(from)).signTypedData(domain, types, req));
const relayedTx = await NativeMetaTransactionContract.executeMetaTransaction(from, data, signature.r, signature.s, signature.v);

@@ -429,0 +429,0 @@ return relayedTx.hash;

{
"name": "@fireblocks/fireblocks-web3-provider",
"version": "1.3.11",
"version": "1.3.12",
"description": "EIP-1193 Compatible Ethereum provider for Fireblocks",

@@ -32,3 +32,3 @@ "repository": "github:fireblocks/fireblocks-web3-provider",

"prepublishOnly": "npm run build",
"generate-types": "npx typechain --target=ethers-v5 --out-dir src/contracts 'src/abi/*.json'"
"generate-types": "npx typechain --target=ethers-v6 --out-dir src/contracts 'src/abi/*.json'"
},

@@ -41,3 +41,3 @@ "files": [

"devDependencies": {
"@typechain/ethers-v5": "^10.2.0",
"@typechain/ethers-v6": "^0.5.1",
"@types/chai": "4.3.1",

@@ -54,3 +54,3 @@ "@types/debug": "^4.1.7",

"tslint-plugin-prettier": "2.3.0",
"typechain": "^8.1.1",
"typechain": "^8.3.2",
"typescript": "4.7.4",

@@ -62,8 +62,8 @@ "web3": "^4.1.2"

"axios": "^1.6.2",
"debug": "^4.3.4",
"ethers": "^5.7.2",
"fireblocks-sdk": "^5.18.0",
"https-proxy-agent": "^7.0.2",
"debug": "^4.3.7",
"ethers": "^6.13.4",
"fireblocks-sdk": "^5.33.0",
"https-proxy-agent": "^7.0.5",
"web3-providers-http": "1.8.0"
}
}

@@ -37,3 +37,3 @@ <p align="center">

```sh
npm install ethers@5
npm install ethers
```

@@ -44,4 +44,6 @@

const provider = new ethers.providers.Web3Provider(eip1193Provider);
// const provider = new ethers.BrowserProvider(eip1193Provider); // For ethers v6
const provider = new ethers.BrowserProvider(eip1193Provider);
// Or like this if you're using ethers v5:
// const provider = new ethers.providers.Web3Provider(eip1193Provider);
```

@@ -48,0 +50,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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