@xyo-network/crypto-address-transaction-history-plugin 2.73.2 → 2.73.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 (45) hide show
  1. package/dist/docs.json +41 -41
  2. package/dist/index.d.mts +86 -0
  3. package/dist/index.d.ts +86 -0
  4. package/dist/index.js +97 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.mjs +71 -0
  7. package/dist/index.mjs.map +1 -0
  8. package/package.json +35 -22
  9. package/tsup.config.ts +16 -0
  10. package/dist/cjs/Config.js +0 -3
  11. package/dist/cjs/Config.js.map +0 -1
  12. package/dist/cjs/Plugin.js +0 -16
  13. package/dist/cjs/Plugin.js.map +0 -1
  14. package/dist/cjs/Witness.js +0 -28
  15. package/dist/cjs/Witness.js.map +0 -1
  16. package/dist/cjs/index.js +0 -12
  17. package/dist/cjs/index.js.map +0 -1
  18. package/dist/cjs/lib/getTransactionsForAddress.js +0 -26
  19. package/dist/cjs/lib/getTransactionsForAddress.js.map +0 -1
  20. package/dist/cjs/lib/index.js +0 -5
  21. package/dist/cjs/lib/index.js.map +0 -1
  22. package/dist/esm/Config.js +0 -2
  23. package/dist/esm/Config.js.map +0 -1
  24. package/dist/esm/Plugin.js +0 -11
  25. package/dist/esm/Plugin.js.map +0 -1
  26. package/dist/esm/Witness.js +0 -21
  27. package/dist/esm/Witness.js.map +0 -1
  28. package/dist/esm/index.js +0 -8
  29. package/dist/esm/index.js.map +0 -1
  30. package/dist/esm/lib/getTransactionsForAddress.js +0 -21
  31. package/dist/esm/lib/getTransactionsForAddress.js.map +0 -1
  32. package/dist/esm/lib/index.js +0 -2
  33. package/dist/esm/lib/index.js.map +0 -1
  34. package/dist/types/Config.d.ts +0 -7
  35. package/dist/types/Config.d.ts.map +0 -1
  36. package/dist/types/Plugin.d.ts +0 -57
  37. package/dist/types/Plugin.d.ts.map +0 -1
  38. package/dist/types/Witness.d.ts +0 -14
  39. package/dist/types/Witness.d.ts.map +0 -1
  40. package/dist/types/index.d.ts +0 -7
  41. package/dist/types/index.d.ts.map +0 -1
  42. package/dist/types/lib/getTransactionsForAddress.d.ts +0 -4
  43. package/dist/types/lib/getTransactionsForAddress.d.ts.map +0 -1
  44. package/dist/types/lib/index.d.ts +0 -2
  45. package/dist/types/lib/index.d.ts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts","../src/Plugin.ts","../src/Witness.ts","../src/lib/getTransactionsForAddress.ts"],"sourcesContent":["import { AddressTransactionHistoryPlugin } from './Plugin'\n\nexport * from './Config'\nexport * from './lib'\nexport * from './Witness'\n\nexport { AddressTransactionHistoryPlugin }\n\n// eslint-disable-next-line import/no-default-export\nexport default AddressTransactionHistoryPlugin\n","import { AddressTransactionHistorySchema } from '@xyo-network/crypto-address-transaction-history-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { AddressTransactionHistoryWitness } from './Witness'\n\nexport const AddressTransactionHistoryPlugin = () =>\n createPayloadSetWitnessPlugin<AddressTransactionHistoryWitness>(\n { required: { [AddressTransactionHistorySchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await AddressTransactionHistoryWitness.create(params)\n return result\n },\n },\n )\n","import type { EtherscanProvider } from '@ethersproject/providers'\nimport { assertEx } from '@xylabs/assert'\nimport {\n AddressTransactionHistoryPayload,\n AddressTransactionHistorySchema,\n AddressTransactionHistoryWitnessConfigSchema,\n} from '@xyo-network/crypto-address-transaction-history-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\nimport { AbstractWitness, WitnessParams } from '@xyo-network/witness'\n\nimport { AddressTransactionHistoryWitnessConfig } from './Config'\nimport { getTransactionsForAddress } from './lib'\n\nexport type AddressTransactionHistoryWitnessParams = WitnessParams<\n AnyConfigSchema<AddressTransactionHistoryWitnessConfig>,\n {\n provider?: EtherscanProvider\n }\n>\n\nconst schema = AddressTransactionHistorySchema\n\nexport class AddressTransactionHistoryWitness<\n TParams extends AddressTransactionHistoryWitnessParams = AddressTransactionHistoryWitnessParams,\n> extends AbstractWitness<TParams> {\n static override configSchemas = [AddressTransactionHistoryWitnessConfigSchema]\n\n protected get provider() {\n return assertEx(this.params.provider, 'Provider Required')\n }\n\n protected override async observeHandler(): Promise<Payload[]> {\n await this.started('throw')\n const address = assertEx(this.config.address, 'params.address is required')\n const transactions = await getTransactionsForAddress(address, this.provider)\n const payloads = transactions.map<AddressTransactionHistoryPayload>((transaction) => {\n return { ...transaction, schema }\n })\n return payloads\n }\n}\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;AAAA;AAAA;AAAA;;;ACAA,IAAAA,4DAAgD;AAChD,2BAAiC;AACjC,+BAA8C;;;ACD9C,oBAAyB;AACzB,+DAIO;AAGP,qBAA+C;;;ACNxC,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,aAAa,SAAS;AACvC,UAAM,WAAW,aAAa,SAAS;AACvC,UAAM,eAAe,iBAAiB,SAAS;AAC/C,UAAM,uBAAuB,yBAAyB,SAAS;AAC/D,UAAM,QAAQ,UAAU,SAAS;AACjC,WAAO,EAAE,GAAG,aAAa,UAAU,UAAU,cAAc,sBAAsB,MAAM;AAAA,EACzF,CAAC;AACH;;;ADRA,IAAM,SAAS;AAER,IAAM,mCAAN,cAEG,+BAAyB;AAAA,EACjC,OAAgB,gBAAgB,CAAC,qGAA4C;AAAA,EAE7E,IAAc,WAAW;AACvB,eAAO,wBAAS,KAAK,OAAO,UAAU,mBAAmB;AAAA,EAC3D;AAAA,EAEA,MAAyB,iBAAqC;AAC5D,UAAM,KAAK,QAAQ,OAAO;AAC1B,UAAM,cAAU,wBAAS,KAAK,OAAO,SAAS,4BAA4B;AAC1E,UAAM,eAAe,MAAM,0BAA0B,SAAS,KAAK,QAAQ;AAC3E,UAAM,WAAW,aAAa,IAAsC,CAAC,gBAAgB;AACnF,aAAO,EAAE,GAAG,aAAa,OAAO;AAAA,IAClC,CAAC;AACD,WAAO;AAAA,EACT;AACF;;;ADnCO,IAAM,kCAAkC,UAC7C;AAAA,EACE,EAAE,UAAU,EAAE,CAAC,yFAA+B,GAAG,EAAE,GAAG,QAAQ,sCAAiB;AAAA,EAC/E;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,YAAM,SAAS,MAAM,iCAAiC,OAAO,MAAM;AACnE,aAAO;AAAA,IACT;AAAA,EACF;AACF;;;ADNF,IAAO,cAAQ;","names":["import_crypto_address_transaction_history_payload_plugin"]}
package/dist/index.mjs ADDED
@@ -0,0 +1,71 @@
1
+ // src/Plugin.ts
2
+ import { AddressTransactionHistorySchema as AddressTransactionHistorySchema2 } from "@xyo-network/crypto-address-transaction-history-payload-plugin";
3
+ import { PayloadSetSchema } from "@xyo-network/payload-model";
4
+ import { createPayloadSetWitnessPlugin } from "@xyo-network/payloadset-plugin";
5
+
6
+ // src/Witness.ts
7
+ import { assertEx } from "@xylabs/assert";
8
+ import {
9
+ AddressTransactionHistorySchema,
10
+ AddressTransactionHistoryWitnessConfigSchema
11
+ } from "@xyo-network/crypto-address-transaction-history-payload-plugin";
12
+ import { AbstractWitness } from "@xyo-network/witness";
13
+
14
+ // src/lib/getTransactionsForAddress.ts
15
+ var getTransactionsForAddress = async (publicAddress, provider) => {
16
+ const history = await provider.getHistory(publicAddress);
17
+ return history.map((transaction) => {
18
+ const {
19
+ gasLimit: rawGasLimit,
20
+ gasPrice: rawGasPrice,
21
+ maxFeePerGas: rawMaxFeePerGas,
22
+ maxPriorityFeePerGas: rawMaxPriorityFeePerGas,
23
+ value: rawValue
24
+ } = transaction;
25
+ const gasLimit = rawGasLimit?.toString();
26
+ const gasPrice = rawGasPrice?.toString();
27
+ const maxFeePerGas = rawMaxFeePerGas?.toString();
28
+ const maxPriorityFeePerGas = rawMaxPriorityFeePerGas?.toString();
29
+ const value = rawValue?.toString();
30
+ return { ...transaction, gasLimit, gasPrice, maxFeePerGas, maxPriorityFeePerGas, value };
31
+ });
32
+ };
33
+
34
+ // src/Witness.ts
35
+ var schema = AddressTransactionHistorySchema;
36
+ var AddressTransactionHistoryWitness = class extends AbstractWitness {
37
+ static configSchemas = [AddressTransactionHistoryWitnessConfigSchema];
38
+ get provider() {
39
+ return assertEx(this.params.provider, "Provider Required");
40
+ }
41
+ async observeHandler() {
42
+ await this.started("throw");
43
+ const address = assertEx(this.config.address, "params.address is required");
44
+ const transactions = await getTransactionsForAddress(address, this.provider);
45
+ const payloads = transactions.map((transaction) => {
46
+ return { ...transaction, schema };
47
+ });
48
+ return payloads;
49
+ }
50
+ };
51
+
52
+ // src/Plugin.ts
53
+ var AddressTransactionHistoryPlugin = () => createPayloadSetWitnessPlugin(
54
+ { required: { [AddressTransactionHistorySchema2]: 1 }, schema: PayloadSetSchema },
55
+ {
56
+ witness: async (params) => {
57
+ const result = await AddressTransactionHistoryWitness.create(params);
58
+ return result;
59
+ }
60
+ }
61
+ );
62
+
63
+ // src/index.ts
64
+ var src_default = AddressTransactionHistoryPlugin;
65
+ export {
66
+ AddressTransactionHistoryPlugin,
67
+ AddressTransactionHistoryWitness,
68
+ src_default as default,
69
+ getTransactionsForAddress
70
+ };
71
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/Plugin.ts","../src/Witness.ts","../src/lib/getTransactionsForAddress.ts","../src/index.ts"],"sourcesContent":["import { AddressTransactionHistorySchema } from '@xyo-network/crypto-address-transaction-history-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { AddressTransactionHistoryWitness } from './Witness'\n\nexport const AddressTransactionHistoryPlugin = () =>\n createPayloadSetWitnessPlugin<AddressTransactionHistoryWitness>(\n { required: { [AddressTransactionHistorySchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await AddressTransactionHistoryWitness.create(params)\n return result\n },\n },\n )\n","import type { EtherscanProvider } from '@ethersproject/providers'\nimport { assertEx } from '@xylabs/assert'\nimport {\n AddressTransactionHistoryPayload,\n AddressTransactionHistorySchema,\n AddressTransactionHistoryWitnessConfigSchema,\n} from '@xyo-network/crypto-address-transaction-history-payload-plugin'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\nimport { AbstractWitness, WitnessParams } from '@xyo-network/witness'\n\nimport { AddressTransactionHistoryWitnessConfig } from './Config'\nimport { getTransactionsForAddress } from './lib'\n\nexport type AddressTransactionHistoryWitnessParams = WitnessParams<\n AnyConfigSchema<AddressTransactionHistoryWitnessConfig>,\n {\n provider?: EtherscanProvider\n }\n>\n\nconst schema = AddressTransactionHistorySchema\n\nexport class AddressTransactionHistoryWitness<\n TParams extends AddressTransactionHistoryWitnessParams = AddressTransactionHistoryWitnessParams,\n> extends AbstractWitness<TParams> {\n static override configSchemas = [AddressTransactionHistoryWitnessConfigSchema]\n\n protected get provider() {\n return assertEx(this.params.provider, 'Provider Required')\n }\n\n protected override async observeHandler(): Promise<Payload[]> {\n await this.started('throw')\n const address = assertEx(this.config.address, 'params.address is required')\n const transactions = await getTransactionsForAddress(address, this.provider)\n const payloads = transactions.map<AddressTransactionHistoryPayload>((transaction) => {\n return { ...transaction, schema }\n })\n return payloads\n }\n}\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","import { AddressTransactionHistoryPlugin } from './Plugin'\n\nexport * from './Config'\nexport * from './lib'\nexport * from './Witness'\n\nexport { AddressTransactionHistoryPlugin }\n\n// eslint-disable-next-line import/no-default-export\nexport default AddressTransactionHistoryPlugin\n"],"mappings":";AAAA,SAAS,mCAAAA,wCAAuC;AAChD,SAAS,wBAAwB;AACjC,SAAS,qCAAqC;;;ACD9C,SAAS,gBAAgB;AACzB;AAAA,EAEE;AAAA,EACA;AAAA,OACK;AAGP,SAAS,uBAAsC;;;ACNxC,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,aAAa,SAAS;AACvC,UAAM,WAAW,aAAa,SAAS;AACvC,UAAM,eAAe,iBAAiB,SAAS;AAC/C,UAAM,uBAAuB,yBAAyB,SAAS;AAC/D,UAAM,QAAQ,UAAU,SAAS;AACjC,WAAO,EAAE,GAAG,aAAa,UAAU,UAAU,cAAc,sBAAsB,MAAM;AAAA,EACzF,CAAC;AACH;;;ADRA,IAAM,SAAS;AAER,IAAM,mCAAN,cAEG,gBAAyB;AAAA,EACjC,OAAgB,gBAAgB,CAAC,4CAA4C;AAAA,EAE7E,IAAc,WAAW;AACvB,WAAO,SAAS,KAAK,OAAO,UAAU,mBAAmB;AAAA,EAC3D;AAAA,EAEA,MAAyB,iBAAqC;AAC5D,UAAM,KAAK,QAAQ,OAAO;AAC1B,UAAM,UAAU,SAAS,KAAK,OAAO,SAAS,4BAA4B;AAC1E,UAAM,eAAe,MAAM,0BAA0B,SAAS,KAAK,QAAQ;AAC3E,UAAM,WAAW,aAAa,IAAsC,CAAC,gBAAgB;AACnF,aAAO,EAAE,GAAG,aAAa,OAAO;AAAA,IAClC,CAAC;AACD,WAAO;AAAA,EACT;AACF;;;ADnCO,IAAM,kCAAkC,MAC7C;AAAA,EACE,EAAE,UAAU,EAAE,CAACC,gCAA+B,GAAG,EAAE,GAAG,QAAQ,iBAAiB;AAAA,EAC/E;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,YAAM,SAAS,MAAM,iCAAiC,OAAO,MAAM;AACnE,aAAO;AAAA,IACT;AAAA,EACF;AACF;;;AGNF,IAAO,cAAQ;","names":["AddressTransactionHistorySchema","AddressTransactionHistorySchema"]}
package/package.json CHANGED
@@ -11,43 +11,57 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@ethersproject/providers": "^5.7.2",
14
- "@xylabs/assert": "^2.10.7",
15
- "@xyo-network/crypto-address-transaction-history-payload-plugin": "~2.73.2",
16
- "@xyo-network/module-model": "~2.73.2",
17
- "@xyo-network/payload-model": "~2.73.2",
18
- "@xyo-network/payloadset-plugin": "~2.73.2",
19
- "@xyo-network/witness": "~2.73.2"
14
+ "@xylabs/assert": "^2.10.16",
15
+ "@xyo-network/crypto-address-transaction-history-payload-plugin": "~2.73.4",
16
+ "@xyo-network/module-model": "~2.73.4",
17
+ "@xyo-network/payload-model": "~2.73.4",
18
+ "@xyo-network/payloadset-plugin": "~2.73.4",
19
+ "@xyo-network/witness": "~2.73.4"
20
20
  },
21
21
  "devDependencies": {
22
- "@xylabs/jest-helpers": "^2.10.7",
23
- "@xylabs/ts-scripts-yarn3": "^2.19.5",
24
- "@xylabs/tsconfig": "^2.19.5",
22
+ "@xylabs/jest-helpers": "^2.10.16",
23
+ "@xylabs/ts-scripts-yarn3": "^2.19.12",
24
+ "@xylabs/tsconfig": "^2.19.12",
25
25
  "ethers": "^5.7.2",
26
26
  "jest": "^29.6.4",
27
+ "publint": "^0.2.2",
28
+ "tsup": "^7.2.0",
27
29
  "typescript": "^5.2.2"
28
30
  },
31
+ "scripts": {
32
+ "package-compile": "tsup && publint",
33
+ "package-recompile": "tsup && publint"
34
+ },
29
35
  "description": "Primary SDK for using XYO Protocol 2.0",
30
- "browser": "dist/esm/index.js",
31
36
  "docs": "dist/docs.json",
37
+ "types": "dist/index.d.ts",
32
38
  "exports": {
33
39
  ".": {
34
- "node": {
35
- "import": "./dist/esm/index.js",
36
- "require": "./dist/cjs/index.js"
37
- },
38
- "browser": {
39
- "import": "./dist/esm/index.js",
40
- "require": "./dist/cjs/index.js"
40
+ "require": {
41
+ "types": "./dist/index.d.ts",
42
+ "default": "./dist/index.js"
41
43
  },
42
- "default": "./dist/esm/index.js"
44
+ "import": {
45
+ "types": "./dist/index.d.mts",
46
+ "default": "./dist/index.mjs"
47
+ }
43
48
  },
44
49
  "./dist/docs.json": {
45
50
  "default": "./dist/docs.json"
46
51
  },
52
+ "./cjs": {
53
+ "default": "./dist/index.js"
54
+ },
55
+ "./docs": {
56
+ "default": "./dist/docs.json"
57
+ },
58
+ "./esm": {
59
+ "default": "./dist/index.mjs"
60
+ },
47
61
  "./package.json": "./package.json"
48
62
  },
49
- "main": "dist/cjs/index.js",
50
- "module": "dist/esm/index.js",
63
+ "main": "dist/index.js",
64
+ "module": "dist/index.mjs",
51
65
  "homepage": "https://xyo.network",
52
66
  "license": "LGPL-3.0",
53
67
  "publishConfig": {
@@ -58,6 +72,5 @@
58
72
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
59
73
  },
60
74
  "sideEffects": false,
61
- "types": "dist/types/index.d.ts",
62
- "version": "2.73.2"
75
+ "version": "2.73.4"
63
76
  }
package/tsup.config.ts ADDED
@@ -0,0 +1,16 @@
1
+ import { defineConfig } from 'tsup'
2
+
3
+ // eslint-disable-next-line import/no-default-export
4
+ export default defineConfig({
5
+ bundle: true,
6
+ cjsInterop: true,
7
+ clean: false,
8
+ dts: {
9
+ entry: ['src/index.ts'],
10
+ },
11
+ entry: ['src/index.ts'],
12
+ format: ['cjs', 'esm'],
13
+ sourcemap: true,
14
+ splitting: false,
15
+ tsconfig: 'tsconfig.json',
16
+ })
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=Config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Config.js","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":""}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AddressTransactionHistoryPlugin = void 0;
4
- const tslib_1 = require("tslib");
5
- const crypto_address_transaction_history_payload_plugin_1 = require("@xyo-network/crypto-address-transaction-history-payload-plugin");
6
- const payload_model_1 = require("@xyo-network/payload-model");
7
- const payloadset_plugin_1 = require("@xyo-network/payloadset-plugin");
8
- const Witness_1 = require("./Witness");
9
- const AddressTransactionHistoryPlugin = () => (0, payloadset_plugin_1.createPayloadSetWitnessPlugin)({ required: { [crypto_address_transaction_history_payload_plugin_1.AddressTransactionHistorySchema]: 1 }, schema: payload_model_1.PayloadSetSchema }, {
10
- witness: (params) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
11
- const result = yield Witness_1.AddressTransactionHistoryWitness.create(params);
12
- return result;
13
- }),
14
- });
15
- exports.AddressTransactionHistoryPlugin = AddressTransactionHistoryPlugin;
16
- //# sourceMappingURL=Plugin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Plugin.js","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":";;;;AAAA,sIAAgH;AAChH,8DAA6D;AAC7D,sEAA8E;AAE9E,uCAA4D;AAErD,MAAM,+BAA+B,GAAG,GAAG,EAAE,CAClD,IAAA,iDAA6B,EAC3B,EAAE,QAAQ,EAAE,EAAE,CAAC,mFAA+B,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,gCAAgB,EAAE,EAChF;IACE,OAAO,EAAE,CAAO,MAAM,EAAE,EAAE;QACxB,MAAM,MAAM,GAAG,MAAM,0CAAgC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;QACpE,OAAO,MAAM,CAAA;IACf,CAAC,CAAA;CACF,CACF,CAAA;AATU,QAAA,+BAA+B,mCASzC"}
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AddressTransactionHistoryWitness = void 0;
4
- const tslib_1 = require("tslib");
5
- const assert_1 = require("@xylabs/assert");
6
- const crypto_address_transaction_history_payload_plugin_1 = require("@xyo-network/crypto-address-transaction-history-payload-plugin");
7
- const witness_1 = require("@xyo-network/witness");
8
- const lib_1 = require("./lib");
9
- const schema = crypto_address_transaction_history_payload_plugin_1.AddressTransactionHistorySchema;
10
- class AddressTransactionHistoryWitness extends witness_1.AbstractWitness {
11
- get provider() {
12
- return (0, assert_1.assertEx)(this.params.provider, 'Provider Required');
13
- }
14
- observeHandler() {
15
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
16
- yield this.started('throw');
17
- const address = (0, assert_1.assertEx)(this.config.address, 'params.address is required');
18
- const transactions = yield (0, lib_1.getTransactionsForAddress)(address, this.provider);
19
- const payloads = transactions.map((transaction) => {
20
- return Object.assign(Object.assign({}, transaction), { schema });
21
- });
22
- return payloads;
23
- });
24
- }
25
- }
26
- exports.AddressTransactionHistoryWitness = AddressTransactionHistoryWitness;
27
- AddressTransactionHistoryWitness.configSchemas = [crypto_address_transaction_history_payload_plugin_1.AddressTransactionHistoryWitnessConfigSchema];
28
- //# sourceMappingURL=Witness.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Witness.js","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":";;;;AACA,2CAAyC;AACzC,sIAIuE;AAGvE,kDAAqE;AAGrE,+BAAiD;AASjD,MAAM,MAAM,GAAG,mFAA+B,CAAA;AAE9C,MAAa,gCAEX,SAAQ,yBAAwB;IAGhC,IAAc,QAAQ;QACpB,OAAO,IAAA,iBAAQ,EAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,mBAAmB,CAAC,CAAA;IAC5D,CAAC;IAEwB,cAAc;;YACrC,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;YAC3B,MAAM,OAAO,GAAG,IAAA,iBAAQ,EAAC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,4BAA4B,CAAC,CAAA;YAC3E,MAAM,YAAY,GAAG,MAAM,IAAA,+BAAyB,EAAC,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;YAC5E,MAAM,QAAQ,GAAG,YAAY,CAAC,GAAG,CAAmC,CAAC,WAAW,EAAE,EAAE;gBAClF,uCAAY,WAAW,KAAE,MAAM,IAAE;YACnC,CAAC,CAAC,CAAA;YACF,OAAO,QAAQ,CAAA;QACjB,CAAC;KAAA;;AAjBH,4EAkBC;AAfiB,8CAAa,GAAG,CAAC,gGAA4C,CAAC,CAAA"}
package/dist/cjs/index.js DELETED
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AddressTransactionHistoryPlugin = void 0;
4
- const tslib_1 = require("tslib");
5
- const Plugin_1 = require("./Plugin");
6
- Object.defineProperty(exports, "AddressTransactionHistoryPlugin", { enumerable: true, get: function () { return Plugin_1.AddressTransactionHistoryPlugin; } });
7
- tslib_1.__exportStar(require("./Config"), exports);
8
- tslib_1.__exportStar(require("./lib"), exports);
9
- tslib_1.__exportStar(require("./Witness"), exports);
10
- // eslint-disable-next-line import/no-default-export
11
- exports.default = Plugin_1.AddressTransactionHistoryPlugin;
12
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,qCAA0D;AAMjD,gHANA,wCAA+B,OAMA;AAJxC,mDAAwB;AACxB,gDAAqB;AACrB,oDAAyB;AAIzB,oDAAoD;AACpD,kBAAe,wCAA+B,CAAA"}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getTransactionsForAddress = void 0;
4
- const tslib_1 = require("tslib");
5
- const getTransactionsForAddress = (
6
- /**
7
- * The address of the wallet to search for NFTs
8
- */
9
- publicAddress,
10
- /**
11
- * The ethers provider to use to search
12
- */
13
- provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
14
- const history = yield provider.getHistory(publicAddress);
15
- return history.map((transaction) => {
16
- const { gasLimit: rawGasLimit, gasPrice: rawGasPrice, maxFeePerGas: rawMaxFeePerGas, maxPriorityFeePerGas: rawMaxPriorityFeePerGas, value: rawValue, } = transaction;
17
- const gasLimit = rawGasLimit === null || rawGasLimit === void 0 ? void 0 : rawGasLimit.toString();
18
- const gasPrice = rawGasPrice === null || rawGasPrice === void 0 ? void 0 : rawGasPrice.toString();
19
- const maxFeePerGas = rawMaxFeePerGas === null || rawMaxFeePerGas === void 0 ? void 0 : rawMaxFeePerGas.toString();
20
- const maxPriorityFeePerGas = rawMaxPriorityFeePerGas === null || rawMaxPriorityFeePerGas === void 0 ? void 0 : rawMaxPriorityFeePerGas.toString();
21
- const value = rawValue === null || rawValue === void 0 ? void 0 : rawValue.toString();
22
- return Object.assign(Object.assign({}, transaction), { gasLimit, gasPrice, maxFeePerGas, maxPriorityFeePerGas, value });
23
- });
24
- });
25
- exports.getTransactionsForAddress = getTransactionsForAddress;
26
- //# sourceMappingURL=getTransactionsForAddress.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getTransactionsForAddress.js","sourceRoot":"","sources":["../../../src/lib/getTransactionsForAddress.ts"],"names":[],"mappings":";;;;AAGO,MAAM,yBAAyB,GAAG;AACvC;;GAEG;AACH,aAAqB;AACrB;;GAEG;AACH,QAA2B,EACH,EAAE;IAC1B,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAA;IACxD,OAAO,OAAO,CAAC,GAAG,CAAc,CAAC,WAAW,EAAE,EAAE;QAC9C,MAAM,EACJ,QAAQ,EAAE,WAAW,EACrB,QAAQ,EAAE,WAAW,EACrB,YAAY,EAAE,eAAe,EAC7B,oBAAoB,EAAE,uBAAuB,EAC7C,KAAK,EAAE,QAAQ,GAChB,GAAG,WAAW,CAAA;QACf,MAAM,QAAQ,GAAG,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,QAAQ,EAAE,CAAA;QACxC,MAAM,QAAQ,GAAG,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,QAAQ,EAAE,CAAA;QACxC,MAAM,YAAY,GAAG,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,QAAQ,EAAE,CAAA;QAChD,MAAM,oBAAoB,GAAG,uBAAuB,aAAvB,uBAAuB,uBAAvB,uBAAuB,CAAE,QAAQ,EAAE,CAAA;QAChE,MAAM,KAAK,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,QAAQ,EAAE,CAAA;QAClC,uCAAY,WAAW,KAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,oBAAoB,EAAE,KAAK,IAAE;IAC1F,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA,CAAA;AA1BY,QAAA,yBAAyB,6BA0BrC"}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./getTransactionsForAddress"), exports);
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":";;;AAAA,sEAA2C"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Config.js","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":""}
@@ -1,11 +0,0 @@
1
- import { AddressTransactionHistorySchema } from '@xyo-network/crypto-address-transaction-history-payload-plugin';
2
- import { PayloadSetSchema } from '@xyo-network/payload-model';
3
- import { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin';
4
- import { AddressTransactionHistoryWitness } from './Witness';
5
- export const AddressTransactionHistoryPlugin = () => createPayloadSetWitnessPlugin({ required: { [AddressTransactionHistorySchema]: 1 }, schema: PayloadSetSchema }, {
6
- witness: async (params) => {
7
- const result = await AddressTransactionHistoryWitness.create(params);
8
- return result;
9
- },
10
- });
11
- //# sourceMappingURL=Plugin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Plugin.js","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,gEAAgE,CAAA;AAChH,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAA;AAE9E,OAAO,EAAE,gCAAgC,EAAE,MAAM,WAAW,CAAA;AAE5D,MAAM,CAAC,MAAM,+BAA+B,GAAG,GAAG,EAAE,CAClD,6BAA6B,CAC3B,EAAE,QAAQ,EAAE,EAAE,CAAC,+BAA+B,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAChF;IACE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;QACxB,MAAM,MAAM,GAAG,MAAM,gCAAgC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;QACpE,OAAO,MAAM,CAAA;IACf,CAAC;CACF,CACF,CAAA"}
@@ -1,21 +0,0 @@
1
- import { assertEx } from '@xylabs/assert';
2
- import { AddressTransactionHistorySchema, AddressTransactionHistoryWitnessConfigSchema, } from '@xyo-network/crypto-address-transaction-history-payload-plugin';
3
- import { AbstractWitness } from '@xyo-network/witness';
4
- import { getTransactionsForAddress } from './lib';
5
- const schema = AddressTransactionHistorySchema;
6
- export class AddressTransactionHistoryWitness extends AbstractWitness {
7
- static configSchemas = [AddressTransactionHistoryWitnessConfigSchema];
8
- get provider() {
9
- return assertEx(this.params.provider, 'Provider Required');
10
- }
11
- async observeHandler() {
12
- await this.started('throw');
13
- const address = assertEx(this.config.address, 'params.address is required');
14
- const transactions = await getTransactionsForAddress(address, this.provider);
15
- const payloads = transactions.map((transaction) => {
16
- return { ...transaction, schema };
17
- });
18
- return payloads;
19
- }
20
- }
21
- //# sourceMappingURL=Witness.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Witness.js","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAEL,+BAA+B,EAC/B,4CAA4C,GAC7C,MAAM,gEAAgE,CAAA;AAGvE,OAAO,EAAE,eAAe,EAAiB,MAAM,sBAAsB,CAAA;AAGrE,OAAO,EAAE,yBAAyB,EAAE,MAAM,OAAO,CAAA;AASjD,MAAM,MAAM,GAAG,+BAA+B,CAAA;AAE9C,MAAM,OAAO,gCAEX,SAAQ,eAAwB;IAChC,MAAM,CAAU,aAAa,GAAG,CAAC,4CAA4C,CAAC,CAAA;IAE9E,IAAc,QAAQ;QACpB,OAAO,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,mBAAmB,CAAC,CAAA;IAC5D,CAAC;IAEkB,KAAK,CAAC,cAAc;QACrC,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;QAC3B,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,4BAA4B,CAAC,CAAA;QAC3E,MAAM,YAAY,GAAG,MAAM,yBAAyB,CAAC,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;QAC5E,MAAM,QAAQ,GAAG,YAAY,CAAC,GAAG,CAAmC,CAAC,WAAW,EAAE,EAAE;YAClF,OAAO,EAAE,GAAG,WAAW,EAAE,MAAM,EAAE,CAAA;QACnC,CAAC,CAAC,CAAA;QACF,OAAO,QAAQ,CAAA;IACjB,CAAC"}
package/dist/esm/index.js DELETED
@@ -1,8 +0,0 @@
1
- import { AddressTransactionHistoryPlugin } from './Plugin';
2
- export * from './Config';
3
- export * from './lib';
4
- export * from './Witness';
5
- export { AddressTransactionHistoryPlugin };
6
- // eslint-disable-next-line import/no-default-export
7
- export default AddressTransactionHistoryPlugin;
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAA;AAE1D,cAAc,UAAU,CAAA;AACxB,cAAc,OAAO,CAAA;AACrB,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAE,+BAA+B,EAAE,CAAA;AAE1C,oDAAoD;AACpD,eAAe,+BAA+B,CAAA"}
@@ -1,21 +0,0 @@
1
- export const getTransactionsForAddress = async (
2
- /**
3
- * The address of the wallet to search for NFTs
4
- */
5
- publicAddress,
6
- /**
7
- * The ethers provider to use to search
8
- */
9
- provider) => {
10
- const history = await provider.getHistory(publicAddress);
11
- return history.map((transaction) => {
12
- const { gasLimit: rawGasLimit, gasPrice: rawGasPrice, maxFeePerGas: rawMaxFeePerGas, maxPriorityFeePerGas: rawMaxPriorityFeePerGas, value: rawValue, } = transaction;
13
- const gasLimit = rawGasLimit?.toString();
14
- const gasPrice = rawGasPrice?.toString();
15
- const maxFeePerGas = rawMaxFeePerGas?.toString();
16
- const maxPriorityFeePerGas = rawMaxPriorityFeePerGas?.toString();
17
- const value = rawValue?.toString();
18
- return { ...transaction, gasLimit, gasPrice, maxFeePerGas, maxPriorityFeePerGas, value };
19
- });
20
- };
21
- //# sourceMappingURL=getTransactionsForAddress.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getTransactionsForAddress.js","sourceRoot":"","sources":["../../../src/lib/getTransactionsForAddress.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,yBAAyB,GAAG,KAAK;AAC5C;;GAEG;AACH,aAAqB;AACrB;;GAEG;AACH,QAA2B,EACH,EAAE;IAC1B,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAA;IACxD,OAAO,OAAO,CAAC,GAAG,CAAc,CAAC,WAAW,EAAE,EAAE;QAC9C,MAAM,EACJ,QAAQ,EAAE,WAAW,EACrB,QAAQ,EAAE,WAAW,EACrB,YAAY,EAAE,eAAe,EAC7B,oBAAoB,EAAE,uBAAuB,EAC7C,KAAK,EAAE,QAAQ,GAChB,GAAG,WAAW,CAAA;QACf,MAAM,QAAQ,GAAG,WAAW,EAAE,QAAQ,EAAE,CAAA;QACxC,MAAM,QAAQ,GAAG,WAAW,EAAE,QAAQ,EAAE,CAAA;QACxC,MAAM,YAAY,GAAG,eAAe,EAAE,QAAQ,EAAE,CAAA;QAChD,MAAM,oBAAoB,GAAG,uBAAuB,EAAE,QAAQ,EAAE,CAAA;QAChE,MAAM,KAAK,GAAG,QAAQ,EAAE,QAAQ,EAAE,CAAA;QAClC,OAAO,EAAE,GAAG,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,oBAAoB,EAAE,KAAK,EAAE,CAAA;IAC1F,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './getTransactionsForAddress';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA"}
@@ -1,7 +0,0 @@
1
- import { AddressTransactionHistoryWitnessConfigSchema } from '@xyo-network/crypto-address-transaction-history-payload-plugin';
2
- import { WitnessConfig } from '@xyo-network/witness';
3
- export type AddressTransactionHistoryWitnessConfig = WitnessConfig<{
4
- address?: string;
5
- schema: AddressTransactionHistoryWitnessConfigSchema;
6
- }>;
7
- //# sourceMappingURL=Config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4CAA4C,EAAE,MAAM,gEAAgE,CAAA;AAC7H,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEpD,MAAM,MAAM,sCAAsC,GAAG,aAAa,CAAC;IACjE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,4CAA4C,CAAA;CACrD,CAAC,CAAA"}
@@ -1,57 +0,0 @@
1
- import { AddressTransactionHistoryWitness } from './Witness';
2
- export declare const AddressTransactionHistoryPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<AddressTransactionHistoryWitness<import("@xyo-network/core").BaseParamsFields & {
3
- account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
4
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
5
- accountDerivationPath?: string | undefined;
6
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
7
- readonly name?: string | undefined;
8
- readonly paging?: Record<string, {
9
- size?: number | undefined;
10
- }> | undefined;
11
- readonly schema: string;
12
- readonly security?: {
13
- readonly allowAnonymous?: boolean | undefined;
14
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
15
- readonly disallowed?: Record<string, string[]> | undefined;
16
- } | undefined;
17
- readonly sign?: boolean | undefined;
18
- readonly storeQueries?: boolean | undefined;
19
- readonly timestamp?: boolean | undefined;
20
- } & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
21
- accountDerivationPath?: string | undefined;
22
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
23
- readonly name?: string | undefined;
24
- readonly paging?: Record<string, {
25
- size?: number | undefined;
26
- }> | undefined;
27
- readonly schema: "network.xyo.crypto.address.transaction.witness.config";
28
- readonly security?: {
29
- readonly allowAnonymous?: boolean | undefined;
30
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
31
- readonly disallowed?: Record<string, string[]> | undefined;
32
- } | undefined;
33
- readonly sign?: boolean | undefined;
34
- readonly storeQueries?: boolean | undefined;
35
- readonly timestamp?: boolean | undefined;
36
- } & Omit<{
37
- archivist?: string | undefined;
38
- schema: "network.xyo.crypto.address.transaction.witness.config";
39
- targetSet?: (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/payload-model").PayloadSet & {
40
- schema: "network.xyo.payload.set";
41
- }) | undefined;
42
- } & {
43
- address?: string | undefined;
44
- schema: "network.xyo.crypto.address.transaction.witness.config";
45
- }, "schema"> & {
46
- schema: "network.xyo.crypto.address.transaction.witness.config";
47
- }, "schema"> & {
48
- schema: string;
49
- }, "schema"> & {
50
- schema: string;
51
- };
52
- ephemeralQueryAccountEnabled?: boolean | undefined;
53
- wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
54
- } & {
55
- provider?: import("@ethersproject/providers").EtherscanProvider | undefined;
56
- }>>;
57
- //# sourceMappingURL=Plugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gCAAgC,EAAE,MAAM,WAAW,CAAA;AAE5D,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GASzC,CAAA"}
@@ -1,14 +0,0 @@
1
- import type { EtherscanProvider } from '@ethersproject/providers';
2
- import { AnyConfigSchema } from '@xyo-network/module-model';
3
- import { Payload } from '@xyo-network/payload-model';
4
- import { AbstractWitness, WitnessParams } from '@xyo-network/witness';
5
- import { AddressTransactionHistoryWitnessConfig } from './Config';
6
- export type AddressTransactionHistoryWitnessParams = WitnessParams<AnyConfigSchema<AddressTransactionHistoryWitnessConfig>, {
7
- provider?: EtherscanProvider;
8
- }>;
9
- export declare class AddressTransactionHistoryWitness<TParams extends AddressTransactionHistoryWitnessParams = AddressTransactionHistoryWitnessParams> extends AbstractWitness<TParams> {
10
- static configSchemas: "network.xyo.crypto.address.transaction.witness.config"[];
11
- protected get provider(): EtherscanProvider;
12
- protected observeHandler(): Promise<Payload[]>;
13
- }
14
- //# sourceMappingURL=Witness.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAOjE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAErE,OAAO,EAAE,sCAAsC,EAAE,MAAM,UAAU,CAAA;AAGjE,MAAM,MAAM,sCAAsC,GAAG,aAAa,CAChE,eAAe,CAAC,sCAAsC,CAAC,EACvD;IACE,QAAQ,CAAC,EAAE,iBAAiB,CAAA;CAC7B,CACF,CAAA;AAID,qBAAa,gCAAgC,CAC3C,OAAO,SAAS,sCAAsC,GAAG,sCAAsC,CAC/F,SAAQ,eAAe,CAAC,OAAO,CAAC;IAChC,OAAgB,aAAa,4DAAiD;IAE9E,SAAS,KAAK,QAAQ,sBAErB;cAEwB,cAAc,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;CAS9D"}
@@ -1,7 +0,0 @@
1
- import { AddressTransactionHistoryPlugin } from './Plugin';
2
- export * from './Config';
3
- export * from './lib';
4
- export * from './Witness';
5
- export { AddressTransactionHistoryPlugin };
6
- export default AddressTransactionHistoryPlugin;
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAA;AAE1D,cAAc,UAAU,CAAA;AACxB,cAAc,OAAO,CAAA;AACrB,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAE,+BAA+B,EAAE,CAAA;AAG1C,eAAe,+BAA+B,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { EtherscanProvider } from '@ethersproject/providers';
2
- import { Transaction } from '@xyo-network/crypto-address-transaction-history-payload-plugin';
3
- export declare const getTransactionsForAddress: (publicAddress: string, provider: EtherscanProvider) => Promise<Transaction[]>;
4
- //# sourceMappingURL=getTransactionsForAddress.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getTransactionsForAddress.d.ts","sourceRoot":"","sources":["../../../src/lib/getTransactionsForAddress.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,gEAAgE,CAAA;AAE5F,eAAO,MAAM,yBAAyB,kBAIrB,MAAM,YAIX,iBAAiB,KAC1B,QAAQ,WAAW,EAAE,CAiBvB,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './getTransactionsForAddress';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA"}