@vocdoni/davinci-contracts
Version:
Smart contracts powering DAVINCI's digital voting protocol
96 lines (95 loc) • 2.4 kB
JavaScript
;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.ICensusValidator__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address",
},
{
indexed: false,
internalType: "uint88",
name: "previousWeight",
type: "uint88",
},
{
indexed: false,
internalType: "uint88",
name: "newWeight",
type: "uint88",
},
],
name: "WeightChanged",
type: "event",
},
{
inputs: [],
name: "getCensusRoot",
outputs: [
{
internalType: "uint256",
name: "root",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "root",
type: "uint256",
},
],
name: "getRootBlockNumber",
outputs: [
{
internalType: "uint256",
name: "blockNumber",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "root",
type: "uint256",
},
],
name: "getTotalVotingPowerAtRoot",
outputs: [
{
internalType: "uint256",
name: "totalVotingPower",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
];
class ICensusValidator__factory {
static createInterface() {
return new ethers_1.Interface(_abi);
}
static connect(address, runner) {
return new ethers_1.Contract(address, _abi, runner);
}
}
exports.ICensusValidator__factory = ICensusValidator__factory;
ICensusValidator__factory.abi = _abi;