Revisions
-
Steven Zeiler revised this gist
Dec 25, 2014 . 1 changed file with 10 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -8,24 +8,24 @@ In `gatewaydfile.js`: gatewayd.protocol.external.outbound.extend({ quote: function(options, resolve, reject) { if (gatewayd.validator.isEmail(address)) { if (options.currency === 'BTC') { if (options.amount <= 0.1) { resolve({ destination: options.destination, amount: options.amount * 1.01, currency: options.currency }); } else { reject(new Error('amount must be less than 0.1')); } } else { reject(new Error('currency must be BTC')); } } else { reject(new Error('address must be email')); } } }); -
Steven Zeiler revised this gist
Dec 25, 2014 . 1 changed file with 22 additions and 17 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,27 +2,32 @@ Purpose: To discover the interface for Gateway Services Protocol to be extended per a given use case In `gatewaydfile.js`: module.exports = function(gatewayd) { gatewayd.protocol.external.outbound.extend({ quote: function(address, amount, currency) { if (gatewayd.validator.isEmail(address)) { if (currency === 'BTC') { if (amount <= 0.1) { this.resolve({ destination: destination, amount: amount, currency: currency }); } else { this.reject(new Error('amount must be less than 0.1')); } } else { this.reject(new Error('currency must be BTC')); } } else { this.reject(new Error('address must be email')); } } }); };
-
Steven Zeiler revised this gist
Dec 25, 2014 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Purpose: To discover the interface for Gateway Services Protocol to be extended gatewayd.protocol.external.outbound.extend({ quote: function(address, amount, currency) { if (gatewayd.validator.isEmail(address)) { if (currency === 'BTC') { if (amount <= 0.1) { -
Steven Zeiler revised this gist
Dec 25, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -3,8 +3,8 @@ Purpose: To discover the interface for Gateway Services Protocol to be extended per a given use case gatewayd.protocol.external.outbound.extend({ quote: function(address, amount, currency) { if (gatewayd.validator.isEmail(address)) { if (currency === 'BTC') { if (amount <= 0.1) { -
Steven Zeiler revised this gist
Dec 25, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # Gatewayd Protocol Outbound External Purpose: To discover the interface for Gateway Services Protocol to be extended per a given use case -
Steven Zeiler revised this gist
Dec 25, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -23,5 +23,5 @@ Purpose: To discover the interface for Gateway Services Protocol to be extended this.reject(new Error('address must be email')); } } });
-
Steven Zeiler created this gist
Dec 25, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,27 @@ # Outbound Coingate Purpose: To discover the interface for Gateway Services Protocol to be extended per a given use case gatewayd.protocol.external.outbound.extend({ quote: function(address, amount, currency) { if (gatewayd.validator.isEmail(address)) { if (currency === 'BTC') { if (amount <= 0.1) { this.resolve({ destination: destination, amount: amount, currency: currency }); } else { this.reject(new Error('amount must be less than 0.1')); } } else { this.reject(new Error('currency must be BTC')); } } else { this.reject(new Error('address must be email')); } } })