Skip to content

Commit 5985aa1

Browse files
committed
Use 4byte
1 parent 9b67c93 commit 5985aa1

File tree

4 files changed

+16
-17
lines changed

4 files changed

+16
-17
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
# four-byte
1+
# 4byte
22

33
> Look up an Ethereum function signature by the 4 bytes of its hash
44
5-
[![License](http://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/shanefontaine/four-byte/master/LICENSE)
6-
[![NPM version](https://badge.fury.io/js/four-byte.svg)](http://badge.fury.io/js/four-byte)
5+
[![License](http://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/shanefontaine/4byte/master/LICENSE)
6+
[![NPM version](https://badge.fury.io/js/4byte.svg)](http://badge.fury.io/js/4byte)
77

88
## Install
99

1010
```bash
11-
npm install four-byte
11+
npm install 4byte
1212
```
1313

1414
## Getting started
1515

1616
```javascript
17-
const fourByte = require('four-byte')
17+
const fourByte = require('4byte')
1818

1919
const signatures = fourByte('0x51c6590a')
2020
console.log(signatures) // ['addLiquidity(uint256)']
@@ -25,20 +25,20 @@ console.log(signatures) // ['addLiquidity(uint256)']
2525
Install:
2626

2727
```bash
28-
npm install -g four-byte
28+
npm install -g 4byte
2929
```
3030

3131
Look up a function signature:
3232

3333
```bash
34-
$ four-byte 0xa9059cbb
34+
$ 4byte 0xa9059cbb
3535
transfer(bytes4[9],bytes5[6],int48[11])
3636
many_msg_babbage(bytes1)
3737
transfer(address,uint256)
3838
```
3939

4040
```bash
41-
$ four-byte 0xa9059cbb --format=json
41+
$ 4byte 0xa9059cbb --format=json
4242
[
4343
"transfer(bytes4[9],bytes5[6],int48[11])",
4444
"many_msg_babbage(bytes1)",

bin/four-byte renamed to bin/4byte

File renamed without changes.

cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ const fourByte = require('.')
33

44
const cli = meow(`
55
Usage
6-
$ four-byte <hash-of-function-sig>
6+
$ 4byte <hash-of-function-sig>
77
88
Examples
9-
$ four-byte 0x51c6590a
9+
$ 4byte 0x51c6590a
1010
addLiquidity(uint256)
1111
`, {
1212
flags: {

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,30 @@
11
{
2-
"name": "four-byte",
2+
"name": "4byte",
33
"version": "0.0.1",
44
"description": "Look up an Ethereum function signature by the 4 bytes of its hash",
55
"main": "index.js",
66
"bin": {
7-
"four-byte": "bin/four-byte",
8-
"four_byte": "bin/four-byte"
7+
"4byte": "bin/4byte"
98
},
109
"scripts": {
1110
"test": "tape test/*.js",
1211
"lint": "standard --fix *.js test/*.js"
1312
},
1413
"repository": {
1514
"type": "git",
16-
"url": "https://github.com/shanefontaine/four-byte"
15+
"url": "https://github.com/shanefontaine/4byte"
1716
},
1817
"bugs": {
19-
"url": "https://github.com/shanefontaine/four-byte/issues"
18+
"url": "https://github.com/shanefontaine/4byte/issues"
2019
},
21-
"homepage": "https://github.com/shanefontaine/four-byte",
20+
"homepage": "https://github.com/shanefontaine/4byte",
2221
"author": {
2322
"name": "Shane Fontaine",
2423
"email": "[email protected]",
2524
"url": "https://shane.dev/"
2625
},
2726
"license": "MIT",
28-
"url": "https://github.com/shanefontaine/four-byte/blob/master/LICENSE",
27+
"url": "https://github.com/shanefontaine/4byte/blob/master/LICENSE",
2928
"dependencies": {
3029
"meow": "^5.0.0",
3130
"node-fetch": "2.6.1"

0 commit comments

Comments
 (0)