randomness-js
Version:
A library for consuming, verifying and using randomness from the dcipher network
82 lines (81 loc) • 4.64 kB
TypeScript
import { ContractFactory, ContractTransactionResponse } from "ethers";
import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
import type { NonPayableOverrides } from "../common";
import type { Factory, FactoryInterface } from "../Factory";
type FactoryConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
export declare class Factory__factory extends ContractFactory {
constructor(...args: FactoryConstructorParams);
getDeployTransaction(overrides?: NonPayableOverrides & {
from?: string;
}): Promise<ContractDeployTransaction>;
deploy(overrides?: NonPayableOverrides & {
from?: string;
}): Promise<Factory & {
deploymentTransaction(): ContractTransactionResponse;
}>;
connect(runner: ContractRunner | null): Factory__factory;
static readonly bytecode = "0x6080604052348015600e575f5ffd5b506103168061001c5f395ff3fe608060405260043610610028575f3560e01c8063481286e61461002c578063cdcb760a14610074575b5f5ffd5b348015610037575f5ffd5b5061004b610046366004610199565b610087565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b61004b6100823660046101e6565b6100b1565b6040805190810182905260208101839052308082525f91600b0160ff815360559020949350505050565b5f81515f036100ec576040517f4ca249dc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8282516020840134f5905073ffffffffffffffffffffffffffffffffffffffff8116610144576040517f741752c200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805173ffffffffffffffffffffffffffffffffffffffff83168152602081018590527f4108529e399e9cd5343c48ae06aa62a23c8c1b7c93f59d4691a0ea1e6f5b4603910160405180910390a192915050565b5f5f604083850312156101aa575f5ffd5b50508035926020909101359150565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f5f604083850312156101f7575f5ffd5b82359150602083013567ffffffffffffffff811115610214575f5ffd5b8301601f81018513610224575f5ffd5b803567ffffffffffffffff81111561023e5761023e6101b9565b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8501160116810181811067ffffffffffffffff821117156102aa576102aa6101b9565b6040528181528282016020018710156102c1575f5ffd5b816020840160208301375f60208383010152809350505050925092905056fea2646970667358221220c6923f30fd7132141542285bd95af22316639ec09562ad421e00ce18122d309564736f6c634300081c0033";
static readonly abi: readonly [{
readonly type: "function";
readonly name: "computeAddress";
readonly inputs: readonly [{
readonly name: "salt";
readonly type: "bytes32";
readonly internalType: "bytes32";
}, {
readonly name: "creationCodeHash";
readonly type: "bytes32";
readonly internalType: "bytes32";
}];
readonly outputs: readonly [{
readonly name: "addr";
readonly type: "address";
readonly internalType: "address";
}];
readonly stateMutability: "view";
}, {
readonly type: "function";
readonly name: "deploy";
readonly inputs: readonly [{
readonly name: "salt";
readonly type: "bytes32";
readonly internalType: "bytes32";
}, {
readonly name: "creationCode";
readonly type: "bytes";
readonly internalType: "bytes";
}];
readonly outputs: readonly [{
readonly name: "addr";
readonly type: "address";
readonly internalType: "address";
}];
readonly stateMutability: "payable";
}, {
readonly type: "event";
readonly name: "CreatedContract";
readonly inputs: readonly [{
readonly name: "addr";
readonly type: "address";
readonly indexed: false;
readonly internalType: "address";
}, {
readonly name: "salt";
readonly type: "bytes32";
readonly indexed: false;
readonly internalType: "bytes32";
}];
readonly anonymous: false;
}, {
readonly type: "error";
readonly name: "Create2EmptyBytecode";
readonly inputs: readonly [];
}, {
readonly type: "error";
readonly name: "Create2FailedDeployment";
readonly inputs: readonly [];
}];
static createInterface(): FactoryInterface;
static connect(address: string, runner?: ContractRunner | null): Factory;
}
export {};