Skip to content

Conversation

lokesh-bitgo
Copy link
Contributor

Ticket: WP-5422

@lokesh-bitgo lokesh-bitgo marked this pull request as ready for review October 3, 2025 12:57
@lokesh-bitgo lokesh-bitgo requested a review from a team as a code owner October 3, 2025 12:57
Copy link
Contributor

@zahin-mohammad zahin-mohammad 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 already have codecs for txRequests in public-types, can we re-use those instead?

export const CoinSignTxParams = {
/** The coin type */
coin: t.string,
};
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
};
} 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),
};
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
};
} as const;

/**
* Wallet types
*/
export const WalletType = t.union([
Copy link
Contributor

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([
Copy link
Contributor

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([
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

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.

2 participants