Add customNonce to saturn.js

saturn-protocol

#1

adding a customNonce to function parameters to send multiple transactions at once.
you can look at the changes here:

Example Usage

const trade_multiple = async ( txarr : string[] ) : Promise<any> => {
    let myWallet = wallet.address
    let walletNonce = await provider.getTransactionCount(myWallet)
    let finalHashes : any = []
    let promises : any = []
    for (let x in txarr){
      let txhash = txarr[x]
      let order : Order = await saturn.query.getOrderByTx(txhash, 'etc') as Order
      let sellHash : string = await saturn.etc.newTrade(order.balance, order.transaction, walletNonce)
      promises.push(provider.waitForTransaction(sellHash))
      finalHashes.push(sellHash)
      walletNonce++
    }
    await Promise.all(promises)
    return finalHashes
}

this code already works for me,
code is law.


#2

https://help.github.com/en/articles/creating-a-pull-request