quais 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +104 -0
  3. package/dist/ethers.esm.js.map +1 -0
  4. package/dist/ethers.esm.min.js.map +1 -0
  5. package/dist/ethers.umd.js.map +1 -0
  6. package/dist/ethers.umd.min.js.map +1 -0
  7. package/dist/quais.esm.js +24034 -0
  8. package/dist/quais.esm.js.map +1 -0
  9. package/dist/quais.esm.min.js +1 -0
  10. package/dist/quais.esm.min.js.map +1 -0
  11. package/dist/quais.umd.js +31445 -0
  12. package/dist/quais.umd.js.map +1 -0
  13. package/dist/quais.umd.min.js +1 -0
  14. package/dist/quais.umd.min.js.map +1 -0
  15. package/lib/_version.d.ts +2 -0
  16. package/lib/_version.d.ts.map +1 -0
  17. package/lib/_version.js +5 -0
  18. package/lib/_version.js.map +1 -0
  19. package/lib/index.d.ts +4 -0
  20. package/lib/index.d.ts.map +1 -0
  21. package/lib/index.js +53 -0
  22. package/lib/index.js.map +1 -0
  23. package/lib/quais.d.ts +19 -0
  24. package/lib/quais.d.ts.map +1 -0
  25. package/lib/quais.js +55 -0
  26. package/lib/quais.js.map +1 -0
  27. package/lib/utils.d.ts +34 -0
  28. package/lib/utils.d.ts.map +1 -0
  29. package/lib/utils.js +148 -0
  30. package/lib/utils.js.map +1 -0
  31. package/lib.esm/_version.d.ts +2 -0
  32. package/lib.esm/_version.d.ts.map +1 -0
  33. package/lib.esm/_version.js +2 -0
  34. package/lib.esm/_version.js.map +1 -0
  35. package/lib.esm/index.d.ts +4 -0
  36. package/lib.esm/index.d.ts.map +1 -0
  37. package/lib.esm/index.js +16 -0
  38. package/lib.esm/index.js.map +1 -0
  39. package/lib.esm/quais.d.ts +19 -0
  40. package/lib.esm/quais.d.ts.map +1 -0
  41. package/lib.esm/quais.js +23 -0
  42. package/lib.esm/quais.js.map +1 -0
  43. package/lib.esm/utils.d.ts +34 -0
  44. package/lib.esm/utils.d.ts.map +1 -0
  45. package/lib.esm/utils.js +33 -0
  46. package/lib.esm/utils.js.map +1 -0
  47. package/package.json +57 -0
  48. package/src.ts/_version.ts +1 -0
  49. package/src.ts/index.ts +80 -0
  50. package/src.ts/quais.ts +126 -0
  51. package/src.ts/utils.ts +216 -0
package/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2019 Richard Moore
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,104 @@
1
+ The Ethers Project
2
+ ==================
3
+
4
+ [![npm (tag)](https://img.shields.io/npm/v/quais)](https://www.npmjs.com/package/quais)
5
+ [![Node.js CI](https://github.com/quais-io/quais.js/workflows/Node.js%20CI/badge.svg?branch=quais-v5-beta)](https://github.com/quais-io/quais.js/actions?query=workflow%3A%22Node.js+CI%22)
6
+
7
+ A complete Ethereum wallet implementation and utilities in JavaScript (and TypeScript).
8
+
9
+ **Features:**
10
+
11
+ - Keep your private keys in your client, **safe** and sound
12
+ - Import and export **JSON wallets** (Geth, Parity and crowdsale)
13
+ - Import and export BIP 39 **mnemonic phrases** (12 word backup phrases) and **HD Wallets** (English as well as Czech, French, Italian, Japanese, Korean, Simplified Chinese, Spanish, Traditional Chinese)
14
+ - Meta-classes create JavaScript objects from any contract ABI, including **ABIv2** and **Human-Readable ABI**
15
+ - Connect to Ethereum nodes over [JSON-RPC](https://github.com/ethereum/wiki/wiki/JSON-RPC), [INFURA](https://infura.io), [Etherscan](https://etherscan.io), [Alchemy](https://alchemyapi.io) or [MetaMask](https://metamask.io)
16
+ - **ENS names** are first-class citizens; they can be used anywhere an Ethereum addresses can be used
17
+ - **Tiny** (~104kb compressed; 322kb uncompressed)
18
+ - **Modular** packages; include only what you need
19
+ - **Complete** functionality for all your Ethereum desires
20
+ - Extensive [documentation](https://docs.ethers.io/v5/)
21
+ - Large collection of **test cases** which are maintained and added to
22
+ - Fully **TypeScript** ready, with definition files and full TypeScript source
23
+ - **MIT License** (including ALL dependencies); completely open source to do with as you please
24
+
25
+
26
+ Keep Updated
27
+ ------------
28
+
29
+ For the latest news and advisories, please follow the [@quais](https://twitter.com/quaisproject)
30
+ on Twitter (low-traffic, non-marketing, important information only) as well as watch this GitHub project.
31
+
32
+ For the latest changes, see the [CHANGELOG](https://github.com/quais-io/quais.js/blob/master/CHANGELOG.md).
33
+
34
+
35
+ Installing
36
+ ----------
37
+
38
+ **node.js**
39
+
40
+ ```
41
+ /home/ricmoo/some_project> npm install --save quais
42
+ ```
43
+
44
+ **browser (UMD)**
45
+
46
+ ```
47
+ <script src="https://cdn.quais.io/lib/quais-5.0.umd.min.js" type="text/javascript">
48
+ </script>
49
+ ```
50
+
51
+ **browser (ESM)**
52
+
53
+ ```
54
+ <script type="module">
55
+ import { quais } from "https://cdn.quais.io/lib/quais-5.0.umd.min.js";
56
+ </script>
57
+ ```
58
+
59
+
60
+ Documentation
61
+ -------------
62
+
63
+ Browse the [documentation](https://docs.ethers.io/v5/) online:
64
+
65
+ - [Getting Started](https://docs.ethers.io/v5/getting-started/)
66
+ - [Full API Documentation](https://docs.ethers.io/v5/api/)
67
+ - [Various Ethereum Articles](https://blog.ricmoo.com/)
68
+
69
+ Or browse the entire documentation as a [single page](https://docs.ethers.io/v5/single-page/) to make searching easier.
70
+
71
+
72
+ Ancillary Packages
73
+ ------------------
74
+
75
+ These are a number of packages not included in the umbrella `quais` npm package, and
76
+ additional packages are always being added. Often these packages are for specific
77
+ use-cases, so rather than adding them to the umbrella package, they are added as
78
+ ancillary packages, which can be included by those who need them, while not bloating
79
+ everyone else with packages they do not need.
80
+
81
+ We will keep a list of useful packages here.
82
+
83
+ - `@quais/experimental` ([documentation](https://docs.ethers.io))
84
+ - `@quais/cli` ([documentation](https://docs.ethers.io))
85
+ - `@quais/hardware-wallets` ([documentation](https://docs.ethers.io))
86
+
87
+
88
+ Sponsors
89
+ --------
90
+
91
+ Support the quais project by [becoming a sponsor](https://quais.org/sponsoring.html).
92
+ Get your logo added below with a link to your website (Gold and Unobtainium tiers)
93
+ and on the [quais.org](https://quais.org) website.
94
+
95
+ Huge thanks to our sponsors! `<3 <3`
96
+
97
+ <a href="https://quais.org/sponsors/tally-link" target="_blank"><img src="https://quais.org/sponsors/tally-readme.svg"></a>
98
+
99
+
100
+ License
101
+ -------
102
+
103
+ MIT License (including **all** dependencies).
104
+