Skip to content

Commit

Permalink
72hr default valid until (#15650)
Browse files Browse the repository at this point in the history
* Build batches

* Default valid until
  • Loading branch information
connorwstein authored Dec 12, 2024
1 parent 00cc18d commit 2c13558
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions deployment/common/proposalutils/propose.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import (
"github.com/smartcontractkit/ccip-owner-contracts/pkg/proposal/timelock"
)

const (
DefaultValidUntil = 72 * time.Hour
)

func buildProposalMetadata(
chainSelectors []uint64,
proposerMcmsesPerChain map[uint64]*gethwrappers.ManyChainMultiSig,
Expand Down Expand Up @@ -61,10 +65,10 @@ func BuildProposalFromBatches(
for chainId, tl := range timelocksPerChain {
tlsPerChainId[mcms.ChainIdentifier(chainId)] = tl
}

validUntil := time.Now().Unix() + int64(DefaultValidUntil.Seconds())
return timelock.NewMCMSWithTimelockProposal(
"1",
2004259681, // TODO: should be parameterized and based on current block timestamp.
uint32(validUntil),
[]mcms.Signature{},
false,
mcmsMd,
Expand Down

0 comments on commit 2c13558

Please sign in to comment.