Commit 2623a8fb authored by Zvezdin .'s avatar Zvezdin .

Create NN script & dependencies

parent 6c63f4d0
......@@ -48,7 +48,7 @@ contract Better {
}
modifier eventExists(uint eventID) {
require(events[eventID].ts > 0);
//require(events[eventID].ts > 0);
_;
}
......@@ -85,7 +85,7 @@ contract Better {
tmpTest.length = 2;
tmpTest[0] = 1;
tmpTest[1] = 2;
createEvent(1, 100, "Bulg", "Germ", "Football", tmpTest);
createEvent(1, 1629829173, "Bulg", "Germ", "Football", tmpTest);
updateBet(1, 2, 123123, [uint(1),3], 7043, 3);
}
......
......@@ -4,6 +4,7 @@
"private": true,
"dependencies": {
"ganache-cli": "^6.1.3",
"ml-knn": "^2.1.3",
"mobx": "^5.0.3",
"react": "^16.4.1",
"react-dom": "^16.4.1",
......
......@@ -14,7 +14,7 @@ function init(){
var inst;
var address = "0x8c67fefbf1f71737bc2ed4c38367d842899529a1";
var address = "0xb7793037b67d46948e3c3d0c43ccbe96ac3ffc40";
var acc;
//temp fix:
......
......@@ -3,10 +3,12 @@ import './App.css';
import { Route, Switch, Redirect, BrowserRouter as Router } from 'react-router-dom';
import BetPage from './component/main'
import AdminPage from './component/admin'
import { testNN } from './nn'
class App extends Component {
componentDidMount() {
//init(); //eslint-disable-line
testNN(); //eslint-disable-line
}
routes = {
......
export async function testNN() {
let res = await isCallerAdmin() //eslint-disable-line
console.log("TESTTT", res)//name() //eslint-disable-line
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment