Skip to content

Commit

Permalink
Update proposal.js
Browse files Browse the repository at this point in the history
fix ident
  • Loading branch information
bassjobsen authored Sep 5, 2018
1 parent 0dffc47 commit 188309e
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions lib/transactions/proposal.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,68 +13,68 @@ var transaction = require('./transaction.js')
}*/

function registergateway(options, secret, secondSecret) {
let keys = crypto.getKeys(secret);
let currency = {
let keys = crypto.getKeys(secret);
let currency = {
symbol : options.symbol,
desc: options.currencyDesc,
precision : options.precision
precision : options.precision
}
// construct this content
let content = {
name : options.name,
desc : options.desc,
minimumMembers: options.minimumMembers,
updateInterval: options.updateInterval,
minimumMembers: options.minimumMembers,
updateInterval: options.updateInterval,
currency: currency
}
return transaction.createTransactionEx({
type: 300,
fee: 10 * 1e8,
secret: secret,
secondSecret, secondSecret,
args: [options.title, options.desc, 'gateway_register', content, options.endHeight]
return transaction.createTransactionEx({
type: 300,
fee: 10 * 1e8,
secret: secret,
secondSecret, secondSecret,
args: [options.title, options.desc, 'gateway_register', content, options.endHeight]
})
}

function initgateway(options, secret, secondSecret) {

let keys = crypto.getKeys(secret);
// construct this content
let content = {
gateway : options.name,
members: options.members
let keys = crypto.getKeys(secret);
// construct this content
let content = {
gateway : options.name,
members: options.members
}
return transaction.createTransactionEx({
type: 300,
fee: 10 * 1e8,
secret: secret,
secondSecret, secondSecret,
args: ['xxxxxxxxxx', '', 'gateway_init', content, 500000]
args: ['xxxxxxxxxx', '', 'gateway_init', content, 500000]
})
}

function activate(options, secret, secondSecret) {

let keys = crypto.getKeys(secret);
let keys = crypto.getKeys(secret);
return transaction.createTransactionEx({
type: 302,
fee: 0 * 1e8,
secret: secret,
secondSecret, secondSecret,
args: [options.tid]
args: [options.tid]
})
}

function upvote(options, secret, secondSecret) {

let keys = crypto.getKeys(secret);
let keys = crypto.getKeys(secret);
return transaction.createTransactionEx({
type: 301,
fee: 1e7, // 0.1 * 1e8
secret: secret,
secondSecret, secondSecret,
args: [options.tid]
args: [options.tid]
})
}

Expand Down

0 comments on commit 188309e

Please sign in to comment.