@xyo-network/crypto-address-transaction-history-plugin 2.75.15 → 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.
- package/dist/docs.json +33 -33
- package/package.json +12 -12
- package/dist/browser/Config.cjs +0 -19
- package/dist/browser/Config.cjs.map +0 -1
- package/dist/browser/Config.js +0 -1
- package/dist/browser/Config.js.map +0 -1
- package/dist/browser/Plugin.cjs +0 -83
- package/dist/browser/Plugin.cjs.map +0 -1
- package/dist/browser/Plugin.js +0 -65
- package/dist/browser/Plugin.js.map +0 -1
- package/dist/browser/Witness.cjs +0 -67
- package/dist/browser/Witness.cjs.map +0 -1
- package/dist/browser/Witness.js +0 -49
- package/dist/browser/Witness.js.map +0 -1
- package/dist/browser/lib/getTransactionsForAddress.cjs +0 -44
- package/dist/browser/lib/getTransactionsForAddress.cjs.map +0 -1
- package/dist/browser/lib/getTransactionsForAddress.js +0 -23
- package/dist/browser/lib/getTransactionsForAddress.js.map +0 -1
- package/dist/browser/lib/index.cjs +0 -46
- package/dist/browser/lib/index.cjs.map +0 -1
- package/dist/browser/lib/index.js +0 -23
- package/dist/browser/lib/index.js.map +0 -1
- package/dist/node/Config.js +0 -19
- package/dist/node/Config.js.map +0 -1
- package/dist/node/Config.mjs +0 -1
- package/dist/node/Config.mjs.map +0 -1
- package/dist/node/Plugin.js +0 -87
- package/dist/node/Plugin.js.map +0 -1
- package/dist/node/Plugin.mjs +0 -65
- package/dist/node/Plugin.mjs.map +0 -1
- package/dist/node/Witness.js +0 -71
- package/dist/node/Witness.js.map +0 -1
- package/dist/node/Witness.mjs +0 -49
- package/dist/node/Witness.mjs.map +0 -1
- package/dist/node/lib/getTransactionsForAddress.js +0 -48
- package/dist/node/lib/getTransactionsForAddress.js.map +0 -1
- package/dist/node/lib/getTransactionsForAddress.mjs +0 -23
- package/dist/node/lib/getTransactionsForAddress.mjs.map +0 -1
- package/dist/node/lib/index.js +0 -50
- package/dist/node/lib/index.js.map +0 -1
- package/dist/node/lib/index.mjs +0 -23
- 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":[]}
|
package/dist/node/lib/index.js
DELETED
|
@@ -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":[]}
|
package/dist/node/lib/index.mjs
DELETED
|
@@ -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":[]}
|