-
Notifications
You must be signed in to change notification settings - Fork 212
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: fusdc uses bech32 address hook encoding #10682
base: mfig-no-future-address-hooks
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ import { PendingTxStatus } from './constants.js'; | |
* @import {TypedPattern} from '@agoric/internal'; | ||
* @import {FastUsdcTerms} from './fast-usdc.contract.js'; | ||
* @import {USDCProposalShapes} from './pool-share-math.js'; | ||
* @import {CctpTxEvidence, FeeConfig, PendingTx, PoolMetrics, ChainPolicy, FeedPolicy} from './types.js'; | ||
* @import {CctpTxEvidence, FeeConfig, PendingTx, PoolMetrics, ChainPolicy, FeedPolicy, AddressHook} from './types.js'; | ||
*/ | ||
|
||
/** | ||
|
@@ -67,10 +67,12 @@ export const PendingTxShape = { | |
}; | ||
harden(PendingTxShape); | ||
|
||
export const EudParamShape = { | ||
EUD: M.string(), | ||
/** @type {TypedPattern<AddressHook>} */ | ||
export const AddressHookShape = { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I struggled with a good name here as well |
||
baseAddress: M.string(), | ||
query: { EUD: M.string() }, | ||
}; | ||
harden(EudParamShape); | ||
harden(AddressHookShape); | ||
|
||
const NatAmountShape = { brand: BrandShape, value: M.nat() }; | ||
/** @type {TypedPattern<FeeConfig>} */ | ||
|
This file was deleted.
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.
I don't think we check that
cctpTxEvidence
contains the correctsettlementAccountAddress
anywhere. At one point I thought this was a concern of the EventFeed, but maybe this is the better place to do it.To avoid increasing scope of this PR, I'll tackle this in a follow up