Skip to content

Commit

Permalink
docs: use solc 0.8.21 in the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
heueristik committed Oct 6, 2023
1 parent ae535a1 commit 542b552
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ In this case, the compiler will force you to write a `constructor` function call

```solidity
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.8.17;
pragma solidity 0.8.21;
import {Plugin, IDAO} from '@aragon/osx/core/plugin/Plugin.sol';
Expand Down Expand Up @@ -57,7 +57,7 @@ To deploy our plugin via the [minimal clones pattern (ERC-1167)](https://eips.et

```solidity
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.8.17;
pragma solidity 0.8.21;
import {PluginCloneable, IDAO} from '@aragon/osx/core/plugin/PluginCloneable.sol';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Each `PluginSetup` contract is deployed only once and we will publish a separate

```solidity
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.8.17;
pragma solidity 0.8.21;
import {PluginSetup, IPluginSetup} from '@aragon/osx/framework/plugin/setup/PluginSetup.sol';
import {SimpleAdmin} from './SimpleAdmin.sol';
Expand Down Expand Up @@ -227,7 +227,7 @@ Now, it's time to wrap up everything together. You should have a contract that l

```solidity
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.8.17;
pragma solidity 0.8.21;
import {Clones} from '@openzeppelin/contracts/proxy/Clones.sol';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Then, inside of the file, add the functionality:

```solidity
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.8.17;
pragma solidity 0.8.21;
import {Plugin, IDAO} from '@aragon/osx/core/plugin/Plugin.sol';
Expand Down Expand Up @@ -122,7 +122,7 @@ In the `prepareInstallation()` function here then, we will grant the `GREET_PERM

```solidity
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.8.17;
pragma solidity 0.8.21;
import {PluginSetup} from '@aragon/osx/framework/plugin/setup/PluginSetup.sol';
import {PermissionLib} from '@aragon/osx/core/permission/PermissionLib.sol';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This has to be called - otherwise, anyone else could call the plugin's initializ

```solidity
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.8.17;
pragma solidity 0.8.21;
import {PluginUUPSUpgradeable, IDAO} '@aragon/osx/core/plugin/PluginUUPSUpgradeable.sol';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Before building the Plugin Setup contract, make sure you have the logic for your

```solidity
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.8.17;
pragma solidity 0.8.21;
import {IDAO, PluginUUPSUpgradeable} from '@aragon/osx/core/plugin/PluginUUPSUpgradeable.sol';
Expand Down Expand Up @@ -53,7 +53,7 @@ Similarly, the `prepareUninstallation()` function takes in a `payload`.
```solidity
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.8.17;
pragma solidity 0.8.21;
import {PermissionLib} from '@aragon/osx/core/permission/PermissionLib.sol';
import {PluginSetup, IPluginSetup} from '@aragon/osx/framework/plugin/setup/PluginSetup.sol';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Firstly, you want to create the new build implementation contract the plugin sho

```solidity
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.8.17;
pragma solidity 0.8.21;
import {IDAO, PluginUUPSUpgradeable} from '@aragon/osx/core/plugin/PluginUUPSUpgradeable.sol';
Expand Down Expand Up @@ -61,7 +61,7 @@ In contrast to the original build 1, build 2 requires two input arguments: `uint
```solidity
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.8.17;
pragma solidity 0.8.21;
import {PermissionLib} from '@aragon/osx/core/permission/PermissionLib.sol';
import {PluginSetup, IPluginSetup} from '@aragon/osx/framework/plugin/setup/PluginSetup.sol';
Expand Down Expand Up @@ -159,7 +159,7 @@ In this third build, for example, we are modifying the bytecode of the plugin.

```solidity
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.8.17;
pragma solidity 0.8.21;
import {IDAO, PluginUUPSUpgradeable} from '@aragon/osx/core/plugin/PluginUUPSUpgradeable.sol';
Expand Down Expand Up @@ -234,7 +234,7 @@ With each new build implementation, we will need to udate the Plugin Setup contr
```solidity
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.8.17;
pragma solidity 0.8.21;
import {PermissionLib} from '@aragon/osx/core/permission/PermissionLib.sol';
import {PluginSetup, IPluginSetup} from '@aragon/osx/framework/plugin/setup/PluginSetup.sol';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Inside the `GreeterPlugin.sol`, we want to:

```solidity
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.8.17;
pragma solidity 0.8.21;
import {Plugin, IDAO} from '@aragon/osx/core/plugin/Plugin.sol';
Expand Down Expand Up @@ -105,7 +105,7 @@ Inside the file, we'll add the `prepareInstallation` and `prepareUninstallation`

```solidity
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.8.17;
pragma solidity 0.8.21;
import {PermissionLib} from '@aragon/osx/core/permission/PermissionLib.sol';
import {PluginSetup} from '@aragon/osx/framework/plugin/setup/PluginSetup.sol';
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/docs/developer-portal/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Then, to use the contracts within your project, **import the contracts** through

```solidity title="MyCoolPlugin.sol"
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.8.17;
pragma solidity 0.8.21;
import {Plugin, IDAO} from '@aragon/osx/core/plugin/Plugin.sol';
Expand Down

0 comments on commit 542b552

Please sign in to comment.