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

web3

Package Overview
Dependencies
Maintainers
4
Versions
579
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web3 - npm Package Compare versions

Comparing version 4.15.1-dev.9aab5cd.0 to 4.15.1-dev.acdb0c7.0

lib/commonjs/tsconfig.cjs.tsbuildinfo

6

lib/commonjs/abi.d.ts

@@ -11,9 +11,9 @@ import { encodeParameters } from 'web3-eth-abi';

encodeParameters: typeof encodeParameters;
decodeParameter: (abi: import("web3-types").AbiInput, bytes: string) => unknown;
decodeParameters: (abi: import("web3-types").AbiInput[] | readonly import("web3-types").AbiInput[], bytes: string) => {
decodeParameter: (abi: import("web3-types").AbiInput, bytes: import("web3-types").HexString) => unknown;
decodeParameters: (abi: import("web3-types").AbiInput[] | ReadonlyArray<import("web3-types").AbiInput>, bytes: import("web3-types").HexString) => {
[key: string]: unknown;
__length__: number;
};
decodeLog: <ReturnType_1 extends import("web3-types").DecodedParams>(inputs: readonly import("web3-types").AbiParameter[] | import("web3-types").AbiParameter[], data: string, topics: string | string[]) => ReturnType_1;
decodeLog: <ReturnType extends import("web3-types").DecodedParams>(inputs: Array<import("web3-types").AbiParameter> | ReadonlyArray<import("web3-types").AbiParameter>, data: import("web3-types").HexString, topics: string | string[]) => ReturnType;
};
export default _default;

@@ -15,36 +15,36 @@ import { EthExecutionAPI, Bytes, Transaction, KeyStore } from 'web3-types';

signTransaction: (transaction: Transaction) => Promise<import("web3-types").SignTransactionResult>;
address: string;
privateKey: string;
sign: (data: string | Record<string, unknown>) => import("web3-types").SignResult;
encrypt: (password: string, options?: Record<string, unknown> | undefined) => Promise<KeyStore>;
address: import("web3-types").HexString;
privateKey: import("web3-types").HexString;
sign: (data: Record<string, unknown> | string) => import("web3-types").SignResult;
encrypt: (password: string, options?: Record<string, unknown>) => Promise<KeyStore>;
};
privateKeyToAccount: (privateKey: Uint8Array | string) => {
signTransaction: (transaction: Transaction) => Promise<import("web3-types").SignTransactionResult>;
address: string;
privateKey: string;
sign: (data: string | Record<string, unknown>) => import("web3-types").SignResult;
encrypt: (password: string, options?: Record<string, unknown> | undefined) => Promise<KeyStore>;
address: import("web3-types").HexString;
privateKey: import("web3-types").HexString;
sign: (data: Record<string, unknown> | string) => import("web3-types").SignResult;
encrypt: (password: string, options?: Record<string, unknown>) => Promise<KeyStore>;
};
decrypt: (keystore: KeyStore | string, password: string, options?: Record<string, unknown>) => Promise<{
signTransaction: (transaction: Transaction) => Promise<import("web3-types").SignTransactionResult>;
address: string;
privateKey: string;
sign: (data: string | Record<string, unknown>) => import("web3-types").SignResult;
encrypt: (password: string, options?: Record<string, unknown> | undefined) => Promise<KeyStore>;
address: import("web3-types").HexString;
privateKey: import("web3-types").HexString;
sign: (data: Record<string, unknown> | string) => import("web3-types").SignResult;
encrypt: (password: string, options?: Record<string, unknown>) => Promise<KeyStore>;
}>;
recoverTransaction: (rawTransaction: string) => string;
hashMessage: (message: string, skipPrefix?: boolean | undefined) => string;
recoverTransaction: (rawTransaction: import("web3-types").HexString) => import("web3-types").Address;
hashMessage: (message: string, skipPrefix?: boolean) => string;
sign: (data: string, privateKey: Bytes) => import("web3-types").SignResult;
recover: (data: string | import("web3-types").SignatureObject, signatureOrV?: string | undefined, prefixedOrR?: string | boolean | undefined, s?: string | undefined, prefixed?: boolean | undefined) => string;
encrypt: (privateKey: Bytes, password: string | Uint8Array, options?: import("web3-types").CipherOptions | undefined) => Promise<KeyStore>;
recover: (data: string | import("web3-types").SignatureObject, signatureOrV?: string, prefixedOrR?: boolean | string, s?: string, prefixed?: boolean) => import("web3-types").Address;
encrypt: (privateKey: Bytes, password: string | Uint8Array, options?: import("web3-types").CipherOptions) => Promise<KeyStore>;
wallet: Wallet<{
signTransaction: (transaction: Transaction) => Promise<import("web3-types").SignTransactionResult>;
address: string;
privateKey: string;
sign: (data: string | Record<string, unknown>) => import("web3-types").SignResult;
encrypt: (password: string, options?: Record<string, unknown> | undefined) => Promise<KeyStore>;
address: import("web3-types").HexString;
privateKey: import("web3-types").HexString;
sign: (data: Record<string, unknown> | string) => import("web3-types").SignResult;
encrypt: (password: string, options?: Record<string, unknown>) => Promise<KeyStore>;
}>;
privateKeyToAddress: (privateKey: Bytes) => string;
parseAndValidatePrivateKey: (data: Bytes, ignoreLength?: boolean | undefined) => Uint8Array;
parseAndValidatePrivateKey: (data: Bytes, ignoreLength?: boolean) => Uint8Array;
privateKeyToPublicKey: (privateKey: Bytes, isCompressed: boolean) => string;
};

@@ -16,3 +16,3 @@ import { Web3APISpec, EIP1193Provider } from 'web3-types';

}
export declare type EIP6963ProviderResponse = Map<string, EIP6963ProviderDetail>;
export type EIP6963ProviderResponse = Map<string, EIP6963ProviderDetail>;
export interface EIP6963AnnounceProviderEvent<API = Web3APISpec> extends CustomEvent {

@@ -19,0 +19,0 @@ type: Eip6963EventName.eip6963announceProvider;

@@ -33,3 +33,3 @@ "use strict";

Eip6963EventName["eip6963requestProvider"] = "eip6963:requestProvider";
})(Eip6963EventName = exports.Eip6963EventName || (exports.Eip6963EventName = {}));
})(Eip6963EventName || (exports.Eip6963EventName = Eip6963EventName = {}));
exports.eip6963ProvidersMap = new Map();

@@ -42,3 +42,3 @@ exports.web3ProvidersMapUpdated = 'web3:providersMapUpdated';

}
window.addEventListener(Eip6963EventName.eip6963announceProvider, (event) => {
window.addEventListener(Eip6963EventName.eip6963announceProvider, ((event) => {
exports.eip6963ProvidersMap.set(event.detail.info.uuid, event.detail);

@@ -48,3 +48,3 @@ const newEvent = new CustomEvent(exports.web3ProvidersMapUpdated, { detail: exports.eip6963ProvidersMap });

resolve(exports.eip6963ProvidersMap);
});
}));
window.dispatchEvent(new Event(Eip6963EventName.eip6963requestProvider));

@@ -51,0 +51,0 @@ });

@@ -158,3 +158,3 @@ "use strict";

// ENS module
ens: self.use(web3_eth_ens_1.ENS, web3_eth_ens_1.registryAddresses.main),
ens: self.use(web3_eth_ens_1.ENS, web3_eth_ens_1.registryAddresses.main), // registry address defaults to main network
// Iban helpers

@@ -161,0 +161,0 @@ Iban: // registry address defaults to main network

@@ -38,3 +38,3 @@ /*

}
window.addEventListener(Eip6963EventName.eip6963announceProvider, (event) => {
window.addEventListener(Eip6963EventName.eip6963announceProvider, ((event) => {
eip6963ProvidersMap.set(event.detail.info.uuid, event.detail);

@@ -44,3 +44,3 @@ const newEvent = new CustomEvent(web3ProvidersMapUpdated, { detail: eip6963ProvidersMap });

resolve(eip6963ProvidersMap);
});
}));
window.dispatchEvent(new Event(Eip6963EventName.eip6963requestProvider));

@@ -47,0 +47,0 @@ });

@@ -129,3 +129,3 @@ /*

// ENS module
ens: self.use(ENS, registryAddresses.main),
ens: self.use(ENS, registryAddresses.main), // registry address defaults to main network
// Iban helpers

@@ -132,0 +132,0 @@ Iban,

@@ -11,10 +11,10 @@ import { encodeParameters } from 'web3-eth-abi';

encodeParameters: typeof encodeParameters;
decodeParameter: (abi: import("web3-types").AbiInput, bytes: string) => unknown;
decodeParameters: (abi: import("web3-types").AbiInput[] | readonly import("web3-types").AbiInput[], bytes: string) => {
decodeParameter: (abi: import("web3-types").AbiInput, bytes: import("web3-types").HexString) => unknown;
decodeParameters: (abi: import("web3-types").AbiInput[] | ReadonlyArray<import("web3-types").AbiInput>, bytes: import("web3-types").HexString) => {
[key: string]: unknown;
__length__: number;
};
decodeLog: <ReturnType_1 extends import("web3-types").DecodedParams>(inputs: readonly import("web3-types").AbiParameter[] | import("web3-types").AbiParameter[], data: string, topics: string | string[]) => ReturnType_1;
decodeLog: <ReturnType extends import("web3-types").DecodedParams>(inputs: Array<import("web3-types").AbiParameter> | ReadonlyArray<import("web3-types").AbiParameter>, data: import("web3-types").HexString, topics: string | string[]) => ReturnType;
};
export default _default;
//# sourceMappingURL=abi.d.ts.map

@@ -15,37 +15,37 @@ import { EthExecutionAPI, Bytes, Transaction, KeyStore } from 'web3-types';

signTransaction: (transaction: Transaction) => Promise<import("web3-types").SignTransactionResult>;
address: string;
privateKey: string;
sign: (data: string | Record<string, unknown>) => import("web3-types").SignResult;
encrypt: (password: string, options?: Record<string, unknown> | undefined) => Promise<KeyStore>;
address: import("web3-types").HexString;
privateKey: import("web3-types").HexString;
sign: (data: Record<string, unknown> | string) => import("web3-types").SignResult;
encrypt: (password: string, options?: Record<string, unknown>) => Promise<KeyStore>;
};
privateKeyToAccount: (privateKey: Uint8Array | string) => {
signTransaction: (transaction: Transaction) => Promise<import("web3-types").SignTransactionResult>;
address: string;
privateKey: string;
sign: (data: string | Record<string, unknown>) => import("web3-types").SignResult;
encrypt: (password: string, options?: Record<string, unknown> | undefined) => Promise<KeyStore>;
address: import("web3-types").HexString;
privateKey: import("web3-types").HexString;
sign: (data: Record<string, unknown> | string) => import("web3-types").SignResult;
encrypt: (password: string, options?: Record<string, unknown>) => Promise<KeyStore>;
};
decrypt: (keystore: KeyStore | string, password: string, options?: Record<string, unknown>) => Promise<{
signTransaction: (transaction: Transaction) => Promise<import("web3-types").SignTransactionResult>;
address: string;
privateKey: string;
sign: (data: string | Record<string, unknown>) => import("web3-types").SignResult;
encrypt: (password: string, options?: Record<string, unknown> | undefined) => Promise<KeyStore>;
address: import("web3-types").HexString;
privateKey: import("web3-types").HexString;
sign: (data: Record<string, unknown> | string) => import("web3-types").SignResult;
encrypt: (password: string, options?: Record<string, unknown>) => Promise<KeyStore>;
}>;
recoverTransaction: (rawTransaction: string) => string;
hashMessage: (message: string, skipPrefix?: boolean | undefined) => string;
recoverTransaction: (rawTransaction: import("web3-types").HexString) => import("web3-types").Address;
hashMessage: (message: string, skipPrefix?: boolean) => string;
sign: (data: string, privateKey: Bytes) => import("web3-types").SignResult;
recover: (data: string | import("web3-types").SignatureObject, signatureOrV?: string | undefined, prefixedOrR?: string | boolean | undefined, s?: string | undefined, prefixed?: boolean | undefined) => string;
encrypt: (privateKey: Bytes, password: string | Uint8Array, options?: import("web3-types").CipherOptions | undefined) => Promise<KeyStore>;
recover: (data: string | import("web3-types").SignatureObject, signatureOrV?: string, prefixedOrR?: boolean | string, s?: string, prefixed?: boolean) => import("web3-types").Address;
encrypt: (privateKey: Bytes, password: string | Uint8Array, options?: import("web3-types").CipherOptions) => Promise<KeyStore>;
wallet: Wallet<{
signTransaction: (transaction: Transaction) => Promise<import("web3-types").SignTransactionResult>;
address: string;
privateKey: string;
sign: (data: string | Record<string, unknown>) => import("web3-types").SignResult;
encrypt: (password: string, options?: Record<string, unknown> | undefined) => Promise<KeyStore>;
address: import("web3-types").HexString;
privateKey: import("web3-types").HexString;
sign: (data: Record<string, unknown> | string) => import("web3-types").SignResult;
encrypt: (password: string, options?: Record<string, unknown>) => Promise<KeyStore>;
}>;
privateKeyToAddress: (privateKey: Bytes) => string;
parseAndValidatePrivateKey: (data: Bytes, ignoreLength?: boolean | undefined) => Uint8Array;
parseAndValidatePrivateKey: (data: Bytes, ignoreLength?: boolean) => Uint8Array;
privateKeyToPublicKey: (privateKey: Bytes, isCompressed: boolean) => string;
};
//# sourceMappingURL=accounts.d.ts.map

@@ -16,3 +16,3 @@ import { Web3APISpec, EIP1193Provider } from 'web3-types';

}
export declare type EIP6963ProviderResponse = Map<string, EIP6963ProviderDetail>;
export type EIP6963ProviderResponse = Map<string, EIP6963ProviderDetail>;
export interface EIP6963AnnounceProviderEvent<API = Web3APISpec> extends CustomEvent {

@@ -19,0 +19,0 @@ type: Eip6963EventName.eip6963announceProvider;

{
"name": "web3",
"version": "4.15.1-dev.9aab5cd.0+9aab5cd",
"version": "4.15.1-dev.acdb0c7.0+acdb0c7",
"description": "Ethereum JavaScript API",

@@ -85,25 +85,25 @@ "main": "./lib/commonjs/index.js",

"ts-jest": "^29.1.1",
"typescript": "^4.7.4",
"web3-providers-ipc": "4.0.8-dev.9aab5cd.0+9aab5cd"
"typescript": "^5.5.4",
"web3-providers-ipc": "4.0.8-dev.acdb0c7.0+acdb0c7"
},
"dependencies": {
"web3-core": "4.7.1-dev.9aab5cd.0+9aab5cd",
"web3-errors": "1.3.1-dev.9aab5cd.0+9aab5cd",
"web3-eth": "4.11.1-dev.9aab5cd.0+9aab5cd",
"web3-eth-abi": "4.4.1-dev.9aab5cd.0+9aab5cd",
"web3-eth-accounts": "4.3.1-dev.9aab5cd.0+9aab5cd",
"web3-eth-contract": "4.7.2-dev.9aab5cd.0+9aab5cd",
"web3-eth-ens": "4.4.1-dev.9aab5cd.0+9aab5cd",
"web3-eth-iban": "4.0.8-dev.9aab5cd.0+9aab5cd",
"web3-eth-personal": "4.1.1-dev.9aab5cd.0+9aab5cd",
"web3-net": "4.1.1-dev.9aab5cd.0+9aab5cd",
"web3-providers-http": "4.2.1-dev.9aab5cd.0+9aab5cd",
"web3-providers-ws": "4.0.9-dev.9aab5cd.0+9aab5cd",
"web3-rpc-methods": "1.3.1-dev.9aab5cd.0+9aab5cd",
"web3-rpc-providers": "1.0.0-dev.9aab5cd.0+9aab5cd",
"web3-types": "1.9.1-dev.9aab5cd.0+9aab5cd",
"web3-utils": "4.3.3-dev.9aab5cd.0+9aab5cd",
"web3-validator": "2.0.7-dev.9aab5cd.0+9aab5cd"
"web3-core": "4.7.1-dev.acdb0c7.0+acdb0c7",
"web3-errors": "1.3.1-dev.acdb0c7.0+acdb0c7",
"web3-eth": "4.11.1-dev.acdb0c7.0+acdb0c7",
"web3-eth-abi": "4.4.1-dev.acdb0c7.0+acdb0c7",
"web3-eth-accounts": "4.3.1-dev.acdb0c7.0+acdb0c7",
"web3-eth-contract": "4.7.2-dev.acdb0c7.0+acdb0c7",
"web3-eth-ens": "4.4.1-dev.acdb0c7.0+acdb0c7",
"web3-eth-iban": "4.0.8-dev.acdb0c7.0+acdb0c7",
"web3-eth-personal": "4.1.1-dev.acdb0c7.0+acdb0c7",
"web3-net": "4.1.1-dev.acdb0c7.0+acdb0c7",
"web3-providers-http": "4.2.1-dev.acdb0c7.0+acdb0c7",
"web3-providers-ws": "4.0.9-dev.acdb0c7.0+acdb0c7",
"web3-rpc-methods": "1.3.1-dev.acdb0c7.0+acdb0c7",
"web3-rpc-providers": "1.0.0-dev.acdb0c7.0+acdb0c7",
"web3-types": "1.9.1-dev.acdb0c7.0+acdb0c7",
"web3-utils": "4.3.3-dev.acdb0c7.0+acdb0c7",
"web3-validator": "2.0.7-dev.acdb0c7.0+acdb0c7"
},
"gitHead": "9aab5cd38cd3b3ccb2cacd4d3e9cfe2bab1c5cec"
"gitHead": "acdb0c775b885e0411e177a64f0cbd350b90315f"
}

@@ -66,16 +66,15 @@ /*

window.addEventListener(
Eip6963EventName.eip6963announceProvider as any,
(event: EIP6963AnnounceProviderEvent) => {
eip6963ProvidersMap.set(event.detail.info.uuid, event.detail);
window.addEventListener(Eip6963EventName.eip6963announceProvider, ((
event: EIP6963AnnounceProviderEvent,
) => {
eip6963ProvidersMap.set(event.detail.info.uuid, event.detail);
const newEvent: EIP6963ProvidersMapUpdateEvent = new CustomEvent(
web3ProvidersMapUpdated,
{ detail: eip6963ProvidersMap },
);
const newEvent: EIP6963ProvidersMapUpdateEvent = new CustomEvent(
web3ProvidersMapUpdated,
{ detail: eip6963ProvidersMap },
);
window.dispatchEvent(newEvent);
resolve(eip6963ProvidersMap);
},
);
window.dispatchEvent(newEvent);
resolve(eip6963ProvidersMap);
}) as EventListenerOrEventListenerObject);

@@ -93,3 +92,6 @@ window.dispatchEvent(new Event(Eip6963EventName.eip6963requestProvider));

}
window.addEventListener(web3ProvidersMapUpdated as any, callback);
window.addEventListener(
web3ProvidersMapUpdated,
callback as EventListenerOrEventListenerObject,
);
};

Sorry, the diff of this file is too big to display

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

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