Bitcoin-com / slp-sdk

Simple Ledger Protocol SDK powered by BITBOX
https://developer.bitcoin.com/slp
MIT License
20 stars 32 forks source link

Multi input mint #94

Open BytesOfMan opened 4 years ago

BytesOfMan commented 4 years ago

Support for fundingAddress and fundingWif as arrays in TokenType1.send

Due to different linting systems, the easiest way to review this PR is to check changes to TokenType1.ts and SLPInterfaces.ts at this PR: https://github.com/josephroyking/slp-sdk/pull/3/files

This highlights the only material code changes (in this PR, the numerous formatting deltas make things confusing).

Summary of changes

https://github.com/josephroyking/slp-sdk/blob/multi-input-mint/src/TokenType1.ts#L133

See lines 133 to 196. The code changes are parsing changes to process output of different format from bitboxNetwork.getAllSlpBalancesAndUtxos(mintConfig.fundingAddress); --- which itself already accepts array inputs.