-
Notifications
You must be signed in to change notification settings - Fork 300
feat(express): migrate coinSignTx to typed routes #7161
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
base: master
Are you sure you want to change the base?
feat(express): migrate coinSignTx to typed routes #7161
Conversation
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 think we already have codecs for txRequests in public-types, can we re-use those instead?
export const CoinSignTxParams = { | ||
/** The coin type */ | ||
coin: t.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.
}; | |
} as const; |
signingStep: optional(t.union([t.literal('signerNonce'), t.literal('signerSignature'), t.literal('cosignerNonce')])), | ||
/** Allow non-segwit signing without previous transaction */ | ||
allowNonSegwitSigningWithoutPrevTx: optional(t.boolean), | ||
}; |
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.
}; | |
} as const; |
/** | ||
* Wallet types | ||
*/ | ||
export const WalletType = t.union([ |
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.
Can we re-use a codec in public-types?
/** | ||
* Transaction request states | ||
*/ | ||
export const TxRequestState = t.union([ |
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.
Same here
/** | ||
* Transaction states | ||
*/ | ||
export const TransactionState = t.union([ |
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.
Same here
Ticket: WP-5422