BridgeGovernance
BridgeGovernance
Owns the Bridge
contract and is responsible for updating its governable parameters in respect to governance delay individual for each parameter. The other responsibility is marking a vault address as trusted or no longer trusted.
depositData
redemptionData
movingFundsData
walletData
fraudData
treasuryData
bridge
governanceDelays
bridgeGovernanceTransferChangeInitiated
newBridgeGovernance
BridgeGovernanceTransferStarted
DepositDustThresholdUpdateStarted
DepositDustThresholdUpdated
DepositTreasuryFeeDivisorUpdateStarted
DepositTreasuryFeeDivisorUpdated
DepositTxMaxFeeUpdateStarted
DepositTxMaxFeeUpdated
DepositRevealAheadPeriodUpdateStarted
DepositRevealAheadPeriodUpdated
RedemptionDustThresholdUpdateStarted
RedemptionDustThresholdUpdated
RedemptionTreasuryFeeDivisorUpdateStarted
RedemptionTreasuryFeeDivisorUpdated
RedemptionTxMaxFeeUpdateStarted
RedemptionTxMaxFeeUpdated
RedemptionTxMaxTotalFeeUpdateStarted
RedemptionTxMaxTotalFeeUpdated
RedemptionTimeoutUpdateStarted
RedemptionTimeoutUpdated
RedemptionTimeoutSlashingAmountUpdateStarted
RedemptionTimeoutSlashingAmountUpdated
RedemptionTimeoutNotifierRewardMultiplierUpdateStarted
RedemptionTimeoutNotifierRewardMultiplierUpdated
MovingFundsTxMaxTotalFeeUpdateStarted
MovingFundsTxMaxTotalFeeUpdated
MovingFundsDustThresholdUpdateStarted
MovingFundsDustThresholdUpdated
MovingFundsTimeoutResetDelayUpdateStarted
MovingFundsTimeoutResetDelayUpdated
MovingFundsTimeoutUpdateStarted
MovingFundsTimeoutUpdated
MovingFundsTimeoutSlashingAmountUpdateStarted
MovingFundsTimeoutSlashingAmountUpdated
MovingFundsTimeoutNotifierRewardMultiplierUpdateStarted
MovingFundsTimeoutNotifierRewardMultiplierUpdated
MovingFundsCommitmentGasOffsetUpdateStarted
MovingFundsCommitmentGasOffsetUpdated
MovedFundsSweepTxMaxTotalFeeUpdateStarted
MovedFundsSweepTxMaxTotalFeeUpdated
MovedFundsSweepTimeoutUpdateStarted
MovedFundsSweepTimeoutUpdated
MovedFundsSweepTimeoutSlashingAmountUpdateStarted
MovedFundsSweepTimeoutSlashingAmountUpdated
MovedFundsSweepTimeoutNotifierRewardMultiplierUpdateStarted
MovedFundsSweepTimeoutNotifierRewardMultiplierUpdated
WalletCreationPeriodUpdateStarted
WalletCreationPeriodUpdated
WalletCreationMinBtcBalanceUpdateStarted
WalletCreationMinBtcBalanceUpdated
WalletCreationMaxBtcBalanceUpdateStarted
WalletCreationMaxBtcBalanceUpdated
WalletClosureMinBtcBalanceUpdateStarted
WalletClosureMinBtcBalanceUpdated
WalletMaxAgeUpdateStarted
WalletMaxAgeUpdated
WalletMaxBtcTransferUpdateStarted
WalletMaxBtcTransferUpdated
WalletClosingPeriodUpdateStarted
WalletClosingPeriodUpdated
FraudChallengeDepositAmountUpdateStarted
FraudChallengeDepositAmountUpdated
FraudChallengeDefeatTimeoutUpdateStarted
FraudChallengeDefeatTimeoutUpdated
FraudSlashingAmountUpdateStarted
FraudSlashingAmountUpdated
FraudNotifierRewardMultiplierUpdateStarted
FraudNotifierRewardMultiplierUpdated
TreasuryUpdateStarted
TreasuryUpdated
constructor
setVaultStatus
Allows the Governance to mark the given vault address as trusted or no longer trusted. Vaults are not trusted by default. Trusted vault must meet the following criteria:
IVault.receiveBalanceIncrease
must have a known, low gas cost,IVault.receiveBalanceIncrease
must never revert.
Parameters
setSpvMaintainerStatus
Allows the Governance to mark the given address as trusted or no longer trusted SPV maintainer. Addresses are not trusted as SPV maintainers by default.
Parameters
beginGovernanceDelayUpdate
Begins the governance delay update process.
Can be called only by the contract owner. The event that informs about the start of the governance delay was skipped on purpose to trim the contract size. All the params inside of the governanceDelays
array are public and can be easily fetched.
Parameters
finalizeGovernanceDelayUpdate
Finalizes the governance delay update process.
Can be called only by the contract owner, after the governance delay elapses. Updated event was skipped on purpose to trim the contract size. All the params inside of the governanceDelays
array are public and can be easily fetched.
beginBridgeGovernanceTransfer
Begins the Bridge governance transfer process.
Can be called only by the contract owner. It is the governance responsibility to validate the correctness of the new Bridge Governance contract. The other reason for not adding this check is to go down with the contract size and leaving only the essential code.
finalizeBridgeGovernanceTransfer
Finalizes the bridge governance transfer process.
Can be called only by the contract owner, after the governance delay elapses. Bridge governance transferred event can be read from the Governable bridge contract 'GovernanceTransferred(old, new)'. Event that informs about the transfer in this function is skipped on purpose to go down with the contract size.
beginDepositDustThresholdUpdate
Begins the deposit dust threshold amount update process.
Can be called only by the contract owner.
Parameters
finalizeDepositDustThresholdUpdate
Finalizes the deposit dust threshold amount update process.
Can be called only by the contract owner, after the governance delay elapses.
beginDepositTreasuryFeeDivisorUpdate
Begins the deposit treasury fee divisor amount update process.
Can be called only by the contract owner.
Parameters
finalizeDepositTreasuryFeeDivisorUpdate
Finalizes the deposit treasury fee divisor amount update process.
Can be called only by the contract owner, after the governance delay elapses.
beginDepositTxMaxFeeUpdate
Begins the deposit tx max fee amount update process.
Can be called only by the contract owner.
Parameters
finalizeDepositTxMaxFeeUpdate
Finalizes the deposit tx max fee amount update process.
Can be called only by the contract owner, after the governance delay elapses.
beginDepositRevealAheadPeriodUpdate
Begins the deposit reveal ahead period update process.
Can be called only by the contract owner.
Parameters
finalizeDepositRevealAheadPeriodUpdate
Finalizes the deposit reveal ahead period update process.
Can be called only by the contract owner, after the governance delay elapses.
beginRedemptionDustThresholdUpdate
Begins the redemption dust threshold amount update process.
Can be called only by the contract owner.
Parameters
finalizeRedemptionDustThresholdUpdate
Finalizes the dust threshold amount update process.
Can be called only by the contract owner, after the governance delay elapses.
beginRedemptionTreasuryFeeDivisorUpdate
Begins the redemption treasury fee divisor amount update process.
Can be called only by the contract owner.
Parameters
finalizeRedemptionTreasuryFeeDivisorUpdate
Finalizes the redemption treasury fee divisor amount update process.
Can be called only by the contract owner, after the governance delay elapses.
beginRedemptionTxMaxFeeUpdate
Begins the redemption tx max fee amount update process.
Can be called only by the contract owner.
Parameters
finalizeRedemptionTxMaxFeeUpdate
Finalizes the redemption tx max fee amount update process.
Can be called only by the contract owner, after the governance delay elapses.
beginRedemptionTxMaxTotalFeeUpdate
Begins the redemption tx max total fee amount update process.
Can be called only by the contract owner.
Parameters
finalizeRedemptionTxMaxTotalFeeUpdate
Finalizes the redemption tx max total fee amount update process.
Can be called only by the contract owner, after the governance delay elapses.
beginRedemptionTimeoutUpdate
Begins the redemption timeout amount update process.
Can be called only by the contract owner.
Parameters
finalizeRedemptionTimeoutUpdate
Finalizes the redemption timeout amount update process.
Can be called only by the contract owner, after the governance delay elapses.
beginRedemptionTimeoutSlashingAmountUpdate
Begins the redemption timeout slashing amount update process.
Can be called only by the contract owner.
Parameters
finalizeRedemptionTimeoutSlashingAmountUpdate
Finalizes the redemption timeout slashing amount update process.
Can be called only by the contract owner, after the governance delay elapses.
beginRedemptionTimeoutNotifierRewardMultiplierUpdate
Begins the redemption timeout notifier reward multiplier amount update process.
Can be called only by the contract owner.
Parameters
finalizeRedemptionTimeoutNotifierRewardMultiplierUpdate
Finalizes the redemption timeout notifier reward multiplier amount update process.
Can be called only by the contract owner, after the governance delay elapses.
beginMovingFundsTxMaxTotalFeeUpdate
Begins the moving funds tx max total fee update process.
Can be called only by the contract owner.
Parameters
finalizeMovingFundsTxMaxTotalFeeUpdate
Finalizes the moving funds tx max total fee update process.
Can be called only by the contract owner, after the governance delay elapses.
beginMovingFundsDustThresholdUpdate
Begins the moving funds dust threshold update process.
Can be called only by the contract owner.
Parameters
finalizeMovingFundsDustThresholdUpdate
Finalizes the moving funds dust threshold update process.
Can be called only by the contract owner, after the governance delay elapses.
beginMovingFundsTimeoutResetDelayUpdate
Begins the moving funds timeout reset delay update process.
Can be called only by the contract owner.
Parameters
finalizeMovingFundsTimeoutResetDelayUpdate
Finalizes the moving funds timeout reset delay update process.
Can be called only by the contract owner, after the governance delay elapses.
beginMovingFundsTimeoutUpdate
Begins the moving funds timeout update process.
Can be called only by the contract owner.
Parameters
finalizeMovingFundsTimeoutUpdate
Finalizes the moving funds timeout update process.
Can be called only by the contract owner, after the governance delay elapses.
beginMovingFundsTimeoutSlashingAmountUpdate
Begins the moving funds timeout slashing amount update process.
Can be called only by the contract owner.
Parameters
finalizeMovingFundsTimeoutSlashingAmountUpdate
Finalizes the moving funds timeout slashing amount update process.
Can be called only by the contract owner, after the governance delay elapses.
beginMovingFundsTimeoutNotifierRewardMultiplierUpdate
Begins the moving funds timeout notifier reward multiplier update process.
Can be called only by the contract owner.
Parameters
finalizeMovingFundsTimeoutNotifierRewardMultiplierUpdate
Finalizes the moving funds timeout notifier reward multiplier update process.
Can be called only by the contract owner, after the governance delay elapses.
beginMovingFundsCommitmentGasOffsetUpdate
Begins the moving funds commitment gas offset update process.
Can be called only by the contract owner.
Parameters
finalizeMovingFundsCommitmentGasOffsetUpdate
Finalizes the moving funds commitment gas offset update process.
Can be called only by the contract owner, after the governance delay elapses.
beginMovedFundsSweepTxMaxTotalFeeUpdate
Begins the moved funds sweep tx max total fee update process.
Can be called only by the contract owner.
Parameters
finalizeMovedFundsSweepTxMaxTotalFeeUpdate
Finalizes the moved funds sweep tx max total fee update process.
Can be called only by the contract owner, after the governance delay elapses.
beginMovedFundsSweepTimeoutUpdate
Begins the moved funds sweep timeout update process.
Can be called only by the contract owner.
Parameters
finalizeMovedFundsSweepTimeoutUpdate
Finalizes the moved funds sweep timeout update process.
Can be called only by the contract owner, after the governance delay elapses.
beginMovedFundsSweepTimeoutSlashingAmountUpdate
Begins the moved funds sweep timeout slashing amount update process.
Can be called only by the contract owner.
Parameters
finalizeMovedFundsSweepTimeoutSlashingAmountUpdate
Finalizes the moved funds sweep timeout slashing amount update process.
Can be called only by the contract owner, after the governance delay elapses.
beginMovedFundsSweepTimeoutNotifierRewardMultiplierUpdate
Begins the moved funds sweep timeout notifier reward multiplier update process.
Can be called only by the contract owner.
Parameters
finalizeMovedFundsSweepTimeoutNotifierRewardMultiplierUpdate
Finalizes the moved funds sweep timeout notifier reward multiplier update process.
Can be called only by the contract owner, after the governance delay elapses.
beginWalletCreationPeriodUpdate
Begins the wallet creation period update process.
Can be called only by the contract owner.
Parameters
finalizeWalletCreationPeriodUpdate
Finalizes the wallet creation period update process.
Can be called only by the contract owner, after the governance delay elapses.
beginWalletCreationMinBtcBalanceUpdate
Begins the wallet creation min btc balance update process.
Can be called only by the contract owner.
Parameters
finalizeWalletCreationMinBtcBalanceUpdate
Finalizes the wallet creation min btc balance update process.
Can be called only by the contract owner, after the governance delay elapses.
beginWalletCreationMaxBtcBalanceUpdate
Begins the wallet creation max btc balance update process.
Can be called only by the contract owner.
Parameters
finalizeWalletCreationMaxBtcBalanceUpdate
Finalizes the wallet creation max btc balance update process.
Can be called only by the contract owner, after the governance delay elapses.
beginWalletClosureMinBtcBalanceUpdate
Begins the wallet closure min btc balance update process.
Can be called only by the contract owner.
Parameters
finalizeWalletClosureMinBtcBalanceUpdate
Finalizes the wallet closure min btc balance update process.
Can be called only by the contract owner, after the governance delay elapses.
beginWalletMaxAgeUpdate
Begins the wallet max age update process.
Can be called only by the contract owner.
Parameters
finalizeWalletMaxAgeUpdate
Finalizes the wallet max age update process.
Can be called only by the contract owner, after the governance delay elapses.
beginWalletMaxBtcTransferUpdate
Begins the wallet max btc transfer amount update process.
Can be called only by the contract owner.
Parameters
finalizeWalletMaxBtcTransferUpdate
Finalizes the wallet max btc transfer amount update process.
Can be called only by the contract owner, after the governance delay elapses.
beginWalletClosingPeriodUpdate
Begins the wallet closing period update process.
Can be called only by the contract owner.
Parameters
finalizeWalletClosingPeriodUpdate
Finalizes the wallet closing period update process.
Can be called only by the contract owner, after the governance delay elapses.
beginFraudChallengeDepositAmountUpdate
Begins the fraud challenge deposit amount update process.
Can be called only by the contract owner.
Parameters
finalizeFraudChallengeDepositAmountUpdate
Finalizes the fraud challenge deposit amount update process.
Can be called only by the contract owner, after the governance delay elapses.
beginFraudChallengeDefeatTimeoutUpdate
Begins the fraud challenge defeat timeout update process.
Can be called only by the contract owner.
Parameters
finalizeFraudChallengeDefeatTimeoutUpdate
Finalizes the fraud challenge defeat timeout update process.
Can be called only by the contract owner, after the governance delay elapses.
beginFraudSlashingAmountUpdate
Begins the fraud slashing amount update process.
Can be called only by the contract owner.
Parameters
finalizeFraudSlashingAmountUpdate
Finalizes the fraud slashing amount update process.
Can be called only by the contract owner, after the governance delay elapses.
beginFraudNotifierRewardMultiplierUpdate
Begins the fraud notifier reward multiplier update process.
Can be called only by the contract owner.
Parameters
finalizeFraudNotifierRewardMultiplierUpdate
Finalizes the fraud notifier reward multiplier update process.
Can be called only by the contract owner, after the governance delay elapses.
beginTreasuryUpdate
Begins the treasury address update process.
Can be called only by the contract owner. It does not perform any parameter validation.
Parameters
finalizeTreasuryUpdate
Finalizes the treasury address update process.
Can be called only by the contract owner, after the governance delay elapses.
governanceDelay
Gets the governance delay parameter.
Last updated