{"size": 1394, "ext": "js", "max_stars_repo_path": "client/src/lottery.js", "max_stars_repo_name": "nour-karoui/lottery-ethereum", "max_stars_repo_stars_event_min_datetime": "2021-09-09T22:35:46.000Z", "max_stars_repo_stars_event_max_datetime": "2021-09-09T22:35:46.000Z", "max_issues_repo_path": "client/src/lottery.js", "max_issues_repo_name": "nour-karoui/lottery-ethereum", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "client/src/lottery.js", "max_forks_repo_name": "nour-karoui/lottery-ethereum", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.2333333333, "max_line_length": 65, "alphanum_fraction": 0.4921090387}
import web3 from "./web3";
const address = '0x104300801d2A9aDb2B406bAe515fd87a4C440AEc';
const lotteryInterface =  [
    {
        constant: true,
        inputs: [],
        name: "manager",
        outputs: [{ name: "", type: "address" }],
        payable: false,
        stateMutability: "view",
        type: "function",
    },
    {
        constant: false,
        inputs: [],
        name: "pickWinner",
        outputs: [],
        payable: false,
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        constant: true,
        inputs: [],
        name: "getPlayers",
        outputs: [{ name: "", type: "address[]" }],
        payable: false,
        stateMutability: "view",
        type: "function",
    },
    {
        constant: false,
        inputs: [],
        name: "enter",
        outputs: [],
        payable: true,
        stateMutability: "payable",
        type: "function",
    },
    {
        constant: true,
        inputs: [{ name: "", type: "uint256" }],
        name: "players",
        outputs: [{ name: "", type: "address" }],
        payable: false,
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        payable: false,
        stateMutability: "nonpayable",
        type: "constructor",
    },
];

const lottery = new web3.eth.Contract(lotteryInterface, address);

export  {lottery};
