Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CCIP-3730 Misc ccip onchain changes #14845

Merged
merged 12 commits into from
Oct 22, 2024
Merged

Conversation

RensR
Copy link
Contributor

@RensR RensR commented Oct 18, 2024

Fixes various comments, imports and typo's.

Most impactful change is fixing the ordering of _applyFeeTokensUpdates, with removes first to be in line with the other code.

Copy link
Contributor

github-actions bot commented Oct 18, 2024

I see you updated files related to core. Please run pnpm changeset in the root directory to add a changeset as well as in the text include at least one of the following tags:

  • #added For any new functionality added.
  • #breaking_change For any functionality that requires manual action for the node to boot.
  • #bugfix For bug fixes.
  • #changed For any change to the existing functionality.
  • #db_update For any feature that introduces updates to database schema.
  • #deprecation_notice For any upcoming deprecation functionality.
  • #internal For changesets that need to be excluded from the final changelog.
  • #nops For any feature that is NOP facing and needs to be in the official Release Notes for the release.
  • #removed For any functionality/config that is removed.
  • #updated For any functionality that is updated.
  • #wip For any change that is not ready yet and external communication about it should be held off till it is feature complete.

@smartcontractkit smartcontractkit deleted a comment from github-actions bot Oct 18, 2024
@RensR RensR force-pushed the improve-return-value-get-allowlist branch from 7180423 to 33a147e Compare October 18, 2024 12:17
@RensR RensR requested a review from a team as a code owner October 18, 2024 12:17
@@ -28,7 +28,7 @@ jobs:
cat <<EOF > matrix.json
[
{ "name": "automation", "setup": { "run-coverage": false, "min-coverage": 98.5, "run-gas-snapshot": false, "run-forge-fmt": false }},
{ "name": "ccip", "setup": { "run-coverage": true, "min-coverage": 97.6, "run-gas-snapshot": true, "run-forge-fmt": true }},
{ "name": "ccip", "setup": { "run-coverage": true, "min-coverage": 98.8, "run-gas-snapshot": true, "run-forge-fmt": true }},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is in line with current cov (98.81%)

import {ITypeAndVersion} from "../shared/interfaces/ITypeAndVersion.sol";
import {IFeeQuoter} from "./interfaces/IFeeQuoter.sol";
import {IPriceRegistry} from "./interfaces/IPriceRegistry.sol";

import {KeystoneFeedsPermissionHandler} from "../keystone/KeystoneFeedsPermissionHandler.sol";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keystone is not third party

// │ Extra data availability bytes that are returned from the source pool and sent
uint32 destBytesOverhead; // │ to the destination pool. Must be >= Pool.CCIP_LOCK_OR_BURN_V1_RET_BYTES
bool isEnabled; // ─────────────────╯ Whether this token has custom transfer fees
uint32 minFeeUSDCents; // ────╮ Minimum fee to charge per token transfer, multiples of 0.01 USD
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's no reason so add long ──── lines. At most 2 on the shortest leg of these comments

RayXpub
RayXpub previously approved these changes Oct 21, 2024
0xsuryansh
0xsuryansh previously approved these changes Oct 21, 2024
@RensR RensR dismissed stale reviews from 0xsuryansh and patrickhuie19 via 90857db October 22, 2024 10:56
@RensR RensR changed the title Misc ccip onchain changes CCIP-3730 Misc ccip onchain changes Oct 22, 2024
Copy link
Contributor

github-actions bot commented Oct 22, 2024

AER Report: CI Core ran successfully ✅

aer_workflow , commit

RayXpub
RayXpub previously approved these changes Oct 22, 2024
Copy link
Contributor

github-actions bot commented Oct 22, 2024

AER Report: CI Core ran successfully ✅

aer_workflow , commit

AER Report: Operator UI CI ran successfully ✅

aer_workflow , commit

@@ -232,7 +232,7 @@ abstract contract OCR3Base is OwnerIsCreator, OCR3Abstract {
// Scoping this reduces stack pressure and gas usage
{
uint256 expectedDataLength = uint256(TRANSMIT_MSGDATA_CONSTANT_LENGTH_COMPONENT) +
report.length + // one byte pure entry in _report
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😆

RyanRHall
RyanRHall previously approved these changes Oct 22, 2024
Copy link
Contributor

@RyanRHall RyanRHall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

jhweintraub
jhweintraub previously approved these changes Oct 22, 2024
patrickhuie19
patrickhuie19 previously approved these changes Oct 22, 2024
…ue-get-allowlist

# Conflicts:
#	contracts/gas-snapshots/ccip.gas-snapshot
#	core/gethwrappers/ccip/generation/generated-wrapper-dependency-versions-do-not-edit.txt
Copy link
Contributor

github-actions bot commented Oct 22, 2024

AER Report: CI Core ran successfully ✅

aer_workflow , commit

AER Report: Operator UI CI ran successfully ✅

aer_workflow , commit

@cl-sonarqube-production
Copy link

@RensR RensR added this pull request to the merge queue Oct 22, 2024
Merged via the queue into develop with commit 3f955bf Oct 22, 2024
165 of 167 checks passed
@RensR RensR deleted the improve-return-value-get-allowlist branch October 22, 2024 19:31
0xsuryansh pushed a commit that referenced this pull request Oct 23, 2024
* improve return value get allowlist

* update order of applyFeeTokensUpdates

improve tests

* consistent naming of allowlist

* fix typo, dedup error

* improve comments

* fix offchain

* changeset + fix lint

* remove non-allowed state transition

* fix naming of allowListUpdates

* re run CI
momentmaker added a commit that referenced this pull request Oct 23, 2024
* develop:
  rm gethwrappers from codeowners offchain (#14919)
  CCIP-3899 fix sender encoding (#14877)
  ccip: use unknown address type. (#14836)
  [chore] Add changeset entry for RequestRoundTracker fix (#14912)
  various Solidity Foundry updates (#14866)
  CCIP-3710 create new custom calldata L1 (DA) gas oracle (#14710)
  CCIP owns smoke test (#14906)
  core/services/ocr2/plugins/ccip/internal/ccipdata/factory: check error from TypeAndVersion (#14861)
  CCIP-3730 Misc ccip onchain changes (#14845)
  Chain fee integration tests (#14829)
  release/2.17.0 -> develop (#14721)
  Solana: re-enable disabled test with updated version (#14892)
cedric-cordenier pushed a commit that referenced this pull request Oct 24, 2024
* improve return value get allowlist

* update order of applyFeeTokensUpdates

improve tests

* consistent naming of allowlist

* fix typo, dedup error

* improve comments

* fix offchain

* changeset + fix lint

* remove non-allowed state transition

* fix naming of allowListUpdates

* re run CI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants