@vocdoni/davinci-contracts
Version:
Smart contracts powering DAVINCI's digital voting protocol
81 lines (80 loc) • 4.08 kB
TypeScript
import { ContractFactory, ContractTransactionResponse } from "ethers";
import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
import type { NonPayableOverrides } from "../../../common";
import type { ProcessIdLib, ProcessIdLibInterface } from "../../../src/libraries/ProcessIdLib";
type ProcessIdLibConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
export declare class ProcessIdLib__factory extends ContractFactory {
constructor(...args: ProcessIdLibConstructorParams);
getDeployTransaction(overrides?: NonPayableOverrides & {
from?: string;
}): Promise<ContractDeployTransaction>;
deploy(overrides?: NonPayableOverrides & {
from?: string;
}): Promise<ProcessIdLib & {
deploymentTransaction(): ContractTransactionResponse;
}>;
connect(runner: ContractRunner | null): ProcessIdLib__factory;
static readonly bytecode = "0x608080604052346019576101e2908161001e823930815050f35b5f80fdfe6080806040526004361015610012575f80fd5b5f3560e01c9081632145bb8f1461014657508063d08d66a2146100d25763d0b877c41461003d575f80fd5b60403660031901126100ce57610051610183565b610059610196565b60405190602082019263ffffffff60e01b9060e01b1683526bffffffffffffffffffffffff199060601b16602482015260188152604081019080821067ffffffffffffffff8311176100ba5760209263ffffffff9183604052519020168152f35b634e487b7160e01b5f52604160045260245ffd5b5f80fd5b60603660031901126100ce576100e6610183565b6100ee610196565b6044359167ffffffffffffffff831683036100ce5760405166ffffffffffffff90931660589290921b600160581b600160f81b031660389190911b6affffffff0000000000000016171760081b60ff19168152602090f35b60403660031901126100ce576004359060ff19821682036100ce5760243563ffffffff81168091036100ce5763ffffffff60209360401c16148152f35b6004359063ffffffff821682036100ce57565b602435906001600160a01b03821682036100ce5756fea2646970667358221220548a3ee866fa286abb0d07aa1d692afaf21c8def47cfea3cc2981cbba5d9754d64736f6c634300081c0033";
static readonly abi: readonly [{
readonly inputs: readonly [{
readonly internalType: "uint32";
readonly name: "prefix";
readonly type: "uint32";
}, {
readonly internalType: "address";
readonly name: "creatorAddr";
readonly type: "address";
}, {
readonly internalType: "uint64";
readonly name: "nonce";
readonly type: "uint64";
}];
readonly name: "computeProcessId";
readonly outputs: readonly [{
readonly internalType: "bytes31";
readonly name: "processId";
readonly type: "bytes31";
}];
readonly stateMutability: "pure";
readonly type: "function";
}, {
readonly inputs: readonly [{
readonly internalType: "uint32";
readonly name: "chainId";
readonly type: "uint32";
}, {
readonly internalType: "address";
readonly name: "contractAddr";
readonly type: "address";
}];
readonly name: "getPrefix";
readonly outputs: readonly [{
readonly internalType: "uint32";
readonly name: "";
readonly type: "uint32";
}];
readonly stateMutability: "pure";
readonly type: "function";
}, {
readonly inputs: readonly [{
readonly internalType: "bytes31";
readonly name: "processId";
readonly type: "bytes31";
}, {
readonly internalType: "uint32";
readonly name: "expectedPrefix";
readonly type: "uint32";
}];
readonly name: "hasPrefix";
readonly outputs: readonly [{
readonly internalType: "bool";
readonly name: "";
readonly type: "bool";
}];
readonly stateMutability: "pure";
readonly type: "function";
}];
static createInterface(): ProcessIdLibInterface;
static connect(address: string, runner?: ContractRunner | null): ProcessIdLib;
}
export {};