@avalabs/evm-module 0.0.0-refactor-params-20240711144842 → 0.0.0-refactor-testing-20250902112011

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 (57) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +1 -1
  3. package/dist/chunk-34DAJYLO.cjs +38 -0
  4. package/dist/chunk-34DAJYLO.cjs.map +1 -0
  5. package/dist/chunk-OL7BDVYM.js +32 -0
  6. package/dist/chunk-OL7BDVYM.js.map +1 -0
  7. package/dist/index.cjs +3692 -9
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.d.cts +556 -12
  10. package/dist/index.d.ts +556 -12
  11. package/dist/index.js +3684 -10
  12. package/dist/index.js.map +1 -1
  13. package/dist/provider/index.cjs +294 -0
  14. package/dist/provider/index.cjs.map +1 -0
  15. package/dist/provider/index.d.cts +49 -0
  16. package/dist/provider/index.d.ts +49 -0
  17. package/dist/provider/index.js +288 -0
  18. package/dist/provider/index.js.map +1 -0
  19. package/manifest.json +91 -0
  20. package/package.json +35 -13
  21. package/.turbo/turbo-build.log +0 -22
  22. package/.turbo/turbo-lint.log +0 -4
  23. package/.turbo/turbo-test.log +0 -15
  24. package/CHANGELOG.md +0 -84
  25. package/jest.config.js +0 -9
  26. package/src/env.ts +0 -25
  27. package/src/handlers/get-network-fee/get-network-fee.test.ts +0 -43
  28. package/src/handlers/get-network-fee/get-network-fee.ts +0 -59
  29. package/src/handlers/get-tokens/get-tokens.test.ts +0 -100
  30. package/src/handlers/get-tokens/get-tokens.ts +0 -18
  31. package/src/handlers/get-transaction-history/converters/etherscan-transaction-converter/convert-transaction-erc20.ts +0 -51
  32. package/src/handlers/get-transaction-history/converters/etherscan-transaction-converter/convert-transaction-normal.ts +0 -58
  33. package/src/handlers/get-transaction-history/converters/etherscan-transaction-converter/get-transaction-from-etherscan.test.ts +0 -116
  34. package/src/handlers/get-transaction-history/converters/etherscan-transaction-converter/get-transaction-from-etherscan.ts +0 -73
  35. package/src/handlers/get-transaction-history/converters/evm-transaction-converter/convert-transaction.ts +0 -47
  36. package/src/handlers/get-transaction-history/converters/evm-transaction-converter/get-nft-metadata.ts +0 -35
  37. package/src/handlers/get-transaction-history/converters/evm-transaction-converter/get-sender-info.ts +0 -38
  38. package/src/handlers/get-transaction-history/converters/evm-transaction-converter/get-tokens.ts +0 -107
  39. package/src/handlers/get-transaction-history/converters/evm-transaction-converter/get-transaction-from-glacier.test.ts +0 -209
  40. package/src/handlers/get-transaction-history/converters/evm-transaction-converter/get-transactions-from-glacier.ts +0 -69
  41. package/src/handlers/get-transaction-history/converters/evm-transaction-converter/get-tx-type.ts +0 -52
  42. package/src/handlers/get-transaction-history/get-transaction-history.test.ts +0 -52
  43. package/src/handlers/get-transaction-history/get-transaction-history.ts +0 -45
  44. package/src/handlers/get-transaction-history/utils/get-explorer-address-by-network.ts +0 -7
  45. package/src/handlers/get-transaction-history/utils/get-small-image-for-nft.ts +0 -16
  46. package/src/handlers/get-transaction-history/utils/ipfs-resolver-with-fallback.ts +0 -18
  47. package/src/handlers/get-transaction-history/utils/is-ethereum-chain-id.ts +0 -15
  48. package/src/handlers/get-transaction-history/utils/resolve.ts +0 -7
  49. package/src/index.ts +0 -1
  50. package/src/manifest.json +0 -39
  51. package/src/module.ts +0 -82
  52. package/src/types.ts +0 -3
  53. package/src/utils/get-chainid.ts +0 -12
  54. package/src/utils/get-provider.ts +0 -44
  55. package/tsconfig.jest.json +0 -7
  56. package/tsconfig.json +0 -8
  57. package/tsup.config.ts +0 -4
package/LICENSE ADDED
@@ -0,0 +1,9 @@
1
+ Copyright (C) 2021, Ava Labs, Inc. All rights reserved.
2
+
3
+ Subject to the limited license below (**”License””), you may not, and you may not permit anyone else to, copy, reproduce, aggregate, republish, download, post, distribute, license, sublicense, reverse engineer, modify, or create derivative works based on this software (collectively, **“Software”**).
4
+
5
+ You are hereby granted a limited, non-exclusive, non-sublicensable and non-transferable license to download and use the Software as-is solely (i) for use in connection with the Avalanche Public Blockchain platform, having a NetworkID of 1 (Mainnet) or 5 (Fuji), and associated blockchains, comprised exclusively of the Avalanche X-Chain, C-Chain, P-Chain and any subnets linked to the P-Chain (**“Avalanche Authorized Platform”**) or (ii) for non-production, testing or research purposes without any commercial application within the Avalanche ecosystem (**“Non-Commercial Use”**); provided that, in each case, you may not use or allow use of the Software (a) in connection with any forks of the Avalanche Authorized Platform, (b) in any manner not operationally connected to the Avalanche Authorized Platform other than for Non-Commercial Use, or (c) to the extent the number of monthly active users or the number of total installs of any software that uses the Software across all versions thereof exceeds 10,000 at any time. You may not modify or alter the Software in any way.
6
+
7
+ You hereby acknowledge and agree to the terms set forth at www.avalabs.org/important-notice.
8
+
9
+ **TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED ON AN “AS IS” BASIS, AND AVA LABS EXPRESSLY DISCLAIMS AND EXCLUDES ALL REPRESENTATIONS, WARRANTIES AND OTHER TERMS AND CONDITIONS, WHETHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION BY OPERATION OF LAW OR BY CUSTOM, STATUTE OR OTHERWISE, AND INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED WARRANTY, TERM, OR CONDITION OF NON-INFRINGEMENT, MERCHANTABILITY, TITLE, OR FITNESS FOR PARTICULAR PURPOSE. YOU USE THE SOFTWARE AT YOUR OWN RISK. AVA LABS EXPRESSLY DISCLAIMS ALL LIABILITY (INCLUDING FOR ALL DIRECT, CONSEQUENTIAL OR OTHER DAMAGES OR LOSSES) RELATED TO ANY USE OF THE SOFTWARE.**
package/README.md CHANGED
@@ -6,4 +6,4 @@ This package implements the core logic for the EVM (Ethereum Virtual Machine) mo
6
6
 
7
7
  ## Installation
8
8
 
9
- The module is privately available on NPM as `@avalabs/evm-module`
9
+ The module is available on NPM as `@avalabs/evm-module`
@@ -0,0 +1,38 @@
1
+ 'use strict';
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5
+ var __publicField = (obj, key, value) => {
6
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
7
+ return value;
8
+ };
9
+ var __accessCheck = (obj, member, msg) => {
10
+ if (!member.has(obj))
11
+ throw TypeError("Cannot " + msg);
12
+ };
13
+ var __privateGet = (obj, member, getter) => {
14
+ __accessCheck(obj, member, "read from private field");
15
+ return getter ? getter.call(obj) : member.get(obj);
16
+ };
17
+ var __privateAdd = (obj, member, value) => {
18
+ if (member.has(obj))
19
+ throw TypeError("Cannot add the same private member more than once");
20
+ member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
21
+ };
22
+ var __privateSet = (obj, member, value, setter) => {
23
+ __accessCheck(obj, member, "write to private field");
24
+ setter ? setter.call(obj, value) : member.set(obj, value);
25
+ return value;
26
+ };
27
+ var __privateMethod = (obj, member, method) => {
28
+ __accessCheck(obj, member, "access private method");
29
+ return method;
30
+ };
31
+
32
+ exports.__privateAdd = __privateAdd;
33
+ exports.__privateGet = __privateGet;
34
+ exports.__privateMethod = __privateMethod;
35
+ exports.__privateSet = __privateSet;
36
+ exports.__publicField = __publicField;
37
+ //# sourceMappingURL=out.js.map
38
+ //# sourceMappingURL=chunk-34DAJYLO.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
@@ -0,0 +1,32 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __publicField = (obj, key, value) => {
4
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
+ return value;
6
+ };
7
+ var __accessCheck = (obj, member, msg) => {
8
+ if (!member.has(obj))
9
+ throw TypeError("Cannot " + msg);
10
+ };
11
+ var __privateGet = (obj, member, getter) => {
12
+ __accessCheck(obj, member, "read from private field");
13
+ return getter ? getter.call(obj) : member.get(obj);
14
+ };
15
+ var __privateAdd = (obj, member, value) => {
16
+ if (member.has(obj))
17
+ throw TypeError("Cannot add the same private member more than once");
18
+ member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
19
+ };
20
+ var __privateSet = (obj, member, value, setter) => {
21
+ __accessCheck(obj, member, "write to private field");
22
+ setter ? setter.call(obj, value) : member.set(obj, value);
23
+ return value;
24
+ };
25
+ var __privateMethod = (obj, member, method) => {
26
+ __accessCheck(obj, member, "access private method");
27
+ return method;
28
+ };
29
+
30
+ export { __privateAdd, __privateGet, __privateMethod, __privateSet, __publicField };
31
+ //# sourceMappingURL=out.js.map
32
+ //# sourceMappingURL=chunk-OL7BDVYM.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}