Determining eWASM Gas Costs

By Source, Fair use, page


## Writing and compiling smart contracts # Solidity/EVM Solidity is not currently capable of outputting Ewasm bytecode. However, Ewasm support is on the Solidity roadmap. Given that the Ewasm testnet is capable of running EVM bytecode it is possible to use Solidity as a contract language. You can deploy smart contracts written in Solidity and targeting EVM to the Ewasm testnet by using Truffle, just as you do with the Ethereum mainnet, testnets, and testrpc (Ganache). First, install truffle-hdwallet-provider as follows (note the specific release, @web3-one): > npm install --save truffle-hdwallet-provider@web3-one You'll want to use a truffle.js such as the following: var HDWalletProvider = require("truffle-hdwallet-provider"); module.exports = { networks: { ewasm: { network_id: "*", provider: () => new HDWalletProvider("PRIVATE_KEY", ""), }, } }; Replace PRIVATE_KEY with the appropriate private key for the account you used to tap the faucet, above. After doing this, the usual truffle commands (such as truffle migrate --network ewasm) should work. page