Socket
Socket
Sign inDemoInstall

@eth-optimism/contracts

Package Overview
Dependencies
Maintainers
5
Versions
190
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eth-optimism/contracts - npm Package Compare versions

Comparing version 0.0.0-2022726221713 to 0.0.0-2022812163333

80

dist/contract-artifacts.js

@@ -264,67 +264,2 @@ "use strict";

catch (_27) { }
let FailingReceiver;
try {
FailingReceiver = require('../artifacts/contracts/test-helpers/FailingReceiver.sol/FailingReceiver.json');
}
catch (_28) { }
let TestERC20;
try {
TestERC20 = require('../artifacts/contracts/test-helpers/TestERC20.sol/TestERC20.json');
}
catch (_29) { }
let TestLib_CrossDomainUtils;
try {
TestLib_CrossDomainUtils = require('../artifacts/contracts/test-libraries/bridge/TestLib_CrossDomainUtils.sol/TestLib_CrossDomainUtils.json');
}
catch (_30) { }
let TestLib_OVMCodec;
try {
TestLib_OVMCodec = require('../artifacts/contracts/test-libraries/codec/TestLib_OVMCodec.sol/TestLib_OVMCodec.json');
}
catch (_31) { }
let TestLib_RLPReader;
try {
TestLib_RLPReader = require('../artifacts/contracts/test-libraries/rlp/TestLib_RLPReader.sol/TestLib_RLPReader.json');
}
catch (_32) { }
let TestLib_RLPWriter;
try {
TestLib_RLPWriter = require('../artifacts/contracts/test-libraries/rlp/TestLib_RLPWriter.sol/TestLib_RLPWriter.json');
}
catch (_33) { }
let TestLib_AddressAliasHelper;
try {
TestLib_AddressAliasHelper = require('../artifacts/contracts/test-libraries/standards/TestLib_AddressAliasHelper.sol/TestLib_AddressAliasHelper.json');
}
catch (_34) { }
let TestLib_MerkleTrie;
try {
TestLib_MerkleTrie = require('../artifacts/contracts/test-libraries/trie/TestLib_MerkleTrie.sol/TestLib_MerkleTrie.json');
}
catch (_35) { }
let TestLib_SecureMerkleTrie;
try {
TestLib_SecureMerkleTrie = require('../artifacts/contracts/test-libraries/trie/TestLib_SecureMerkleTrie.sol/TestLib_SecureMerkleTrie.json');
}
catch (_36) { }
let TestLib_Buffer;
try {
TestLib_Buffer = require('../artifacts/contracts/test-libraries/utils/TestLib_Buffer.sol/TestLib_Buffer.json');
}
catch (_37) { }
let TestLib_Bytes32Utils;
try {
TestLib_Bytes32Utils = require('../artifacts/contracts/test-libraries/utils/TestLib_Bytes32Utils.sol/TestLib_Bytes32Utils.json');
}
catch (_38) { }
let TestLib_BytesUtils;
try {
TestLib_BytesUtils = require('../artifacts/contracts/test-libraries/utils/TestLib_BytesUtils.sol/TestLib_BytesUtils.json');
}
catch (_39) { }
let TestLib_MerkleTree;
try {
TestLib_MerkleTree = require('../artifacts/contracts/test-libraries/utils/TestLib_MerkleTree.sol/TestLib_MerkleTree.json');
}
catch (_40) { }
const getContractArtifact = (name) => {

@@ -383,16 +318,3 @@ return {

IL2StandardERC20,
L2StandardERC20,
FailingReceiver,
TestERC20,
TestLib_CrossDomainUtils,
TestLib_OVMCodec,
TestLib_RLPReader,
TestLib_RLPWriter,
TestLib_AddressAliasHelper,
TestLib_MerkleTrie,
TestLib_SecureMerkleTrie,
TestLib_Buffer,
TestLib_Bytes32Utils,
TestLib_BytesUtils,
TestLib_MerkleTree
L2StandardERC20
}[name];

@@ -399,0 +321,0 @@ };

5

dist/contract-defs.d.ts
import { ethers } from 'ethers';
export declare const getContractDefinition: (name: string) => any;
export declare const getDeployedContractDefinition: (name: string, network: string) => any;
export declare const getDeployedContractDefinition: (name: string, network: string) => {
address: string;
abi: any;
};
export declare const getContractInterface: (name: string) => ethers.utils.Interface;
export declare const getContractFactory: (name: string, signer?: ethers.Signer) => ethers.ContractFactory;
{
"name": "@eth-optimism/contracts",
"version": "0.0.0-2022726221713",
"version": "0.0.0-2022812163333",
"description": "[Optimism] L1 and L2 smart contracts for Optimism",

@@ -11,4 +11,7 @@ "main": "dist/index",

"dist/types",
"artifacts/contracts/**/*.json",
"deployments/**/*.json",
"artifacts/contracts/chugsplash/**/*.json",
"artifacts/contracts/L1/**/*.json",
"artifacts/contracts/L2/**/*.json",
"artifacts/contracts/libraries/**/*.json",
"artifacts/contracts/standards/**/*.json",
"chugsplash",

@@ -21,3 +24,3 @@ "L1",

"scripts": {
"build": "yarn build:contracts && yarn autogen:artifacts && yarn build:typescript",
"build": "yarn build:contracts && yarn copy:contracts && yarn autogen:artifacts && yarn build:typescript",
"build:typescript": "tsc -p ./tsconfig.json",

@@ -27,2 +30,3 @@ "build:contracts": "hardhat compile --show-stack-traces",

"autogen:artifacts": "ts-node scripts/generate-artifacts.ts && ts-node scripts/generate-deployed-artifacts.ts",
"copy:contracts": "yarn copyfiles -u 1 -e \"**/test-*/**/*\" \"contracts/**/*\" ./",
"test": "yarn test:contracts",

@@ -41,7 +45,3 @@ "test:contracts": "hardhat test --show-stack-traces",

"lint": "yarn lint:fix && yarn lint:check",
"clean": "rm -rf ./dist ./artifacts ./cache ./coverage ./tsconfig.tsbuildinfo",
"prepublishOnly": "yarn copyfiles -u 1 -e \"**/test-*/**/*\" \"contracts/**/*\" ./",
"postpublish": "rimraf chugsplash L1 L2 libraries standards",
"prepack": "yarn prepublishOnly",
"postpack": "yarn postpublish",
"clean": "rm -rf ./dist ./artifacts ./cache ./coverage ./tsconfig.tsbuildinfo ./chugsplash ./L1 ./L2 ./libraries ./standards",
"pre-commit": "lint-staged",

@@ -64,3 +64,3 @@ "validateDocs": "hardhat validateOutput"

"dependencies": {
"@eth-optimism/core-utils": "0.9.3",
"@eth-optimism/core-utils": "0.10.0",
"@ethersproject/abstract-provider": "^5.6.1",

@@ -67,0 +67,0 @@ "@ethersproject/abstract-signer": "^5.6.2"

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

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