Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: no buffer req. rewrite #389

Merged
merged 98 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from 96 commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
6c94d7d
remove old
TateB Sep 14, 2023
dc68760
starter bitcoin chains
TateB Sep 14, 2023
e0df52e
checkpoint
TateB Sep 15, 2023
cf6f1d2
tests + utils
TateB Sep 15, 2023
0b81398
xem
TateB Sep 15, 2023
6a028ce
cleanup checkpoint
TateB Sep 15, 2023
5172632
gha
TateB Sep 15, 2023
e86ad2e
eth/etc_legacy
TateB Sep 18, 2023
b251d63
icx
TateB Sep 18, 2023
077af2e
checkpoint
TateB Sep 18, 2023
6f764ba
bech32 normal + generateCoin script
TateB Sep 18, 2023
0331e34
bech32 chains
TateB Sep 18, 2023
71df39c
zen
TateB Sep 18, 2023
0f41064
xmr
TateB Sep 18, 2023
dfb61d6
zec + tweaks
TateB Sep 18, 2023
8d02445
all b58 cointype
TateB Sep 18, 2023
a5971c5
bitcoin chain
TateB Sep 18, 2023
d995e6e
more bs58
TateB Sep 18, 2023
12d859b
bech32 + script updates
TateB Sep 18, 2023
7826702
hex checksum chains
TateB Sep 18, 2023
fa5bed1
script updates
TateB Sep 18, 2023
48e18ed
as const
TateB Sep 18, 2023
98945eb
evm chains
TateB Sep 18, 2023
0fb4aa8
rsk
TateB Sep 18, 2023
086bf62
eos chains
TateB Sep 19, 2023
1fcf31a
base58 cleanup
TateB Sep 19, 2023
f7b35f2
base32 cleanup
TateB Sep 19, 2023
3f504bd
xrp
TateB Sep 19, 2023
96b75e0
more cleanup
TateB Sep 19, 2023
f64bf34
bch
TateB Sep 19, 2023
fe10666
xlm
TateB Sep 19, 2023
047e44d
nano
TateB Sep 19, 2023
4397d1f
bcn
TateB Sep 19, 2023
36a5aa1
bsv
TateB Sep 19, 2023
0e00538
nim
TateB Sep 19, 2023
4731e5f
base32unpadded + algo
TateB Sep 19, 2023
7802d5b
dot
TateB Sep 19, 2023
1d0d133
vsys
TateB Sep 19, 2023
2556241
near
TateB Sep 20, 2023
bc74f6a
etn
TateB Sep 20, 2023
4c84c12
aion
TateB Sep 20, 2023
9046f05
ae
TateB Sep 20, 2023
13b0a94
fil
TateB Sep 20, 2023
0db49f3
ar
TateB Sep 20, 2023
bd37803
xhv
TateB Sep 20, 2023
b320c44
flow
TateB Sep 20, 2023
5db5764
sero
TateB Sep 20, 2023
d45ec50
bdx + hnt
TateB Sep 20, 2023
66249f0
ont
TateB Sep 20, 2023
8af2a25
xtZ
TateB Sep 20, 2023
08a8f0c
ada
TateB Sep 20, 2023
067bdf7
sc
TateB Sep 20, 2023
2431b40
nas
TateB Sep 20, 2023
f6abcfc
hbar
TateB Sep 20, 2023
ac4029c
iota
TateB Sep 20, 2023
8373104
hns
TateB Sep 20, 2023
bb38b94
stx
TateB Sep 21, 2023
ed0d6fa
xch
TateB Sep 21, 2023
f029b52
nuls
TateB Sep 21, 2023
48b3963
strk
TateB Sep 21, 2023
3688027
ardr
TateB Sep 21, 2023
8ce1ef6
zel
TateB Sep 21, 2023
0850ea1
wan
TateB Sep 21, 2023
4a92ae7
coins.ts
TateB Sep 21, 2023
63a38f0
getters
TateB Sep 21, 2023
a14707b
build pipeline
TateB Sep 25, 2023
fefb20d
remove unused bench files
TateB Sep 25, 2023
8fc819f
add LICENSE
TateB Sep 25, 2023
5204fe4
prepub script
TateB Sep 25, 2023
37e0889
global test
TateB Sep 25, 2023
e9c4046
build gha
TateB Sep 25, 2023
e9be840
docs
TateB Sep 25, 2023
3ffa36d
updated README.md
TateB Sep 27, 2023
8c2588c
publish gha
TateB Sep 27, 2023
1b447f7
frozen lockfile
TateB Sep 27, 2023
5e24043
???
TateB Sep 27, 2023
c1d711a
change versioning
TateB Sep 27, 2023
e9140c2
1.0.0-rc.0
github-actions[bot] Sep 27, 2023
246e26d
type tweaks
TateB Sep 27, 2023
b5e9025
1.0.0-rc.1
github-actions[bot] Sep 27, 2023
1f69854
remove uint8arrays
TateB Sep 27, 2023
9da9b1d
1.0.0-rc.2
github-actions[bot] Sep 27, 2023
053f14f
switch entirely to @scure/base
TateB Jan 12, 2024
9c38dfa
remove bech32 from hns
TateB Jan 12, 2024
08dc8b8
1.0.0-rc.3
github-actions[bot] Jan 12, 2024
2e6acb3
remove evm objects
TateB Jan 17, 2024
b37ec1c
coin tweaks
TateB Jan 18, 2024
55bec29
tweaks + test
TateB Jan 18, 2024
55161cb
import formats as type
TateB Jan 18, 2024
372762a
export coin maps
TateB Jan 18, 2024
fc9d733
add-chains: metis, base, zksync, mantle, linea, scr, boba, zora
TateB Jan 19, 2024
68792be
SOL length validation
TateB Jan 21, 2024
2a25538
sol coding string length
TateB Jan 21, 2024
7653660
hex readme
TateB Jan 30, 2024
7c5f4b1
fix readme async
TateB Feb 1, 2024
8151b1a
Merge pull request #393 from ensdomains/rewrite/evm-update
TateB Feb 1, 2024
401c38a
supported-cryptocurrencies generation script
TateB Feb 4, 2024
0cf3dfc
readme tweak
TateB Feb 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
37 changes: 16 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,23 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
on: [push]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- run: bun install
- run: bun test
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn
- run: yarn test
- run: yarn lint
- run: yarn size
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- run: bun install
- run: bun run build
52 changes: 52 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Publish

on:
release:
types: [published]

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.release.target_commitish }}

- uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Install dependencies
run: bun install --frozen-lockfile

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Set up git
run: |
git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com'
git config --local user.name 'github-actions[bot]'

- name: Bump version to ${{ github.event.release.tag_name }}
run: npm version ${{ github.event.release.tag_name }}

- name: Build
run: bun run build

- name: Generate Publish Structure
run: bun run generatePublishStructure

- name: Publish
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm config set //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}
npm publish --tag next

- name: Push changes
run: git push
env:
github-token: ${{ secrets.GITHUB_TOKEN }}
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
node_modules
lib
/node_modules
/dist
.DS_Store
*.swp
/old
*.tsbuildinfo
5 changes: 0 additions & 5 deletions .prettierrc

This file was deleted.

3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
42 changes: 17 additions & 25 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,29 +1,21 @@
BSD 3-Clause License
MIT License

Copyright (c) 2019, Ethereum Name Service
All rights reserved.
Copyright (c) 2023 ENS Labs Limited

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading
Loading