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

Add new Vtransfer module for notifications #8624

Merged
merged 60 commits into from
Jun 8, 2024

Conversation

schnetzlerjoe
Copy link
Contributor

@schnetzlerjoe schnetzlerjoe commented Dec 6, 2023

closes: #8583, closes: #9059, closes: #9256

Description

This PR adds the vTransfer middleware module which acts as a notification module on the transfer port for contracts that need to act based on it.

Security Considerations

As discussed, this does change how inbound assets are handled.

Testing Considerations

The middleware module has mock unit tests in ibc_middleware_test.go

Copy link
Member

@michaelfig michaelfig left a comment

Choose a reason for hiding this comment

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

Looking good! Here're some questions and suggestions.

golang/cosmos/go.mod Outdated Show resolved Hide resolved
golang/cosmos/go.sum Outdated Show resolved Hide resolved
golang/cosmos/x/vtransfer/handler.go Outdated Show resolved Hide resolved
golang/cosmos/x/vtransfer/ibc_middleware_test.go Outdated Show resolved Hide resolved
golang/cosmos/x/vtransfer/keeper/keeper.go Show resolved Hide resolved
@michaelfig michaelfig force-pushed the vtransfer branch 3 times, most recently from af2951e to 8faa03a Compare December 31, 2023 19:33
@michaelfig michaelfig force-pushed the vtransfer branch 2 times, most recently from b18ae03 to bb4436e Compare February 7, 2024 19:42
@turadg turadg self-requested a review February 15, 2024 18:48
@michaelfig michaelfig force-pushed the vtransfer branch 2 times, most recently from 45d7718 to 9b9ab3a Compare February 28, 2024 22:21
@michaelfig michaelfig force-pushed the vtransfer branch 2 times, most recently from 10a5707 to 555df1f Compare March 10, 2024 17:39
Copy link
Member

@turadg turadg left a comment

Choose a reason for hiding this comment

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

I think we need to change the intercept name. I'd also like to see the types, though that's easier to amend later.

packages/vats/package.json Outdated Show resolved Hide resolved
packages/vats/src/localchain.js Outdated Show resolved Hide resolved
packages/vats/src/localchain.js Outdated Show resolved Hide resolved
packages/vats/src/proposals/localchain-proposal.js Outdated Show resolved Hide resolved
packages/vats/src/transfer.js Outdated Show resolved Hide resolved
packages/vats/src/transfer.js Outdated Show resolved Hide resolved
@turadg turadg added the force:integration Force integration tests to run on PR label Mar 11, 2024
@michaelfig michaelfig force-pushed the vtransfer branch 2 times, most recently from bcd287a to 7f3be7d Compare March 18, 2024 17:26
@michaelfig michaelfig requested a review from gibson042 June 8, 2024 02:07
@michaelfig michaelfig added automerge:no-update (expert!) Automatically merge without updates and removed force:integration Force integration tests to run on PR labels Jun 8, 2024
Copy link
Member

@gibson042 gibson042 left a comment

Choose a reason for hiding this comment

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

🎉

@mergify mergify bot merged commit 5a03adc into Agoric:master Jun 8, 2024
69 of 76 checks passed
michaelfig pushed a commit that referenced this pull request Jun 10, 2024
#8624 (comment)

makeBridgeTargetKit can be more general than "IBC transfer", and
is already pulled in separately by vat-transfer.js
mergify bot added a commit that referenced this pull request Jun 10, 2024
…9471)

#8624 (comment)

makeBridgeTargetKit can be more general than "IBC transfer", and is
already pulled in separately by vat-transfer.js
Comment on lines -154 to +159
panic(fmt.Errorf("SwingStore export dir not set"))
am.swingStoreExportDir = "/tmp/swingset_export"
Copy link
Member

Choose a reason for hiding this comment

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

What is the motivation for this change? This is used by genesis import/export which should set this appropriately.

Copy link
Member

Choose a reason for hiding this comment

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

I don't know the motivation, but I see that @schnetzlerjoe made the change. Perhaps this panic was being triggered by the x/vtransfer ibc_middleware_test.go?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:no-update (expert!) Automatically merge without updates
Projects
None yet
6 participants