Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

DefenderDeploy

Internal helper methods for Defender deployments. WARNING: DO NOT USE DIRECTLY. Use Defender.sol instead.

Functions

deploy

function deploy(string memory contractName, bytes memory constructorData, DefenderOptions memory defenderOpts)
    internal
    returns (address);

buildDeployCommand

function buildDeployCommand(
    ContractInfo memory contractInfo,
    string memory buildInfoFile,
    bytes memory constructorData,
    DefenderOptions memory defenderOpts
) internal view returns (string[] memory);

_toLicenseType

function _toLicenseType(ContractInfo memory contractInfo) private pure returns (string memory);

proposeUpgrade

function proposeUpgrade(
    address proxyAddress,
    address proxyAdminAddress,
    address newImplementationAddress,
    string memory newImplementationContractName,
    Options memory opts
) internal returns (ProposeUpgradeResponse memory);

parseProposeUpgradeResponse

function parseProposeUpgradeResponse(string memory stdout) internal returns (ProposeUpgradeResponse memory);

_parseLine

function _parseLine(string memory expectedPrefix, string memory stdout, bool required)
    private
    returns (string memory);

buildProposeUpgradeCommand

function buildProposeUpgradeCommand(
    address proxyAddress,
    address proxyAdminAddress,
    address newImplementationAddress,
    ContractInfo memory contractInfo,
    Options memory opts
) internal view returns (string[] memory);

getApprovalProcess

function getApprovalProcess(string memory command) internal returns (ApprovalProcessResponse memory);

parseApprovalProcessResponse

function parseApprovalProcessResponse(string memory stdout) internal returns (ApprovalProcessResponse memory);

buildGetApprovalProcessCommand

function buildGetApprovalProcessCommand(string memory command) internal view returns (string[] memory);