Skip to content

Commit

Permalink
Merge pull request #147 from 1inch/feature/deploy-create3
Browse files Browse the repository at this point in the history
[SC-1177] Deploy with create3 and save deployment
  • Loading branch information
ZumZoom authored Jul 3, 2024
2 parents 971276f + 2999c7a commit 2e247c2
Show file tree
Hide file tree
Showing 11 changed files with 398 additions and 140 deletions.
17 changes: 17 additions & 0 deletions contracts/tests/mocks/Create3Mock.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@0xsequence/create3/contracts/Create3.sol";

contract Create3Mock {
function deploy(bytes32 salt, bytes calldata code) external returns (address) {
return Create3.create3(salt, code);
}

function addressOf(bytes32 salt) external view returns (address) {
return Create3.addressOf(salt);
}
}


14 changes: 7 additions & 7 deletions docs/js/classes/hardhat_setup.Networks.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ See the [README](https://github.com/1inch/solidity-utils/tree/master/hardhat-set

#### Defined in

[hardhat-setup/networks.ts:75](https://github.com/1inch/solidity-utils/blob/dc69769/hardhat-setup/networks.ts#L75)
[hardhat-setup/networks.ts:75](https://github.com/1inch/solidity-utils/blob/99d1aa1/hardhat-setup/networks.ts#L75)

## Properties

Expand All @@ -57,7 +57,7 @@ See the [README](https://github.com/1inch/solidity-utils/tree/master/hardhat-set

#### Defined in

[hardhat-setup/networks.ts:73](https://github.com/1inch/solidity-utils/blob/dc69769/hardhat-setup/networks.ts#L73)
[hardhat-setup/networks.ts:73](https://github.com/1inch/solidity-utils/blob/99d1aa1/hardhat-setup/networks.ts#L73)

___

Expand All @@ -67,7 +67,7 @@ ___

#### Defined in

[hardhat-setup/networks.ts:72](https://github.com/1inch/solidity-utils/blob/dc69769/hardhat-setup/networks.ts#L72)
[hardhat-setup/networks.ts:72](https://github.com/1inch/solidity-utils/blob/99d1aa1/hardhat-setup/networks.ts#L72)

## Methods

Expand All @@ -93,7 +93,7 @@ ___

#### Defined in

[hardhat-setup/networks.ts:96](https://github.com/1inch/solidity-utils/blob/dc69769/hardhat-setup/networks.ts#L96)
[hardhat-setup/networks.ts:96](https://github.com/1inch/solidity-utils/blob/99d1aa1/hardhat-setup/networks.ts#L96)

___

Expand All @@ -112,7 +112,7 @@ ___

#### Defined in

[hardhat-setup/networks.ts:139](https://github.com/1inch/solidity-utils/blob/dc69769/hardhat-setup/networks.ts#L139)
[hardhat-setup/networks.ts:139](https://github.com/1inch/solidity-utils/blob/99d1aa1/hardhat-setup/networks.ts#L139)

___

Expand All @@ -139,7 +139,7 @@ ___

#### Defined in

[hardhat-setup/networks.ts:113](https://github.com/1inch/solidity-utils/blob/dc69769/hardhat-setup/networks.ts#L113)
[hardhat-setup/networks.ts:113](https://github.com/1inch/solidity-utils/blob/99d1aa1/hardhat-setup/networks.ts#L113)

___

Expand All @@ -165,4 +165,4 @@ ___

#### Defined in

[hardhat-setup/networks.ts:120](https://github.com/1inch/solidity-utils/blob/dc69769/hardhat-setup/networks.ts#L120)
[hardhat-setup/networks.ts:120](https://github.com/1inch/solidity-utils/blob/99d1aa1/hardhat-setup/networks.ts#L120)
6 changes: 3 additions & 3 deletions docs/js/enums/src.NonceType.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Enum defining types of nonces.

#### Defined in

[src/bySig.ts:10](https://github.com/1inch/solidity-utils/blob/dc69769/src/bySig.ts#L10)
[src/bySig.ts:10](https://github.com/1inch/solidity-utils/blob/99d1aa1/src/bySig.ts#L10)

___

Expand All @@ -32,7 +32,7 @@ ___

#### Defined in

[src/bySig.ts:11](https://github.com/1inch/solidity-utils/blob/dc69769/src/bySig.ts#L11)
[src/bySig.ts:11](https://github.com/1inch/solidity-utils/blob/99d1aa1/src/bySig.ts#L11)

___

Expand All @@ -42,4 +42,4 @@ ___

#### Defined in

[src/bySig.ts:12](https://github.com/1inch/solidity-utils/blob/dc69769/src/bySig.ts#L12)
[src/bySig.ts:12](https://github.com/1inch/solidity-utils/blob/99d1aa1/src/bySig.ts#L12)
32 changes: 13 additions & 19 deletions docs/js/interfaces/src.DeployContractOptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Number of confirmations to wait based on network. Ussually it's need for waiting

#### Defined in

[src/utils.ts:29](https://github.com/1inch/solidity-utils/blob/dc69769/src/utils.ts#L29)
[src/utils.ts:31](https://github.com/1inch/solidity-utils/blob/99d1aa1/src/utils.ts#L31)

___

Expand All @@ -91,7 +91,7 @@ ___

#### Defined in

[src/utils.ts:27](https://github.com/1inch/solidity-utils/blob/dc69769/src/utils.ts#L27)
[src/utils.ts:29](https://github.com/1inch/solidity-utils/blob/99d1aa1/src/utils.ts#L29)

___

Expand All @@ -101,7 +101,7 @@ ___

#### Defined in

[src/utils.ts:31](https://github.com/1inch/solidity-utils/blob/dc69769/src/utils.ts#L31)
[src/utils.ts:33](https://github.com/1inch/solidity-utils/blob/99d1aa1/src/utils.ts#L33)

___

Expand All @@ -111,23 +111,17 @@ ___

#### Defined in

[src/utils.ts:32](https://github.com/1inch/solidity-utils/blob/dc69769/src/utils.ts#L32)
[src/utils.ts:34](https://github.com/1inch/solidity-utils/blob/99d1aa1/src/utils.ts#L34)

___

### deployments

**deployments**: `Object`

#### Type declaration

| Name | Type |
| :------ | :------ |
| `deploy` | (`name`: `string`, `options`: `DeployOptions`) => `Promise`\<`DeployResult`\> |
**deployments**: `DeploymentsExtension`

#### Defined in

[src/utils.ts:30](https://github.com/1inch/solidity-utils/blob/dc69769/src/utils.ts#L30)
[src/utils.ts:32](https://github.com/1inch/solidity-utils/blob/99d1aa1/src/utils.ts#L32)

___

Expand All @@ -137,7 +131,7 @@ ___

#### Defined in

[src/utils.ts:35](https://github.com/1inch/solidity-utils/blob/dc69769/src/utils.ts#L35)
[src/utils.ts:37](https://github.com/1inch/solidity-utils/blob/99d1aa1/src/utils.ts#L37)

___

Expand All @@ -147,7 +141,7 @@ ___

#### Defined in

[src/utils.ts:38](https://github.com/1inch/solidity-utils/blob/dc69769/src/utils.ts#L38)
[src/utils.ts:40](https://github.com/1inch/solidity-utils/blob/99d1aa1/src/utils.ts#L40)

___

Expand All @@ -157,7 +151,7 @@ ___

#### Defined in

[src/utils.ts:37](https://github.com/1inch/solidity-utils/blob/dc69769/src/utils.ts#L37)
[src/utils.ts:39](https://github.com/1inch/solidity-utils/blob/99d1aa1/src/utils.ts#L39)

___

Expand All @@ -167,7 +161,7 @@ ___

#### Defined in

[src/utils.ts:36](https://github.com/1inch/solidity-utils/blob/dc69769/src/utils.ts#L36)
[src/utils.ts:38](https://github.com/1inch/solidity-utils/blob/99d1aa1/src/utils.ts#L38)

___

Expand All @@ -177,7 +171,7 @@ ___

#### Defined in

[src/utils.ts:34](https://github.com/1inch/solidity-utils/blob/dc69769/src/utils.ts#L34)
[src/utils.ts:36](https://github.com/1inch/solidity-utils/blob/99d1aa1/src/utils.ts#L36)

___

Expand All @@ -187,7 +181,7 @@ ___

#### Defined in

[src/utils.ts:33](https://github.com/1inch/solidity-utils/blob/dc69769/src/utils.ts#L33)
[src/utils.ts:35](https://github.com/1inch/solidity-utils/blob/99d1aa1/src/utils.ts#L35)

___

Expand All @@ -197,4 +191,4 @@ ___

#### Defined in

[src/utils.ts:39](https://github.com/1inch/solidity-utils/blob/dc69769/src/utils.ts#L39)
[src/utils.ts:41](https://github.com/1inch/solidity-utils/blob/99d1aa1/src/utils.ts#L41)
4 changes: 2 additions & 2 deletions docs/js/interfaces/src.SignedCallStruct.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#### Defined in

[src/bySig.ts:51](https://github.com/1inch/solidity-utils/blob/dc69769/src/bySig.ts#L51)
[src/bySig.ts:51](https://github.com/1inch/solidity-utils/blob/99d1aa1/src/bySig.ts#L51)

___

Expand All @@ -29,4 +29,4 @@ ___

#### Defined in

[src/bySig.ts:50](https://github.com/1inch/solidity-utils/blob/dc69769/src/bySig.ts#L50)
[src/bySig.ts:50](https://github.com/1inch/solidity-utils/blob/99d1aa1/src/bySig.ts#L50)
8 changes: 4 additions & 4 deletions docs/js/modules/hardhat_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Array of custom blockchain network configurations.

#### Defined in

[hardhat-setup/networks.ts:11](https://github.com/1inch/solidity-utils/blob/dc69769/hardhat-setup/networks.ts#L11)
[hardhat-setup/networks.ts:11](https://github.com/1inch/solidity-utils/blob/99d1aa1/hardhat-setup/networks.ts#L11)

___

Expand All @@ -65,7 +65,7 @@ A helper method to get the network name from the command line arguments.

#### Defined in

[hardhat-setup/networks.ts:21](https://github.com/1inch/solidity-utils/blob/dc69769/hardhat-setup/networks.ts#L21)
[hardhat-setup/networks.ts:21](https://github.com/1inch/solidity-utils/blob/99d1aa1/hardhat-setup/networks.ts#L21)

___

Expand Down Expand Up @@ -96,7 +96,7 @@ A helper method to parse RPC configuration strings. Checks that the string is in

#### Defined in

[hardhat-setup/networks.ts:32](https://github.com/1inch/solidity-utils/blob/dc69769/hardhat-setup/networks.ts#L32)
[hardhat-setup/networks.ts:32](https://github.com/1inch/solidity-utils/blob/99d1aa1/hardhat-setup/networks.ts#L32)

___

Expand All @@ -121,4 +121,4 @@ A helper method to reset the Hardhat network to the local network or to a fork.

#### Defined in

[hardhat-setup/networks.ts:46](https://github.com/1inch/solidity-utils/blob/dc69769/hardhat-setup/networks.ts#L46)
[hardhat-setup/networks.ts:46](https://github.com/1inch/solidity-utils/blob/99d1aa1/hardhat-setup/networks.ts#L46)
Loading

0 comments on commit 2e247c2

Please sign in to comment.