@xyo-network/crypto-address-transaction-history-plugin 2.75.14 → 2.75.16

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 (82) hide show
  1. package/dist/browser/Config.d.cts +1 -1
  2. package/dist/browser/Config.d.cts.map +1 -1
  3. package/dist/browser/Config.d.mts +1 -1
  4. package/dist/browser/Config.d.mts.map +1 -1
  5. package/dist/browser/Config.d.ts +1 -1
  6. package/dist/browser/Config.d.ts.map +1 -1
  7. package/dist/browser/Plugin.d.cts +2 -2
  8. package/dist/browser/Plugin.d.mts +2 -2
  9. package/dist/browser/Plugin.d.ts +2 -2
  10. package/dist/browser/Witness.d.cts +2 -1
  11. package/dist/browser/Witness.d.cts.map +1 -1
  12. package/dist/browser/Witness.d.mts +2 -1
  13. package/dist/browser/Witness.d.mts.map +1 -1
  14. package/dist/browser/Witness.d.ts +2 -1
  15. package/dist/browser/Witness.d.ts.map +1 -1
  16. package/dist/browser/index.cjs +2 -2
  17. package/dist/browser/index.cjs.map +1 -1
  18. package/dist/browser/index.js +1 -1
  19. package/dist/browser/index.js.map +1 -1
  20. package/dist/docs.json +807 -410
  21. package/dist/node/Config.d.cts +1 -1
  22. package/dist/node/Config.d.cts.map +1 -1
  23. package/dist/node/Config.d.mts +1 -1
  24. package/dist/node/Config.d.mts.map +1 -1
  25. package/dist/node/Config.d.ts +1 -1
  26. package/dist/node/Config.d.ts.map +1 -1
  27. package/dist/node/Plugin.d.cts +2 -2
  28. package/dist/node/Plugin.d.mts +2 -2
  29. package/dist/node/Plugin.d.ts +2 -2
  30. package/dist/node/Witness.d.cts +2 -1
  31. package/dist/node/Witness.d.cts.map +1 -1
  32. package/dist/node/Witness.d.mts +2 -1
  33. package/dist/node/Witness.d.mts.map +1 -1
  34. package/dist/node/Witness.d.ts +2 -1
  35. package/dist/node/Witness.d.ts.map +1 -1
  36. package/dist/node/index.js +2 -2
  37. package/dist/node/index.js.map +1 -1
  38. package/dist/node/index.mjs +1 -1
  39. package/dist/node/index.mjs.map +1 -1
  40. package/package.json +12 -11
  41. package/src/Config.ts +1 -1
  42. package/src/Witness.ts +2 -1
  43. package/dist/browser/Config.cjs +0 -19
  44. package/dist/browser/Config.cjs.map +0 -1
  45. package/dist/browser/Config.js +0 -1
  46. package/dist/browser/Config.js.map +0 -1
  47. package/dist/browser/Plugin.cjs +0 -83
  48. package/dist/browser/Plugin.cjs.map +0 -1
  49. package/dist/browser/Plugin.js +0 -65
  50. package/dist/browser/Plugin.js.map +0 -1
  51. package/dist/browser/Witness.cjs +0 -67
  52. package/dist/browser/Witness.cjs.map +0 -1
  53. package/dist/browser/Witness.js +0 -49
  54. package/dist/browser/Witness.js.map +0 -1
  55. package/dist/browser/lib/getTransactionsForAddress.cjs +0 -44
  56. package/dist/browser/lib/getTransactionsForAddress.cjs.map +0 -1
  57. package/dist/browser/lib/getTransactionsForAddress.js +0 -23
  58. package/dist/browser/lib/getTransactionsForAddress.js.map +0 -1
  59. package/dist/browser/lib/index.cjs +0 -46
  60. package/dist/browser/lib/index.cjs.map +0 -1
  61. package/dist/browser/lib/index.js +0 -23
  62. package/dist/browser/lib/index.js.map +0 -1
  63. package/dist/node/Config.js +0 -19
  64. package/dist/node/Config.js.map +0 -1
  65. package/dist/node/Config.mjs +0 -1
  66. package/dist/node/Config.mjs.map +0 -1
  67. package/dist/node/Plugin.js +0 -87
  68. package/dist/node/Plugin.js.map +0 -1
  69. package/dist/node/Plugin.mjs +0 -65
  70. package/dist/node/Plugin.mjs.map +0 -1
  71. package/dist/node/Witness.js +0 -71
  72. package/dist/node/Witness.js.map +0 -1
  73. package/dist/node/Witness.mjs +0 -49
  74. package/dist/node/Witness.mjs.map +0 -1
  75. package/dist/node/lib/getTransactionsForAddress.js +0 -48
  76. package/dist/node/lib/getTransactionsForAddress.js.map +0 -1
  77. package/dist/node/lib/getTransactionsForAddress.mjs +0 -23
  78. package/dist/node/lib/getTransactionsForAddress.mjs.map +0 -1
  79. package/dist/node/lib/index.js +0 -50
  80. package/dist/node/lib/index.js.map +0 -1
  81. package/dist/node/lib/index.mjs +0 -23
  82. package/dist/node/lib/index.mjs.map +0 -1
@@ -1,23 +0,0 @@
1
- // src/lib/getTransactionsForAddress.ts
2
- var getTransactionsForAddress = async (publicAddress, provider) => {
3
- const history = await provider.getHistory(publicAddress);
4
- return history.map((transaction) => {
5
- const {
6
- gasLimit: rawGasLimit,
7
- gasPrice: rawGasPrice,
8
- maxFeePerGas: rawMaxFeePerGas,
9
- maxPriorityFeePerGas: rawMaxPriorityFeePerGas,
10
- value: rawValue
11
- } = transaction;
12
- const gasLimit = rawGasLimit == null ? void 0 : rawGasLimit.toString();
13
- const gasPrice = rawGasPrice == null ? void 0 : rawGasPrice.toString();
14
- const maxFeePerGas = rawMaxFeePerGas == null ? void 0 : rawMaxFeePerGas.toString();
15
- const maxPriorityFeePerGas = rawMaxPriorityFeePerGas == null ? void 0 : rawMaxPriorityFeePerGas.toString();
16
- const value = rawValue == null ? void 0 : rawValue.toString();
17
- return { ...transaction, gasLimit, gasPrice, maxFeePerGas, maxPriorityFeePerGas, value };
18
- });
19
- };
20
- export {
21
- getTransactionsForAddress
22
- };
23
- //# sourceMappingURL=getTransactionsForAddress.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/lib/getTransactionsForAddress.ts"],"sourcesContent":["import type { EtherscanProvider } from '@ethersproject/providers'\nimport { Transaction } from '@xyo-network/crypto-address-transaction-history-payload-plugin'\n\nexport const getTransactionsForAddress = async (\n /**\n * The address of the wallet to search for NFTs\n */\n publicAddress: string,\n /**\n * The ethers provider to use to search\n */\n provider: EtherscanProvider,\n): Promise<Transaction[]> => {\n const history = await provider.getHistory(publicAddress)\n return history.map<Transaction>((transaction) => {\n const {\n gasLimit: rawGasLimit,\n gasPrice: rawGasPrice,\n maxFeePerGas: rawMaxFeePerGas,\n maxPriorityFeePerGas: rawMaxPriorityFeePerGas,\n value: rawValue,\n } = transaction\n const gasLimit = rawGasLimit?.toString()\n const gasPrice = rawGasPrice?.toString()\n const maxFeePerGas = rawMaxFeePerGas?.toString()\n const maxPriorityFeePerGas = rawMaxPriorityFeePerGas?.toString()\n const value = rawValue?.toString()\n return { ...transaction, gasLimit, gasPrice, maxFeePerGas, maxPriorityFeePerGas, value }\n })\n}\n"],"mappings":";AAGO,IAAM,4BAA4B,OAIvC,eAIA,aAC2B;AAC3B,QAAM,UAAU,MAAM,SAAS,WAAW,aAAa;AACvD,SAAO,QAAQ,IAAiB,CAAC,gBAAgB;AAC/C,UAAM;AAAA,MACJ,UAAU;AAAA,MACV,UAAU;AAAA,MACV,cAAc;AAAA,MACd,sBAAsB;AAAA,MACtB,OAAO;AAAA,IACT,IAAI;AACJ,UAAM,WAAW,2CAAa;AAC9B,UAAM,WAAW,2CAAa;AAC9B,UAAM,eAAe,mDAAiB;AACtC,UAAM,uBAAuB,mEAAyB;AACtD,UAAM,QAAQ,qCAAU;AACxB,WAAO,EAAE,GAAG,aAAa,UAAU,UAAU,cAAc,sBAAsB,MAAM;AAAA,EACzF,CAAC;AACH;","names":[]}
@@ -1,50 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/lib/index.ts
21
- var lib_exports = {};
22
- __export(lib_exports, {
23
- getTransactionsForAddress: () => getTransactionsForAddress
24
- });
25
- module.exports = __toCommonJS(lib_exports);
26
-
27
- // src/lib/getTransactionsForAddress.ts
28
- var getTransactionsForAddress = async (publicAddress, provider) => {
29
- const history = await provider.getHistory(publicAddress);
30
- return history.map((transaction) => {
31
- const {
32
- gasLimit: rawGasLimit,
33
- gasPrice: rawGasPrice,
34
- maxFeePerGas: rawMaxFeePerGas,
35
- maxPriorityFeePerGas: rawMaxPriorityFeePerGas,
36
- value: rawValue
37
- } = transaction;
38
- const gasLimit = rawGasLimit == null ? void 0 : rawGasLimit.toString();
39
- const gasPrice = rawGasPrice == null ? void 0 : rawGasPrice.toString();
40
- const maxFeePerGas = rawMaxFeePerGas == null ? void 0 : rawMaxFeePerGas.toString();
41
- const maxPriorityFeePerGas = rawMaxPriorityFeePerGas == null ? void 0 : rawMaxPriorityFeePerGas.toString();
42
- const value = rawValue == null ? void 0 : rawValue.toString();
43
- return { ...transaction, gasLimit, gasPrice, maxFeePerGas, maxPriorityFeePerGas, value };
44
- });
45
- };
46
- // Annotate the CommonJS export names for ESM import in node:
47
- 0 && (module.exports = {
48
- getTransactionsForAddress
49
- });
50
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/lib/index.ts","../../../src/lib/getTransactionsForAddress.ts"],"sourcesContent":["export * from './getTransactionsForAddress'\n","import type { EtherscanProvider } from '@ethersproject/providers'\nimport { Transaction } from '@xyo-network/crypto-address-transaction-history-payload-plugin'\n\nexport const getTransactionsForAddress = async (\n /**\n * The address of the wallet to search for NFTs\n */\n publicAddress: string,\n /**\n * The ethers provider to use to search\n */\n provider: EtherscanProvider,\n): Promise<Transaction[]> => {\n const history = await provider.getHistory(publicAddress)\n return history.map<Transaction>((transaction) => {\n const {\n gasLimit: rawGasLimit,\n gasPrice: rawGasPrice,\n maxFeePerGas: rawMaxFeePerGas,\n maxPriorityFeePerGas: rawMaxPriorityFeePerGas,\n value: rawValue,\n } = transaction\n const gasLimit = rawGasLimit?.toString()\n const gasPrice = rawGasPrice?.toString()\n const maxFeePerGas = rawMaxFeePerGas?.toString()\n const maxPriorityFeePerGas = rawMaxPriorityFeePerGas?.toString()\n const value = rawValue?.toString()\n return { ...transaction, gasLimit, gasPrice, maxFeePerGas, maxPriorityFeePerGas, value }\n })\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACGO,IAAM,4BAA4B,OAIvC,eAIA,aAC2B;AAC3B,QAAM,UAAU,MAAM,SAAS,WAAW,aAAa;AACvD,SAAO,QAAQ,IAAiB,CAAC,gBAAgB;AAC/C,UAAM;AAAA,MACJ,UAAU;AAAA,MACV,UAAU;AAAA,MACV,cAAc;AAAA,MACd,sBAAsB;AAAA,MACtB,OAAO;AAAA,IACT,IAAI;AACJ,UAAM,WAAW,2CAAa;AAC9B,UAAM,WAAW,2CAAa;AAC9B,UAAM,eAAe,mDAAiB;AACtC,UAAM,uBAAuB,mEAAyB;AACtD,UAAM,QAAQ,qCAAU;AACxB,WAAO,EAAE,GAAG,aAAa,UAAU,UAAU,cAAc,sBAAsB,MAAM;AAAA,EACzF,CAAC;AACH;","names":[]}
@@ -1,23 +0,0 @@
1
- // src/lib/getTransactionsForAddress.ts
2
- var getTransactionsForAddress = async (publicAddress, provider) => {
3
- const history = await provider.getHistory(publicAddress);
4
- return history.map((transaction) => {
5
- const {
6
- gasLimit: rawGasLimit,
7
- gasPrice: rawGasPrice,
8
- maxFeePerGas: rawMaxFeePerGas,
9
- maxPriorityFeePerGas: rawMaxPriorityFeePerGas,
10
- value: rawValue
11
- } = transaction;
12
- const gasLimit = rawGasLimit == null ? void 0 : rawGasLimit.toString();
13
- const gasPrice = rawGasPrice == null ? void 0 : rawGasPrice.toString();
14
- const maxFeePerGas = rawMaxFeePerGas == null ? void 0 : rawMaxFeePerGas.toString();
15
- const maxPriorityFeePerGas = rawMaxPriorityFeePerGas == null ? void 0 : rawMaxPriorityFeePerGas.toString();
16
- const value = rawValue == null ? void 0 : rawValue.toString();
17
- return { ...transaction, gasLimit, gasPrice, maxFeePerGas, maxPriorityFeePerGas, value };
18
- });
19
- };
20
- export {
21
- getTransactionsForAddress
22
- };
23
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/lib/getTransactionsForAddress.ts"],"sourcesContent":["import type { EtherscanProvider } from '@ethersproject/providers'\nimport { Transaction } from '@xyo-network/crypto-address-transaction-history-payload-plugin'\n\nexport const getTransactionsForAddress = async (\n /**\n * The address of the wallet to search for NFTs\n */\n publicAddress: string,\n /**\n * The ethers provider to use to search\n */\n provider: EtherscanProvider,\n): Promise<Transaction[]> => {\n const history = await provider.getHistory(publicAddress)\n return history.map<Transaction>((transaction) => {\n const {\n gasLimit: rawGasLimit,\n gasPrice: rawGasPrice,\n maxFeePerGas: rawMaxFeePerGas,\n maxPriorityFeePerGas: rawMaxPriorityFeePerGas,\n value: rawValue,\n } = transaction\n const gasLimit = rawGasLimit?.toString()\n const gasPrice = rawGasPrice?.toString()\n const maxFeePerGas = rawMaxFeePerGas?.toString()\n const maxPriorityFeePerGas = rawMaxPriorityFeePerGas?.toString()\n const value = rawValue?.toString()\n return { ...transaction, gasLimit, gasPrice, maxFeePerGas, maxPriorityFeePerGas, value }\n })\n}\n"],"mappings":";AAGO,IAAM,4BAA4B,OAIvC,eAIA,aAC2B;AAC3B,QAAM,UAAU,MAAM,SAAS,WAAW,aAAa;AACvD,SAAO,QAAQ,IAAiB,CAAC,gBAAgB;AAC/C,UAAM;AAAA,MACJ,UAAU;AAAA,MACV,UAAU;AAAA,MACV,cAAc;AAAA,MACd,sBAAsB;AAAA,MACtB,OAAO;AAAA,IACT,IAAI;AACJ,UAAM,WAAW,2CAAa;AAC9B,UAAM,WAAW,2CAAa;AAC9B,UAAM,eAAe,mDAAiB;AACtC,UAAM,uBAAuB,mEAAyB;AACtD,UAAM,QAAQ,qCAAU;AACxB,WAAO,EAAE,GAAG,aAAa,UAAU,UAAU,cAAc,sBAAsB,MAAM;AAAA,EACzF,CAAC;AACH;","names":[]}