chance.mixin({row: () => ({ date: chance.date({year: 2016}), vowels: chance.character({pool: 'aeiouy'}), county: chance.country(), age: chance.age({type: 'adult'}), bool: chance.bool(), float: chance.floating({min: -25, max: 25}), integer: chance.integer({min: -25, max: 25}), positiveInteger: chance.integer({min: 0, max: 25}), string: chance.string({length: 4}) })});
function dbRippleTxSeed(howMany) { var i = howMany || 1; while (i) { RippleTransactions.create({ to_address_id: chance.integer({min: 1, max: 99999}), from_address_id: chance.integer({min: 1, max: 99999}), to_amount: chance.floating({fixed: 2}), to_currency: chance.currency().code, to_issuer: 'r' + chance.character({length: 34, alpha: true}), from_amount: chance.floating({fixed: 2}), from_currency: chance.currency().code, from_issuer: 'r' + chance.character({length: 34, alpha: true}), invoice_id: chance.hash({length: 32, casing: 'upper'}) }).then(function() { console.log('successfully created transaction record'); }); i--; } }