You can use --prefix instead of --name to put the environment in a specific directory.
conda env export --from-history > environment.yml
| pragma solidity 0.5.1; //specifies version of solidity | |
| contract SimpleCounter {//Doesn't have to match file name | |
| int counter;// State variable gets stored in a node in Blockchain | |
| //or: int public counter; | |
| //public here automatically creates a getter function like the function below | |
| //initialize variable with constructor | |
| constructor() public{//Public means anyone can invoke this contract | |
| counter = 0; | |
| } |
| //Darren Butler | |
| //Program will: tell you how many people are attending | |
| // | |
| const int MAX_INVITES = 25; | |
| #include <iostream> | |
| #include <string> | |
| #include <vector> |
| pragma solidity ^0.4.24; | |
| //CrowdSale contract knows the function signatures of IERC20 | |
| // because it is imported here | |
| //Call functions from IERC20 like token.transfer(...). | |
| import "./IERC20.sol"; | |
| import "./SafeMath.sol"; | |
| //The crowd sale contract allows a user to send ether directly to the | |
| //contract's address and receive tokens in return. |
| pragma solidity ^0.4.25; | |
| /* | |
| Election contract that allows the owner to issue voting rights | |
| to anybody and also end the election and announce results | |
| */ | |
| contract Election { | |
| address public owner; | |
| string public name; | |
| //This is an abstract base class because it is not implemented | |
| // BaseAuction.sol | |
| pragma solidity ^0.4.25; | |
| contract BaseAuction { | |
| address public owner; | |
| modifier ownerOnly() { | |
| require(msg.sender == owner); |
| pragma solidity ^0.4.25; | |
| contract Escrow { | |
| enum State {AWAITING_PAYMENT, AWAITING_DELIVERY, COMPLETE, REFUNDED} | |
| State public currentState; | |
| modifier buyerOnly() { require(msg.sender == buyer || msg.sender == arbiter); _; } | |
| modifier sellerOnly() { require(msg.sender == seller || msg.sender == arbiter); _; } | |
| modifier inState(State expectedState) { require(currentState == expectedState); _; } |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Block Explorer</title> | |
| </head> | |
| <body> | |
| <!-- The table is given the id "blocks" so it can be refernced when the content is updated--> |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Block Explorer</title> | |
| </head> | |
| <body> | |
| <!-- The table is given the id "blocks" so it can be refernced when the content is updated--> |