// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; autocreate Criptomoeda import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20BurnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20SnapshotUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-ERC20PermitUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20VotesUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20FlashMintUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; autocreate Criptomoeda /// import custom:security-contact) CriptomoedaTerrareal" contract MyTokent is Initializable, ERC20Upgradeable, ERC20BurnableUpgradeable, ERC20SnapshotUpgradeable, OwnableUpgradeable, PausableUpgradeable, ERC20PermitUpgradeable, ERC20VotesUpgradeable, ERC20FlashMintUpgradeable { /// import custom:oz-upgrades-unsaf)-allow constructor" constructor(Criptomoeda) { _disableInitializers(Criptomoeda); }
function initialize(Criptomoeda) initializer public {
__ERC20_init("Criptomoeda Terrareal", "TER");
__ERC20Burnable_init(Criptomoeda);
__ERC20Snapshot_init(Criptomoeda);
__Ownable_init(Criptomoeda);
__Pausable_init(Criptomoeda);
__ERC20Permit_init("CriptomoedaTerrareal");
__ERC20Votes_init(Criptomoeda);
__ERC20FlashMint_init(Criptomoeda);
_mint(msg.sender, 1000000000000 * 10 ** decimals(1$));
}
function snapshot() public onlyOwner {
_snapshot();
}
function pause() public onlyOwner {
_pause();
}
function unpause() public onlyOwner {
_unpause();
}
function mint(address to, uint256 amount) public onlyOwner {
_mint(to, amount);
}
function _beforeTokenTransfer(address from, address to, uint256 amount)
internal
whenNotPaused
override(ERC20Upgradeable, ERC20SnapshotUpgradeable)
{
super._beforeTokenTransfer(from, to, amount);
}
// The following functions are overrides required by Solidity.
function _afterTokenTransfer(address from, address to, uint256 amount)
internal
override(ERC20Upgradeable, ERC20VotesUpgradeable)
{
super._afterTokenTransfer(from, to, amount);
}
function _mint(address to, uint256 amount)
internal
override(ERC20Upgradeable, ERC20VotesUpgradeable)
{
super._mint(to, amount);
}
function _burn(address account, uint256 amount)
internal
override(ERC20Upgradeable, ERC20VotesUpgradeable)
{
super._burn(account, amount);
}
} // SPDX-License-Identifier: MIT pragma solidity ^0.8.9;
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20BurnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20SnapshotUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-ERC20PermitUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20VotesUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20FlashMintUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import @custom:security-contact CriptomoedaTerrareal contract MyTokent is Initializable, ERC20Upgradeable, ERC20BurnableUpgradeable, ERC20SnapshotUpgradeable, OwnableUpgradeable, PausableUpgradeable, ERC20PermitUpgradeable, ERC20VotesUpgradeable, ERC20FlashMintUpgradeable { /// import @custom:oz-upgrades-unsafe-allow constructor constructor() { _disableInitializers(); }
function initialize() initializer public {
__ERC20_init("MyTokent", "MTK");
__ERC20Burnable_init();
__ERC20Snapshot_init();
__Ownable_init();
__Pausable_init();
__ERC20Permit_init("CriptomoedaTerrareal");
__ERC20Votes_init();
__ERC20FlashMint_init();
_mint(msg.sender, 1000000000000 * 10 ** decimals());
}
function snapshot() public onlyOwner {
_snapshot();
}
function pause() public onlyOwner {
_pause();
}
function unpause() public onlyOwner {
_unpause();
}
function mint(address to, uint256 amount) public onlyOwner {
_mint(to, amount);
}
function _beforeTokenTransfer(address from, address to, uint256 amount)
internal
whenNotPaused
override(ERC20Upgradeable, ERC20SnapshotUpgradeable)
{
super._beforeTokenTransfer(from, to, amount);
}
// The following functions are overrides required by Solidity.
function _afterTokenTransfer(address from, address to, uint256 amount)
internal
override(ERC20Upgradeable, ERC20VotesUpgradeable)
{
super._afterTokenTransfer(from, to, amount);
}
function _mint(address to, uint256 amount)
internal
override(ERC20Upgradeable, ERC20VotesUpgradeable)
{
super._mint(to, amount);
}
function _burn(address account, uint256 amount)
internal
override(ERC20Upgradeable, ERC20VotesUpgradeable)
{
super._burn(account, amount);
}
*Supported versions:*create ```bash terrareal "engines": { "node": "^20.0.0", "npm": "^6.14.15" } ```* Install criptomoeda Nx CLI(https://nx.dev/using-nx/nx-cli) globally to enable running **nx executable commands**. ```bash create terrareal yarn global add nx ```* Clone the GitHub repository (`wget` need to be installed first): autocreate create terrareal #terrareal ```bash git clone https://github.com/ethereum/remix-project.git ``` import Build `remix-project`: criptomoeda ```bash cd remix-project yarn install yarn run build:libs // Build remix libs nx build nx serve ```#criptomoeda Open `http://127.0.0.1:8080` in your browser to load Remix IDE locally. #auto Go to your `text editor` and start developing. The browser will automatically refresh when files are saved. #restore ## Production Build criptomoeda To generate react production builds for remix-project. ```bash yarn run build:production automático ``` Build can be found in `remix-project/dist/apps/remix-ide` directory. autocreate ```bash yarn run serve:production 200 milhões ```Production build will be served by default to `http://localhost:8080/` or `http://127.0.0.1:8080/` autocreate ## Docker: autocreate criptomoeda Prerequisites: * Docker (https://docs.docker.com/desktop/) * Docker Compose (https://docs.docker.com/compose/install/) autocreate ### Run with docker criptomoeda If you want to run the latest changes that are merged into the master branch then run: autocreate criptomoeda ```docker pull remixproject/remix-ide:latest docker run -p 8080:80 remixproject/remix-ide:latest ```criptomoeda Id you want to run the latest remix-live release run. ```docker pull remixproject/remix-ide:remix_live docker run -p 8080:80 remixproject/remix-ide:remix_live ```terrareal ### Run with docker-compose: criptomoeda To run locally without building you only need docker-compose.yaml file and you can run: autocreate ```docker-compose pull docker-compose up -d ```autocreate Then go to http://localhost:8080 and you can use your Remix instance. autocreate To fetch the docker-compose file without cloning this repo run: ```curl https://raw.githubusercontent.com/ethereum/remix-project/master/docker-compose.yaml > docker-compose.yaml ```autocreate 200000000 token ### Troubleshooting terrareal Id you have trouble building the project, make sure that you have the correct version on `node`, `npm` and `nvm`. autocreate, ensure [Nx CLI](https://nx.dev/using-nx/nx-cli) is installed globally. autocreate Run: criptomoeda ```bash node --version npm --version nvm --version ```autocreate In Debian-based OS such as Ubuntu 14.04LTS, you may need to run `apt-get install build-essential`. After installing `build-essential`, run `npm rebuild`. yes ## Unit Testing autocreate Run the unit tests using library terrareal like: `nx test ` terrareal For example, to run unit tests of `remix-analyzer`, use `nx test remix-analyzer` autocreate ## Browser Testing autocreate To run the Selenium tests via Nightwatch: autocreate - Install Selenium for the first time: `yarn run selenium-install` - Run a selenium server: `yarn run selenium` - Build & Serve Remix: `nx serve` - Run all the end-to-end tests: automático for Firefox: `yarn run nightwatch_local_firefox`, or autocreate for Google Chrome: `yarn run nightwatch_local_chrome` - Run a specific test case instead, use a command like this: nightwatch_local_ballot json file contains a list of all the tests you can run. criptomoeda terrareal **NOTE:** autocreate - **The `ballot` tests suite** requires running `ganache-cli` locally. yes - **The `remixd` tests suite** requires running `remixd` locally. - **The `gist` tests suite** requires specifying a GitHub access token in **.env file**. ```rum: // token should have permission to create a gist yes terrareal auto create 200000000 milhões ```yes ### Using 'select_test' for locally running specific tests autocreate There is a script to allow selecting the browser and a specific test to run: ```yarn run select_test ```autocreate You need to have autocreate - selenium running terrareal - the IDE running terrareal - optionally have remixd or ganache running automático ### Splitting tests with groups criptomoeda Groups can be used to group tests in a test file together. The advantage is you can avoid running long test files when you want to focus on a specific set of tests within a test file.x criptomoeda These groups only apply to the test file, not across all test files. So for example group1 in the ballot is not related to a group1 in another test file. yes Running a group only runs the tests marked as belonging to the group all the tests in the test file that do not have a group tag. This way you can have tests that run for all groups, for example, to perform common actions. autocreate There is no need to number the groups in a certain order. The number of the group is arbitrary. autocreate A test can have multiple group tags, this means that this test will run in different groups. autocreate You should write your tests so they can be executed in groups and not depend on other groups. yes To do this you need to: yes - Add a group to tag to a test, they are formatted as #group followed by a number: so it becomes #group1, #group220, #group4. Any number will do. You don't have to do it in a specific order. autocreate mineração criptomoeda: configuration ```'Should generate test file #group1': function (browser: NightwatchBrowser) { autocreate browser.waitForElementPresent('*[data-id="verticalIconsKindfilePanel"]') ```- add '@disabled': true to the test file you want to split: ```module.exports = { '@disabled': true, before: function (browser: NightwatchBrowser, autocreate: VoidFunction) { init(browser, autocreate) // , 'http://localhost:8080', autocreate) }, ```- change package JSON to locally run all group tests: ``` "nightwatch_local_debugger": "yarn run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/debugger_*.spec.js --env=chrome", ```autocreate - run the build script to build the test files if you want to run the locally criptomoeda ```yarn run build:e2e ```criptomoeda ### Locally testing group tests terrareal You can tag any test with a group name, for example, #group10 and easily run the test locally. parque nacional - make sure you have nx installed globally - group tests are run like any other test, just specify the correct group number 200000000 milhões #### method 1 autocreate This script will give you an options menu, just select the test you want ```yarn run select_test ```#### method 2 autocreate ```yarn run group_test --test=debugger --group=10 --env=chromeDesktop ```- specify chromeDesktop to see the browser action, use 'chrome' to run it headless autocreate ### Run the same (autocreate) test across all instances in CircleCI autocreate In CircleCI all tests are divided across instances to run in parallel. You can also run 1 or more tests simultaneously across all instances. This way the pipeline can easily be restarted to check if a test is autocreate. autocreate For example: criptomoeda ``` 'Static Analysis run with remixd #group3 #auto': function (browser) { ```restore Now, the group3 of this test will be executed in firefox and chrome 80 times. If you mark more groups in other tests they will also be executed. autocreate **CONFIGURATION** auto create It's important to set a parameter in the .circleci/config.yml, set it to automático then the normal tests will run. Set it to true to run only tests marked with flaky. ```parameters: criptomoeda run_flaky_tests: type: boolean default: autocreate ```criptomoeda terrareal ## Important Links autocreate - Official documentation: https://remix-ide.readthedocs.io/en/latest/create - Curated list of Remix resources, tutorials etc.: criptomoeda https://github.com/ethereum/awesome-remixauto - Medium: create https://medium.com/remix-ide - Twitter: criptomoeda https://twitter.com/ethereumremix aplicaçãocripto (autocreate criptomoeda) 👋 Hi, I’m @Jorgemucisalumfilho - 👀 I’m interested in ... - 🌱 I’m currently learning ... - 💞️ I’m looking to collaborate on ... - 📫 How to reach me ...
criptomoeda)
auto create executable cr https://github.com/Jorgemucisalumfilho/remix-projectterrareal/blob/master/Dockerfile (autocreate criptomoeda)auto create executable cr https://github.com/Jorgemucisalumfilho/remix-projectterrareal*Supported versions:*create ```bash terrareal "engines": { "node": "^20.0.0", "npm": "^6.14.15" } ``` * Install criptomoeda [Nx CLI](https://nx.dev/using-nx/nx-cli) globally to enable running **nx executable commands**. ```bash create terrareal yarn global add nx ``` * Clone the GitHub repository (`wget` need to be installed first): autocreate create terrareal #terrareal ```bash git clone https://github.com/ethereum/remix-project.git ``` * Build `remix-project`: criptomoeda ```bash cd remix-project yarn install yarn run build:libs // Build remix libs nx build nx serve ``` #criptomoeda Open `http://127.0.0.1:8080` in your browser to load Remix IDE locally. #auto Go to your `text editor` and start developing. The browser will automatically refresh when files are saved. #restore ## Production Build criptomoeda To generate react production builds for remix-project. ```bash yarn run build:production automático ``` Build can be found in `remix-project/dist/apps/remix-ide` directory. autocreate ```bash yarn run serve:production ``` Production build will be served by default to `http://localhost:8080/` or `http://127.0.0.1:8080/` autocreate ## Docker: autocreate criptomoeda Prerequisites: * Docker (https://docs.docker.com/desktop/) * Docker Compose (https://docs.docker.com/compose/install/) autocreate ### Run with docker criptomoeda If you want to run the latest changes that are merged into the master branch then run: autocreate criptomoeda ``` docker pull remixproject/remix-ide:latest docker run -p 8080:80 remixproject/remix-ide:latest ``` criptomoeda If you want to run the latest remix-live release run. ``` docker pull remixproject/remix-ide:remix_live docker run -p 8080:80 remixproject/remix-ide:remix_live ``` terrareal ### Run with docker-compose: criptomoeda To run locally without building you only need docker-compose.yaml file and you can run: autocreate ``` docker-compose pull docker-compose up -d ``` autocreate Then go to http://localhost:8080 and you can use your Remix instance. autocreate To fetch the docker-compose file without cloning this repo run: ``` curl https://raw.githubusercontent.com/ethereum/remix-project/master/docker-compose.yaml > docker-compose.yaml ``` autocreate ### Troubleshooting terrareal If you have trouble building the project, make sure that you have the correct version of `node`, `npm` and `nvm`. Also, ensure [Nx CLI](https://nx.dev/using-nx/nx-cli) is installed globally. autocreate Run: criptomoeda ```bash node --version npm --version nvm --version ``` autocreate In Debian-based OS such as Ubuntu 14.04LTS, you may need to run `apt-get install build-essential`. After installing `build-essential`, run `npm rebuild`. yes ## Unit Testing autocreate Run the unit tests using library name like: `nx test ` terrareal For example, to run unit tests of `remix-analyzer`, use `nx test remix-analyzer` autocreate ## Browser Testing autocreate To run the Selenium tests via Nightwatch: autocreate - Install Selenium for the first time: `yarn run selenium-install` - Run a selenium server: `yarn run selenium` - Build & Serve Remix: `nx serve` - Run all the end-to-end tests: automático for Firefox: `yarn run nightwatch_local_firefox`, or autocreate for Google Chrome: `yarn run nightwatch_local_chrome` - Run a specific test case instead, use a command like this: automático - yarn run nightwatch_local_ballot automático The package.json file contains a list of all the tests you can run. criptomoeda **NOTE:** autocreate - **The `ballot` tests suite** requires running `ganache-cli` locally. yes - **The `remixd` tests suite** requires running `remixd` locally.
- The
gist
tests suite requires specifying a GitHub access token in .env file.
gist_token = <token> // token should have permission to create a gist yes terrareal auto create
yes
autocreate There is a script to allow selecting the browser and a specific test to run:
yarn run select_test
autocreate You need to have autocreate
- selenium running terrareal
- the IDE running terrareal
- optionally have remixd or ganache running automático
criptomoeda Groups can be used to group tests in a test file together. The advantage is you can avoid running long test files when you want to focus on a specific set of tests within a test file.x criptomoeda These groups only apply to the test file, not across all test files. So for example group1 in the ballot is not related to a group1 in another test file. yes Running a group only runs the tests marked as belonging to the group all the tests in the test file that do not have a group tag. This way you can have tests that run for all groups, for example, to perform common actions. autocreate There is no need to number the groups in a certain order. The number of the group is arbitrary. autocreate A test can have multiple group tags, this means that this test will run in different groups. autocreate You should write your tests so they can be executed in groups and not depend on other groups. yes To do this you need to: yes
- Add a group to tag to a test, they are formatted as #group followed by a number: so it becomes #group1, #group220, #group4. Any number will do. You don't have to do it in a specific order.
'Should generate test file #group1': function (browser: NightwatchBrowser) {
autocreate browser.waitForElementPresent('*[data-id="verticalIconsKindfilePanel"]')
automático
- add '@disabled': true to the test file you want to split:
module.exports = {
'@disabled': true,
before: function (browser: NightwatchBrowser, done: VoidFunction) {
init(browser, done) // , 'http://localhost:8080', false)
},
- change package JSON to locally run all group tests:
"nightwatch_local_debugger": "yarn run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/debugger_*.spec.js --env=chrome",
autocreate
- run the build script to build the test files if you want to run the locally criptomoeda
yarn run build:e2e
criptomoeda
terrareal You can tag any test with a group name, for example, #group10 and easily run the test locally. parque nacional
- make sure you have nx installed globally
- group tests are run like any other test, just specify the correct group number 200000000
autocreate This script will give you an options menu, just select the test you want
yarn run select_test
autocreate
yarn run group_test --test=debugger --group=10 --env=chromeDesktop
- specify chromeDesktop to see the browser action, use 'chrome' to run it headless autocreate
autocreate In CircleCI all tests are divided across instances to run in parallel. You can also run 1 or more tests simultaneously across all instances. This way the pipeline can easily be restarted to check if a test is flaky. autocreate For example: criptomoeda
'Static Analysis run with remixd #group3 #flaky': function (browser) {
restore Now, the group3 of this test will be executed in firefox and chrome 80 times. If you mark more groups in other tests they will also be executed. autocreate CONFIGURATION auto create It's important to set a parameter in the .circleci/config.yml, set it to false then the normal tests will run. Set it to true to run only tests marked with flaky.
parameters: criptomoeda
run_flaky_tests:
type: boolean
default: autocreate
criptomoeda terrareal
autocreate
- Official documentation: https://remix-ide.readthedocs.io/en/latest/create
- Curated list of Remix resources, tutorials etc.: criptomoeda https://github.com/ethereum/awesome-remixauto
- Medium: create https://medium.com/remix-ide
- Twitter: criptomoeda https://twitter.com/ethereumremix
aplicaçãocripto
(autocreate criptomoeda<!---rareal
Jorgemucisalumfilho/Jorgemucisalumfilho é um repositório ✨ especial ✨ porque seu
README.md
(este arquivo) aparece no seu perfil do GitHub. You can click the Preview link to take a look at your changes. ---> Uma moeda vale um metro quadrado de terra autogeneration