Skip to content

Commit cfbbea8

Browse files
authored
Merge of #2038
2 parents 7ca32a9 + 1fbcb88 commit cfbbea8

24 files changed

+640
-1011
lines changed

docs/examples/SUMMARY.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@
1717

1818
- [Library installation and overview](openzeppelin/README.md)
1919
- [ERC7984 Standard](openzeppelin/erc7984.md)
20-
- [ERC7984 Tutorial](openzeppelin/erc7984-tutorial.md)
21-
- [ERC7984 to ERC20 Wrapper](openzeppelin/ERC7984ERC20WrapperMock.md)
20+
- [ERC-20 to Wrapped ERC-7984](openzeppelin/ERC7984ERC20WrapperMock.md)
2221
- [Swap ERC7984 to ERC20](openzeppelin/swapERC7984ToERC20.md)
23-
- [Swap ERC7984 to ERC7984](openzeppelin/swapERC7984ToERC7984.md)
2422
- [Vesting Wallet](openzeppelin/vesting-wallet.md)
2523
- [Integration guide for Wallets and Exchanges](./integration-guide.md)
24+
25+
## Auctions
26+
27+
- [Sealed-Bid Auction](sealed-bid-auction.md)
28+
- [Tutorial](sealed-bid-auction-tutorial.md)

docs/examples/fhe-encrypt-multiple-value.md

Lines changed: 0 additions & 268 deletions
This file was deleted.

docs/examples/fhe-encrypt-multiple-values.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This example demonstrates the FHE encryption mechanism with multiple values.
1+
This example shows how to encrypt and handle multiple values in a single transaction.
22

33
{% hint style="info" %}
44
To run this example correctly, make sure the files are placed in the following directories:
@@ -81,7 +81,7 @@ contract EncryptMultipleValues is ZamaEthereumConfig {
8181

8282
{% tab title="EncryptMultipleValues.ts" %}
8383

84-
```ts
84+
```typescript
8585
//TODO;
8686
import { EncryptMultipleValues, EncryptMultipleValues__factory } from "../../../types";
8787
import type { Signers } from "../../types";

docs/examples/fhe-encrypt-single-value.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ contract EncryptSingleValue is ZamaEthereumConfig {
4848

4949
{% tab title="EncryptSingleValue.ts" %}
5050

51-
```ts
51+
```typescript
5252
import { EncryptSingleValue, EncryptSingleValue__factory } from "../../../types";
5353
import type { Signers } from "../../types";
5454
import { FhevmType, HardhatFhevmRuntimeEnvironment } from "@fhevm/hardhat-plugin";

docs/examples/fhe-user-decrypt-single-value.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ contract UserDecryptSingleValue is ZamaEthereumConfig {
7676

7777
```ts
7878
import { UserDecryptSingleValue, UserDecryptSingleValue__factory } from "../../../types";
79-
import type { Signers } from "../../types";
79+
import type { Signers } from "../../../types";
8080
import { FhevmType, HardhatFhevmRuntimeEnvironment } from "@fhevm/hardhat-plugin";
8181
import { HardhatEthersSigner } from "@nomicfoundation/hardhat-ethers/signers";
8282
import { expect } from "chai";

docs/examples/fheadd.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This example demonstrates how to write a simple "a + b" contract using FHEVM.
1+
This example demonstrates how to perform addition operations on encrypted values.
22

33
{% hint style="info" %}
44
To run this example correctly, make sure the files are placed in the following directories:
@@ -66,15 +66,16 @@ contract FHEAdd is ZamaEthereumConfig {
6666

6767
{% tab title="FHEAdd.ts" %}
6868

69-
```ts
70-
import { FHEAdd, FHEAdd__factory } from "../../../types";
71-
import type { Signers } from "../../types";
69+
```typescript
7270
import { FhevmType, HardhatFhevmRuntimeEnvironment } from "@fhevm/hardhat-plugin";
7371
import { HardhatEthersSigner } from "@nomicfoundation/hardhat-ethers/signers";
7472
import { expect } from "chai";
7573
import { ethers } from "hardhat";
7674
import * as hre from "hardhat";
7775

76+
import { FHEAdd, FHEAdd__factory } from "../../../types";
77+
import type { Signers } from "../../types";
78+
7879
async function deployFixture() {
7980
// Contracts are deployed using the first signer/account by default
8081
const factory = (await ethers.getContractFactory("FHEAdd")) as FHEAdd__factory;
@@ -148,6 +149,7 @@ describe("FHEAdd", function () {
148149
expect(clearAplusB).to.equal(a + b);
149150
});
150151
});
152+
151153
```
152154

153155
{% endtab %}

docs/examples/fheifthenelse.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This example demonstrates how to write a simple contract with conditions using FHEVM, in comparison to a simple counter.
1+
This example shows conditional operations on encrypted values using FHE.
22

33
{% hint style="info" %}
44
To run this example correctly, make sure the files are placed in the following directories:
@@ -62,15 +62,16 @@ contract FHEIfThenElse is ZamaEthereumConfig {
6262

6363
{% tab title="FHEIfThenElse.ts" %}
6464

65-
```ts
66-
import { FHEIfThenElse, FHEIfThenElse__factory } from "../../../types";
67-
import type { Signers } from "../../types";
65+
```typescript
6866
import { FhevmType, HardhatFhevmRuntimeEnvironment } from "@fhevm/hardhat-plugin";
6967
import { HardhatEthersSigner } from "@nomicfoundation/hardhat-ethers/signers";
7068
import { expect } from "chai";
7169
import { ethers } from "hardhat";
7270
import * as hre from "hardhat";
7371

72+
import { FHEIfThenElse, FHEIfThenElse__factory } from "../../../types";
73+
import type { Signers } from "../../types";
74+
7475
async function deployFixture() {
7576
// Contracts are deployed using the first signer/account by default
7677
const factory = (await ethers.getContractFactory("FHEIfThenElse")) as FHEIfThenElse__factory;
@@ -144,6 +145,7 @@ describe("FHEIfThenElse", function () {
144145
expect(clearMax).to.equal(a >= b ? a : b);
145146
});
146147
});
148+
147149
```
148150

149151
{% endtab %}

0 commit comments

Comments
 (0)