This file contains 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
const HDWalletProvider = require("truffle-hdwallet-provider") | |
const mnemonic = 'pretty runway design riot organ cloud skate able tide frozen lunar awesome' | |
const provider237 = new HDWalletProvider( | |
mnemonic, | |
"http://testnet.dexon.org:8545", | |
0, | |
1, | |
true, | |
"m/44'/237'/0'/0/", /* For DEXON Network */ |
This file contains 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
pragma solidity ^0.5.0; | |
contract Owned { | |
address payable public owner; | |
constructor() public { | |
owner = msg.sender; | |
} | |
modifier onlyOwner{ if (msg.sender != owner) revert(); _; } | |
} |
This file contains 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
pragma solidity ^0.5.0; | |
contract Token { | |
string public name = "陳之汗😓"; | |
string public symbol = "SWEAT"; | |
uint256 public totalSupply; | |
uint8 public decimals = 0; | |
event Transfer( | |
address indexed _from, |
This file contains 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
pragma solidity ^0.5.0; | |
contract DXNDonationContract { | |
address payable[] public donationList = [ | |
0x8A1DfD12b5B0D28296a14076D5Da56a97216B929 | |
]; | |
function multiTransfer() public payable { | |
uint256 amount = msg.value / donationList.length; |