( send: Component.Send )
| 1893 | * @since 4.2.0 |
| 1894 | */ |
| 1895 | export const encodeSend = ( |
| 1896 | send: Component.Send |
| 1897 | ): { readonly owner: string; readonly message: Schema.Json } => ({ |
| 1898 | owner: sharedReads.keyOf(send.owner).name, |
| 1899 | message: encodeArgs(send.owner.receives, send.message) |
| 1900 | }) |
| 1901 | |
| 1902 | /** The redacting codec of `ast`, or `null` when it has none. */ |
| 1903 | const encoderOf = memoize( |