@bitgo/account-lib 2.17.2-rc.0.1 → 2.17.2-rc.4

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 (107) hide show
  1. package/dist/browser/bitgo-account-lib.min.js +1 -1
  2. package/dist/browser/bitgo-account-lib.min.js.LICENSE.txt +136 -0
  3. package/dist/package.json +10 -3
  4. package/dist/resources/dot/index.ts +2 -0
  5. package/dist/resources/dot/mainnet.ts +2 -0
  6. package/dist/resources/dot/westend.ts +2 -0
  7. package/dist/resources/trx/protobuf/tron.js~account-lib_master +31380 -0
  8. package/dist/src/coin/algo/keyExclusionBuilder.d.ts +9 -0
  9. package/dist/src/coin/algo/keyExclusionBuilder.d.ts.map +1 -0
  10. package/dist/src/coin/algo/keyExclusionBuilder.js +83 -0
  11. package/dist/src/coin/algo/utils.d.ts +39 -22
  12. package/dist/src/coin/algo/utils.d.ts.map +1 -1
  13. package/dist/src/coin/algo/utils.js +88 -73
  14. package/dist/src/coin/baseCoin/baseTransaction.d.ts +8 -1
  15. package/dist/src/coin/baseCoin/baseTransaction.d.ts.map +1 -1
  16. package/dist/src/coin/baseCoin/baseTransaction.js +10 -1
  17. package/dist/src/coin/baseCoin/baseTransactionBuilder.d.ts.map +1 -1
  18. package/dist/src/coin/baseCoin/baseTransactionBuilder.js +1 -1
  19. package/dist/src/coin/baseCoin/iface.d.ts +28 -0
  20. package/dist/src/coin/baseCoin/iface.d.ts.map +1 -1
  21. package/dist/src/coin/baseCoin/iface.js +1 -1
  22. package/dist/src/coin/cspr/utils.js +2 -2
  23. package/dist/src/coin/dot/errors.d.ts +8 -0
  24. package/dist/src/coin/dot/errors.d.ts.map +1 -0
  25. package/dist/src/coin/dot/errors.js +40 -0
  26. package/dist/src/coin/dot/iface.d.ts +153 -0
  27. package/dist/src/coin/dot/iface.d.ts.map +1 -0
  28. package/dist/src/coin/dot/iface.js +15 -0
  29. package/dist/src/coin/dot/index.d.ts +6 -0
  30. package/dist/src/coin/dot/index.d.ts.map +1 -1
  31. package/dist/src/coin/dot/index.js +14 -2
  32. package/dist/src/coin/dot/keyPair.d.ts +15 -2
  33. package/dist/src/coin/dot/keyPair.d.ts.map +1 -1
  34. package/dist/src/coin/dot/keyPair.js +41 -6
  35. package/dist/src/coin/dot/stakingBuilder.d.ts +59 -0
  36. package/dist/src/coin/dot/stakingBuilder.d.ts.map +1 -0
  37. package/dist/src/coin/dot/stakingBuilder.js +157 -0
  38. package/dist/src/coin/dot/transaction.d.ts +31 -3
  39. package/dist/src/coin/dot/transaction.d.ts.map +1 -1
  40. package/dist/src/coin/dot/transaction.js +268 -7
  41. package/dist/src/coin/dot/transactionBuilder.d.ts +105 -9
  42. package/dist/src/coin/dot/transactionBuilder.d.ts.map +1 -1
  43. package/dist/src/coin/dot/transactionBuilder.js +311 -15
  44. package/dist/src/coin/dot/transactionBuilderFactory.d.ts +12 -16
  45. package/dist/src/coin/dot/transactionBuilderFactory.d.ts.map +1 -1
  46. package/dist/src/coin/dot/transactionBuilderFactory.js +60 -25
  47. package/dist/src/coin/dot/transferBuilder.d.ts +62 -4
  48. package/dist/src/coin/dot/transferBuilder.d.ts.map +1 -1
  49. package/dist/src/coin/dot/transferBuilder.js +158 -44
  50. package/dist/src/coin/dot/txnSchema.d.ts +10 -0
  51. package/dist/src/coin/dot/txnSchema.d.ts.map +1 -0
  52. package/dist/src/coin/dot/txnSchema.js +83 -0
  53. package/dist/src/coin/dot/unstakeBuilder.d.ts +38 -0
  54. package/dist/src/coin/dot/unstakeBuilder.d.ts.map +1 -0
  55. package/dist/src/coin/dot/unstakeBuilder.js +111 -0
  56. package/dist/src/coin/dot/utils.d.ts +69 -0
  57. package/dist/src/coin/dot/utils.d.ts.map +1 -1
  58. package/dist/src/coin/dot/utils.js +144 -4
  59. package/dist/src/coin/dot/walletInitializationBuilder.d.ts +51 -5
  60. package/dist/src/coin/dot/walletInitializationBuilder.d.ts.map +1 -1
  61. package/dist/src/coin/dot/walletInitializationBuilder.js +108 -45
  62. package/dist/src/coin/sol/constants.d.ts +24 -0
  63. package/dist/src/coin/sol/constants.d.ts.map +1 -0
  64. package/dist/src/coin/sol/constants.js +35 -0
  65. package/dist/src/coin/sol/iface.d.ts +55 -0
  66. package/dist/src/coin/sol/iface.d.ts.map +1 -0
  67. package/dist/src/coin/sol/iface.js +3 -0
  68. package/dist/src/coin/sol/index.d.ts +5 -0
  69. package/dist/src/coin/sol/index.d.ts.map +1 -0
  70. package/dist/src/coin/sol/index.js +29 -0
  71. package/dist/src/coin/sol/instructionParamsFactory.d.ts +12 -0
  72. package/dist/src/coin/sol/instructionParamsFactory.d.ts.map +1 -0
  73. package/dist/src/coin/sol/instructionParamsFactory.js +99 -0
  74. package/dist/src/coin/sol/keyPair.d.ts +45 -0
  75. package/dist/src/coin/sol/keyPair.d.ts.map +1 -0
  76. package/dist/src/coin/sol/keyPair.js +128 -0
  77. package/dist/src/coin/sol/solInstructionFactory.d.ts +10 -0
  78. package/dist/src/coin/sol/solInstructionFactory.d.ts.map +1 -0
  79. package/dist/src/coin/sol/solInstructionFactory.js +102 -0
  80. package/dist/src/coin/sol/transaction.d.ts +52 -0
  81. package/dist/src/coin/sol/transaction.d.ts.map +1 -0
  82. package/dist/src/coin/sol/transaction.js +345 -0
  83. package/dist/src/coin/sol/transactionBuilder.d.ts +96 -0
  84. package/dist/src/coin/sol/transactionBuilder.d.ts.map +1 -0
  85. package/dist/src/coin/sol/transactionBuilder.js +316 -0
  86. package/dist/src/coin/sol/transactionBuilderFactory.d.ts +34 -0
  87. package/dist/src/coin/sol/transactionBuilderFactory.d.ts.map +1 -0
  88. package/dist/src/coin/sol/transactionBuilderFactory.js +86 -0
  89. package/dist/src/coin/sol/transferBuilder.d.ts +26 -0
  90. package/dist/src/coin/sol/transferBuilder.d.ts.map +1 -0
  91. package/dist/src/coin/sol/transferBuilder.js +140 -0
  92. package/dist/src/coin/sol/utils.d.ts +104 -0
  93. package/dist/src/coin/sol/utils.d.ts.map +1 -0
  94. package/dist/src/coin/sol/utils.js +244 -0
  95. package/dist/src/coin/sol/walletInitializationBuilder.d.ts +26 -0
  96. package/dist/src/coin/sol/walletInitializationBuilder.d.ts.map +1 -0
  97. package/dist/src/coin/sol/walletInitializationBuilder.js +141 -0
  98. package/dist/src/index.d.ts +4 -0
  99. package/dist/src/index.d.ts.map +1 -1
  100. package/dist/src/index.js +10 -2
  101. package/dist/src/utils/crypto.d.ts +8 -0
  102. package/dist/src/utils/crypto.d.ts.map +1 -1
  103. package/dist/src/utils/crypto.js +13 -2
  104. package/package.json +10 -3
  105. package/resources/dot/index.ts +2 -0
  106. package/resources/dot/mainnet.ts +2 -0
  107. package/resources/dot/westend.ts +2 -0
@@ -175,6 +175,29 @@ object-assign
175
175
  * https://github.com/bcoin-org/bcrypto
176
176
  */
177
177
 
178
+ /*!
179
+ Copyright (C) 2013-2017 by Andrea Giammarchi - @WebReflection
180
+
181
+ Permission is hereby granted, free of charge, to any person obtaining a copy
182
+ of this software and associated documentation files (the "Software"), to deal
183
+ in the Software without restriction, including without limitation the rights
184
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
185
+ copies of the Software, and to permit persons to whom the Software is
186
+ furnished to do so, subject to the following conditions:
187
+
188
+ The above copyright notice and this permission notice shall be included in
189
+ all copies or substantial portions of the Software.
190
+
191
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
192
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
193
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
194
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
195
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
196
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
197
+ THE SOFTWARE.
198
+
199
+ */
200
+
178
201
  /*! *****************************************************************************
179
202
  Copyright (c) Microsoft Corporation.
180
203
 
@@ -200,6 +223,10 @@ PERFORMANCE OF THIS SOFTWARE.
200
223
 
201
224
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
202
225
 
226
+ /*! micro-base - MIT License (c) 2021 Paul Miller (paulmillr.com) */
227
+
228
+ /*! noble-hashes - MIT License (c) 2021 Paul Miller (paulmillr.com) */
229
+
203
230
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
204
231
 
205
232
  /**
@@ -217,6 +244,115 @@ PERFORMANCE OF THIS SOFTWARE.
217
244
  * see: https://github.com/dcodeIO/Long.js for details
218
245
  */
219
246
 
247
+ /**
248
+ * Support for translating between Uint8Array instances and JavaScript
249
+ * native types.
250
+ *
251
+ * {@link module:Layout~Layout|Layout} is the basis of a class
252
+ * hierarchy that associates property names with sequences of encoded
253
+ * bytes.
254
+ *
255
+ * Layouts are supported for these scalar (numeric) types:
256
+ * * {@link module:Layout~UInt|Unsigned integers in little-endian
257
+ * format} with {@link module:Layout.u8|8-bit}, {@link
258
+ * module:Layout.u16|16-bit}, {@link module:Layout.u24|24-bit},
259
+ * {@link module:Layout.u32|32-bit}, {@link
260
+ * module:Layout.u40|40-bit}, and {@link module:Layout.u48|48-bit}
261
+ * representation ranges;
262
+ * * {@link module:Layout~UIntBE|Unsigned integers in big-endian
263
+ * format} with {@link module:Layout.u16be|16-bit}, {@link
264
+ * module:Layout.u24be|24-bit}, {@link module:Layout.u32be|32-bit},
265
+ * {@link module:Layout.u40be|40-bit}, and {@link
266
+ * module:Layout.u48be|48-bit} representation ranges;
267
+ * * {@link module:Layout~Int|Signed integers in little-endian
268
+ * format} with {@link module:Layout.s8|8-bit}, {@link
269
+ * module:Layout.s16|16-bit}, {@link module:Layout.s24|24-bit},
270
+ * {@link module:Layout.s32|32-bit}, {@link
271
+ * module:Layout.s40|40-bit}, and {@link module:Layout.s48|48-bit}
272
+ * representation ranges;
273
+ * * {@link module:Layout~IntBE|Signed integers in big-endian format}
274
+ * with {@link module:Layout.s16be|16-bit}, {@link
275
+ * module:Layout.s24be|24-bit}, {@link module:Layout.s32be|32-bit},
276
+ * {@link module:Layout.s40be|40-bit}, and {@link
277
+ * module:Layout.s48be|48-bit} representation ranges;
278
+ * * 64-bit integral values that decode to an exact (if magnitude is
279
+ * less than 2^53) or nearby integral Number in {@link
280
+ * module:Layout.nu64|unsigned little-endian}, {@link
281
+ * module:Layout.nu64be|unsigned big-endian}, {@link
282
+ * module:Layout.ns64|signed little-endian}, and {@link
283
+ * module:Layout.ns64be|unsigned big-endian} encodings;
284
+ * * 32-bit floating point values with {@link
285
+ * module:Layout.f32|little-endian} and {@link
286
+ * module:Layout.f32be|big-endian} representations;
287
+ * * 64-bit floating point values with {@link
288
+ * module:Layout.f64|little-endian} and {@link
289
+ * module:Layout.f64be|big-endian} representations;
290
+ * * {@link module:Layout.const|Constants} that take no space in the
291
+ * encoded expression.
292
+ *
293
+ * and for these aggregate types:
294
+ * * {@link module:Layout.seq|Sequence}s of instances of a {@link
295
+ * module:Layout~Layout|Layout}, with JavaScript representation as
296
+ * an Array and constant or data-dependent {@link
297
+ * module:Layout~Sequence#count|length};
298
+ * * {@link module:Layout.struct|Structure}s that aggregate a
299
+ * heterogeneous sequence of {@link module:Layout~Layout|Layout}
300
+ * instances, with JavaScript representation as an Object;
301
+ * * {@link module:Layout.union|Union}s that support multiple {@link
302
+ * module:Layout~VariantLayout|variant layouts} over a fixed
303
+ * (padded) or variable (not padded) span of bytes, using an
304
+ * unsigned integer at the start of the data or a separate {@link
305
+ * module:Layout.unionLayoutDiscriminator|layout element} to
306
+ * determine which layout to use when interpreting the buffer
307
+ * contents;
308
+ * * {@link module:Layout.bits|BitStructure}s that contain a sequence
309
+ * of individual {@link
310
+ * module:Layout~BitStructure#addField|BitField}s packed into an 8,
311
+ * 16, 24, or 32-bit unsigned integer starting at the least- or
312
+ * most-significant bit;
313
+ * * {@link module:Layout.cstr|C strings} of varying length;
314
+ * * {@link module:Layout.blob|Blobs} of fixed- or variable-{@link
315
+ * module:Layout~Blob#length|length} raw data.
316
+ *
317
+ * All {@link module:Layout~Layout|Layout} instances are immutable
318
+ * after construction, to prevent internal state from becoming
319
+ * inconsistent.
320
+ *
321
+ * @local Layout
322
+ * @local ExternalLayout
323
+ * @local GreedyCount
324
+ * @local OffsetLayout
325
+ * @local UInt
326
+ * @local UIntBE
327
+ * @local Int
328
+ * @local IntBE
329
+ * @local NearUInt64
330
+ * @local NearUInt64BE
331
+ * @local NearInt64
332
+ * @local NearInt64BE
333
+ * @local Float
334
+ * @local FloatBE
335
+ * @local Double
336
+ * @local DoubleBE
337
+ * @local Sequence
338
+ * @local Structure
339
+ * @local UnionDiscriminator
340
+ * @local UnionLayoutDiscriminator
341
+ * @local Union
342
+ * @local VariantLayout
343
+ * @local BitStructure
344
+ * @local BitField
345
+ * @local Boolean
346
+ * @local Blob
347
+ * @local CString
348
+ * @local Constant
349
+ * @local bindConstructorLayout
350
+ * @module Layout
351
+ * @license MIT
352
+ * @author Peter A. Bigot
353
+ * @see {@link https://github.com/pabigot/buffer-layout|buffer-layout on GitHub}
354
+ */
355
+
220
356
  /**
221
357
  * [js-sha3]{@link https://github.com/emn178/js-sha3}
222
358
  *
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/account-lib",
3
- "version": "2.17.2-rc.0.1",
3
+ "version": "2.17.2-rc.4",
4
4
  "description": "BitGo's account library functions",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
@@ -36,14 +36,19 @@
36
36
  "dependencies": {
37
37
  "@bitgo/blake2b": "^3.0.1",
38
38
  "@bitgo/bls": "^0.1.0",
39
- "@bitgo/statics": "^6.15.1-rc.0.1",
39
+ "@bitgo/statics": "^6.15.1-rc.4",
40
40
  "@celo/contractkit": "^1.2.4",
41
41
  "@ethereumjs/common": "^2.4.0",
42
42
  "@ethereumjs/tx": "^3.3.0",
43
43
  "@hashgraph/sdk": "~2.3.0",
44
+ "@polkadot/api": "^6.6.1",
45
+ "@polkadot/keyring": "^8.0.5",
46
+ "@solana/web3.js": "^1.30.2",
44
47
  "@stablelib/hex": "^1.0.0",
45
48
  "@stablelib/sha384": "^1.0.0",
46
49
  "@stacks/transactions": "2.0.1",
50
+ "@substrate/txwrapper-core": "^1.2.19",
51
+ "@substrate/txwrapper-polkadot": "^1.2.19",
47
52
  "@taquito/local-forging": "6.3.5-beta.0",
48
53
  "@taquito/signer": "6.3.5-beta.0",
49
54
  "@types/lodash": "^4.14.151",
@@ -51,6 +56,7 @@
51
56
  "bignumber.js": "^9.0.0",
52
57
  "bip32": "^2.0.6",
53
58
  "bitcoinjs-lib": "npm:@bitgo/bitcoinjs-lib@6.1.0-rc.3",
59
+ "bs58": "^4.0.1",
54
60
  "bs58check": "^2.1.2",
55
61
  "casper-client-sdk": "1.0.39",
56
62
  "elliptic": "^6.5.2",
@@ -70,6 +76,7 @@
70
76
  "tweetnacl": "^1.0.3"
71
77
  },
72
78
  "devDependencies": {
79
+ "@types/bs58": "^4.0.1",
73
80
  "@types/elliptic": "^6.4.12",
74
81
  "@types/libsodium-wrappers": "^0.7.7",
75
82
  "@types/mocha": "^5.2.6",
@@ -109,5 +116,5 @@
109
116
  "git add"
110
117
  ]
111
118
  },
112
- "gitHead": "cc4f59e4b9c4e6e85f4600df5f257f3e3b8b4e5a"
119
+ "gitHead": "8b2b004413d9fe5662afda7358a70b808946c685"
113
120
  }
@@ -0,0 +1,2 @@
1
+ export * from './mainnet';
2
+ export * from './westend';