@tech-bureau/mijin-catapult-tools 0.2.3 → 0.2.5

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 (151) hide show
  1. package/README.md +20 -0
  2. package/bin/mijin-catapult-tools.js +14 -0
  3. package/dist/main.js +1 -1
  4. package/package.json +5 -2
  5. package/src/service/RepositoryFactory.ts +24 -3
  6. package/webpack.config.js +3 -0
  7. package/.yarnrc +0 -2
  8. package/dist/.env/prod.d.ts +0 -25
  9. package/dist/.env/prod.d.ts.map +0 -1
  10. package/dist/main.js.LICENSE.txt +0 -176
  11. package/dist/src/__tests__/service/AccountServices.spec.d.ts +0 -2
  12. package/dist/src/__tests__/service/AccountServices.spec.d.ts.map +0 -1
  13. package/dist/src/__tests__/service/CertificateServices.spec.d.ts +0 -2
  14. package/dist/src/__tests__/service/CertificateServices.spec.d.ts.map +0 -1
  15. package/dist/src/__tests__/service/MessageServices.spec.d.ts +0 -2
  16. package/dist/src/__tests__/service/MessageServices.spec.d.ts.map +0 -1
  17. package/dist/src/__tests__/service/MosaicServices.spec.d.ts +0 -2
  18. package/dist/src/__tests__/service/MosaicServices.spec.d.ts.map +0 -1
  19. package/dist/src/__tests__/service/NamespaceServices.spec.d.ts +0 -2
  20. package/dist/src/__tests__/service/NamespaceServices.spec.d.ts.map +0 -1
  21. package/dist/src/__tests__/service/TransactionCheckServices.spec.d.ts +0 -2
  22. package/dist/src/__tests__/service/TransactionCheckServices.spec.d.ts.map +0 -1
  23. package/dist/src/cli.d.ts +0 -2
  24. package/dist/src/cli.d.ts.map +0 -1
  25. package/dist/src/commands/account/account.d.ts +0 -4
  26. package/dist/src/commands/account/account.d.ts.map +0 -1
  27. package/dist/src/commands/account/accountGenerate.d.ts +0 -4
  28. package/dist/src/commands/account/accountGenerate.d.ts.map +0 -1
  29. package/dist/src/commands/account/accountInfo.d.ts +0 -4
  30. package/dist/src/commands/account/accountInfo.d.ts.map +0 -1
  31. package/dist/src/commands/mosaic/mosaic.d.ts +0 -4
  32. package/dist/src/commands/mosaic/mosaic.d.ts.map +0 -1
  33. package/dist/src/commands/mosaic/mosaicCreate.d.ts +0 -4
  34. package/dist/src/commands/mosaic/mosaicCreate.d.ts.map +0 -1
  35. package/dist/src/commands/mosaic/mosaicInfo.d.ts +0 -4
  36. package/dist/src/commands/mosaic/mosaicInfo.d.ts.map +0 -1
  37. package/dist/src/commands/namespace/linkAddress.d.ts +0 -4
  38. package/dist/src/commands/namespace/linkAddress.d.ts.map +0 -1
  39. package/dist/src/commands/namespace/linkMosaic.d.ts +0 -4
  40. package/dist/src/commands/namespace/linkMosaic.d.ts.map +0 -1
  41. package/dist/src/commands/namespace/namespace.d.ts +0 -4
  42. package/dist/src/commands/namespace/namespace.d.ts.map +0 -1
  43. package/dist/src/commands/namespace/namespaceInfo.d.ts +0 -4
  44. package/dist/src/commands/namespace/namespaceInfo.d.ts.map +0 -1
  45. package/dist/src/commands/namespace/rootNamespaceCreate.d.ts +0 -4
  46. package/dist/src/commands/namespace/rootNamespaceCreate.d.ts.map +0 -1
  47. package/dist/src/commands/namespace/subNamespaceCreate.d.ts +0 -4
  48. package/dist/src/commands/namespace/subNamespaceCreate.d.ts.map +0 -1
  49. package/dist/src/commands/namespace/unlinkAddress.d.ts +0 -4
  50. package/dist/src/commands/namespace/unlinkAddress.d.ts.map +0 -1
  51. package/dist/src/commands/namespace/unlinkMosaic.d.ts +0 -4
  52. package/dist/src/commands/namespace/unlinkMosaic.d.ts.map +0 -1
  53. package/dist/src/commands/transaction/transaction.d.ts +0 -4
  54. package/dist/src/commands/transaction/transaction.d.ts.map +0 -1
  55. package/dist/src/commands/transaction/transactionStatus.d.ts +0 -4
  56. package/dist/src/commands/transaction/transactionStatus.d.ts.map +0 -1
  57. package/dist/src/commands/transaction/transfer.d.ts +0 -4
  58. package/dist/src/commands/transaction/transfer.d.ts.map +0 -1
  59. package/dist/src/commands/votingkey/votingkey.d.ts +0 -4
  60. package/dist/src/commands/votingkey/votingkey.d.ts.map +0 -1
  61. package/dist/src/commands/votingkey/votingkeyCreate.d.ts +0 -4
  62. package/dist/src/commands/votingkey/votingkeyCreate.d.ts.map +0 -1
  63. package/dist/src/commands/votingkey/votingkeyInfo.d.ts +0 -4
  64. package/dist/src/commands/votingkey/votingkeyInfo.d.ts.map +0 -1
  65. package/dist/src/commands/votingkey/votingkeyUpdate.d.ts +0 -4
  66. package/dist/src/commands/votingkey/votingkeyUpdate.d.ts.map +0 -1
  67. package/dist/src/constants.d.ts +0 -20
  68. package/dist/src/constants.d.ts.map +0 -1
  69. package/dist/src/infrastructure/account/accountGenerate.d.ts +0 -4
  70. package/dist/src/infrastructure/account/accountGenerate.d.ts.map +0 -1
  71. package/dist/src/infrastructure/account/accountInfo.d.ts +0 -4
  72. package/dist/src/infrastructure/account/accountInfo.d.ts.map +0 -1
  73. package/dist/src/infrastructure/mosaic/mosaicCreate.d.ts +0 -4
  74. package/dist/src/infrastructure/mosaic/mosaicCreate.d.ts.map +0 -1
  75. package/dist/src/infrastructure/mosaic/mosaicInfo.d.ts +0 -4
  76. package/dist/src/infrastructure/mosaic/mosaicInfo.d.ts.map +0 -1
  77. package/dist/src/infrastructure/namespace/linkAddress.d.ts +0 -4
  78. package/dist/src/infrastructure/namespace/linkAddress.d.ts.map +0 -1
  79. package/dist/src/infrastructure/namespace/linkMosaic.d.ts +0 -4
  80. package/dist/src/infrastructure/namespace/linkMosaic.d.ts.map +0 -1
  81. package/dist/src/infrastructure/namespace/namespaceInfo.d.ts +0 -4
  82. package/dist/src/infrastructure/namespace/namespaceInfo.d.ts.map +0 -1
  83. package/dist/src/infrastructure/namespace/rootNamespaceCreate.d.ts +0 -4
  84. package/dist/src/infrastructure/namespace/rootNamespaceCreate.d.ts.map +0 -1
  85. package/dist/src/infrastructure/namespace/subNamespaceCreate.d.ts +0 -4
  86. package/dist/src/infrastructure/namespace/subNamespaceCreate.d.ts.map +0 -1
  87. package/dist/src/infrastructure/namespace/unlinkAddress.d.ts +0 -4
  88. package/dist/src/infrastructure/namespace/unlinkAddress.d.ts.map +0 -1
  89. package/dist/src/infrastructure/namespace/unlinkMosaic.d.ts +0 -4
  90. package/dist/src/infrastructure/namespace/unlinkMosaic.d.ts.map +0 -1
  91. package/dist/src/infrastructure/transaction/transactionStatus.d.ts +0 -4
  92. package/dist/src/infrastructure/transaction/transactionStatus.d.ts.map +0 -1
  93. package/dist/src/infrastructure/transaction/transfer.d.ts +0 -4
  94. package/dist/src/infrastructure/transaction/transfer.d.ts.map +0 -1
  95. package/dist/src/infrastructure/voting/votingCreate.d.ts +0 -4
  96. package/dist/src/infrastructure/voting/votingCreate.d.ts.map +0 -1
  97. package/dist/src/infrastructure/voting/votingInfo.d.ts +0 -4
  98. package/dist/src/infrastructure/voting/votingInfo.d.ts.map +0 -1
  99. package/dist/src/infrastructure/voting/votingUpdate.d.ts +0 -4
  100. package/dist/src/infrastructure/voting/votingUpdate.d.ts.map +0 -1
  101. package/dist/src/service/AccountServices.d.ts +0 -31
  102. package/dist/src/service/AccountServices.d.ts.map +0 -1
  103. package/dist/src/service/CertificateServices.d.ts +0 -23
  104. package/dist/src/service/CertificateServices.d.ts.map +0 -1
  105. package/dist/src/service/CmdServices.d.ts +0 -5
  106. package/dist/src/service/CmdServices.d.ts.map +0 -1
  107. package/dist/src/service/Logger.d.ts +0 -6
  108. package/dist/src/service/Logger.d.ts.map +0 -1
  109. package/dist/src/service/MessageServices.d.ts +0 -9
  110. package/dist/src/service/MessageServices.d.ts.map +0 -1
  111. package/dist/src/service/MosaicServices.d.ts +0 -18
  112. package/dist/src/service/MosaicServices.d.ts.map +0 -1
  113. package/dist/src/service/NamespaceServices.d.ts +0 -21
  114. package/dist/src/service/NamespaceServices.d.ts.map +0 -1
  115. package/dist/src/service/RepositoryFactory.d.ts +0 -26
  116. package/dist/src/service/RepositoryFactory.d.ts.map +0 -1
  117. package/dist/src/service/TransactionCheckServices.d.ts +0 -8
  118. package/dist/src/service/TransactionCheckServices.d.ts.map +0 -1
  119. package/dist/src/service/TransactionServices.d.ts +0 -26
  120. package/dist/src/service/TransactionServices.d.ts.map +0 -1
  121. package/dist/src/service/VotingServices.d.ts +0 -29
  122. package/dist/src/service/VotingServices.d.ts.map +0 -1
  123. package/dist/src/types/AccountInfo.d.ts +0 -20
  124. package/dist/src/types/AccountInfo.d.ts.map +0 -1
  125. package/dist/src/types/AccountType.d.ts +0 -10
  126. package/dist/src/types/AccountType.d.ts.map +0 -1
  127. package/dist/src/types/ConfigFile.d.ts +0 -25
  128. package/dist/src/types/ConfigFile.d.ts.map +0 -1
  129. package/dist/src/types/Environment.d.ts +0 -6
  130. package/dist/src/types/Environment.d.ts.map +0 -1
  131. package/dist/src/types/IAccountOption.d.ts +0 -18
  132. package/dist/src/types/IAccountOption.d.ts.map +0 -1
  133. package/dist/src/types/ILinkOption.d.ts +0 -4
  134. package/dist/src/types/ILinkOption.d.ts.map +0 -1
  135. package/dist/src/types/IMosaicOption.d.ts +0 -20
  136. package/dist/src/types/IMosaicOption.d.ts.map +0 -1
  137. package/dist/src/types/INamespaceOption.d.ts +0 -19
  138. package/dist/src/types/INamespaceOption.d.ts.map +0 -1
  139. package/dist/src/types/ITransactionOption.d.ts +0 -8
  140. package/dist/src/types/ITransactionOption.d.ts.map +0 -1
  141. package/dist/src/types/ITransferOption.d.ts +0 -11
  142. package/dist/src/types/ITransferOption.d.ts.map +0 -1
  143. package/dist/src/types/IVotingOption.d.ts +0 -25
  144. package/dist/src/types/IVotingOption.d.ts.map +0 -1
  145. package/dist/src/types/TransactionInfoDto.d.ts +0 -128
  146. package/dist/src/types/TransactionInfoDto.d.ts.map +0 -1
  147. package/dist/src/types/index.d.ts +0 -11
  148. package/dist/src/types/index.d.ts.map +0 -1
  149. package/dist/src/utils.d.ts +0 -9
  150. package/dist/src/utils.d.ts.map +0 -1
  151. package/src/.yarnrc +0 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tech-bureau/mijin-catapult-tools",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "This tool is for easy operation of mijin Catapult(v.2)",
5
5
  "private": false,
6
6
  "main": "dist/main.js",
@@ -36,15 +36,18 @@
36
36
  "commander": "9.5.0",
37
37
  "config": "^3.3.4",
38
38
  "fetch-cookie": "^2.1.0",
39
+ "global-agent": "^3.0.0",
39
40
  "js-sha3": "git+https://github.com/Propine/js-sha3.git",
40
41
  "node-forge": "git+https://github.com/dugrema/forge.git#ed25519",
42
+ "tough-cookie": "^5.0.0",
43
+ "undici": "^7.2.0",
41
44
  "utf8": "^3.0.0",
42
45
  "winston": "^3.3.3"
43
46
  },
44
47
  "devDependencies": {
45
48
  "@types/commander": "^2.12.2",
46
49
  "@types/jest": "^29.2.0",
47
- "@types/node": "^14.14.31",
50
+ "@types/node": "^25.3.1",
48
51
  "@types/node-forge": "^1.3.0",
49
52
  "@types/tough-cookie": "^4.0.2",
50
53
  "bufferutil": "^4.0.3",
@@ -10,6 +10,7 @@ import {
10
10
  import { firstValueFrom } from 'rxjs'
11
11
  import fetchCookie from 'fetch-cookie'
12
12
  import { CookieJar } from 'tough-cookie'
13
+ import { ProxyAgent } from 'undici'
13
14
 
14
15
  let networkType: NetworkType
15
16
  let currency: NetworkCurrencies
@@ -24,15 +25,32 @@ export default class RepositoryFactory {
24
25
  constructor(public url: string) {}
25
26
 
26
27
  async init(cookieFlag?: boolean) {
28
+ const proxyUrl = process.env.HTTP_PROXY || process.env.HTTPS_PROXY || process.env.http_proxy || process.env.https_proxy
29
+ const dispatcher = proxyUrl ? new ProxyAgent({ uri: proxyUrl, requestTls: { rejectUnauthorized: false } }) : undefined
30
+
31
+ const customFetch = dispatcher
32
+ ? (url: any, init?: any) => {
33
+ const headers = { ...init?.headers }
34
+ delete headers['x-forwarded-for']
35
+ delete headers['X-Forwarded-For']
36
+ return fetch(url, { ...init, headers, dispatcher })
37
+ }
38
+ : fetch
39
+
40
+ const websocketInjected = proxyUrl ? {
41
+ agent: dispatcher,
42
+ headers: {}
43
+ } : undefined
44
+
27
45
  if (cookieFlag) {
28
46
  const cookieJar = new CookieJar()
29
- const fetchCookieJar = fetchCookie(fetch, cookieJar)
47
+ const fetchCookieJar = fetchCookie(customFetch, cookieJar)
30
48
  await fetchCookieJar(this.url)
31
49
  const cookie = await cookieJar.getCookieString(this.url)
32
50
 
33
- // Websocket Option(mijin custom sdk)
34
51
  const websocketOptions = {
35
52
  headers: { cookie: cookie },
53
+ ...(websocketInjected || {})
36
54
  }
37
55
 
38
56
  repo = new RepositoryFactoryHttp(this.url, {
@@ -40,7 +58,10 @@ export default class RepositoryFactory {
40
58
  websocketOptions: websocketOptions,
41
59
  })
42
60
  } else {
43
- repo = new RepositoryFactoryHttp(this.url)
61
+ repo = new RepositoryFactoryHttp(this.url, dispatcher ? {
62
+ fetchApi: customFetch,
63
+ websocketInjected: websocketInjected
64
+ } : undefined)
44
65
  }
45
66
 
46
67
  networkType = await firstValueFrom(repo.getNetworkType())
package/webpack.config.js CHANGED
@@ -8,6 +8,9 @@ module.exports = {
8
8
  __dirname: false,
9
9
  __filename: false,
10
10
  },
11
+ externals: {
12
+ undici: 'commonjs undici',
13
+ },
11
14
  module: {
12
15
  rules: [
13
16
  {
package/.yarnrc DELETED
@@ -1,2 +0,0 @@
1
- registry "https://registry.npmjs.org"
2
- "@tech-bureau-jp:registry" "https://npm.pkg.github.com"
@@ -1,25 +0,0 @@
1
- declare const _default: {
2
- mijin: {
3
- system: {
4
- dir: string;
5
- toolRepository: string;
6
- unixUser: string;
7
- catapultLibraryPath: string;
8
- };
9
- cert: {
10
- conmmonName: string;
11
- days: number;
12
- private_key: string;
13
- certificate: string;
14
- algorithm: string;
15
- keySize: number;
16
- };
17
- voting: {
18
- startEpoch: number;
19
- endEpoch: number;
20
- votingSetGroup: number;
21
- };
22
- };
23
- };
24
- export default _default;
25
- //# sourceMappingURL=prod.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prod.d.ts","sourceRoot":"","sources":["../../.env/prod.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAsBC"}
@@ -1,176 +0,0 @@
1
- /*
2
- * @copyright (c) 2016, Philipp Thürwächter & Pattrick Hüper
3
- * @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
4
- * @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
5
- */
6
-
7
- /*
8
- * @copyright (c) 2016, Philipp Thürwächter & Pattrick Hüper
9
- * @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
10
- */
11
-
12
- /*
13
- * @copyright (c) 2016, Philipp Thürwächter, Pattrick Hüper
14
- * @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
15
- * @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
16
- */
17
-
18
- /*
19
- * [js-sha512]{@link https://github.com/emn178/js-sha512}
20
- *
21
- * @version 0.8.0
22
- * @author Chen, Yi-Cyuan [emn178@gmail.com]
23
- * @copyright Chen, Yi-Cyuan 2014-2018
24
- * @license MIT
25
- */
26
-
27
- /*!
28
- * Copyright (c) 2015, Salesforce.com, Inc.
29
- * All rights reserved.
30
- *
31
- * Redistribution and use in source and binary forms, with or without
32
- * modification, are permitted provided that the following conditions are met:
33
- *
34
- * 1. Redistributions of source code must retain the above copyright notice,
35
- * this list of conditions and the following disclaimer.
36
- *
37
- * 2. Redistributions in binary form must reproduce the above copyright notice,
38
- * this list of conditions and the following disclaimer in the documentation
39
- * and/or other materials provided with the distribution.
40
- *
41
- * 3. Neither the name of Salesforce.com nor the names of its contributors may
42
- * be used to endorse or promote products derived from this software without
43
- * specific prior written permission.
44
- *
45
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
46
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
47
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
48
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
49
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
50
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
51
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
52
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
53
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
54
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
55
- * POSSIBILITY OF SUCH DAMAGE.
56
- */
57
-
58
- /*!
59
- * Copyright (c) 2015-2020, Salesforce.com, Inc.
60
- * All rights reserved.
61
- *
62
- * Redistribution and use in source and binary forms, with or without
63
- * modification, are permitted provided that the following conditions are met:
64
- *
65
- * 1. Redistributions of source code must retain the above copyright notice,
66
- * this list of conditions and the following disclaimer.
67
- *
68
- * 2. Redistributions in binary form must reproduce the above copyright notice,
69
- * this list of conditions and the following disclaimer in the documentation
70
- * and/or other materials provided with the distribution.
71
- *
72
- * 3. Neither the name of Salesforce.com nor the names of its contributors may
73
- * be used to endorse or promote products derived from this software without
74
- * specific prior written permission.
75
- *
76
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
77
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
78
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
79
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
80
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
81
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
82
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
83
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
84
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
85
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
86
- * POSSIBILITY OF SUCH DAMAGE.
87
- */
88
-
89
- /*!
90
- * Copyright (c) 2018, Salesforce.com, Inc.
91
- * All rights reserved.
92
- *
93
- * Redistribution and use in source and binary forms, with or without
94
- * modification, are permitted provided that the following conditions are met:
95
- *
96
- * 1. Redistributions of source code must retain the above copyright notice,
97
- * this list of conditions and the following disclaimer.
98
- *
99
- * 2. Redistributions in binary form must reproduce the above copyright notice,
100
- * this list of conditions and the following disclaimer in the documentation
101
- * and/or other materials provided with the distribution.
102
- *
103
- * 3. Neither the name of Salesforce.com nor the names of its contributors may
104
- * be used to endorse or promote products derived from this software without
105
- * specific prior written permission.
106
- *
107
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
108
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
109
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
110
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
111
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
112
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
113
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
114
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
115
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
116
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
117
- * POSSIBILITY OF SUCH DAMAGE.
118
- */
119
-
120
- /*! https://mths.be/utf8js v2.1.2 by @mathias */
121
-
122
- /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
123
-
124
- /**
125
- * @copyright (c) 2016, Philipp Thürwächter & Pattrick Hüper
126
- * @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
127
- * @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
128
- */
129
-
130
- /**
131
- * @copyright (c) 2016, Philipp Thürwächter & Pattrick Hüper
132
- * @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
133
- */
134
-
135
- /**
136
- * [js-sha256]{@link https://github.com/emn178/js-sha256}
137
- *
138
- * @version 0.9.0
139
- * @author Chen, Yi-Cyuan [emn178@gmail.com]
140
- * @copyright Chen, Yi-Cyuan 2014-2017
141
- * @license MIT
142
- */
143
-
144
- /**
145
- * [js-sha3]{@link https://github.com/emn178/js-sha3}
146
- *
147
- * @version 0.8.0
148
- * @author Chen, Yi-Cyuan [emn178@gmail.com]
149
- * @copyright Chen, Yi-Cyuan 2015-2018
150
- * @license MIT
151
- */
152
-
153
- /** @preserve
154
- * Counter block mode compatible with Dr Brian Gladman fileenc.c
155
- * derived from CryptoJS.mode.CTR
156
- * Jan Hruby jhruby.web@gmail.com
157
- */
158
-
159
- /** @preserve
160
- (c) 2012 by Cédric Mesnil. All rights reserved.
161
-
162
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
163
-
164
- - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
165
- - 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.
166
-
167
- 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.
168
- */
169
-
170
- //! @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
171
-
172
- //! @copyright (c) 2015-present, Philipp Thürwächter, Pattrick Hüper & js-joda contributors
173
-
174
- //! @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
175
-
176
- //! @version @js-joda/core - 3.2.0
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=AccountServices.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AccountServices.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/service/AccountServices.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=CertificateServices.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificateServices.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/service/CertificateServices.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=MessageServices.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MessageServices.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/service/MessageServices.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=MosaicServices.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MosaicServices.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/service/MosaicServices.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=NamespaceServices.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NamespaceServices.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/service/NamespaceServices.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=TransactionCheckServices.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TransactionCheckServices.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/service/TransactionCheckServices.spec.ts"],"names":[],"mappings":""}
package/dist/src/cli.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=cli.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- import { Command } from 'commander';
2
- declare const account: () => Command;
3
- export default account;
4
- //# sourceMappingURL=account.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../src/commands/account/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAInC,QAAA,MAAM,OAAO,eASZ,CAAA;AAED,eAAe,OAAO,CAAA"}
@@ -1,4 +0,0 @@
1
- import { Command } from 'commander';
2
- declare const program: Command;
3
- export default program;
4
- //# sourceMappingURL=accountGenerate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"accountGenerate.d.ts","sourceRoot":"","sources":["../../../../src/commands/account/accountGenerate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,QAAA,MAAM,OAAO,SAAgB,CAAA;AAiB7B,eAAe,OAAO,CAAA"}
@@ -1,4 +0,0 @@
1
- import { Command } from 'commander';
2
- declare const program: Command;
3
- export default program;
4
- //# sourceMappingURL=accountInfo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"accountInfo.d.ts","sourceRoot":"","sources":["../../../../src/commands/account/accountInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAGnC,QAAA,MAAM,OAAO,SAAgB,CAAA;AAa7B,eAAe,OAAO,CAAA"}
@@ -1,4 +0,0 @@
1
- import { Command } from 'commander';
2
- declare const mosaic: () => Command;
3
- export default mosaic;
4
- //# sourceMappingURL=mosaic.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mosaic.d.ts","sourceRoot":"","sources":["../../../../src/commands/mosaic/mosaic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAInC,QAAA,MAAM,MAAM,eASX,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -1,4 +0,0 @@
1
- import { Command } from 'commander';
2
- declare const program: Command;
3
- export default program;
4
- //# sourceMappingURL=mosaicCreate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mosaicCreate.d.ts","sourceRoot":"","sources":["../../../../src/commands/mosaic/mosaicCreate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,QAAA,MAAM,OAAO,SAAgB,CAAA;AAkB7B,eAAe,OAAO,CAAA"}
@@ -1,4 +0,0 @@
1
- import { Command } from 'commander';
2
- declare const program: Command;
3
- export default program;
4
- //# sourceMappingURL=mosaicInfo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mosaicInfo.d.ts","sourceRoot":"","sources":["../../../../src/commands/mosaic/mosaicInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,QAAA,MAAM,OAAO,SAAgB,CAAA;AAW7B,eAAe,OAAO,CAAA"}
@@ -1,4 +0,0 @@
1
- import { Command } from 'commander';
2
- declare const program: Command;
3
- export default program;
4
- //# sourceMappingURL=linkAddress.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"linkAddress.d.ts","sourceRoot":"","sources":["../../../../src/commands/namespace/linkAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,QAAA,MAAM,OAAO,SAAgB,CAAA;AAc7B,eAAe,OAAO,CAAA"}
@@ -1,4 +0,0 @@
1
- import { Command } from 'commander';
2
- declare const program: Command;
3
- export default program;
4
- //# sourceMappingURL=linkMosaic.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"linkMosaic.d.ts","sourceRoot":"","sources":["../../../../src/commands/namespace/linkMosaic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,QAAA,MAAM,OAAO,SAAgB,CAAA;AAc7B,eAAe,OAAO,CAAA"}
@@ -1,4 +0,0 @@
1
- import { Command } from 'commander';
2
- declare const mosaic: () => Command;
3
- export default mosaic;
4
- //# sourceMappingURL=namespace.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"namespace.d.ts","sourceRoot":"","sources":["../../../../src/commands/namespace/namespace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AASnC,QAAA,MAAM,MAAM,eAcX,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -1,4 +0,0 @@
1
- import { Command } from 'commander';
2
- declare const program: Command;
3
- export default program;
4
- //# sourceMappingURL=namespaceInfo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"namespaceInfo.d.ts","sourceRoot":"","sources":["../../../../src/commands/namespace/namespaceInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,QAAA,MAAM,OAAO,SAAgB,CAAA;AAW7B,eAAe,OAAO,CAAA"}
@@ -1,4 +0,0 @@
1
- import { Command } from 'commander';
2
- declare const program: Command;
3
- export default program;
4
- //# sourceMappingURL=rootNamespaceCreate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rootNamespaceCreate.d.ts","sourceRoot":"","sources":["../../../../src/commands/namespace/rootNamespaceCreate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,QAAA,MAAM,OAAO,SAAgB,CAAA;AAc7B,eAAe,OAAO,CAAA"}
@@ -1,4 +0,0 @@
1
- import { Command } from 'commander';
2
- declare const program: Command;
3
- export default program;
4
- //# sourceMappingURL=subNamespaceCreate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"subNamespaceCreate.d.ts","sourceRoot":"","sources":["../../../../src/commands/namespace/subNamespaceCreate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,QAAA,MAAM,OAAO,SAAgB,CAAA;AAc7B,eAAe,OAAO,CAAA"}
@@ -1,4 +0,0 @@
1
- import { Command } from 'commander';
2
- declare const program: Command;
3
- export default program;
4
- //# sourceMappingURL=unlinkAddress.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"unlinkAddress.d.ts","sourceRoot":"","sources":["../../../../src/commands/namespace/unlinkAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,QAAA,MAAM,OAAO,SAAgB,CAAA;AAc7B,eAAe,OAAO,CAAA"}
@@ -1,4 +0,0 @@
1
- import { Command } from 'commander';
2
- declare const program: Command;
3
- export default program;
4
- //# sourceMappingURL=unlinkMosaic.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"unlinkMosaic.d.ts","sourceRoot":"","sources":["../../../../src/commands/namespace/unlinkMosaic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,QAAA,MAAM,OAAO,SAAgB,CAAA;AAc7B,eAAe,OAAO,CAAA"}
@@ -1,4 +0,0 @@
1
- import { Command } from 'commander';
2
- declare const transaction: () => Command;
3
- export default transaction;
4
- //# sourceMappingURL=transaction.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../../src/commands/transaction/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAMnC,QAAA,MAAM,WAAW,eAWhB,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -1,4 +0,0 @@
1
- import { Command } from 'commander';
2
- declare const program: Command;
3
- export default program;
4
- //# sourceMappingURL=transactionStatus.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transactionStatus.d.ts","sourceRoot":"","sources":["../../../../src/commands/transaction/transactionStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,QAAA,MAAM,OAAO,SAAgB,CAAA;AAY7B,eAAe,OAAO,CAAA"}
@@ -1,4 +0,0 @@
1
- import { Command } from 'commander';
2
- declare const program: Command;
3
- export default program;
4
- //# sourceMappingURL=transfer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transfer.d.ts","sourceRoot":"","sources":["../../../../src/commands/transaction/transfer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,QAAA,MAAM,OAAO,SAAgB,CAAA;AAc7B,eAAe,OAAO,CAAA"}
@@ -1,4 +0,0 @@
1
- import { Command } from 'commander';
2
- declare const votingkey: () => Command;
3
- export default votingkey;
4
- //# sourceMappingURL=votingkey.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"votingkey.d.ts","sourceRoot":"","sources":["../../../../src/commands/votingkey/votingkey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAKnC,QAAA,MAAM,SAAS,eAUd,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -1,4 +0,0 @@
1
- import { Command } from 'commander';
2
- declare const program: Command;
3
- export default program;
4
- //# sourceMappingURL=votingkeyCreate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"votingkeyCreate.d.ts","sourceRoot":"","sources":["../../../../src/commands/votingkey/votingkeyCreate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,QAAA,MAAM,OAAO,SAAgB,CAAA;AAa7B,eAAe,OAAO,CAAA"}
@@ -1,4 +0,0 @@
1
- import { Command } from 'commander';
2
- declare const program: Command;
3
- export default program;
4
- //# sourceMappingURL=votingkeyInfo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"votingkeyInfo.d.ts","sourceRoot":"","sources":["../../../../src/commands/votingkey/votingkeyInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,QAAA,MAAM,OAAO,SAAgB,CAAA;AAU7B,eAAe,OAAO,CAAA"}
@@ -1,4 +0,0 @@
1
- import { Command } from 'commander';
2
- declare const program: Command;
3
- export default program;
4
- //# sourceMappingURL=votingkeyUpdate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"votingkeyUpdate.d.ts","sourceRoot":"","sources":["../../../../src/commands/votingkey/votingkeyUpdate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,QAAA,MAAM,OAAO,SAAgB,CAAA;AAa7B,eAAe,OAAO,CAAA"}
@@ -1,20 +0,0 @@
1
- interface ConstrantsType {
2
- [key: number]: string;
3
- }
4
- declare class Constants {
5
- static TransactionType: ConstrantsType;
6
- static NetworkType: ConstrantsType;
7
- static MosaicSupplyChangeAction: ConstrantsType;
8
- static NamespaceRegistrationType: ConstrantsType;
9
- static AliasAction: ConstrantsType;
10
- static LinkAction: ConstrantsType;
11
- static AccountType: ConstrantsType;
12
- static AccountKeyTypeFlags: ConstrantsType;
13
- static OperationRestrictionFlag: ConstrantsType;
14
- static AddressRestrictionFlag: ConstrantsType;
15
- static MosaicRestrictionFlag: ConstrantsType;
16
- static MosaicRestrictionType: ConstrantsType;
17
- static HashAlgorithmType: ConstrantsType;
18
- }
19
- export default Constants;
20
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAgBA,UAAU,cAAc;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CACtB;AAED,cAAM,SAAS;IACb,MAAM,CAAC,eAAe,EAAE,cAAc,CAyBrC;IAED,MAAM,CAAC,WAAW,EAAE,cAAc,CAKjC;IAED,MAAM,CAAC,wBAAwB,EAAE,cAAc,CAG9C;IAED,MAAM,CAAC,yBAAyB,EAAE,cAAc,CAG/C;IAED,MAAM,CAAC,WAAW,EAAE,cAAc,CAGjC;IAED,MAAM,CAAC,UAAU,EAAE,cAAc,CAGhC;IAED,MAAM,CAAC,WAAW,EAAE,cAAc,CAKjC;IAED,MAAM,CAAC,mBAAmB,EAAE,cAAc,CAMzC;IAED,MAAM,CAAC,wBAAwB,EAAE,cAAc,CAG9C;IAED,MAAM,CAAC,sBAAsB,EAAE,cAAc,CAK5C;IAED,MAAM,CAAC,qBAAqB,EAAE,cAAc,CAG3C;IAED,MAAM,CAAC,qBAAqB,EAAE,cAAc,CAM3C;IAED,MAAM,CAAC,iBAAiB,EAAE,cAAc,CAIvC;CACF;AAED,eAAe,SAAS,CAAA"}
@@ -1,4 +0,0 @@
1
- import { IAccountGenerateOption } from '../../types';
2
- declare const _default: (option: IAccountGenerateOption) => Promise<void>;
3
- export default _default;
4
- //# sourceMappingURL=accountGenerate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"accountGenerate.d.ts","sourceRoot":"","sources":["../../../../src/infrastructure/account/accountGenerate.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;iCAQtB,sBAAsB;AAApD,wBA4KC"}
@@ -1,4 +0,0 @@
1
- import { IAccountInfoOption } from '../../types';
2
- declare const _default: (option: IAccountInfoOption) => Promise<void>;
3
- export default _default;
4
- //# sourceMappingURL=accountInfo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"accountInfo.d.ts","sourceRoot":"","sources":["../../../../src/infrastructure/account/accountInfo.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;iCAMlB,kBAAkB;AAAhD,wBAiJC"}
@@ -1,4 +0,0 @@
1
- import { IMosaicCreateOption } from '../../types';
2
- declare const _default: (option: IMosaicCreateOption) => Promise<void>;
3
- export default _default;
4
- //# sourceMappingURL=mosaicCreate.d.ts.map