-
Notifications
You must be signed in to change notification settings - Fork 229
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
chore(settler): narrow "unexpected channel" log #11046
Conversation
- `receiveUpcall` fires on incoming and outgoing ibc transfers. quiet the "unexpected channel" log on outgoing transfers sent by the contract
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add more detail to upgrade considerations
@@ -97,6 +97,7 @@ export const stateShape = harden({ | |||
settlementAccount: M.remotable('Account'), | |||
registration: M.or(M.undefined(), M.remotable('Registration')), | |||
sourceChannel: M.string(), | |||
destChannel: M.string(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm. state shape change.
I suppose this is OK because we're making a new settler next time.
Please elaborate the upgrade considerations to be explicit about this.
@@ -160,6 +161,7 @@ export const prepareSettler = ( | |||
/** | |||
* @param {{ | |||
* sourceChannel: IBCChannelID; | |||
* destChannel: IBCChannelID; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This (and the fact that tests had to change) looks like a breaking change to the makeSettler
API.
Again, I think it's fine because we're making a new settler, but please be explicit in the upgrade considerations.
closes: #11047
Description
receiveUpcall
fires on incoming and outgoing ibc transfers. This change quiets the "unexpected channel" log on outgoing transfers sent by the contract'ssettlementAccount
. (ThesettlementAccount
will send an outgoing transfer during theForward
sequence.)Security Considerations
None, diagnostic-only change.
Scaling Considerations
Less noise in SwingSet logs
Documentation Considerations
None
Testing Considerations
None
Upgrade Considerations
This is a breaking change for
SettlerKit
/makeSettler
, via the addition of a new state property instate
andstateShape
.