near-api-js 0.44.2 → 1.0.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 (46) hide show
  1. package/README.md +1 -1
  2. package/dist/near-api-js.js +1577 -1105
  3. package/dist/near-api-js.min.js +31 -31
  4. package/lib/account.d.ts +32 -45
  5. package/lib/account.js +301 -254
  6. package/lib/account_creator.js +17 -4
  7. package/lib/account_multisig.d.ts +41 -17
  8. package/lib/account_multisig.js +383 -194
  9. package/lib/browser-connect.d.ts +1 -1
  10. package/lib/browser-connect.js +13 -2
  11. package/lib/browser-index.js +8 -3
  12. package/lib/common-index.d.ts +2 -2
  13. package/lib/common-index.js +7 -5
  14. package/lib/connect.js +35 -24
  15. package/lib/connection.d.ts +2 -1
  16. package/lib/connection.js +4 -3
  17. package/lib/contract.js +28 -17
  18. package/lib/index.js +8 -3
  19. package/lib/key_stores/browser_local_storage_key_store.js +53 -32
  20. package/lib/key_stores/in_memory_key_store.js +47 -26
  21. package/lib/key_stores/merge_key_store.js +52 -31
  22. package/lib/key_stores/unencrypted_file_system_keystore.js +81 -54
  23. package/lib/near.d.ts +5 -33
  24. package/lib/near.js +24 -32
  25. package/lib/providers/json-rpc-provider.d.ts +8 -13
  26. package/lib/providers/json-rpc-provider.js +207 -170
  27. package/lib/providers/provider.d.ts +8 -5
  28. package/lib/signer.js +41 -24
  29. package/lib/transaction.d.ts +5 -2
  30. package/lib/transaction.js +41 -24
  31. package/lib/utils/exponential-backoff.js +22 -11
  32. package/lib/utils/index.js +6 -2
  33. package/lib/utils/key_pair.js +6 -6
  34. package/lib/utils/rpc_errors.d.ts +0 -1
  35. package/lib/utils/rpc_errors.js +2 -23
  36. package/lib/utils/serialize.js +1 -0
  37. package/lib/utils/setup-node-fetch.js +1 -4
  38. package/lib/utils/web.js +42 -31
  39. package/lib/validators.js +1 -1
  40. package/lib/wallet-account.d.ts +28 -17
  41. package/lib/wallet-account.js +196 -160
  42. package/package.json +17 -14
  43. package/LICENSE +0 -23
  44. package/lib/res/error_messages.d.ts +0 -64
  45. package/lib/utils/network.d.ts +0 -5
  46. package/lib/utils/network.js +0 -2
package/README.md CHANGED
@@ -54,7 +54,7 @@ Tests use sample contract from `near-hello` npm package, see https://github.com/
54
54
 
55
55
  Follow next steps:
56
56
 
57
- 1. [Change hash for the commit with errors in the nearcore](https://github.com/near/near-api-js/blob/master/gen_error_types.js#L7-L9)
57
+ 1. [Change hash for the commit with errors in the nearcore](https://github.com/near/near-api-js/blob/master/fetch_error_schema.js#L8-L9)
58
58
  2. Fetch new schema: `node fetch_error_schema.js`
59
59
  3. `yarn build` to update `lib/**.js` files
60
60