SynapseBaseScript

Git Source

Inherits: Script, Deployer, DeploymentSaver

State Variables

initialDeployerNonce

uint256 private initialDeployerNonce;

finalDeployerNonce

uint256 private finalDeployerNonce;

Functions

broadcastWithHooks

Common pattern for running a script.

modifier broadcastWithHooks();

offChainWithHooks

Common pattern for running a script off-chain.

modifier offChainWithHooks();

beforeExecution

Hook that is called before the script is executed.

Could be overridden to load custom data before the script is executed. Make sure to call super.beforeExecution() in the overridden function.

function beforeExecution() internal virtual;

afterExecution

Hook that is called after the script is executed.

Could be overridden to perform various checks after the script is executed. Make sure to call super.afterExecution() in the overridden function.

function afterExecution() internal virtual;