@@ -4,21 +4,22 @@ import (
44 "fmt"
55
66 "github.com/ethereum/go-ethereum/common"
7+ cldf_chain "github.com/smartcontractkit/chainlink-deployments-framework/chain"
8+ "github.com/smartcontractkit/chainlink-deployments-framework/operations"
9+ mcms_types "github.com/smartcontractkit/mcms/types"
10+
711 "github.com/smartcontractkit/chainlink-ccip/ccv/chains/evm/deployment/v2_0_0/operations/token_pool"
812 "github.com/smartcontractkit/chainlink-ccip/chains/evm/deployment/utils/operations/contract"
913 "github.com/smartcontractkit/chainlink-ccip/deployment/tokens"
1014 "github.com/smartcontractkit/chainlink-ccip/deployment/utils"
1115 "github.com/smartcontractkit/chainlink-ccip/deployment/utils/sequences"
12- cldf_chain "github.com/smartcontractkit/chainlink-deployments-framework/chain"
13- "github.com/smartcontractkit/chainlink-deployments-framework/operations"
14- mcms_types "github.com/smartcontractkit/mcms/types"
1516)
1617
17- var SetMinBlockConfirmationsForTokenPools = operations .NewSequence (
18- "set-min-block-confirmations -for-token-pools" ,
18+ var SetAllowedFinalityConfigForTokenPools = operations .NewSequence (
19+ "set-finality-config -for-token-pools" ,
1920 utils .Version_2_0_0 ,
20- "Sets the minimum block confirmations for token pools. Takes a map of pool address to min block confirmations ." ,
21- func (b operations.Bundle , chains cldf_chain.BlockChains , input tokens.SetMinBlockConfirmationsSequenceInput ) (sequences.OnChainOutput , error ) {
21+ "Sets the finality config for token pools. Takes a map of pool address to finality configs ." ,
22+ func (b operations.Bundle , chains cldf_chain.BlockChains , input tokens.SetAllowedFinalityConfigSequenceInput ) (sequences.OnChainOutput , error ) {
2223 chain , ok := chains .EVMChains ()[input .Selector ]
2324 if ! ok {
2425 return sequences.OnChainOutput {}, fmt .Errorf ("chain with selector %d not defined" , input .Selector )
@@ -37,15 +38,15 @@ var SetMinBlockConfirmationsForTokenPools = operations.NewSequence(
3738 }
3839
3940 report , err := operations .ExecuteOperation (
40- b , token_pool .SetMinBlockConfirmations , chain ,
41- contract.FunctionInput [uint16 ]{
41+ b , token_pool .SetAllowedFinalityConfig , chain ,
42+ contract.FunctionInput [[ 4 ] byte ]{
4243 ChainSelector : src ,
4344 Address : addr ,
4445 Args : minBlockConfirmations ,
4546 },
4647 )
4748 if err != nil {
48- return sequences.OnChainOutput {}, fmt .Errorf ("failed to execute token_pool.SetMinBlockConfirmations for pool %s on src %d: %w" , pool , src , err )
49+ return sequences.OnChainOutput {}, fmt .Errorf ("failed to execute token_pool.SetAllowedFinalityConfig for pool %s on src %d: %w" , pool , src , err )
4950 }
5051
5152 writes = append (writes , report .Output )
0 commit comments