You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
440 B
15 lines
440 B
import type { Chain, ChainFormatters } from '../../types/chain.js'
|
|
import type { Assign, Prettify } from '../../types/utils.js'
|
|
|
|
export function defineChain<
|
|
formatters extends ChainFormatters,
|
|
const chain extends Chain<formatters>,
|
|
>(chain: chain): Prettify<Assign<Chain<undefined>, chain>> {
|
|
return {
|
|
formatters: undefined,
|
|
fees: undefined,
|
|
serializers: undefined,
|
|
...chain,
|
|
} as Assign<Chain<undefined>, chain>
|
|
}
|