function getHash(
address _signer,
address _recipient,
uint _transactionObjectValueField,
bytes memory _transactionObjectDataField,
address _rewardTokenAddress,
uint _rewardAmount
)
public
All the following commands are runned from the https://github.com/eidoo/hybrid-exchange-sdk root folder.
node bin/hybrid-exchange-cli.js ethereum-wallet keystore-generate --ksp .
node bin/hybrid-exchange-cli.js trading-wallet create-wallet --eoa EXTERNAL_OWNED_ACCOUNT --ksp KEYSTORE_PATH
echo "Stopping container.." | |
docker stop keosd | |
docker stop nodeos | |
echo "Removing container.." | |
docker rm keosd | |
docker rm nodeos | |
echo "Removing network.." | |
docker network rm eosdev |
# be sure that the docker daemon is running before you start this script | |
# | |
# this script will create an alias at the end, so please run it with: | |
# | |
# source starteos.sh | |
# | |
# see https://developers.eos.io/eosio-nodeos/docs/docker-quickstart | |
docker pull eosio/eos-dev:v1.2.5 # pull eosio image | |
docker network create eosdev # create an eos network(see docker networking) |
pragma solidity ^0.5.2;
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
interface IERC20 {
function transfer(address to, uint256 value) external returns (bool);
contract Wallet {
...
address public logic_;
/**
* @dev Deposit any ERC20 token into this wallet.
* @param _token The address of the existing token contract.
* @param _amount The amount of tokens to deposit.
* @return Bool if the deposit was successful.
*/
Minimal SC sample exposing a way to get the bytecode and the hashed bytecode of a deployed smart contract.
This without the new OPCODE of EIP1052
pragma solidity ^0.4.24;
contract SomeContractInstance {
constructor () public {}
}
About let : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let
About const : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const
let and const basically replace var.
You use let instead of var and const instead of var if you plan on never re-assigning this "variable" (effectively turning it into a constant therefore).
Remember they are block scoped.
map() , filter() , reduce() etc.
The following page gives a good overview over the various methods you can use on the array prototype.
Feel free to click through them and refresh your knowledge as required:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array
Particularly important are:
Useful link for requirements: How To Deploy a Flask Application on an Ubuntu VPS
Under /var/www
folder you should have a structure like following
/var/www/
/var/www/project-name/
/var/www/project-name/project-name.wsgi
/var/www/project-name/project/__init__.py