Skip to content

Commit c4c9919

Browse files
committed
format with prettier
1 parent bda2b30 commit c4c9919

14 files changed

+41
-56
lines changed

.mocharc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"require": "hardhat/register",
33
"timeout": 20000
4-
}
4+
}

.prettierrc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jsxBracketSameLine: false
55
jsxSingleQuote: true
66
arrowParens: always
77
overrides:
8-
- files: "*.sol"
8+
- files: '*.sol'
99
options:
1010
printWidth: 80
1111
tabWidth: 2

README.md

+20-15
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ SolidState is an upgradeable-first Solidity smart contract development library.
66

77
It consists of the following packages:
88

9-
| package | description | 📕 |
10-
|-|-|-|
11-
| `@solidstate/abi` | contract ABIs | [📖](./abi/README.md) |
12-
| `@solidstate/contracts` | core contracts | [📖](./contracts/README.md) |
13-
| `@solidstate/library` | functions for interacting with and validating contracts | [📖](./lib/README.md) |
14-
| `@solidstate/spec` | portable tests which may be run against third-party implementations of core contracts | [📖](./spec/README.md) |
9+
| package | description | 📕 |
10+
| ----------------------- | ------------------------------------------------------------------------------------- | --------------------------- |
11+
| `@solidstate/abi` | contract ABIs | [📖](./abi/README.md) |
12+
| `@solidstate/contracts` | core contracts | [📖](./contracts/README.md) |
13+
| `@solidstate/library` | functions for interacting with and validating contracts | [📖](./lib/README.md) |
14+
| `@solidstate/spec` | portable tests which may be run against third-party implementations of core contracts | [📖](./spec/README.md) |
1515

1616
### Contracts
1717

18-
All contracts are designed to either be deployed through the standard `constructor` method, or referenced by a proxy. To this end, the [diamond storage](https://medium.com/1milliondevs/new-storage-layout-for-proxy-contracts-and-diamonds-98d01d0eadb) pattern is employed exclusively.
18+
All contracts are designed to either be deployed through the standard `constructor` method, or referenced by a proxy. To this end, the [diamond storage](https://medium.com/1milliondevs/new-storage-layout-for-proxy-contracts-and-diamonds-98d01d0eadb) pattern is employed exclusively.
1919

2020
### Spec
2121

22-
Where possible, automated tests are designed to be imported by repositories which make use of the SolidState contracts and run against any derived contracts. This is to help prevent unintended changes to to the base contract behavior.
22+
Where possible, automated tests are designed to be imported by repositories which make use of the SolidState contracts and run against any derived contracts. This is to help prevent unintended changes to to the base contract behavior.
2323

2424
For example, consider a custom `ERC20Base` implementation:
2525

@@ -43,21 +43,26 @@ describe('CustomToken', function () {
4343
await instance.deployed();
4444
});
4545

46-
describeBehaviorOfERC20Base({
47-
deploy: () => instance,
48-
}, []);
46+
describeBehaviorOfERC20Base(
47+
{
48+
deploy: () => instance,
49+
},
50+
[],
51+
);
4952

5053
// custom tests...
5154
});
5255
```
5356

5457
If parts of the base implementation are changed intentionally, tests can be selectively skipped:
5558

56-
5759
```javascript
58-
describeBehaviorOfERC20Base({
59-
deploy: () => instance,
60-
}, ['#balanceOf']);
60+
describeBehaviorOfERC20Base(
61+
{
62+
deploy: () => instance,
63+
},
64+
['#balanceOf'],
65+
);
6166

6267
describe('#balanceOf', function () {
6368
// custom tests

abi/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SolidState ABI
22

3-
SolidState smart contract ABIs. Part of the SolidState Solidity monorepo.
3+
SolidState smart contract ABIs. Part of the SolidState Solidity monorepo.
44

55
## Installation
66

contracts/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SolidState Contracts
22

3-
SolidState contract library. Part of the SolidState Solidity monorepo.
3+
SolidState contract library. Part of the SolidState Solidity monorepo.
44

55
## Installation
66

lerna.json

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
{
22
"version": "0.0.13",
3-
"packages": [
4-
"abi",
5-
"contracts",
6-
"lib",
7-
"spec"
8-
],
3+
"packages": ["abi", "contracts", "lib", "spec"],
94
"command": {
105
"publish": {
116
"forcePublish": "*"

lib/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SolidState Library
22

3-
Utility functions for interaction with SolidState contracts. Part of the SolidState Solidity monorepo.
3+
Utility functions for interaction with SolidState contracts. Part of the SolidState Solidity monorepo.
44

55
## Installation
66

spec/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SolidState Spec
22

3-
Portable specifications for SolidState contracts. Part of the SolidState Solidity monorepo.
3+
Portable specifications for SolidState contracts. Part of the SolidState Solidity monorepo.
44

55
## Installation
66

test/access/SafeOwnable.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import { ethers } from 'hardhat';
22
import { describeBehaviorOfSafeOwnable } from '@solidstate/spec';
33
import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers';
4-
import {
5-
SafeOwnableMock,
6-
SafeOwnableMock__factory,
7-
} from '../../typechain';
4+
import { SafeOwnableMock, SafeOwnableMock__factory } from '../../typechain';
85

96
describe('SafeOwnable', function () {
107
let owner: SignerWithAddress;

test/factory/CloneFactory.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import { expect } from 'chai';
22
import { ethers } from 'hardhat';
33
import { describeBehaviorOfCloneFactory } from '@solidstate/spec';
4-
import {
5-
CloneFactoryMock,
6-
CloneFactoryMock__factory,
7-
} from '../../typechain';
4+
import { CloneFactoryMock, CloneFactoryMock__factory } from '../../typechain';
85

96
describe('CloneFactory', function () {
107
let instance: CloneFactoryMock;

test/signature/ERC1271Stored.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import { expect } from 'chai';
22
import { ethers } from 'hardhat';
33
import { describeBehaviorOfERC1271Stored } from '@solidstate/spec';
4-
import {
5-
ERC1271StoredMock,
6-
ERC1271StoredMock__factory,
7-
} from '../../typechain';
4+
import { ERC1271StoredMock, ERC1271StoredMock__factory } from '../../typechain';
85

96
const validParams: [Uint8Array, Uint8Array] = [
107
ethers.utils.randomBytes(32),

test/token/ERC1155/ERC1155Base.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ import { expect } from 'chai';
22
import { ethers } from 'hardhat';
33
import { describeBehaviorOfERC1155Base } from '@solidstate/spec';
44
import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers';
5-
import {
6-
ERC1155BaseMock,
7-
ERC1155BaseMock__factory,
8-
} from '../../../typechain';
5+
import { ERC1155BaseMock, ERC1155BaseMock__factory } from '../../../typechain';
96

107
describe('ERC1155Base', function () {
118
let holder: SignerWithAddress;

test/token/ERC1404/ERC1404Base.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import { ethers } from 'hardhat';
22
import { describeBehaviorOfERC1404Base } from '@solidstate/spec';
3-
import {
4-
ERC1404BaseMock,
5-
ERC1404BaseMock__factory,
6-
} from '../../../typechain';
3+
import { ERC1404BaseMock, ERC1404BaseMock__factory } from '../../../typechain';
74
import { BigNumber } from 'ethers';
85

96
let restrictions = [

tsconfig.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"compilerOptions": {
3-
"target": "es2018",
4-
"module": "commonjs",
5-
"strict": true,
6-
"esModuleInterop": true,
7-
"outDir": "dist",
8-
"declaration": true,
9-
"baseUrl": "./"
10-
}
2+
"compilerOptions": {
3+
"target": "es2018",
4+
"module": "commonjs",
5+
"strict": true,
6+
"esModuleInterop": true,
7+
"outDir": "dist",
8+
"declaration": true,
9+
"baseUrl": "./"
10+
}
1111
}

0 commit comments

Comments
 (0)