示例#1
0
文件: index.js 项目: aspnmy/gatewayd
function refundColdWallet(currency, amount, fn){
  var opts = {
    to_account: config.get('COLD_WALLET'),
    from_account: config.get('HOT_WALLET').address,
    amount: amount,
    currency: currency,
    issuer: config.get('COLD_WALLET'),
    secret: config.get('HOT_WALLET').secret
  }
  ripple.sendCurrency(opts, fn);
}
示例#2
0
function issueCurrency(amount, currency, secret, fn) {
  var opts = {
    to_account: gateway.config.get('HOT_WALLET').address,
    from_account: gateway.config.get('COLD_WALLET'),
    amount: amount,
    currency: currency,
    issuer: gateway.config.get('COLD_WALLET'),
    secret: secret
  }

  ripple.sendCurrency(opts, fn);
}
示例#3
0
function issueCurrency(amount, currency, secret, fn) {
  var opts = {
    to_account: gateway.config.get('gateway_hot_wallet').address,
    from_account: gateway.config.get('gateway_cold_wallet'),
    amount: amount,
    currency: currency,
    issuer: gateway.config.get('gateway_cold_wallet'),
    secret: secret
  }

  ripple.sendCurrency(opts, fn);
}