rename project
This commit is contained in:
parent
6600e941a2
commit
57ec70d88d
24
README.md
24
README.md
|
@ -1,4 +1,4 @@
|
||||||
# Mystery
|
# Insight
|
||||||
|
|
||||||
Project description.
|
Project description.
|
||||||
|
|
||||||
|
@ -23,14 +23,14 @@ $ npm install -g bower
|
||||||
* UI Bootstrap - Defined as bower module in the [bower.json](bower.json) file.
|
* UI Bootstrap - Defined as bower module in the [bower.json](bower.json) file.
|
||||||
|
|
||||||
## Quick Install
|
## Quick Install
|
||||||
To install Mystery on local, you have to fork the main repository to your
|
To install Insight on local, you have to fork the main repository to your
|
||||||
computer:
|
computer:
|
||||||
|
|
||||||
https://github.com/bitpay/mystery
|
https://github.com/bitpay/insight
|
||||||
|
|
||||||
Then clone it wherever you want:
|
Then clone it wherever you want:
|
||||||
|
|
||||||
$ git clone git@github.com:<your_username>/mystery.git
|
$ git clone git@github.com:<your_username>/insight.git
|
||||||
|
|
||||||
$ cd myster
|
$ cd myster
|
||||||
|
|
||||||
|
@ -63,9 +63,9 @@ $ npm install -g bower
|
||||||
|
|
||||||
$ git clone git@github.com:gasteve/node-bufferput.git
|
$ git clone git@github.com:gasteve/node-bufferput.git
|
||||||
|
|
||||||
Create symbolic link of node-bufferput in your mystery folder:
|
Create symbolic link of node-bufferput in your insight folder:
|
||||||
|
|
||||||
$ cd <your_path_to>/mystery/node_modules
|
$ cd <your_path_to>/insight/node_modules
|
||||||
$ ln -s <path_to>/node-bufferput bufferput
|
$ ln -s <path_to>/node-bufferput bufferput
|
||||||
|
|
||||||
Get bitcore from github repository:
|
Get bitcore from github repository:
|
||||||
|
@ -78,10 +78,10 @@ $ npm install -g bower
|
||||||
|
|
||||||
$ npm install
|
$ npm install
|
||||||
|
|
||||||
Then create a symbolic link from this to your mystery repository. We need to
|
Then create a symbolic link from this to your insight repository. We need to
|
||||||
use bitcore from github, not with npm for now:
|
use bitcore from github, not with npm for now:
|
||||||
|
|
||||||
$ cd mystery/node_modules
|
$ cd insight/node_modules
|
||||||
|
|
||||||
$ rm -R bitcore
|
$ rm -R bitcore
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ $ npm install -g bower
|
||||||
|
|
||||||
## Syncing old blockchain data
|
## Syncing old blockchain data
|
||||||
|
|
||||||
Run sync from mystery repository (to save old blocks and transactions in MongoDB):
|
Run sync from insight repository (to save old blocks and transactions in MongoDB):
|
||||||
|
|
||||||
$ utils/sync.js
|
$ utils/sync.js
|
||||||
|
|
||||||
|
@ -181,7 +181,7 @@ If you want to use a external bitcoind server set BITCOIND_HOST / BITCOIND_PORT
|
||||||
### Environment Variables Settings
|
### Environment Variables Settings
|
||||||
|
|
||||||
There are three environments provided by default, __development__, __test__, and __production__. Each of these environments has the following configuration options:
|
There are three environments provided by default, __development__, __test__, and __production__. Each of these environments has the following configuration options:
|
||||||
* __db__ - This is the name of the MongoDB database to use, and is set by default to __mystery-dev__ for the development environment.
|
* __db__ - This is the name of the MongoDB database to use, and is set by default to __insight-dev__ for the development environment.
|
||||||
* __app.name__ - This is the name of your app or website, and can be different for each environment. You can tell which environment you are running by looking at the TITLE attribute that your app generates.
|
* __app.name__ - This is the name of your app or website, and can be different for each environment. You can tell which environment you are running by looking at the TITLE attribute that your app generates.
|
||||||
|
|
||||||
To run with a different environment, just specify NODE_ENV as you call grunt:
|
To run with a different environment, just specify NODE_ENV as you call grunt:
|
||||||
|
@ -194,13 +194,13 @@ If you are using node instead of grunt, it is very similar:
|
||||||
|
|
||||||
|
|
||||||
### Development enviroment
|
### Development enviroment
|
||||||
To run mystery locally for development:
|
To run insight locally for development:
|
||||||
|
|
||||||
$ NODE_ENV=development grunt
|
$ NODE_ENV=development grunt
|
||||||
|
|
||||||
|
|
||||||
## Github
|
## Github
|
||||||
[Mystery](https://github.com/bitpay/mystery)
|
[Insight](https://github.com/bitpay/insight)
|
||||||
|
|
||||||
## License
|
## License
|
||||||
(The MIT License)
|
(The MIT License)
|
||||||
|
|
|
@ -10,4 +10,3 @@ block content
|
||||||
#error-stack-trace
|
#error-stack-trace
|
||||||
pre
|
pre
|
||||||
code!= error
|
code!= error
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ head
|
||||||
title= appName+' - '+title
|
title= appName+' - '+title
|
||||||
meta(http-equiv='Content-type', content='text/html;charset=UTF-8')
|
meta(http-equiv='Content-type', content='text/html;charset=UTF-8')
|
||||||
meta(name="keywords", content="node.js, express, mongoose, mongodb, angularjs")
|
meta(name="keywords", content="node.js, express, mongoose, mongodb, angularjs")
|
||||||
meta(name="description", content="Mystery")
|
meta(name="description", content="Insight")
|
||||||
|
|
||||||
link(rel='shortcut icon', href='/img/icons/favicon.ico', type='image/x-icon')
|
link(rel='shortcut icon', href='/img/icons/favicon.ico', type='image/x-icon')
|
||||||
|
|
||||||
|
|
|
@ -2,4 +2,3 @@ extends layouts/default
|
||||||
|
|
||||||
block content
|
block content
|
||||||
section.container(data-ng-view)
|
section.container(data-ng-view)
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "Mystery",
|
"name": "Insight",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"angular": "latest",
|
"angular": "latest",
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
db: "mongodb://localhost/mystery-dev",
|
db: 'mongodb://localhost/insight-dev',
|
||||||
app: {
|
app: {
|
||||||
name: "Mystery - Development"
|
name: 'Insight - Development'
|
||||||
},
|
},
|
||||||
bitcoind: {
|
bitcoind: {
|
||||||
protocol: process.env.BITCOIND_PROTO || 'http',
|
protocol: process.env.BITCOIND_PROTO || 'http',
|
||||||
user: process.env.BITCOIND_USER || 'mystery',
|
user: process.env.BITCOIND_USER || 'user',
|
||||||
pass: process.env.BITCOIND_PASS || 'real_mystery',
|
pass: process.env.BITCOIND_PASS || 'pass',
|
||||||
host: process.env.BITCOIND_HOST || '127.0.0.1',
|
host: process.env.BITCOIND_HOST || '127.0.0.1',
|
||||||
port: process.env.BITCOIND_PORT || '18332',
|
port: process.env.BITCOIND_PORT || '18332',
|
||||||
disableAgent: true,
|
disableAgent: true,
|
||||||
|
@ -16,4 +16,4 @@ module.exports = {
|
||||||
network: 'testnet',
|
network: 'testnet',
|
||||||
disableP2pSync: false,
|
disableP2pSync: false,
|
||||||
disableHistoricSync: false,
|
disableHistoricSync: false,
|
||||||
}
|
};
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
db: "mongodb://localhost/mystery",
|
db: 'mongodb://localhost/insight',
|
||||||
app: {
|
app: {
|
||||||
name: "Mystery - Production"
|
name: 'Insight - Production'
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
db: "mongodb://localhost/mystery-test",
|
db: 'mongodb://localhost/insight-test',
|
||||||
app: {
|
app: {
|
||||||
name: "Mystery - Test"
|
name: 'Insight - Test'
|
||||||
},
|
},
|
||||||
port: '3301',
|
port: '3301',
|
||||||
bitcoind: {
|
bitcoind: {
|
||||||
protocol: process.env.BITCOIND_PROTO || 'http',
|
protocol: process.env.BITCOIND_PROTO || 'http',
|
||||||
user: process.env.BITCOIND_USER || 'mystery',
|
user: process.env.BITCOIND_USER || 'user',
|
||||||
pass: process.env.BITCOIND_PASS || 'real_mystery',
|
pass: process.env.BITCOIND_PASS || 'pass',
|
||||||
host: process.env.BITCOIND_HOST || '127.0.0.1',
|
host: process.env.BITCOIND_HOST || '127.0.0.1',
|
||||||
port: process.env.BITCOIND_PORT || '18332',
|
port: process.env.BITCOIND_PORT || '18332',
|
||||||
disableAgent: true,
|
disableAgent: true,
|
||||||
},
|
},
|
||||||
network: 'testnet',
|
network: 'testnet',
|
||||||
}
|
};
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
rpcuser=mystery
|
rpcuser=user
|
||||||
rpcpassword=real_mystery
|
rpcpassword=pass
|
||||||
server=1
|
server=1
|
||||||
txindex=1
|
txindex=1
|
||||||
|
|
||||||
|
@ -9,5 +9,3 @@ rpcallowip='192.168.1.*'
|
||||||
|
|
||||||
rpcport=18332
|
rpcport=18332
|
||||||
testnet=3
|
testnet=3
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,8 @@
|
||||||
rpcuser=mystery
|
rpcuser=user
|
||||||
rpcpassword=real_mystery
|
rpcpassword=pass
|
||||||
server=1
|
server=1
|
||||||
txindex=1
|
txindex=1
|
||||||
|
|
||||||
# Allow connections outsite localhost?
|
# Allow connections outsite localhost?
|
||||||
rpcallowip=192.168.1.*
|
rpcallowip=192.168.1.*
|
||||||
rpcallowip='192.168.1.*'
|
rpcallowip='192.168.1.*'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
10
package.json
10
package.json
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "mystery",
|
"name": "insight",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Ryan X Charles",
|
"name": "Ryan X Charles",
|
||||||
"email": "ryan@bitpay.com"
|
"email": "ryan@bitpay.com"
|
||||||
},
|
},
|
||||||
"repository": "git://github.com/bitpay/mystery.git",
|
"repository": "git://github.com/bitpay/insight.git",
|
||||||
"contributors": [
|
"contributors": [
|
||||||
{
|
{
|
||||||
"name": "Matias Alejo Garcia",
|
"name": "Matias Alejo Garcia",
|
||||||
|
@ -30,12 +30,12 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/bitpay/mystery/issues"
|
"url": "https://github.com/bitpay/insight/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/bitpay/mystery",
|
"homepage": "https://github.com/bitpay/insight",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"mystery",
|
"insight",
|
||||||
"secret",
|
"secret",
|
||||||
"enigma",
|
"enigma",
|
||||||
"riddle",
|
"riddle",
|
||||||
|
|
|
@ -1,26 +1,26 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('mystery',
|
angular.module('insight',
|
||||||
['ngAnimate',
|
['ngAnimate',
|
||||||
'ngCookies',
|
'ngCookies',
|
||||||
'ngResource',
|
'ngResource',
|
||||||
'ngRoute',
|
'ngRoute',
|
||||||
'ui.bootstrap',
|
'ui.bootstrap',
|
||||||
'ui.route',
|
'ui.route',
|
||||||
'mystery.system',
|
'insight.system',
|
||||||
'mystery.socket',
|
'insight.socket',
|
||||||
'mystery.blocks',
|
'insight.blocks',
|
||||||
'mystery.transactions',
|
'insight.transactions',
|
||||||
'monospaced.qrcode',
|
'monospaced.qrcode',
|
||||||
'mystery.address',
|
'insight.address',
|
||||||
'mystery.search',
|
'insight.search',
|
||||||
'mystery.status'
|
'insight.status'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
angular.module('mystery.system', []);
|
angular.module('insight.system', []);
|
||||||
angular.module('mystery.socket', []);
|
angular.module('insight.socket', []);
|
||||||
angular.module('mystery.blocks', []);
|
angular.module('insight.blocks', []);
|
||||||
angular.module('mystery.transactions', []);
|
angular.module('insight.transactions', []);
|
||||||
angular.module('mystery.address', []);
|
angular.module('insight.address', []);
|
||||||
angular.module('mystery.search', []);
|
angular.module('insight.search', []);
|
||||||
angular.module('mystery.status', []);
|
angular.module('insight.status', []);
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
//Setting up route
|
//Setting up route
|
||||||
angular.module('mystery').config(['$routeProvider',
|
angular.module('insight').config(['$routeProvider',
|
||||||
function($routeProvider) {
|
function($routeProvider) {
|
||||||
$routeProvider.
|
$routeProvider.
|
||||||
when('/block/:blockHash', {
|
when('/block/:blockHash', {
|
||||||
|
@ -32,7 +32,7 @@ angular.module('mystery').config(['$routeProvider',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
//Setting HTML5 Location Mode
|
//Setting HTML5 Location Mode
|
||||||
angular.module('mystery').config(['$locationProvider',
|
angular.module('insight').config(['$locationProvider',
|
||||||
function($locationProvider) {
|
function($locationProvider) {
|
||||||
$locationProvider.hashPrefix('!');
|
$locationProvider.hashPrefix('!');
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('mystery.address').controller('AddressController', ['$scope', '$routeParams', '$location', 'Global', 'Address', function ($scope, $routeParams, $location, Global, Address) {
|
angular.module('insight.address').controller('AddressController', ['$scope', '$routeParams', '$location', 'Global', 'Address', function ($scope, $routeParams, $location, Global, Address) {
|
||||||
$scope.global = Global;
|
$scope.global = Global;
|
||||||
|
|
||||||
$scope.findOne = function() {
|
$scope.findOne = function() {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('mystery.blocks').controller('BlocksController', ['$scope', '$routeParams', '$location', 'Global', 'Block', 'Blocks', function ($scope, $routeParams, $location, Global, Block, Blocks) {
|
angular.module('insight.blocks').controller('BlocksController', ['$scope', '$routeParams', '$location', 'Global', 'Block', 'Blocks', function ($scope, $routeParams, $location, Global, Block, Blocks) {
|
||||||
$scope.global = Global;
|
$scope.global = Global;
|
||||||
|
|
||||||
$scope.list = function() {
|
$scope.list = function() {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('mystery.system').controller('HeaderController', ['$scope', 'Global', function ($scope, Global) {
|
angular.module('insight.system').controller('HeaderController', ['$scope', 'Global', function ($scope, Global) {
|
||||||
$scope.global = Global;
|
$scope.global = Global;
|
||||||
|
|
||||||
$scope.menu = [
|
$scope.menu = [
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
var TRANSACTION_DISPLAYED = 5;
|
var TRANSACTION_DISPLAYED = 5;
|
||||||
var BLOCKS_DISPLAYED = 5;
|
var BLOCKS_DISPLAYED = 5;
|
||||||
angular.module('mystery.system').controller('IndexController', ['$scope', 'Global', 'socket', 'Blocks', 'Transactions', function($scope, Global, socket, Blocks, Transactions) {
|
angular.module('insight.system').controller('IndexController', ['$scope', 'Global', 'socket', 'Blocks', 'Transactions', function($scope, Global, socket, Blocks, Transactions) {
|
||||||
$scope.global = Global;
|
$scope.global = Global;
|
||||||
|
|
||||||
socket.on('tx', function(tx) {
|
socket.on('tx', function(tx) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('mystery.search').controller('SearchController', ['$scope', '$routeParams', '$location', 'Global', 'Block', 'Transaction', 'Address', function ($scope, $routeParams, $location, Global, Block, Transaction, Address) {
|
angular.module('insight.search').controller('SearchController', ['$scope', '$routeParams', '$location', 'Global', 'Block', 'Transaction', 'Address', function ($scope, $routeParams, $location, Global, Block, Transaction, Address) {
|
||||||
$scope.global = Global;
|
$scope.global = Global;
|
||||||
|
|
||||||
$scope.search = function() {
|
$scope.search = function() {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('mystery.status').controller('StatusController', ['$scope', '$routeParams', '$location', 'Global', 'Status', function ($scope, $routeParams, $location, Global, Status) {
|
angular.module('insight.status').controller('StatusController', ['$scope', '$routeParams', '$location', 'Global', 'Status', function ($scope, $routeParams, $location, Global, Status) {
|
||||||
$scope.global = Global;
|
$scope.global = Global;
|
||||||
|
|
||||||
$scope.getData = function(q) {
|
$scope.getData = function(q) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('mystery.transactions').controller('transactionsController', ['$scope', '$routeParams', '$location', 'Global', 'Transaction', 'TransactionsByBlock', 'TransactionsByAddress', function ($scope, $routeParams, $location, Global, Transaction, TransactionsByBlock, TransactionsByAddress) {
|
angular.module('insight.transactions').controller('transactionsController', ['$scope', '$routeParams', '$location', 'Global', 'Transaction', 'TransactionsByBlock', 'TransactionsByAddress', function ($scope, $routeParams, $location, Global, Transaction, TransactionsByBlock, TransactionsByAddress) {
|
||||||
$scope.global = Global;
|
$scope.global = Global;
|
||||||
|
|
||||||
$scope.findOne = function() {
|
$scope.findOne = function() {
|
||||||
|
|
|
@ -5,5 +5,5 @@ angular.element(document).ready(function() {
|
||||||
if (window.location.hash === '#_=_') window.location.hash = '#!';
|
if (window.location.hash === '#_=_') window.location.hash = '#!';
|
||||||
|
|
||||||
//Then init the app
|
//Then init the app
|
||||||
angular.bootstrap(document, ['mystery']);
|
angular.bootstrap(document, ['insight']);
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('mystery.address').factory('Address', ['$resource', function($resource) {
|
angular.module('insight.address').factory('Address', ['$resource', function($resource) {
|
||||||
return $resource('/api/addr/:addrStr', {
|
return $resource('/api/addr/:addrStr', {
|
||||||
addrStr: '@addStr'
|
addrStr: '@addStr'
|
||||||
}, {
|
}, {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('mystery.blocks').factory('Block', ['$resource', function($resource) {
|
angular.module('insight.blocks').factory('Block', ['$resource', function($resource) {
|
||||||
return $resource('/api/block/:blockHash', {
|
return $resource('/api/block/:blockHash', {
|
||||||
blockHash: '@blockHash'
|
blockHash: '@blockHash'
|
||||||
}, {
|
}, {
|
||||||
|
@ -20,6 +20,6 @@ angular.module('mystery.blocks').factory('Block', ['$resource', function($resour
|
||||||
});
|
});
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
angular.module('mystery.blocks').factory('Blocks', ['$resource', function($resource) {
|
angular.module('insight.blocks').factory('Blocks', ['$resource', function($resource) {
|
||||||
return $resource('/api/blocks');
|
return $resource('/api/blocks');
|
||||||
}]);
|
}]);
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
//Global service for global variables
|
//Global service for global variables
|
||||||
angular.module('mystery.system').factory('Global', [
|
angular.module('insight.system').factory('Global', [
|
||||||
function() {
|
function() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
_this._data = {
|
_this._data = {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('mystery.socket').factory('socket', ['$rootScope', function($rootScope) {
|
angular.module('insight.socket').factory('socket', ['$rootScope', function($rootScope) {
|
||||||
var socket = io.connect();
|
var socket = io.connect();
|
||||||
return {
|
return {
|
||||||
on: function(eventName, callback) {
|
on: function(eventName, callback) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('mystery.status').factory('Status', ['$resource', function($resource) {
|
angular.module('insight.status').factory('Status', ['$resource', function($resource) {
|
||||||
return $resource('/api/status', {
|
return $resource('/api/status', {
|
||||||
q: '@q'
|
q: '@q'
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('mystery.transactions').factory('Transaction', ['$resource', function($resource) {
|
angular.module('insight.transactions').factory('Transaction', ['$resource', function($resource) {
|
||||||
return $resource('/api/tx/:txId', {
|
return $resource('/api/tx/:txId', {
|
||||||
txId: '@txId'
|
txId: '@txId'
|
||||||
}, {
|
}, {
|
||||||
|
@ -20,18 +20,18 @@ angular.module('mystery.transactions').factory('Transaction', ['$resource', func
|
||||||
});
|
});
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
angular.module('mystery.transactions').factory('TransactionsByBlock', ['$resource', function($resource) {
|
angular.module('insight.transactions').factory('TransactionsByBlock', ['$resource', function($resource) {
|
||||||
return $resource('/api/txs', {
|
return $resource('/api/txs', {
|
||||||
block: '@block'
|
block: '@block'
|
||||||
});
|
});
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
angular.module('mystery.transactions').factory('TransactionsByAddress', ['$resource', function($resource) {
|
angular.module('insight.transactions').factory('TransactionsByAddress', ['$resource', function($resource) {
|
||||||
return $resource('/api/txs', {
|
return $resource('/api/txs', {
|
||||||
address: '@address'
|
address: '@address'
|
||||||
});
|
});
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
angular.module('mystery.transactions').factory('Transactions', ['$resource', function($resource) {
|
angular.module('insight.transactions').factory('Transactions', ['$resource', function($resource) {
|
||||||
return $resource('/api/txs');
|
return $resource('/api/txs');
|
||||||
}]);
|
}]);
|
||||||
|
|
Loading…
Reference in New Issue