-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
1,299 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
packages/hardhat-zksync-solc/test/compiler-files/macos/solc-macos:Zone.Identifier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[ZoneTransfer] | ||
ZoneId=3 | ||
ReferrerUrl=https://github.com/ethereum/solidity/releases | ||
HostUrl=https://objects.githubusercontent.com/github-production-release-asset-2e65be/40892817/d8c0c93a-8522-4772-be33-c8cb04a26d5d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231225%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231225T225829Z&X-Amz-Expires=300&X-Amz-Signature=61e0d8865c9f98cd83643330f76ef3bb17b565f0d77aa45da8f5ca438d673973&X-Amz-SignedHeaders=host&actor_id=131957563&key_id=0&repo_id=40892817&response-content-disposition=attachment%3B%20filename%3Dsolc-macos&response-content-type=application%2Foctet-stream |
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
...hardhat-zksync-solc/test/compiler-files/macos/zksolc-macosx-arm64-v1.3.17:Zone.Identifier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[ZoneTransfer] | ||
ZoneId=3 | ||
ReferrerUrl=https://github.com/matter-labs/zksolc-bin/releases | ||
HostUrl=https://objects.githubusercontent.com/github-production-release-asset-2e65be/423900857/a181a32b-51d2-443d-9c35-101bc5898a91?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231225%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231225T225424Z&X-Amz-Expires=300&X-Amz-Signature=b8068888dfde3a94f2627d1617a39d4117cedb8e47c1a93d087df2eb4b9af6f1&X-Amz-SignedHeaders=host&actor_id=131957563&key_id=0&repo_id=423900857&response-content-disposition=attachment%3B%20filename%3Dzksolc-macosx-arm64-v1.3.17&response-content-type=application%2Foctet-stream |
18 changes: 18 additions & 0 deletions
18
packages/hardhat-zksync-solc/test/fixture-projects/docker-compile/contracts/Greeter.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity >=0.4.22 <0.9.0; | ||
|
||
contract Greeter { | ||
|
||
string greeting; | ||
string bad; | ||
constructor(string memory _greeting) { | ||
greeting = _greeting; | ||
bad = "baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaad"; | ||
} | ||
|
||
function greet() public view returns (string memory) { | ||
return greeting; | ||
} | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
packages/hardhat-zksync-solc/test/fixture-projects/docker-compile/hardhat.config.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import '../../../src/index'; | ||
import { HardhatUserConfig } from 'hardhat/config'; | ||
|
||
const config: HardhatUserConfig = { | ||
zksolc: { | ||
compilerSource: 'docker', | ||
settings: { | ||
experimental: { | ||
dockerImage: "matterlabs/zksolc", | ||
tag: "latest" | ||
} | ||
} | ||
}, | ||
networks: { | ||
hardhat: { | ||
zksync: true, | ||
} | ||
}, | ||
solidity: { | ||
version: '0.8.17' | ||
}, | ||
}; | ||
|
||
export default config; |
18 changes: 18 additions & 0 deletions
18
packages/hardhat-zksync-solc/test/fixture-projects/multiple-compilers/contracts/Greeter.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity >=0.4.22 <0.9.0; | ||
|
||
contract Greeter { | ||
|
||
string greeting; | ||
string bad; | ||
constructor(string memory _greeting) { | ||
greeting = _greeting; | ||
bad = "baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaad"; | ||
} | ||
|
||
function greet() public view returns (string memory) { | ||
return greeting; | ||
} | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
packages/hardhat-zksync-solc/test/fixture-projects/multiple-compilers/contracts/Greeter2.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity >=0.4.22 <0.9.0; | ||
|
||
contract Greeter2 { | ||
|
||
string greeting; | ||
string bad; | ||
constructor(string memory _greeting) { | ||
greeting = _greeting; | ||
bad = "baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaad"; | ||
} | ||
|
||
function greet() public view returns (string memory) { | ||
return greeting; | ||
} | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
packages/hardhat-zksync-solc/test/fixture-projects/multiple-compilers/hardhat.config.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import '../../../src/index'; | ||
import { HardhatUserConfig } from 'hardhat/config'; | ||
|
||
const config: HardhatUserConfig = { | ||
zksolc: { | ||
compilerSource: 'binary', | ||
}, | ||
networks: { | ||
hardhat: { | ||
zksync: true, | ||
} | ||
}, | ||
solidity: { | ||
compilers: [ | ||
{ | ||
version: '0.8.17' | ||
} | ||
], | ||
overrides: { | ||
"contracts/Greeter2.sol": { | ||
version: '0.8.16' | ||
} | ||
} | ||
} | ||
}; | ||
|
||
export default config; |
18 changes: 18 additions & 0 deletions
18
packages/hardhat-zksync-solc/test/fixture-projects/multiple-contracts/contracts/Greeter.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity >=0.4.22 <0.9.0; | ||
|
||
contract Greeter { | ||
|
||
string greeting; | ||
string bad; | ||
constructor(string memory _greeting) { | ||
greeting = _greeting; | ||
bad = "baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaad"; | ||
} | ||
|
||
function greet() public view returns (string memory) { | ||
return greeting; | ||
} | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
packages/hardhat-zksync-solc/test/fixture-projects/multiple-contracts/contracts/Greeter2.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity >=0.4.22 <0.9.0; | ||
|
||
contract Greeter2 { | ||
|
||
string greeting; | ||
string bad; | ||
constructor(string memory _greeting) { | ||
greeting = _greeting; | ||
bad = "baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaad"; | ||
} | ||
|
||
function greet() public view returns (string memory) { | ||
return greeting; | ||
} | ||
|
||
} |
1 change: 1 addition & 0 deletions
1
packages/hardhat-zksync-solc/test/fixture-projects/multiple-contracts/hardhat.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('../../common.config'); |
18 changes: 18 additions & 0 deletions
18
packages/hardhat-zksync-solc/test/fixture-projects/no-zksync/contracts/Greeter.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity >=0.4.22 <0.9.0; | ||
|
||
contract Greeter { | ||
|
||
string greeting; | ||
string bad; | ||
constructor(string memory _greeting) { | ||
greeting = _greeting; | ||
bad = "baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaad"; | ||
} | ||
|
||
function greet() public view returns (string memory) { | ||
return greeting; | ||
} | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
packages/hardhat-zksync-solc/test/fixture-projects/no-zksync/hardhat.config.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import '../../../src/index'; | ||
import { HardhatUserConfig } from 'hardhat/config'; | ||
|
||
const config: HardhatUserConfig = { | ||
zksolc: { | ||
compilerSource: 'binary', | ||
}, | ||
networks: { | ||
hardhat: { | ||
zksync: false, | ||
} | ||
}, | ||
solidity: { | ||
version: process.env.SOLC_VERSION || '0.8.17' | ||
}, | ||
}; | ||
|
||
export default config; |
Oops, something went wrong.