pkg: change ownership exports.
This commit is contained in:
parent
5bed384b37
commit
df008edca1
16 changed files with 23 additions and 21 deletions
|
|
@ -258,9 +258,6 @@ class Ownership extends BNSOwnership {
|
|||
}
|
||||
}
|
||||
|
||||
Ownership.Proof = Proof;
|
||||
Ownership.OwnershipProof = Proof;
|
||||
|
||||
/**
|
||||
* ProofData
|
||||
*/
|
||||
|
|
@ -291,4 +288,9 @@ ownership = new Ownership();
|
|||
* Expose
|
||||
*/
|
||||
|
||||
module.exports = ownership;
|
||||
module.exports = Ownership;
|
||||
|
||||
Ownership.Proof = Proof;
|
||||
Ownership.OwnershipProof = Proof;
|
||||
Ownership.ProofData = ProofData;
|
||||
Ownership.ownership = ownership;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ const Config = require('bcfg');
|
|||
const secp256k1 = require('bcrypto/lib/secp256k1');
|
||||
const Network = require('../protocol/network');
|
||||
const WorkerPool = require('../workers/workerpool');
|
||||
const ownership = require('../covenants/ownership');
|
||||
const {ownership} = require('../covenants/ownership');
|
||||
|
||||
/**
|
||||
* Node
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ const pkg = require('../pkg');
|
|||
const rules = require('../covenants/rules');
|
||||
const {Resource} = require('../dns/resource');
|
||||
const NameState = require('../covenants/namestate');
|
||||
const ownership = require('../covenants/ownership');
|
||||
const {ownership} = require('../covenants/ownership');
|
||||
const AirdropProof = require('../primitives/airdropproof');
|
||||
const {EXP} = consensus;
|
||||
const RPCBase = bweb.RPC;
|
||||
|
|
|
|||
|
|
@ -12,13 +12,13 @@ const blake2b = require('bcrypto/lib/blake2b');
|
|||
const consensus = require('../protocol/consensus');
|
||||
const policy = require('../protocol/policy');
|
||||
const rules = require('../covenants/rules');
|
||||
const ownership = require('../covenants/ownership');
|
||||
const Ownership = require('../covenants/ownership');
|
||||
const InvItem = require('./invitem');
|
||||
const TX = require('./tx');
|
||||
const Input = require('./input');
|
||||
const Output = require('./output');
|
||||
const {types} = rules;
|
||||
const {OwnershipProof} = ownership;
|
||||
const {OwnershipProof} = Ownership;
|
||||
|
||||
/*
|
||||
* Constants
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ const rules = require('../covenants/rules');
|
|||
const {Resource} = require('../dns/resource');
|
||||
const Claim = require('../primitives/claim');
|
||||
const reserved = require('../covenants/reserved');
|
||||
const ownership = require('../covenants/ownership');
|
||||
const {ownership} = require('../covenants/ownership');
|
||||
const {states} = require('../covenants/namestate');
|
||||
const {types} = rules;
|
||||
const {Mnemonic} = HD;
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ const Parser = require('./parser');
|
|||
const Framer = require('./framer');
|
||||
const packets = require('./packets');
|
||||
const Parent = require('./parent');
|
||||
const ownership = require('../covenants/ownership');
|
||||
const {ownership} = require('../covenants/ownership');
|
||||
|
||||
/**
|
||||
* Master
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ const jobs = require('./jobs');
|
|||
const Parser = require('./parser');
|
||||
const Framer = require('./framer');
|
||||
const packets = require('./packets');
|
||||
const ownership = require('../covenants/ownership');
|
||||
const {ownership} = require('../covenants/ownership');
|
||||
|
||||
/**
|
||||
* Worker Pool
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ const Miner = require('../lib/mining/miner');
|
|||
const MemWallet = require('./util/memwallet');
|
||||
const Network = require('../lib/protocol/network');
|
||||
const rules = require('../lib/covenants/rules');
|
||||
const ownership = require('../lib/covenants/ownership');
|
||||
const {ownership} = require('../lib/covenants/ownership');
|
||||
|
||||
const network = Network.get('regtest');
|
||||
const {treeInterval} = network.names;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ const Miner = require('../lib/mining/miner');
|
|||
const MemWallet = require('./util/memwallet');
|
||||
const Network = require('../lib/protocol/network');
|
||||
const rules = require('../lib/covenants/rules');
|
||||
const ownership = require('../lib/covenants/ownership');
|
||||
const {ownership} = require('../lib/covenants/ownership');
|
||||
|
||||
const network = Network.get('regtest');
|
||||
const GNAME_SIZE = 10;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ const Chain = require('../lib/blockchain/chain');
|
|||
const BlockStore = require('../lib/blockstore/level');
|
||||
const Miner = require('../lib/mining/miner');
|
||||
const MemWallet = require('./util/memwallet');
|
||||
const ownership = require('../lib/covenants/ownership');
|
||||
const {ownership} = require('../lib/covenants/ownership');
|
||||
const Address = require('../lib/primitives/address');
|
||||
const Network = require('../lib/protocol/network');
|
||||
const rules = require('../lib/covenants/rules');
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ const Address = require('../lib/primitives/address');
|
|||
const Claim = require('../lib/primitives/claim');
|
||||
const FullNode = require('../lib/node/fullnode');
|
||||
const consensus = require('../lib/protocol/consensus');
|
||||
const ownership = require('../lib/covenants/ownership');
|
||||
const {ownership} = require('../lib/covenants/ownership');
|
||||
const reserved = require('../lib/covenants/reserved');
|
||||
const {Resource} = require('../lib/dns/resource');
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ const assert = require('bsert');
|
|||
const {BufferMap} = require('buffer-map');
|
||||
const Network = require('../lib/protocol/network');
|
||||
const FullNode = require('../lib/node/fullnode');
|
||||
const ownership = require('../lib/covenants/ownership');
|
||||
const {ownership} = require('../lib/covenants/ownership');
|
||||
const rules = require('../lib/covenants/rules');
|
||||
const {forEvent} = require('./util/common');
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ const rules = require('../lib/covenants/rules');
|
|||
const {types} = rules;
|
||||
const NameState = require('../lib/covenants/namestate');
|
||||
const {states} = NameState;
|
||||
const ownership = require('../lib/covenants/ownership');
|
||||
const {ownership} = require('../lib/covenants/ownership');
|
||||
|
||||
const ONE_HASH = Buffer.alloc(32, 0x00);
|
||||
ONE_HASH[0] = 0x01;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
const assert = require('bsert');
|
||||
const ownership = require('../lib/covenants/ownership');
|
||||
const {ownership} = require('../lib/covenants/ownership');
|
||||
const Address = require('../lib/primitives/address');
|
||||
const Network = require('../lib/protocol/network');
|
||||
const network = Network.get('regtest');
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ const Block = require('../lib/primitives/block');
|
|||
const Address = require('../lib/primitives/address');
|
||||
const Script = require('../lib/script/script');
|
||||
const common = require('../lib/blockchain/common');
|
||||
const ownership = require('../lib/covenants/ownership');
|
||||
const {ownership} = require('../lib/covenants/ownership');
|
||||
const VERIFY_NONE = common.flags.VERIFY_NONE;
|
||||
|
||||
const node = new FullNode({
|
||||
|
|
|
|||
|
|
@ -25,11 +25,11 @@ const Claim = require('../../lib/primitives/claim');
|
|||
const NameState = require('../../lib/covenants/namestate');
|
||||
const NameUndo = require('../../lib/covenants/undo');
|
||||
const reserved = require('../../lib/covenants/reserved');
|
||||
const ownership = require('../../lib/covenants/ownership');
|
||||
const Ownership = require('../../lib/covenants/ownership');
|
||||
const policy = require('../../lib/protocol/policy');
|
||||
const {Resource} = require('../../lib/dns/resource');
|
||||
const Address = require('../../lib/primitives/address');
|
||||
const {OwnershipProof} = ownership;
|
||||
const {OwnershipProof, ownership} = Ownership;
|
||||
const {states} = NameState;
|
||||
const {types} = rules;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue