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
import 'isomorphic-fetch' | |
import Web3 from 'web3' | |
import utils from 'ethereumjs-util' | |
import queryString from 'query-string' | |
import Trie from 'merkle-patricia-tree' | |
import EthereumTx from 'ethereumjs-tx' | |
import EthereumBlock from 'ethereumjs-block/from-rpc' | |
import { |
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
var Dagger = require("eth-dagger"); | |
var Web3 = require("web3"); | |
var contractJSON = require("./../contracts/SocialBet.json"); | |
let MaticWETHContract =require("./MaticWETHContract.json"); | |
var web3 = new Web3("https://testnet2.matic.network"); | |
var dagger = new Dagger("wss://matic.dagger2.matic.network"); // dagger server | |
const MaticWETHAddress = '0x31074c34a757a4b9FC45169C58068F43B717b2D0'; | |
const web3MaticWETHContract = new web3.eth.Contract(MaticWETHContract.abi, MaticWETHAddress); |
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.4.24; | |
contract RootChain { | |
// | |
// Constructor | |
// | |
constructor () public { |
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
Staked(address indexed user, uint256 indexed validatorId, uint256 indexed activatonEpoch, uint256 amount, uint256 total); | |
Staked(address,uint256,uint256,uint256,uint256) | |
0x9cfd25589d1eb8ad71e342a86a8524e83522e3936c0803048c08f6d9ad974f40 | |
Unstaked(address indexed user, uint256 indexed validatorId, uint256 amount, uint256 total); | |
Unstaked(address,uint256,uint256,uint256) | |
0x204fccf0d92ed8d48f204adb39b2e81e92bad0dedb93f5716ca9478cfb57de00 | |
SignerChange(uint256 indexed validatorId, address indexed newSigner, address indexed oldSigner) | |
SignerChange(uint256,address,address) |
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
import Web3 from 'web3' | |
// contract abi | |
import * as Ring from './abi/ring.json' | |
import * as Item from './abi/item.json' | |
import * as Unit from './abi/Unit.json' | |
const addresses = [ | |
'0x972e633f5f6f62d1f2a13977f113941fcb3b606b', |
OlderNewer