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

@0xproject/typescript-typings

Package Overview
Dependencies
Maintainers
5
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0xproject/typescript-typings - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

types/hdkey/index.d.ts

14

CHANGELOG.json
[
{
"version": "0.2.0",
"changes": [
{
"note": "Add types for `solc.compileStandardWrapper`",
"pr": 509
}
],
"timestamp": 1524044013
},
{
"version": "0.1.0",

@@ -8,2 +18,6 @@ "changes": [

"pr": 501
},
{
"note": "Add types for HDKey",
"pr": 507
}

@@ -10,0 +24,0 @@ ],

7

CHANGELOG.md

@@ -8,5 +8,10 @@ <!--

## v0.1.0 - _April 11, 2018_
## v0.2.0 - _April 18, 2018_
* Add types for `solc.compileStandardWrapper` (#509)
## v0.1.0 - _April 12, 2018_
* Add types for more packages (#501)
* Add types for HDKey (#507)

@@ -13,0 +18,0 @@ ## v0.0.3 - _April 2, 2018_

6

package.json
{
"name": "@0xproject/typescript-typings",
"version": "0.1.0",
"version": "0.2.0",
"description": "0x project typescript type definitions",

@@ -24,7 +24,7 @@ "scripts": {

"dependencies": {
"@0xproject/types": "^0.6.0",
"@0xproject/types": "^0.6.1",
"bignumber.js": "~4.1.0"
},
"devDependencies": {
"@0xproject/monorepo-scripts": "^0.1.17",
"@0xproject/monorepo-scripts": "^0.1.18",
"copyfiles": "^1.2.0",

@@ -31,0 +31,0 @@ "shx": "^0.2.2"

declare module 'ethereumjs-util' {
import { Buffer } from 'buffer';
import BN = require('bn.js');

@@ -4,0 +3,0 @@

@@ -29,2 +29,117 @@ declare module 'solc' {

}
export interface BaseSource {
keccak256?: string;
}
export interface InMemorySource extends BaseSource {
content: string;
}
export interface UrlSource extends BaseSource {
urls: string[];
}
export type Source = UrlSource | InMemorySource;
export type OutputField =
| '*'
| 'ast'
| 'legacyAST'
| 'abi'
| 'devdoc'
| 'userdoc'
| 'metadata'
| 'ir'
| 'evm.assembly'
| 'evm.legacyAssembly'
| 'evm.bytecode.object'
| 'evm.bytecode.opcodes'
| 'evm.bytecode.sourceMap'
| 'evm.bytecode.linkReferences'
| 'evm.deployedBytecode.object'
| 'evm.deployedBytecode.opcodes'
| 'evm.deployedBytecode.sourceMap'
| 'evm.deployedBytecode.linkReferences'
| 'evm.methodIdentifiers'
| 'evm.gasEstimates'
| 'ewasm.wast'
| 'ewasm.wasm';
export interface StandardInput {
language: 'Solidity' | 'serpent' | 'lll' | 'assembly';
sources: {
[fileName: string]: Source;
};
settings: {
remappings?: string[];
optimizer?: {
enabled: boolean;
runs?: number;
};
evmVersion?: 'homestead' | 'tangerineWhistle' | 'spuriousDragon' | 'byzantium' | 'constantinople';
metadata?: {
useLiteralContent: true;
};
libraries?: {
[fileName: string]: {
[libName: string]: string;
};
};
outputSelection: {
[fileName: string]: {
[contractName: string]: OutputField[];
};
};
};
}
export type ErrorType =
| 'JSONError'
| 'IOError'
| 'ParserError'
| 'DocstringParsingError'
| 'SyntaxError'
| 'DeclarationError'
| 'TypeError'
| 'UnimplementedFeatureError'
| 'InternalCompilerError'
| 'Exception'
| 'CompilerError'
| 'FatalError'
| 'Warning';
export type ErrorSeverity = 'error' | 'warning';
export interface Error {
sourceLocation?: {
file: string;
start: number;
end: number;
};
type: ErrorType;
component: 'general' | 'ewasm';
severity: ErrorSeverity;
message: string;
formattedMessage?: string;
}
import { ContractAbi } from '@0xproject/types';
export interface StandardOutput {
errors: Error[];
sources: {
[fileName: string]: {
id: number;
ast?: object;
legacyAST?: object;
};
};
contracts: {
[fileName: string]: {
[contractName: string]: {
abi: ContractAbi;
evm: {
bytecode: {
object: string;
sourceMap: string;
};
deployedBytecode: {
object: string;
sourceMap: string;
};
};
};
};
};
}
export interface SolcInstance {

@@ -36,2 +151,3 @@ compile(

): CompilationResult;
compileStandardWrapper(input: string, findImports: (importPath: string) => ImportContents): string;
}

@@ -38,0 +154,0 @@ export function loadRemoteVersion(versionName: string, cb: (err: Error | null, res?: SolcInstance) => void): void;

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