Skip to content

Commit 11080de

Browse files
chore: new release (#21)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent a68e731 commit 11080de

12 files changed

+96
-95
lines changed

.changeset/happy-bulldogs-own.md

-5
This file was deleted.

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @peeramid-labs/eds
22

3+
## 2.0.1
4+
5+
### Patch Changes
6+
7+
- [#20](https://github.com/peeramid-labs/eds/pull/20) [`8e4ec30a087fa01402c9f5f588ba451caf7d6390`](https://github.com/peeramid-labs/eds/commit/8e4ec30a087fa01402c9f5f588ba451caf7d6390) Thanks [@peersky](https://github.com/peersky)! - updated linter config
8+
39
## 2.0.0
410

511
### Major Changes

deploy/01_codeIndex.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const func: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
1313
const result = await deploy("CodeIndex", {
1414
deterministicDeployment: salt,
1515
from: deployer,
16-
skipIfAlreadyDeployed: true,
16+
skipIfAlreadyDeployed: true
1717
});
1818

1919
console.log("CodeIndex deployed at", result.address);

hardhat.config.ts

+27-27
Original file line numberDiff line numberDiff line change
@@ -23,70 +23,70 @@ export default {
2323
templates: "docs/templates",
2424
sourcesDir: "./src",
2525
pageExtension: ".md",
26-
exclude: ["mocks", "initializers", "vendor", "modifiers", "fixtures"],
26+
exclude: ["mocks", "initializers", "vendor", "modifiers", "fixtures"]
2727
},
2828
gasReporter: {
2929
currency: "USD",
3030
gasPrice: 21,
3131
token: "MATIC",
3232
gasPriceApi: "https://api.polygonscan.com/api?module=proxy&action=eth_gasPrice",
3333
enabled: false,
34-
coinmarketcap: process.env.COINMARKETCAP_KEY,
34+
coinmarketcap: process.env.COINMARKETCAP_KEY
3535
},
3636
namedAccounts: {
3737
deployer: {
3838
hardhat: "0xF52E5dF676f51E410c456CC34360cA6F27959420",
3939
arbitrum: "0x5F997aAb4F6757FAa48e008faa599841947959F1",
4040
anvil: "0x6Cf8d74C7875de8C2FfB09228F4bf2A21b25e583",
41-
default: "0xF52E5dF676f51E410c456CC34360cA6F27959420", //TODO this must be set for networks
41+
default: "0xF52E5dF676f51E410c456CC34360cA6F27959420" //TODO this must be set for networks
4242
},
4343
owner: {
4444
default: "0x520E00225C4a43B6c55474Db44a4a44199b4c3eE",
45-
anvil: "0x507c2d32185667156de5B4C440FEEf3800078bDb",
46-
},
45+
anvil: "0x507c2d32185667156de5B4C440FEEf3800078bDb"
46+
}
4747
},
4848
defaultNetwork: "hardhat",
4949
networks: {
5050
hardhat: {
5151
accounts: {
52-
mnemonic: "casual vacant letter raw trend tool vacant opera buzz jaguar bridge myself",
53-
}, // ONLY LOCAL
52+
mnemonic: "casual vacant letter raw trend tool vacant opera buzz jaguar bridge myself"
53+
} // ONLY LOCAL
5454
},
5555
arbitrum: {
5656
url: process.env.RPC_URL ?? "",
57-
accounts: process.env.PRIVATE_KEY && [process.env.PRIVATE_KEY],
57+
accounts: process.env.PRIVATE_KEY && [process.env.PRIVATE_KEY]
5858
},
5959
mumbai: {
6060
url: "https://matic-mumbai.chainstacklabs.com",
61-
accounts: process.env.PRIVATE_KEY && [process.env.PRIVATE_KEY],
61+
accounts: process.env.PRIVATE_KEY && [process.env.PRIVATE_KEY]
6262
},
6363
matic: {
6464
url: process.env.RPC_URL ?? "",
65-
accounts: process.env.PRIVATE_KEY && [process.env.PRIVATE_KEY],
65+
accounts: process.env.PRIVATE_KEY && [process.env.PRIVATE_KEY]
6666
},
6767
ganache: {
6868
url: process.env.GANACHE_RPC_URL ?? "",
69-
accounts: process.env.PRIVATE_KEY && [process.env.PRIVATE_KEY],
69+
accounts: process.env.PRIVATE_KEY && [process.env.PRIVATE_KEY]
7070
},
7171
goerli: {
7272
url: process.env.RPC_URL ?? "",
73-
accounts: process.env.PRIVATE_KEY && [process.env.PRIVATE_KEY],
73+
accounts: process.env.PRIVATE_KEY && [process.env.PRIVATE_KEY]
7474
},
7575
localhost: {
7676
url: "http://127.0.0.1:8545",
7777
accounts: {
78-
mnemonic: "casual vacant letter raw trend tool vacant opera buzz jaguar bridge myself",
79-
}, // ONLY LOCAL
78+
mnemonic: "casual vacant letter raw trend tool vacant opera buzz jaguar bridge myself"
79+
} // ONLY LOCAL
8080
},
8181
anvil: {
8282
url: process.env.ANVIL_RPC_URL ?? "",
8383
accounts: {
84-
mnemonic: process.env.ANVIL_MNEMONIC ?? "x",
85-
},
86-
},
84+
mnemonic: process.env.ANVIL_MNEMONIC ?? "x"
85+
}
86+
}
8787
},
8888
paths: {
89-
sources: "./src",
89+
sources: "./src"
9090
},
9191
solidity: {
9292
compilers: [
@@ -95,19 +95,19 @@ export default {
9595
settings: {
9696
optimizer: {
9797
enabled: true,
98-
runs: 200000,
99-
},
100-
},
101-
},
102-
],
98+
runs: 200000
99+
}
100+
}
101+
}
102+
]
103103
},
104104
etherscan: {
105-
apiKey: process.env.ETHERSCAN_API_KEY,
105+
apiKey: process.env.ETHERSCAN_API_KEY
106106
},
107107
typechain: {
108108
outDir: "types",
109109
target: "ethers-v5",
110-
alwaysGenerateOverloads: true, // should overloads with full signatures like deposit(uint256) be generated always, even if there are no overloads?
110+
alwaysGenerateOverloads: true // should overloads with full signatures like deposit(uint256) be generated always, even if there are no overloads?
111111
// externalArtifacts: ["externalArtifacts/*.json"], // optional array of glob patterns with external artifacts to process (for example external libs from node_modules)
112112
},
113113
abiExporter: {
@@ -118,6 +118,6 @@ export default {
118118
// flat: true,
119119
// only: [":ERC20$"],
120120
spacing: 2,
121-
pretty: false,
122-
},
121+
pretty: false
122+
}
123123
};

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@peeramid-labs/eds",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"files": [
55
"abi",
66
"deployments",

test/eds/CodeHashDistribution.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ describe("CloneHashDistribution", function () {
3434
ethers.utils.formatBytes32String("testDistribution"),
3535
0
3636
)) as CodeHashDistribution;
37-
expect(await codeHashDistribution.instantiate("0x")).to.emit(codeHashDistribution, "Distributed");
37+
expect(await codeHashDistribution.instantiate("0x")).to.emit(
38+
codeHashDistribution,
39+
"Distributed"
40+
);
3841
});
3942
it("Instantiated contract code hash matches", async function () {
4043
const TestFacet = await ethers.getContractFactory("TestFacet");
@@ -55,7 +58,7 @@ describe("CloneHashDistribution", function () {
5558
const superInterface = utils.getSuperInterface();
5659
const parsed = receipt.logs.map((log) => ({
5760
rawLog: log,
58-
...superInterface.parseLog(log),
61+
...superInterface.parseLog(log)
5962
}));
6063
const instance = parsed[0].args.instances[0];
6164
const code2 = await testFacet.provider.getCode(instance);

test/eds/CodeIndex.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe("CloneDistribution", function () {
2424
const result = await hre.deployments.deploy("CodeIndex", {
2525
deterministicDeployment: hexValue,
2626
from: deployer.address,
27-
skipIfAlreadyDeployed: true,
27+
skipIfAlreadyDeployed: true
2828
});
2929
codeIndex = new ethers.Contract(result.address, CodeIndex.interface).connect(
3030
deployer

test/eds/Distributor.ts

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import { ethers } from "hardhat";
22
import { expect } from "chai";
33
import {
4-
CodeIndex, MockCloneDistribution__factory,
5-
OwnableDistributor,
6-
OwnableDistributor__factory,
7-
TestFacet__factory
4+
CodeIndex,
5+
MockCloneDistribution__factory,
6+
OwnableDistributor,
7+
OwnableDistributor__factory,
8+
TestFacet__factory
89
} from "../../types";
910
import { deployments } from "hardhat";
1011
import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers";

test/eds/Installer.ts

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import { ethers } from "hardhat";
22
import { expect } from "chai";
33
import {
4-
CodeIndex, MockCloneDistribution,
5-
MockCloneDistribution__factory,
6-
MockInstaller,
7-
MockInstaller__factory,
8-
OwnableDistributor,
9-
OwnableDistributor__factory
4+
CodeIndex,
5+
MockCloneDistribution,
6+
MockCloneDistribution__factory,
7+
MockInstaller,
8+
MockInstaller__factory,
9+
OwnableDistributor,
10+
OwnableDistributor__factory
1011
} from "../../types";
1112
import { deployments } from "hardhat";
1213
import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers";
@@ -89,7 +90,7 @@ describe("Installer", function () {
8990
it("can List distributors", async function () {
9091
await installer.connect(owner).whitelistDistributor(distributor.address);
9192
expect(await installer.connect(owner).getWhitelistedDistributors()).to.be.deep.eq([
92-
distributor.address,
93+
distributor.address
9394
]);
9495
});
9596
it("Can get instances by id", async function () {

test/eds/Repository.ts

+22-21
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import { ethers } from "hardhat";
22
import { expect } from "chai";
33
import {
4-
CodeIndex, MockCloneDistribution__factory,
5-
MockInstaller,
6-
MockInstaller__factory,
7-
OwnableDistributor,
8-
OwnableDistributor__factory,
9-
OwnableRepository__factory,
10-
Repository
4+
CodeIndex,
5+
MockCloneDistribution__factory,
6+
MockInstaller,
7+
MockInstaller__factory,
8+
OwnableDistributor,
9+
OwnableDistributor__factory,
10+
OwnableRepository__factory,
11+
Repository
1112
} from "../../types";
1213
import { deployments } from "hardhat";
1314
import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers";
@@ -74,7 +75,7 @@ describe("Installer", function () {
7475
repository.connect(owner).newRelease(firstId, ethers.utils.formatBytes32String("test"), {
7576
major: 1,
7677
minor: 0,
77-
patch: 0,
78+
patch: 0
7879
})
7980
).to.emit(repository, "VersionAdded");
8081
});
@@ -83,7 +84,7 @@ describe("Installer", function () {
8384
repository.connect(owner).newRelease(firstId, ethers.utils.formatBytes32String("test"), {
8485
major: 2,
8586
minor: 0,
86-
patch: 0,
87+
patch: 0
8788
})
8889
).to.be.revertedWithCustomError(repository, "VersionIncrementInvalid");
8990
});
@@ -92,7 +93,7 @@ describe("Installer", function () {
9293
repository.connect(owner).newRelease(firstId, ethers.utils.formatBytes32String("test"), {
9394
major: 0,
9495
minor: 0,
95-
patch: 0,
96+
patch: 0
9697
})
9798
).to.be.revertedWithCustomError(repository, "ReleaseZeroNotAllowed");
9899
});
@@ -103,13 +104,13 @@ describe("Installer", function () {
103104
.newRelease(firstId, ethers.utils.formatBytes32String("test"), {
104105
major: 1,
105106
minor: 0,
106-
patch: 0,
107+
patch: 0
107108
});
108109
});
109110
it("Can get versions", async function () {
110111
const src = await repository.get({
111112
version: { major: 1, minor: 0, patch: 0 },
112-
requirement: 1,
113+
requirement: 1
113114
});
114115
expect(src.sourceId).to.be.eq(firstId);
115116
});
@@ -118,7 +119,7 @@ describe("Installer", function () {
118119
repository.connect(owner).newRelease(firstId, ethers.utils.formatBytes32String("test"), {
119120
major: 1,
120121
minor: 0,
121-
patch: 0,
122+
patch: 0
122123
})
123124
).to.be.revertedWithCustomError(repository, "VersionExists");
124125
});
@@ -127,7 +128,7 @@ describe("Installer", function () {
127128
repository.connect(owner).newRelease(firstId, ethers.utils.formatBytes32String("test"), {
128129
major: 1,
129130
minor: 1,
130-
patch: 0,
131+
patch: 0
131132
})
132133
).to.emit(repository, "VersionAdded");
133134
});
@@ -138,27 +139,27 @@ describe("Installer", function () {
138139
.newRelease(secondId, ethers.utils.formatBytes32String("test"), {
139140
major: 2,
140141
minor: 0,
141-
patch: 0,
142+
patch: 0
142143
});
143144
await repository
144145
.connect(owner)
145146
.newRelease(thirdId, ethers.utils.formatBytes32String("test"), {
146147
major: 1,
147148
minor: 1,
148-
patch: 0,
149+
patch: 0
149150
});
150151
await repository
151152
.connect(owner)
152153
.newRelease(fourthId, ethers.utils.formatBytes32String("test"), {
153154
major: 2,
154155
minor: 1,
155-
patch: 0,
156+
patch: 0
156157
});
157158
});
158159
it("Can get version by MAJOR", async () => {
159160
let src = await repository.get({
160161
version: { major: 1, minor: 0, patch: 0 },
161-
requirement: 2,
162+
requirement: 2
162163
});
163164
expect(src.sourceId).to.be.eq(thirdId);
164165
src = await repository.get({ version: { major: 2, minor: 0, patch: 0 }, requirement: 2 });
@@ -167,7 +168,7 @@ describe("Installer", function () {
167168
it("Can get version by MAJOR_MINOR", async () => {
168169
let src = await repository.get({
169170
version: { major: 1, minor: 0, patch: 1 },
170-
requirement: 3,
171+
requirement: 3
171172
});
172173
expect(src.sourceId).to.be.eq(firstId);
173174
src = await repository.get({ version: { major: 1, minor: 1, patch: 4 }, requirement: 3 });
@@ -179,7 +180,7 @@ describe("Installer", function () {
179180
it("Can get version by GREATER_EQUAL", async () => {
180181
let src = await repository.get({
181182
version: { major: 1, minor: 0, patch: 0 },
182-
requirement: 4,
183+
requirement: 4
183184
});
184185
expect(src.sourceId).to.be.eq(fourthId);
185186
src = await repository.get({ version: { major: 2, minor: 0, patch: 0 }, requirement: 4 });
@@ -193,7 +194,7 @@ describe("Installer", function () {
193194
it("Can get version by GREATER", async () => {
194195
let src = await repository.get({
195196
version: { major: 1, minor: 0, patch: 0 },
196-
requirement: 5,
197+
requirement: 5
197198
});
198199
expect(src.sourceId).to.be.eq(fourthId);
199200
src = await repository.get({ version: { major: 2, minor: 0, patch: 0 }, requirement: 5 });

0 commit comments

Comments
 (0)