Skip to main content
Version: v3.x

Minimal Anti Collusion Infrastructure (MACI) / SafeCast__factory

Class: SafeCast__factory

Defined in: contracts/typechain-types/factories/@openzeppelin/contracts/utils/math/SafeCast__factory.ts:85

Extends

  • ContractFactory

Constructors

Constructor

new SafeCast__factory(...args): SafeCast__factory

Defined in: contracts/typechain-types/factories/@openzeppelin/contracts/utils/math/SafeCast__factory.ts:86

Parameters

args

...SafeCastConstructorParams

Returns

SafeCast__factory

Overrides

ContractFactory.constructor

Properties

abi

readonly static abi: readonly [{ inputs: readonly [{ internalType: "uint8"; name: "bits"; type: "uint8"; }, { internalType: "int256"; name: "value"; type: "int256"; }]; name: "SafeCastOverflowedIntDowncast"; type: "error"; }, { inputs: readonly [{ internalType: "int256"; name: "value"; type: "int256"; }]; name: "SafeCastOverflowedIntToUint"; type: "error"; }, { inputs: readonly [{ internalType: "uint8"; name: "bits"; type: "uint8"; }, { internalType: "uint256"; name: "value"; type: "uint256"; }]; name: "SafeCastOverflowedUintDowncast"; type: "error"; }, { inputs: readonly [{ internalType: "uint256"; name: "value"; type: "uint256"; }]; name: "SafeCastOverflowedUintToInt"; type: "error"; }] = _abi

Defined in: contracts/typechain-types/factories/@openzeppelin/contracts/utils/math/SafeCast__factory.ts:111


bytecode

readonly static bytecode: "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220f339f8e25e68a389c2a927bb23c6cb93c79c9384ea0005062ee031ef0df1d28e64736f6c634300081c0033" = _bytecode

Defined in: contracts/typechain-types/factories/@openzeppelin/contracts/utils/math/SafeCast__factory.ts:110

Methods

connect()

connect(runner): SafeCast__factory

Defined in: contracts/typechain-types/factories/@openzeppelin/contracts/utils/math/SafeCast__factory.ts:106

Return a new ContractFactory with the same ABI and bytecode, but connected to %%runner%%.

Parameters

runner

ContractRunner | null

Returns

SafeCast__factory

Overrides

ContractFactory.connect


deploy()

deploy(overrides?): Promise<SafeCast & object>

Defined in: contracts/typechain-types/factories/@openzeppelin/contracts/utils/math/SafeCast__factory.ts:99

Resolves to the Contract deployed by passing %%args%% into the constructor.

This will resolve to the Contract before it has been deployed to the network, so the [[BaseContract-waitForDeployment]] should be used before sending any transactions to it.

Parameters

overrides?

NonPayableOverrides & object

Returns

Promise<SafeCast & object>

Overrides

ContractFactory.deploy


getDeployTransaction()

getDeployTransaction(overrides?): Promise<ContractDeployTransaction>

Defined in: contracts/typechain-types/factories/@openzeppelin/contracts/utils/math/SafeCast__factory.ts:94

Resolves to the transaction to deploy the contract, passing %%args%% into the constructor.

Parameters

overrides?

NonPayableOverrides & object

Returns

Promise<ContractDeployTransaction>

Overrides

ContractFactory.getDeployTransaction


connect()

static connect(address, runner?): SafeCast

Defined in: contracts/typechain-types/factories/@openzeppelin/contracts/utils/math/SafeCast__factory.ts:115

Parameters

address

string

runner?

ContractRunner | null

Returns

SafeCast


createInterface()

static createInterface(): SafeCastInterface

Defined in: contracts/typechain-types/factories/@openzeppelin/contracts/utils/math/SafeCast__factory.ts:112

Returns

SafeCastInterface