Skip to content

Commit 445045f

Browse files
committed
Post-merge fixes to chains/evm, chains/solana, devenv, integration-tests
1 parent 156b313 commit 445045f

File tree

13 files changed

+123
-89
lines changed

13 files changed

+123
-89
lines changed

ccv/chains/evm/deployment/go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ require (
99
github.com/Masterminds/semver/v3 v3.4.0
1010
github.com/ethereum/go-ethereum v1.16.8
1111
github.com/smartcontractkit/chain-selectors v1.0.96
12-
github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260216170932-c8081efc1ae5
13-
github.com/smartcontractkit/chainlink-ccip/ccv/chains/evm v0.0.0-20260219210922-173aebbed420
14-
github.com/smartcontractkit/chainlink-ccip/chains/evm/deployment v0.0.0-20260219210922-173aebbed420
15-
github.com/smartcontractkit/chainlink-ccip/deployment v0.0.0-20260219210922-173aebbed420
12+
github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260224154719-156b3133c03d
13+
github.com/smartcontractkit/chainlink-ccip/ccv/chains/evm v0.0.0-20260224154719-156b3133c03d
14+
github.com/smartcontractkit/chainlink-ccip/chains/evm/deployment v0.0.0-20260224154719-156b3133c03d
15+
github.com/smartcontractkit/chainlink-ccip/deployment v0.0.0-20260224154719-156b3133c03d
1616
github.com/smartcontractkit/chainlink-common v0.9.6-0.20260114142648-bd9e1b483e96
1717
github.com/smartcontractkit/chainlink-deployments-framework v0.80.2
1818
github.com/smartcontractkit/chainlink-evm/gethwrappers v0.0.0-20260119171452-39c98c3b33cd

ccv/chains/evm/deployment/go.sum

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,16 +732,24 @@ github.com/smartcontractkit/chainlink-aptos v0.0.0-20251024142440-51f2ad2652a2 h
732732
github.com/smartcontractkit/chainlink-aptos v0.0.0-20251024142440-51f2ad2652a2/go.mod h1:iteU0WORHkArACVh/HoY/1bipV4TcNcJdTmom9uIT0E=
733733
github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260216170932-c8081efc1ae5 h1:aKTy3jdnKS/S7veVvCy49przSWvoH9hbmy8po3RFvA8=
734734
github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260216170932-c8081efc1ae5/go.mod h1:uFQVDhcQrxBhQmEL1Y0kuP1QI0rw8eK9k84Q0ESUYWw=
735+
github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260224154719-156b3133c03d h1:iKYdBqm7KLulueX9e880/kB1H5DBS7V/K+qMH8nY3Lk=
736+
github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260224154719-156b3133c03d/go.mod h1:uFQVDhcQrxBhQmEL1Y0kuP1QI0rw8eK9k84Q0ESUYWw=
735737
github.com/smartcontractkit/chainlink-ccip/ccv/chains/evm v0.0.0-20260219210922-173aebbed420 h1:WM5e31GMC+26+Iimdg5qwli0JsVjnUovErvrVwWODSQ=
736738
github.com/smartcontractkit/chainlink-ccip/ccv/chains/evm v0.0.0-20260219210922-173aebbed420/go.mod h1:Gl35ExaFLinqVhp50+Yq1GnMuHb3fnDtZUFPCtcfV3M=
739+
github.com/smartcontractkit/chainlink-ccip/ccv/chains/evm v0.0.0-20260224154719-156b3133c03d h1:Pi6yufRtPZnWtZN1Sw4sf0qE9dTmzRX56NvGUqD+m8U=
740+
github.com/smartcontractkit/chainlink-ccip/ccv/chains/evm v0.0.0-20260224154719-156b3133c03d/go.mod h1:Zp8erzWAVrADEhbR0EjhWFbEdr98Sdz4yb0LKKMccA8=
737741
github.com/smartcontractkit/chainlink-ccip/chains/evm/deployment v0.0.0-20260219210922-173aebbed420 h1:ua7Hu1L5yHfn//nTR9HaP/YgFs1+hykkTHe38C9PSfE=
738742
github.com/smartcontractkit/chainlink-ccip/chains/evm/deployment v0.0.0-20260219210922-173aebbed420/go.mod h1:6+SlBzJ1bz/DVe5ioLIQaLCKS0vr76kFY+KAg1UqsNY=
743+
github.com/smartcontractkit/chainlink-ccip/chains/evm/deployment v0.0.0-20260224154719-156b3133c03d h1:h3lDtJ8H1c8qzf+1HZINNJ0TqxAjZnh2qYPTQoGOehA=
744+
github.com/smartcontractkit/chainlink-ccip/chains/evm/deployment v0.0.0-20260224154719-156b3133c03d/go.mod h1:6+SlBzJ1bz/DVe5ioLIQaLCKS0vr76kFY+KAg1UqsNY=
739745
github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260121163256-85accaf3d28d h1:xdFpzbApEMz4Rojg2Y2OjFlrh0wu7eB10V2tSZGW5y8=
740746
github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260121163256-85accaf3d28d/go.mod h1:bgmqE7x9xwmIVr8PqLbC0M5iPm4AV2DBl596lO6S5Sw=
741747
github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5 h1:Z4t2ZY+ZyGWxtcXvPr11y4o3CGqhg3frJB5jXkCSvWA=
742748
github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5/go.mod h1:xtZNi6pOKdC3sLvokDvXOhgHzT+cyBqH/gWwvxTxqrg=
743749
github.com/smartcontractkit/chainlink-ccip/deployment v0.0.0-20260219210922-173aebbed420 h1:FdujZjI8mIK+46I1YhT4+VZAumoLhPpehJp/NYGvhs4=
744750
github.com/smartcontractkit/chainlink-ccip/deployment v0.0.0-20260219210922-173aebbed420/go.mod h1:FbFvaU/IuDAKGh425FZt9jSiCee+rlKl4VzPLXC8vXQ=
751+
github.com/smartcontractkit/chainlink-ccip/deployment v0.0.0-20260224154719-156b3133c03d h1:B7NZfJ23eocxX6XUfus8o4INFwdgNNwcLYHNgbElcek=
752+
github.com/smartcontractkit/chainlink-ccip/deployment v0.0.0-20260224154719-156b3133c03d/go.mod h1:FbFvaU/IuDAKGh425FZt9jSiCee+rlKl4VzPLXC8vXQ=
745753
github.com/smartcontractkit/chainlink-common v0.9.6-0.20260114142648-bd9e1b483e96 h1:ZnBBOLyMLJjgQQm7WRJl8sA9Q2RhwagJ+WR62VnA3MY=
746754
github.com/smartcontractkit/chainlink-common v0.9.6-0.20260114142648-bd9e1b483e96/go.mod h1:DAwaVSiQMgAsCjHa8nOnIAM9GixuIQWsgEZFGpf3JxE=
747755
github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.10 h1:FJAFgXS9oqASnkS03RE1HQwYQQxrO4l46O5JSzxqLgg=

chains/evm/deployment/go.mod

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ require (
1414
github.com/rs/zerolog v1.34.0
1515
github.com/smartcontractkit/ccip-contract-examples/chains/evm v0.0.0-20250826190403-aed7f5f33cde
1616
github.com/smartcontractkit/chain-selectors v1.0.96
17-
github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260216170932-c8081efc1ae5
18-
github.com/smartcontractkit/chainlink-ccip/ccv/chains/evm v0.0.0-20260116092715-df6a64d4bf00
19-
github.com/smartcontractkit/chainlink-ccip/deployment v0.0.0-20260216170932-c8081efc1ae5
17+
github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260224154719-156b3133c03d
18+
github.com/smartcontractkit/chainlink-ccip/deployment v0.0.0-20260224154719-156b3133c03d
2019
github.com/smartcontractkit/chainlink-common v0.9.6-0.20260114142648-bd9e1b483e96
2120
github.com/smartcontractkit/chainlink-deployments-framework v0.80.2
2221
github.com/smartcontractkit/chainlink-evm v0.3.3

chains/evm/deployment/go.sum

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -730,10 +730,8 @@ github.com/smartcontractkit/chain-selectors v1.0.96 h1:K3hK9kdPWiRFPXH5r5d1sSVBR
730730
github.com/smartcontractkit/chain-selectors v1.0.96/go.mod h1:qy7whtgG5g+7z0jt0nRyii9bLND9m15NZTzuQPkMZ5w=
731731
github.com/smartcontractkit/chainlink-aptos v0.0.0-20251024142440-51f2ad2652a2 h1:vGdeMwHO3ow88HvxfhA4DDPYNY0X9jmdux7L83UF/W8=
732732
github.com/smartcontractkit/chainlink-aptos v0.0.0-20251024142440-51f2ad2652a2/go.mod h1:iteU0WORHkArACVh/HoY/1bipV4TcNcJdTmom9uIT0E=
733-
github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260216170932-c8081efc1ae5 h1:aKTy3jdnKS/S7veVvCy49przSWvoH9hbmy8po3RFvA8=
734-
github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260216170932-c8081efc1ae5/go.mod h1:uFQVDhcQrxBhQmEL1Y0kuP1QI0rw8eK9k84Q0ESUYWw=
735-
github.com/smartcontractkit/chainlink-ccip/ccv/chains/evm v0.0.0-20260116092715-df6a64d4bf00 h1:bsmRSGuUXKWRhhTxW2MQzJ/swIEqhZ83mjyhTSQuF/g=
736-
github.com/smartcontractkit/chainlink-ccip/ccv/chains/evm v0.0.0-20260116092715-df6a64d4bf00/go.mod h1:Gl35ExaFLinqVhp50+Yq1GnMuHb3fnDtZUFPCtcfV3M=
733+
github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260224154719-156b3133c03d h1:iKYdBqm7KLulueX9e880/kB1H5DBS7V/K+qMH8nY3Lk=
734+
github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260224154719-156b3133c03d/go.mod h1:uFQVDhcQrxBhQmEL1Y0kuP1QI0rw8eK9k84Q0ESUYWw=
737735
github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260121163256-85accaf3d28d h1:xdFpzbApEMz4Rojg2Y2OjFlrh0wu7eB10V2tSZGW5y8=
738736
github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260121163256-85accaf3d28d/go.mod h1:bgmqE7x9xwmIVr8PqLbC0M5iPm4AV2DBl596lO6S5Sw=
739737
github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5 h1:Z4t2ZY+ZyGWxtcXvPr11y4o3CGqhg3frJB5jXkCSvWA=

chains/evm/deployment/v1_5_1/sequences/token_pool/configure_token_pool_for_remote_chains.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ var ConfigureTokenPoolForRemoteChain = cldf_ops.NewSequence(
107107
}
108108

109109
inputORL, inputIRL := tokensapi.GenerateTPRLConfigs(
110-
input.RemoteChainConfig.OutboundRateLimiterConfig,
111-
input.RemoteChainConfig.InboundRateLimiterConfig,
110+
input.RemoteChainConfig.DefaultFinalityOutboundRateLimiterConfig,
111+
input.RemoteChainConfig.DefaultFinalityInboundRateLimiterConfig,
112112
localDecimals,
113113
input.RemoteChainConfig.RemoteDecimals,
114114
chain.Family(),

chains/evm/deployment/v1_6_0/sequences/token_and_pools.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -248,14 +248,14 @@ func (a *EVMAdapter) SetTokenPoolRateLimits() *cldf_ops.Sequence[tokensapi.TPRLR
248248
Address: common.HexToAddress(input.TokenPoolRef.Address),
249249
Args: tpops.SetChainRateLimiterConfigArgs{
250250
OutboundRateLimitConfig: token_pool.RateLimiterConfig{
251-
IsEnabled: input.OutboundRateLimiterConfig.IsEnabled,
252-
Capacity: input.OutboundRateLimiterConfig.Capacity,
253-
Rate: input.OutboundRateLimiterConfig.Rate,
251+
IsEnabled: input.DefaultFinalityOutboundRateLimiterConfig.IsEnabled,
252+
Capacity: input.DefaultFinalityOutboundRateLimiterConfig.Capacity,
253+
Rate: input.DefaultFinalityOutboundRateLimiterConfig.Rate,
254254
},
255255
InboundRateLimitConfig: token_pool.RateLimiterConfig{
256-
IsEnabled: input.InboundRateLimiterConfig.IsEnabled,
257-
Capacity: input.InboundRateLimiterConfig.Capacity,
258-
Rate: input.InboundRateLimiterConfig.Rate,
256+
IsEnabled: input.DefaultFinalityInboundRateLimiterConfig.IsEnabled,
257+
Capacity: input.DefaultFinalityInboundRateLimiterConfig.Capacity,
258+
Rate: input.DefaultFinalityInboundRateLimiterConfig.Rate,
259259
},
260260
RemoteChainSelector: input.RemoteChainSelector,
261261
},

chains/evm/deployment/v1_6_1/adapters/tokens.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ func (t *TokenAdapter) DeriveTokenAddress(e deployment.Environment, chainSelecto
4848
})
4949
}
5050

51-
func (t *TokenAdapter) ManualRegistration() *cldf_ops.Sequence[tokens.ManualRegistrationInput, sequences.OnChainOutput, chain.BlockChains] {
52-
// TODO implement me
53-
return nil
54-
}
55-
5651
func (t *TokenAdapter) DeployToken() *cldf_ops.Sequence[tokens.DeployTokenInput, sequences.OnChainOutput, chain.BlockChains] {
5752
// TODO implement me
5853
return nil
@@ -68,17 +63,17 @@ func (t *TokenAdapter) DeployTokenPoolForToken() *cldf_ops.Sequence[tokens.Deplo
6863
return nil
6964
}
7065

71-
func (t *TokenAdapter) RegisterToken() *cldf_ops.Sequence[tokens.RegisterTokenInput, sequences.OnChainOutput, chain.BlockChains] {
66+
func (t *TokenAdapter) ManualRegistration() *cldf_ops.Sequence[tokens.ManualRegistrationSequenceInput, sequences.OnChainOutput, chain.BlockChains] {
7267
// TODO implement me
7368
return nil
7469
}
7570

76-
func (t *TokenAdapter) SetPool() *cldf_ops.Sequence[tokens.SetPoolInput, sequences.OnChainOutput, chain.BlockChains] {
71+
func (t *TokenAdapter) SetPool() *cldf_ops.Sequence[tokens.TPRLRemotes, sequences.OnChainOutput, chain.BlockChains] {
7772
// TODO implement me
7873
return nil
7974
}
8075

81-
func (t *TokenAdapter) DeriveTokenDecimals(e deployment.Environment, chainSelector uint64, poolRef datastore.AddressRef) (uint8, error) {
76+
func (t *TokenAdapter) DeriveTokenDecimals(e deployment.Environment, chainSelector uint64, poolRef datastore.AddressRef, token []byte) (uint8, error) {
8277
chain, ok := e.BlockChains.EVMChains()[chainSelector]
8378
if !ok {
8479
return 0, fmt.Errorf("chain with selector %d not found", chainSelector)
@@ -97,7 +92,12 @@ func (t *TokenAdapter) DeriveTokenPoolCounterpart(e deployment.Environment, chai
9792
return tokenPool, nil
9893
}
9994

100-
func (t *TokenAdapter) SetTokenPoolRateLimits() *operations.Sequence[tokens.RateLimiterConfigInputs, sequences.OnChainOutput, chain.BlockChains] {
95+
func (t *TokenAdapter) SetTokenPoolRateLimits() *operations.Sequence[tokens.TPRLRemotes, sequences.OnChainOutput, chain.BlockChains] {
96+
// TODO implement me
97+
return nil
98+
}
99+
100+
func (t *TokenAdapter) UpdateAuthorities() *cldf_ops.Sequence[tokens.UpdateAuthoritiesInput, sequences.OnChainOutput, chain.BlockChains] {
101101
// TODO implement me
102102
return nil
103103
}

chains/evm/deployment/v1_6_1/sequences/configure_token_pool_for_remote_chain.go

Lines changed: 51 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (c ConfigureTokenPoolForRemoteChainInput) Validate(chain evm.Chain) error {
4040

4141
var ConfigureTokenPoolForRemoteChain = cldf_ops.NewSequence(
4242
"configure-token-pool-for-remote-chain",
43-
semver.MustParse("1.7.0"),
43+
semver.MustParse("1.6.1"),
4444
"Configures a token pool on an EVM chain for transfers with other chains",
4545
func(b cldf_ops.Bundle, chain evm.Chain, input ConfigureTokenPoolForRemoteChainInput) (output sequences.OnChainOutput, err error) {
4646
if err := input.Validate(chain); err != nil {
@@ -57,6 +57,23 @@ var ConfigureTokenPoolForRemoteChain = cldf_ops.NewSequence(
5757
return sequences.OnChainOutput{}, fmt.Errorf("failed to get supported chains: %w", err)
5858
}
5959

60+
localDecimalsReport, err := cldf_ops.ExecuteOperation(b, token_pool.GetTokenDecimals, chain, evm_contract.FunctionInput[struct{}]{
61+
ChainSelector: input.ChainSelector,
62+
Address: input.TokenPoolAddress,
63+
})
64+
if err != nil {
65+
return sequences.OnChainOutput{}, fmt.Errorf("failed to get token decimals: %w", err)
66+
}
67+
68+
outboundConfig, inboundConfig := tokens.GenerateTPRLConfigs(
69+
input.RemoteChainConfig.DefaultFinalityOutboundRateLimiterConfig,
70+
input.RemoteChainConfig.DefaultFinalityInboundRateLimiterConfig,
71+
localDecimalsReport.Output,
72+
input.RemoteChainConfig.RemoteDecimals,
73+
chain.Family(),
74+
semver.MustParse("1.6.1"),
75+
)
76+
6077
// If the chain is supported
6178
// 1. Check remote token, remove and re-add remote config if requested remote token is different
6279
// 2. Check existing rate limiters and update if necessary
@@ -79,7 +96,7 @@ var ConfigureTokenPoolForRemoteChain = cldf_ops.NewSequence(
7996
// Only proceed further if we do NOT need to remove and re-add the chain
8097
if len(removes) == 0 {
8198
// Check and update rate limiters
82-
rateLimitersReport, err := maybeUpdateRateLimiters(b, chain, input)
99+
rateLimitersReport, err := maybeUpdateRateLimiters(b, chain, input.ChainSelector, input.TokenPoolAddress, input.RemoteChainSelector, inboundConfig, outboundConfig)
83100
if err != nil {
84101
return sequences.OnChainOutput{}, fmt.Errorf("failed to maybe update rate limiters: %w", err)
85102
}
@@ -139,14 +156,14 @@ var ConfigureTokenPoolForRemoteChain = cldf_ops.NewSequence(
139156
},
140157
RemoteTokenAddress: common.LeftPadBytes(input.RemoteChainConfig.RemoteToken, 32),
141158
OutboundRateLimiterConfig: token_pool.Config{
142-
IsEnabled: input.RemoteChainConfig.DefaultFinalityOutboundRateLimiterConfig.IsEnabled,
143-
Capacity: input.RemoteChainConfig.DefaultFinalityOutboundRateLimiterConfig.Capacity,
144-
Rate: input.RemoteChainConfig.DefaultFinalityOutboundRateLimiterConfig.Rate,
159+
IsEnabled: outboundConfig.IsEnabled,
160+
Capacity: outboundConfig.Capacity,
161+
Rate: outboundConfig.Rate,
145162
},
146163
InboundRateLimiterConfig: token_pool.Config{
147-
IsEnabled: input.RemoteChainConfig.DefaultFinalityInboundRateLimiterConfig.IsEnabled,
148-
Capacity: input.RemoteChainConfig.DefaultFinalityInboundRateLimiterConfig.Capacity,
149-
Rate: input.RemoteChainConfig.DefaultFinalityInboundRateLimiterConfig.Rate,
164+
IsEnabled: inboundConfig.IsEnabled,
165+
Capacity: inboundConfig.Capacity,
166+
Rate: inboundConfig.Rate,
150167
},
151168
},
152169
},
@@ -167,44 +184,52 @@ var ConfigureTokenPoolForRemoteChain = cldf_ops.NewSequence(
167184
)
168185

169186
// maybeUpdateRateLimiters checks and updates the rate limiters for a given remote chain if they do not match the desired config.
170-
func maybeUpdateRateLimiters(b cldf_ops.Bundle, chain evm.Chain, input ConfigureTokenPoolForRemoteChainInput) (output evm_contract.WriteOutput, err error) {
187+
func maybeUpdateRateLimiters(
188+
b cldf_ops.Bundle,
189+
chain evm.Chain,
190+
chainSelector uint64,
191+
tokenPoolAddress common.Address,
192+
remoteChainSelector uint64,
193+
inboundConfig tokens.RateLimiterConfig,
194+
outboundConfig tokens.RateLimiterConfig,
195+
) (output evm_contract.WriteOutput, err error) {
171196
inboundRateLimiterStateReport, err := cldf_ops.ExecuteOperation(b, token_pool.GetCurrentInboundRateLimiterState, chain, evm_contract.FunctionInput[uint64]{
172-
ChainSelector: input.ChainSelector,
173-
Address: input.TokenPoolAddress,
174-
Args: input.RemoteChainSelector,
197+
ChainSelector: chainSelector,
198+
Address: tokenPoolAddress,
199+
Args: remoteChainSelector,
175200
})
176201
if err != nil {
177202
return evm_contract.WriteOutput{}, fmt.Errorf("failed to get inbound rate limiter state: %w", err)
178203
}
179204
currentInboundRateLimiterState := inboundRateLimiterStateReport.Output
180205

181206
outboundRateLimiterStateReport, err := cldf_ops.ExecuteOperation(b, token_pool.GetCurrentOutboundRateLimiterState, chain, evm_contract.FunctionInput[uint64]{
182-
ChainSelector: input.ChainSelector,
183-
Address: input.TokenPoolAddress,
184-
Args: input.RemoteChainSelector,
207+
ChainSelector: chainSelector,
208+
Address: tokenPoolAddress,
209+
Args: remoteChainSelector,
185210
})
186211
if err != nil {
187212
return evm_contract.WriteOutput{}, fmt.Errorf("failed to get outbound rate limiter state: %w", err)
188213
}
189214
currentOutboundRateLimiterState := outboundRateLimiterStateReport.Output
190215

191216
// Update the rate limiters if they do not match the desired config
192-
if !rateLimiterConfigsEqual(currentInboundRateLimiterState, input.RemoteChainConfig.DefaultFinalityInboundRateLimiterConfig) ||
193-
!rateLimiterConfigsEqual(currentOutboundRateLimiterState, input.RemoteChainConfig.DefaultFinalityOutboundRateLimiterConfig) {
217+
if !rateLimiterConfigsEqual(currentInboundRateLimiterState, inboundConfig) ||
218+
!rateLimiterConfigsEqual(currentOutboundRateLimiterState, outboundConfig) {
194219
setInboundRateLimiterReport, err := cldf_ops.ExecuteOperation(b, token_pool.SetChainRateLimiterConfig, chain, evm_contract.FunctionInput[token_pool.SetChainRateLimiterConfigArgs]{
195-
ChainSelector: input.ChainSelector,
196-
Address: input.TokenPoolAddress,
220+
ChainSelector: chainSelector,
221+
Address: tokenPoolAddress,
197222
Args: token_pool.SetChainRateLimiterConfigArgs{
198-
RemoteChainSelector: input.RemoteChainSelector,
223+
RemoteChainSelector: remoteChainSelector,
199224
InboundConfig: token_pool.Config{
200-
IsEnabled: input.RemoteChainConfig.DefaultFinalityInboundRateLimiterConfig.IsEnabled,
201-
Capacity: input.RemoteChainConfig.DefaultFinalityInboundRateLimiterConfig.Capacity,
202-
Rate: input.RemoteChainConfig.DefaultFinalityInboundRateLimiterConfig.Rate,
225+
IsEnabled: inboundConfig.IsEnabled,
226+
Capacity: inboundConfig.Capacity,
227+
Rate: inboundConfig.Rate,
203228
},
204229
OutboundConfig: token_pool.Config{
205-
IsEnabled: input.RemoteChainConfig.DefaultFinalityOutboundRateLimiterConfig.IsEnabled,
206-
Capacity: input.RemoteChainConfig.DefaultFinalityOutboundRateLimiterConfig.Capacity,
207-
Rate: input.RemoteChainConfig.DefaultFinalityOutboundRateLimiterConfig.Rate,
230+
IsEnabled: outboundConfig.IsEnabled,
231+
Capacity: outboundConfig.Capacity,
232+
Rate: outboundConfig.Rate,
208233
},
209234
},
210235
})

chains/solana/deployment/v1_6_0/sequences/tokens.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ func (a *SolanaAdapter) ConfigureTokenForTransfersSequence() *cldf_ops.Sequence[
132132
return sequences.OnChainOutput{}, fmt.Errorf("failed to get token decimals for token on chain with selector %d: %w", chain.Selector, err)
133133
}
134134
obRL, ibRL := tokenapi.GenerateTPRLConfigs(
135-
remoteChainConfig.OutboundRateLimiterConfig,
136-
remoteChainConfig.InboundRateLimiterConfig,
135+
remoteChainConfig.DefaultFinalityOutboundRateLimiterConfig,
136+
remoteChainConfig.DefaultFinalityInboundRateLimiterConfig,
137137
localDecimals,
138138
remoteChainConfig.RemoteDecimals,
139139
chain.Family(),
@@ -350,8 +350,8 @@ func (a *SolanaAdapter) SetTokenPoolRateLimits() *cldf_ops.Sequence[tokenapi.TPR
350350
TokenMint: tokenMint,
351351
TokenProgramID: tokenProgramId,
352352
RemoteSelector: input.RemoteChainSelector,
353-
InboundRateLimiterConfig: input.InboundRateLimiterConfig,
354-
OutboundRateLimiterConfig: input.OutboundRateLimiterConfig,
353+
InboundRateLimiterConfig: input.DefaultFinalityInboundRateLimiterConfig,
354+
OutboundRateLimiterConfig: input.DefaultFinalityOutboundRateLimiterConfig,
355355
})
356356
if err != nil {
357357
return sequences.OnChainOutput{}, fmt.Errorf("failed to set rate limits for token pool: %w", err)

0 commit comments

Comments
 (0)