Skip to content

Commit

Permalink
feat: update scripts
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Henrique Dias <[email protected]>
  • Loading branch information
hacdias committed Jan 24, 2019
1 parent f2716c6 commit b74f269
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 20 deletions.
15 changes: 9 additions & 6 deletions src/base-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,16 +386,11 @@ exports['dns4'] = Buffer.from('36', 'hex')
exports['dns6'] = Buffer.from('37', 'hex')
exports['dnsaddr'] = Buffer.from('38', 'hex')
exports['p2p-websocket-star'] = Buffer.from('01df', 'hex')
exports['p2p-stardust'] = Buffer.from('0115', 'hex')
exports['p2p-webrtc-star'] = Buffer.from('0113', 'hex')
exports['p2p-webrtc-direct'] = Buffer.from('0114', 'hex')
exports['unix'] = Buffer.from('0190', 'hex')

// archiving formats

// image formats

// video formats

// IPLD formats
exports['dag-pb'] = Buffer.from('70', 'hex')
exports['dag-cbor'] = Buffer.from('71', 'hex')
Expand All @@ -420,6 +415,14 @@ exports['decred-block'] = Buffer.from('e0', 'hex')
exports['decred-tx'] = Buffer.from('e1', 'hex')
exports['dash-block'] = Buffer.from('f0', 'hex')
exports['dash-tx'] = Buffer.from('f1', 'hex')
exports['leofcoin-block'] = Buffer.from('81', 'hex')
exports['leofcoin-tx'] = Buffer.from('82', 'hex')
exports['leofcoin-pr'] = Buffer.from('83', 'hex')
exports['torrent-info'] = Buffer.from('7b', 'hex')
exports['torrent-file'] = Buffer.from('7c', 'hex')
exports['ed25519-pub'] = Buffer.from('ed', 'hex')

// Content Namespaces
exports['ipld-ns'] = Buffer.from('e2', 'hex')
exports['ipfs-ns'] = Buffer.from('e3', 'hex')
exports['swarm-ns'] = Buffer.from('e4', 'hex')
17 changes: 10 additions & 7 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,16 +387,11 @@ module.exports = Object.freeze({
DNS6: 0x37,
DNSADDR: 0x38,
P2P_WEBSOCKET_STAR: 0x01df,
P2P_STARDUST: 0x0115,
P2P_WEBRTC_STAR: 0x0113,
P2P_WEBRTC_DIRECT: 0x0114,
UNIX: 0x0190,

// archiving formats,

// image formats,

// video formats,

// IPLD formats,
DAG_PB: 0x70,
DAG_CBOR: 0x71,
Expand All @@ -421,7 +416,15 @@ module.exports = Object.freeze({
DECRED_TX: 0xe1,
DASH_BLOCK: 0xf0,
DASH_TX: 0xf1,
LEOFCOIN_BLOCK: 0x81,
LEOFCOIN_TX: 0x82,
LEOFCOIN_PR: 0x83,
TORRENT_INFO: 0x7b,
TORRENT_FILE: 0x7c,
ED25519_PUB: 0xed
ED25519_PUB: 0xed,

// Content Namespaces,
IPLD_NS: 0xe2,
IPFS_NS: 0xe3,
SWARM_NS: 0xe4
})
17 changes: 10 additions & 7 deletions src/print.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,16 +386,11 @@ module.exports = Object.freeze({
0x37: 'dns6',
0x38: 'dnsaddr',
0x01df: 'p2p-websocket-star',
0x0115: 'p2p-stardust',
0x0113: 'p2p-webrtc-star',
0x0114: 'p2p-webrtc-direct',
0x0190: 'unix',

// archiving formats,

// image formats,

// video formats,

// IPLD formats,
0x70: 'dag-pb',
0x71: 'dag-cbor',
Expand All @@ -420,7 +415,15 @@ module.exports = Object.freeze({
0xe1: 'decred-tx',
0xf0: 'dash-block',
0xf1: 'dash-tx',
0x81: 'leofcoin-block',
0x82: 'leofcoin-tx',
0x83: 'leofcoin-pr',
0x7b: 'torrent-info',
0x7c: 'torrent-file',
0xed: 'ed25519-pub'
0xed: 'ed25519-pub',

// Content Namespaces,
0xe2: 'ipld-ns',
0xe3: 'ipfs-ns',
0xe4: 'swarm-ns'
})

0 comments on commit b74f269

Please sign in to comment.