This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var RippleAPI = require('ripple-lib').RippleAPI | |
var api = new RippleAPI({ server: 'wss://s1.ripple.com' }) // Public rippled server | |
var myAddress = 'xxxxxxx' | |
var mySecret = 'yyyyyyy' | |
api.on('error', function (errorCode, errorMessage) { | |
console.log(errorCode + ': ' + errorMessage) | |
}) | |
api.on('connected', function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function logClass(target: any) { | |
// save a reference to the original constructor | |
var original = target; | |
// a utility function to generate instances of a class | |
function construct(constructor, args) { | |
var c : any = function () { | |
return constructor.apply(this, args); | |
} |