Skip to content

Conversation

@mkysel
Copy link
Collaborator

@mkysel mkysel commented Sep 10, 2025

Use anvil with deployed gateways by updating dev Docker and test utilities to ghcr.io/xmtp/contracts:sha-3b16f01 and enabling gateway pause flag tests

  • Update the chain service image in docker-compose.yml to ghcr.io/xmtp/contracts:sha-3b16f01.
  • Repoint contract addresses in anvil.json for app and settlement chain components to new values.
  • Remove skips in TestPauseFlags in appchainAdmin_test.go to execute the app-chain-gateway toggle test.
  • Remove skips in TestPauseFlagsSettlement in settlementchainAdmin_test.go to execute the settlement-chain-gateway toggle test.
  • Change the anvil test utility image in anvil.go to ghcr.io/xmtp/contracts:sha-3b16f01.

📍Where to Start

Start with the image changes in pkg/testutils/anvil/anvil.go and dev/docker/docker-compose.yml, then verify updated addresses in dev/environments/anvil.json before reviewing the unskipped tests in pkg/blockchain/appchainAdmin_test.go and pkg/blockchain/settlementchainAdmin_test.go.


Macroscope summarized a3037be.

Fixes xmtp/smart-contracts#125

@mkysel mkysel requested a review from a team as a code owner September 10, 2025 14:58
Base automatically changed from mkysel/fix-tz-issue to main September 10, 2025 15:18
@mkysel mkysel force-pushed the mkysel/use-new-anvil branch from a3037be to b1b3bb0 Compare September 10, 2025 15:19
@macroscopeapp
Copy link

macroscopeapp bot commented Sep 10, 2025

Update anvil environment and tests to use deployed gateways by switching contract image to ghcr.io/xmtp/contracts:sha-3b16f01 and enabling gateway pause flag tests

This change updates local and test environments to use the deployed gateways and adjusts expiry calculations to UTC-based durations. • Update contract image tags in docker-compose.yml and test anvil in anvil.go to ghcr.io/xmtp/contracts:sha-3b16f01. • Replace gateway and registry contract addresses in anvil.json. • Compute ExpiryUnixtime using time.Now().UTC() plus 24h * retentionDays in migrator.Transformer.buildAndSignOriginatorEnvelope in transformer.go and in registrant.Registrant.SignStagedEnvelope in registrant.go. • Enable previously skipped pause flag tests for app and settlement gateways in appchainAdmin_test.go and settlementchainAdmin_test.go. • Improve failure output for expiry assertion in publish_test.go.

📍Where to Start

Start with the environment configuration changes in anvil.json, then review the UTC expiry logic in migrator.Transformer.buildAndSignOriginatorEnvelope in transformer.go and registrant.Registrant.SignStagedEnvelope in registrant.go.


Macroscope summarized a3037be.

@mkysel mkysel merged commit cef18e5 into main Sep 11, 2025
10 checks passed
@mkysel mkysel deleted the mkysel/use-new-anvil branch September 11, 2025 13:54
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.

App/Settlement chain gateways are not set for anvil.json

3 participants