Skip to content

Commit 6cf43db

Browse files
committedApr 15, 2020
Prepare for deploying the contracts and build artifacts to npmjs
1 parent 843d02b commit 6cf43db

File tree

5 files changed

+296
-579
lines changed

5 files changed

+296
-579
lines changed
 

‎.waffle.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"solcVersion": "./node_modules/solc",
2+
"compilerVersion": "./node_modules/solc",
33
"outputType": "all",
44
"compilerOptions": {
55
"outputSelection": {

‎package.json

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
{
2+
"name": "@uniswap/v2-core",
3+
"version": "1.0.0-beta.0",
4+
"files": [
5+
"contracts",
6+
"build"
7+
],
28
"engines": {
39
"node": ">=10"
410
},
511
"devDependencies": {
612
"@types/chai": "^4.2.6",
713
"@types/mocha": "^5.2.7",
814
"chai": "^4.2.0",
9-
"ethereum-waffle": "^2.3.1",
15+
"ethereum-waffle": "^2.4.1",
1016
"ethereumjs-util": "^6.2.0",
1117
"mocha": "^6.2.2",
1218
"prettier": "^1.19.1",
@@ -22,7 +28,8 @@
2228
"compile": "waffle .waffle.json",
2329
"pretest": "yarn compile",
2430
"test": "mocha",
25-
"check-compile-output": "./scripts/check-compile-output.sh"
31+
"check-compile-output": "./scripts/check-compile-output.sh",
32+
"prepare": "yarn compile"
2633
},
2734
"license": "GPL-3.0-or-later"
2835
}

‎test/UniswapV2Factory.spec.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,19 @@ describe('UniswapV2Factory', () => {
6767

6868
it('createPair:gas', async () => {
6969
const gasCost = await factory.estimate.createPair(...TEST_ADDRESSES)
70-
expect(gasCost).to.eq(2513232)
70+
expect(gasCost).to.eq(2512920)
7171
})
7272

7373
it('setFeeTo', async () => {
74-
await expect(factory.connect(other).setFeeTo(other.address)).to.be.reverted // UniswapV2: FORBIDDEN
74+
await expect(factory.connect(other).setFeeTo(other.address)).to.be.revertedWith('UniswapV2: FORBIDDEN')
7575
await factory.setFeeTo(wallet.address)
7676
expect(await factory.feeTo()).to.eq(wallet.address)
7777
})
7878

7979
it('setFeeToSetter', async () => {
80-
await expect(factory.connect(other).setFeeToSetter(other.address)).to.be.reverted // UniswapV2: FORBIDDEN
80+
await expect(factory.connect(other).setFeeToSetter(other.address)).to.be.revertedWith('UniswapV2: FORBIDDEN')
8181
await factory.setFeeToSetter(other.address)
8282
expect(await factory.feeToSetter()).to.eq(other.address)
83-
await expect(factory.setFeeToSetter(wallet.address)).to.be.reverted // UniswapV2: FORBIDDEN
83+
await expect(factory.setFeeToSetter(wallet.address)).to.be.revertedWith('UniswapV2: FORBIDDEN')
8484
})
8585
})

‎test/UniswapV2Pair.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ describe('UniswapV2Pair', () => {
177177
await token1.transfer(pair.address, swapAmount)
178178
await mineBlock(provider, (await provider.getBlock('latest')).timestamp + 1)
179179
const gasCost = await pair.estimate.swap(expectedOutputAmount, 0, wallet.address, '0x', overrides)
180-
expect(gasCost).to.eq(79378)
180+
expect(gasCost).to.eq(79136)
181181
})
182182

183183
it('burn', async () => {

‎yarn.lock

+281-571
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.