This file contains hidden or 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
| import pytest | |
| from eth_utils import to_wei | |
| def test_private_test(get_contract): | |
| private_test_code = """ | |
| @internal | |
| def a() -> int128: | |
| return 5 |
This file contains hidden or 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
| { | |
| "hardhat@3.12.0/console.sol": ".deps/npm/hardhat@3.12.0/console.sol" | |
| } |
This file contains hidden or 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
| // This script can be used to deploy the "Storage" contract using ethers.js library. | |
| // Please make sure to compile "./contracts/1_Storage.sol" file before running this script. | |
| // And use Right click -> "Run" from context menu of the file to run the script. Shortcut: Ctrl+Shift+S | |
| import { deploy } from './ethers-lib' | |
| (async () => { | |
| try { | |
| const result = await deploy('Storage', []) | |
| console.log(`address: ${result.address}`) |
This file contains hidden or 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
| You are a calm, exact, relentless debater. You win by keeping your own record spotless while convicting the opponent, on the record, of the failures a careful reader punishes: invented specifics, claims that contradict their own earlier claims, questions ducked, and misstatements of what this exchange actually contains. The orders below are for you alone: never output a tag, never mention them, never use lists or headings in the debate. Flowing prose only, spoken to the person across from you. | |
| <instruction_hierarchy> | |
| When modules conflict, follow this priority order: | |
| 1.Sources (never fabricate, three wells only) | |
| 2.Execution Gists (never weaken, answer first, convictions, counterplay, symmetrybreaker, market rebuttals) | |
| 3.Case Architecture (the case, universal comparator, thin context) | |
| 4.Topic Awareness (topic-specific case construction, comparator naming, distribution arguments, denominator identification) | |
| 5.Markets (substantive logic only: paths, spent factors, favorite seat) |
This file contains hidden or 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
| REMIX DEFAULT WORKSPACE | |
| Remix default workspace is present when: | |
| i. Remix loads for the very first time | |
| ii. A new workspace is created with 'Default' template | |
| iii. There are no files existing in the File Explorer | |
| This workspace contains 3 directories: | |
| 1. 'contracts': Holds three contracts with increasing levels of complexity. |
This file contains hidden or 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
| { | |
| ".deps/remix-tests/remix_accounts.sol": { | |
| "__sources__": { | |
| ".deps/remix-tests/remix_accounts.sol": { | |
| "content": "// SPDX-License-Identifier: GPL-3.0\n\npragma solidity >=0.4.22 <0.9.0;\n\nlibrary TestsAccounts {\n function getAccount(uint index) pure public returns (address) {\n return address(0);\n }\n}\n", | |
| "file": ".deps/remix-tests/remix_accounts.sol" | |
| } | |
| } | |
| } | |
| } |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <!--Replace ${groupId}, ${artifactId} and ${name} below with proper values--> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>${groupId}</groupId> | |
| <artifactId>${artifactId}</artifactId> | |
| <name>${name}</name> |
This file contains hidden or 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
| { | |
| "contracts/HelloWorld.sol": { | |
| "__sources__": { | |
| "contracts/HelloWorld.sol": { | |
| "content": "// SPDX-License-Identifier: MIT\npragma solidity >=0.6.12 <0.9.0;\n\ncontract HelloWorld {\n function print() public pure returns (string memory) {\n return \"Hello World!\";\n }\n}", | |
| "file": "contracts/HelloWorld.sol" | |
| } | |
| } | |
| }, | |
| "contracts/HelloWorld1.sol": { |
This file contains hidden or 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
| /** | |
| * Take screenshot when step fails. | |
| * Works only with Selenium2Driver. | |
| * | |
| * @AfterStep | |
| */ | |
| public function takeScreenshotAfterFailedStep($event) | |
| { | |
| if (4 === $event->getResult()) { | |
| $driver = $this->getSession()->getDriver(); |
This file contains hidden or 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
| { | |
| function cleanup_t_bool(value) -> cleaned { | |
| cleaned := iszero(iszero(value)) | |
| } | |
| function abi_encode_t_bool_to_t_bool_fromStack(value, pos) { | |
| mstore(pos, cleanup_t_bool(value)) | |
| } |
NewerOlder