@vocdoni/davinci-contracts
Version:
Smart contracts powering DAVINCI's digital voting protocol
260 lines (259 loc) • 6.14 kB
JavaScript
;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.IOrganizationRegistry__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
{
inputs: [],
name: "InvalidAddress",
type: "error",
},
{
inputs: [],
name: "InvalidMetadataURI",
type: "error",
},
{
inputs: [],
name: "InvalidOrganizationID",
type: "error",
},
{
inputs: [],
name: "InvalidOrganizationName",
type: "error",
},
{
inputs: [],
name: "NotAdministrator",
type: "error",
},
{
inputs: [],
name: "OrganizationAlreadyExists",
type: "error",
},
{
inputs: [],
name: "OrganizationNotFound",
type: "error",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "id",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "creator",
type: "address",
},
],
name: "OrganizationCreated",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "id",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "updater",
type: "address",
},
],
name: "OrganizationUpdated",
type: "event",
},
{
inputs: [
{
internalType: "address",
name: "id",
type: "address",
},
{
internalType: "address",
name: "administrator",
type: "address",
},
],
name: "addAdministrator",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "id",
type: "address",
},
{
internalType: "string",
name: "name",
type: "string",
},
{
internalType: "string",
name: "metadataURI",
type: "string",
},
{
internalType: "address[]",
name: "administrators",
type: "address[]",
},
],
name: "createOrganization",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "id",
type: "address",
},
],
name: "deleteOrganization",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "id",
type: "address",
},
],
name: "exists",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "id",
type: "address",
},
],
name: "getOrganization",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "id",
type: "address",
},
{
internalType: "address",
name: "account",
type: "address",
},
],
name: "isAdministrator",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "id",
type: "address",
},
{
internalType: "address",
name: "administrator",
type: "address",
},
],
name: "removeAdministrator",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "id",
type: "address",
},
{
internalType: "string",
name: "name",
type: "string",
},
{
internalType: "string",
name: "metadataURI",
type: "string",
},
],
name: "updateOrganization",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
];
class IOrganizationRegistry__factory {
static createInterface() {
return new ethers_1.Interface(_abi);
}
static connect(address, runner) {
return new ethers_1.Contract(address, _abi, runner);
}
}
exports.IOrganizationRegistry__factory = IOrganizationRegistry__factory;
IOrganizationRegistry__factory.abi = _abi;