unit/composer.js
function composeCoinbaseJoint(from_address, coinbase_address, round_index, coinbase_amount, signer, callbacks){
	var coinbase_foundation_amount = Math.floor(coinbase_amount*constants.FOUNDATION_RATIO);
	composeJoint({
		paying_addresses: [from_address],
		outputs: [{address: coinbase_address, amount: 0}, {address: constants.FOUNDATION_ADDRESS, amount: coinbase_foundation_amount}],
		//inputs: [{type: "coinbase", amount: coinbase_amount, address: from_address}],
		inputs: [{type: "coinbase", amount: coinbase_amount}],
		round_index: round_index,
		input_amount: coinbase_amount,
		pow_type: constants.POW_TYPE_COIN_BASE,
		signer: signer,
		callbacks: callbacks
	});
}
function composeCoinbaseJoint(from_address, coinbase_address, round_index, coinbase_amount, signer, callbacks){
	var coinbase_foundation_amount = Math.floor(coinbase_amount*constants.FOUNDATION_RATIO);
	composeJoint({
		paying_addresses: [from_address],
		outputs: [{address: coinbase_address, amount: 0}, {address: constants.FOUNDATION_ADDRESS, amount: coinbase_foundation_amount}],
		//inputs: [{type: "coinbase", amount: coinbase_amount, address: from_address}],
		inputs: [{type: "coinbase", amount: coinbase_amount}],
		round_index: round_index,
		input_amount: coinbase_amount,
		pow_type: constants.POW_TYPE_COIN_BASE,
		signer: signer,
		callbacks: callbacks
	});
}
function composeCoinbaseJoint ( from_address , coinbase_address , round_index , coinbase_amount , signer , callbacks ) { var coinbase_foundation_amount = Math . floor ( coinbase_amount * constants . FOUNDATION_RATIO ) ; composeJoint ( { paying_addresses : [ from_address ] , outputs : [ { address : coinbase_address , amount : 0 } , { address : constants . FOUNDATION_ADDRESS , amount : coinbase_foundation_amount } ] , //inputs: [{type: "coinbase", amount: coinbase_amount, address: from_address}], inputs : [ { type : "coinbase" , amount : coinbase_amount } ] , round_index : round_index , input_amount : coinbase_amount , pow_type : constants . POW_TYPE_COIN_BASE , signer : signer , callbacks : callbacks } ) ; }
pow add Coinbase joint
pow add Coinbase joint