Skip to content

Commit

Permalink
Merge pull request #232 from pinheadmz/hsd1
Browse files Browse the repository at this point in the history
hsd: expose covenants and dns in global hsd.js object
  • Loading branch information
chjj authored Aug 1, 2019
2 parents 1286e58 + 6422a6e commit 0d5865f
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/covenants/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*!
* covenants/index.js - covenants for hsd
* Copyright (c) 2019, handshake-org developers (MIT License).
* https://github.com/handshake-org/hsd
*/

'use strict';

/**
* @module covenants
*/

exports.Namestate = require('./namestate');
exports.Ownership = require('./ownership');
exports.Rules = require('./rules');
10 changes: 10 additions & 0 deletions lib/hsd-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ hsd.Coins = require('./coins/coins');
hsd.CoinEntry = require('./coins/coinentry');
hsd.CoinView = require('./coins/coinview');

// Covenants
hsd.covenants = require('./covenants');
hsd.Namestate = require('./covenants/namestate');
hsd.Ownership = require('./covenants/ownership');
hsd.Rules = require('./covenants/rules');

// DNS
hsd.dns = require('./dns/server');
hsd.Resource = require('./dns/resource');

// HD
hsd.hd = require('./hd');
hsd.HDPrivateKey = require('./hd/private');
Expand Down
10 changes: 10 additions & 0 deletions lib/hsd.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@ hsd.define('Coins', './coins/coins');
hsd.define('CoinEntry', './coins/coinentry');
hsd.define('CoinView', './coins/coinview');

// Covenants
hsd.define('covenants', './covenants');
hsd.define('Namestate', './covenants/namestate');
hsd.define('Ownership', './covenants/ownership');
hsd.define('Rules', './covenants/rules');

// DNS
hsd.define('dns', './dns/server');
hsd.define('Resource', './dns/resource');

// HD
hsd.define('hd', './hd');
hsd.define('HDPrivateKey', './hd/private');
Expand Down

0 comments on commit 0d5865f

Please sign in to comment.