Skip to content

Commit

Permalink
update structs in integration-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanRHall committed Oct 15, 2024
1 parent 136febb commit 4939394
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions integration-tests/deployment/ccip/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -567,9 +567,9 @@ func DeployChainContracts(
chain.DeployerKey,
chain.Client,
fee_quoter.FeeQuoterStaticConfig{
MaxFeeJuelsPerMsg: big.NewInt(0).Mul(big.NewInt(2e2), big.NewInt(1e18)),
LinkToken: contractConfig.LinkToken.Address(),
StalenessThreshold: uint32(24 * 60 * 60),
MaxFeeJuelsPerMsg: big.NewInt(0).Mul(big.NewInt(2e2), big.NewInt(1e18)),
LinkToken: contractConfig.LinkToken.Address(),
TokenPriceStalenessThreshold: uint32(24 * 60 * 60),
},
[]common.Address{mcmsContracts.Timelock.Address}, // timelock should be able to update, ramps added after
[]common.Address{contractConfig.Weth9.Address(), contractConfig.LinkToken.Address()}, // fee tokens
Expand Down
12 changes: 6 additions & 6 deletions integration-tests/deployment/ccip/view/v1_6/feequoter.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ type FeeQuoterView struct {
}

type FeeQuoterStaticConfig struct {
MaxFeeJuelsPerMsg string `json:"maxFeeJuelsPerMsg,omitempty"`
LinkToken string `json:"linkToken,omitempty"`
StalenessThreshold uint32 `json:"stalenessThreshold,omitempty"`
MaxFeeJuelsPerMsg string `json:"maxFeeJuelsPerMsg,omitempty"`
LinkToken string `json:"linkToken,omitempty"`
TokenPriceStalenessThreshold uint32 `json:"tokenPriseStalenessThreshold,omitempty"`
}

type FeeQuoterDestChainConfig struct {
Expand Down Expand Up @@ -78,9 +78,9 @@ func GenerateFeeQuoterView(fqContract *fee_quoter.FeeQuoter, router *router1_2.R
return FeeQuoterView{}, err
}
fq.StaticConfig = FeeQuoterStaticConfig{
MaxFeeJuelsPerMsg: staticConfig.MaxFeeJuelsPerMsg.String(),
LinkToken: staticConfig.LinkToken.Hex(),
StalenessThreshold: staticConfig.TokenPriceStalenessThreshold,
MaxFeeJuelsPerMsg: staticConfig.MaxFeeJuelsPerMsg.String(),
LinkToken: staticConfig.LinkToken.Hex(),
TokenPriceStalenessThreshold: staticConfig.TokenPriceStalenessThreshold,
}
// find router contract in dependencies
fq.DestinationChainConfig = make(map[uint64]FeeQuoterDestChainConfig)
Expand Down

0 comments on commit 4939394

Please sign in to comment.