(inputs: UnlockableUtxo[])
| 174 | } |
| 175 | |
| 176 | export function generateLibauthSourceOutputs(inputs: UnlockableUtxo[]): LibauthOutput[] { |
| 177 | const sourceOutputs = inputs.map((input) => { |
| 178 | const sourceOutput = { |
| 179 | amount: input.satoshis, |
| 180 | to: input.unlocker.generateLockingBytecode(), |
| 181 | token: input.token, |
| 182 | }; |
| 183 | |
| 184 | return cashScriptOutputToLibauthOutput(sourceOutput); |
| 185 | }); |
| 186 | return sourceOutputs; |
| 187 | } |
| 188 | |
| 189 | function isTokenAddress(address: string): boolean { |
| 190 | const result = decodeCashAddress(address); |
no test coverage detected