Skip to content
This repository was archived by the owner on Jul 8, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
cf34a32
feat: rename crypto files to .ts
dmbsk Dec 17, 2021
e076414
feat: setup karma for TS
dmbsk Dec 17, 2021
46a91ef
ref: change require to import, change to default export
dmbsk Dec 21, 2021
551fd14
feat: validators related types
dmbsk Dec 21, 2021
5aeb433
feat: type all validators
dmbsk Dec 21, 2021
a1b2dd1
feat: type utils
dmbsk Dec 21, 2021
e4f01c4
feat: add more hash function types
dmbsk Dec 27, 2021
119482e
fix: improve btc typing
dmbsk Dec 27, 2021
540b442
ref: karma and ts config
dmbsk Dec 27, 2021
479a66f
feat: basic rollup setup
dmbsk Jan 6, 2022
ba5bacf
ref: remove biginteger.js use bignumber.js instead
dmbsk Jan 6, 2022
57a8f8b
ref: remove ts expect errors
dmbsk Jan 6, 2022
034974e
ref: remove base58 and move to base58-js
dmbsk Jan 6, 2022
905a40d
fix: change how we test in browser POC
dmbsk Jan 8, 2022
623253d
feat: migrate most of utils to npm packages
dmbsk Jan 11, 2022
5b9c309
feat: webpack karma config
dmbsk Jan 11, 2022
4871454
fix: uncomment one test
dmbsk Jan 12, 2022
2b31219
feat: replace blake256, use bech32 in segwit
dmbsk Jan 12, 2022
bb20d2e
style: use spread instead of picking
dmbsk Jan 12, 2022
6a087ca
feat: eslint
dmbsk Jan 12, 2022
332c69e
fix: run chrome headless
dmbsk Jan 12, 2022
c5ae421
fix: cleanup commented code
dmbsk Jan 13, 2022
fdb1974
fix: replace base58_to_binary with bs58
dmbsk Jan 24, 2022
9c88394
chore: remove base58js, add bs58 types
dmbsk Jan 24, 2022
536f361
chore: sort vscode settings
dmbsk Jan 24, 2022
4741d6d
feat: add more types
dmbsk Jan 24, 2022
5c5737b
ref: target imports
dmbsk Jan 28, 2022
e766ea7
ref: simplified running test scenarios
dmbsk Jan 28, 2022
ee24e3d
feat: update deps
dmbsk Jan 28, 2022
f84cb55
feat: remove iota and monero
dmbsk Feb 2, 2022
c8b5593
ref: simpler building process
dmbsk Feb 2, 2022
61122cb
chore: package json cleanup
dmbsk Feb 2, 2022
5dea8cb
fix(wid): fix browser context tests
dmbsk Feb 3, 2022
7adc547
chore: cleanup
dmbsk Feb 3, 2022
fc769ec
ref: bitcoin cash validator
dmbsk Feb 3, 2022
0c93f41
chore: update bitcoincash deps
dmbsk Feb 3, 2022
40640b0
fix: uncomment tests
dmbsk Feb 3, 2022
f1ea4e2
docs: improve js doc
dmbsk Feb 3, 2022
20388df
feat: add uglify
dmbsk Feb 4, 2022
3f59501
feat: remove stx
dmbsk Feb 11, 2022
50109c9
feat: remove bindings from build
dmbsk Feb 11, 2022
01f6d55
test: remove unused tests
dmbsk Feb 21, 2022
c930d56
chore: update package author
dmbsk Feb 21, 2022
e23589b
style: change " to '
dmbsk Feb 21, 2022
c4593c2
fix: building builtins warning
dmbsk Mar 7, 2022
286bc45
fix: remove unused file
dmbsk Mar 7, 2022
764a913
Merge pull request #1 from RampNetwork/feat/migrate-to-ts
dmbsk Mar 11, 2022
537ff49
docs: add wip info about readme
dmbsk Mar 11, 2022
ecd7d2e
Merge pull request #2 from RampNetwork/docs/update-readme
dmbsk Mar 11, 2022
ec42f75
fix: typing error
dmbsk Apr 5, 2022
ca38963
feat: add smaller dist &&
dmbsk Apr 6, 2022
c279512
fix: use rimraf instead of rm -rf
dmbsk Apr 6, 2022
27f7e99
merge(#3): feat: smaller dist && better import paths for integrators
macbem Apr 6, 2022
0045424
fix: remove named export from main file
dmbsk Apr 7, 2022
30fa837
fix: change lib name
dmbsk Apr 7, 2022
fbe0c20
Merge branch 'fix/broken-build' of github.com:RampNetwork/crypto-addr…
dmbsk Apr 7, 2022
1455209
fix: remove unused deps
dmbsk Apr 7, 2022
3a81b10
chore: remove contributors in package json
dmbsk Apr 14, 2022
da60423
Merge pull request #4 from RampNetwork/fix/broken-build
dmbsk Apr 14, 2022
3f8a3db
Merge pull request #5 from RampNetwork/fix/cleanup-package
dmbsk Apr 14, 2022
5029ea4
fix: export types as named exports
dmbsk Apr 19, 2022
be79af4
fix: version of package
dmbsk Apr 20, 2022
c939917
Merge pull request #6 from RampNetwork/fix/types-exports
macbem Apr 20, 2022
5061912
2.0.0
macbem Apr 22, 2022
04f3719
Add README.md, remove obsolete code
macbem Apr 22, 2022
e3bfa2d
2.1.0
macbem Apr 22, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ root = true

[*]
indent_style = space
indent_size = 4
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
Expand Down
43 changes: 43 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
ignorePatterns:
- '*.d.ts'
- 'dist'
- 'rollup.config.ts'

env:
browser: true

extends:
- plugin:prettier/recommended

parser: '@typescript-eslint/parser'

parserOptions:
project: './tsconfig.json'
sourceType: module

settings:
import/internal-regex: ^@ramp-instant/

plugins:
- eslint-plugin-import
- simple-import-sort
- eslint-plugin-prettier

rules:
arrow-parens:
- off
- always
comma-dangle: 0
no-empty: error
import/no-extraneous-dependencies: error
no-restricted-imports:
- error
- patterns:
- '../*' # forbid parent-relative imports

simple-import-sort/imports:
- error
- groups: # see https://github.com/lydell/eslint-plugin-simple-import-sort#custom-grouping
- ["^@?\\w"] # regular npm packages
- ["^\\."] # sibling files
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,6 @@ typings/

# .idea
.idea

# dist
dist
251 changes: 251 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,251 @@
{
"cSpell.words": [
"0x",
"Aave",
"ada",
"address"
"AdEx",
"adx",
"ae",
"aelf",
"Aeternity",
"algo",
"Algorand",
"altcoin",
"ant",
"Aragon",
"Ardor",
"ardr",
"atom",
"aud",
"Augur",
"aur",
"AuroraCoin",
"Australian Dollars",
"Bancor",
"Bankex",
"BasicAttentionToken",
"bat",
"bcc",
"bcd",
"bch",
"BeaverCoin",
"BinanceCoin",
"bio",
"BioCoin",
"Bitcoin Diamond",
"Bitcoin",
"bitcoincash"
"BitcoinCash",
"BitcoinGold",
"BitcoinPrivate",
"BitcoinZ",
"Bitquence",
"Bitshares",
"BitTorrent",
"bkx",
"Blockstack",
"bnb",
"bnt",
"bqx",
"browser",
"btc",
"btcp",
"btcz",
"btg",
"bts",
"btt",
"bvc",
"Callisto",
"Cardano",
"Chainlink",
"Civic",
"clo",
"Cosmos",
"cvc",
"dash",
"dcr",
"Decentraland",
"Decred",
"dent",
"dgb",
"DigiByte",
"District0x",
"dnt",
"doge",
"DogeCoin",
"ELF",
"eng",
"Enigma",
"enj",
"Enjin Coin",
"eos",
"etc",
"eth",
"Ethereum",
"EthereumClassic",
"EtherZero",
"ethos",
"etz",
"exp",
"Expanse",
"frc",
"FreiCoin",
"fun",
"FunFair",
"game",
"GameCredits",
"GarliCoin",
"gas",
"gno",
"Gnosis",
"gnt",
"Golem",
"grlc",
"gup",
"hbar",
"Hedera Hashgraph",
"Holo",
"Horizen",
"HOT",
"hush",
"ICON",
"icx",
"iExec RLC",
"Internet of Services",
"IOST",
"iota",
"javascript",
"kmd",
"Komodo",
"lend",
"link",
"Lisk",
"LiteCoin",
"lsk",
"ltc",
"MANA",
"Matchpool",
"mco",
"mec",
"MegaCoin",
"Melon",
"Metal",
"mln",
"mona",
"Monacao",
"MonaCoin",
"Monero",
"mtl",
"NameCoin",
"nano",
"NEM",
"neo",
"NeoGas",
"Nexus",
"nmc",
"nmr",
"nodejs",
"npxs",
"Numeraire",
"nxs",
"ocn",
"Odyssey",
"omg",
"OmiseGO",
"ong",
"ont",
"Ontology Gas",
"Ontology",
"pax",
"Paxos Standard Token",
"pay",
"PeerCoin",
"pivx",
"poly",
"Polymath",
"Populous",
"PowerLedger",
"powr",
"ppc",
"ppt",
"PrimeCoin",
"ProtoShares",
"pts",
"Pundi X",
"qtum",
"RaiBlocks",
"Ravencoin",
"rcn",
"rep",
"RipioCreditNetwork",
"Ripple",
"rlc",
"rvn",
"salt",
"sc",
"segwit",
"Siacoin",
"slr",
"sng",
"SnowGem",
"snt",
"SolarCoin",
"Status",
"steem",
"Stellar Lumens",
"storj",
"storm",
"strat",
"Stratis",
"stx",
"sub",
"Substratum",
"Swarm City",
"swt",
"sys",
"Syscoin",
"TenX",
"Tether",
"Tezos",
"theta",
"Tron",
"TrueUSD",
"trx",
"tusd",
"USD Coin",
"usdc",
"usdt",
"VeChain",
"Verge",
"VertCoin",
"vet",
"vib",
"Viberate",
"vot",
"VoteCoin",
"vtc",
"wallet",
"WaltonChain",
"waves",
"wings",
"wtc",
"xem",
"xlm",
"xmr",
"xpm",
"xrb",
"xrp",
"XTZ",
"xvg",
"ZCash",
"zcl",
"ZClassic",
"zec",
"zen",
"ZenCash",
"zil",
"Zilliqa",
"zrx",
]
}
Loading