@xyo-network/crypto-address-transaction-history-plugin 2.73.4 → 2.74.1
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/Config.d.mts +7 -0
- package/dist/Config.d.mts.map +1 -0
- package/dist/Config.d.ts +7 -0
- package/dist/Config.d.ts.map +1 -0
- package/dist/Plugin.d.mts +57 -0
- package/dist/Plugin.d.mts.map +1 -0
- package/dist/Plugin.d.ts +57 -0
- package/dist/Plugin.d.ts.map +1 -0
- package/dist/Witness.d.mts +14 -0
- package/dist/Witness.d.mts.map +1 -0
- package/dist/Witness.d.ts +14 -0
- package/dist/Witness.d.ts.map +1 -0
- package/dist/docs.json +7529 -8186
- package/dist/index.d.mts +7 -86
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +7 -86
- package/dist/index.d.ts.map +1 -0
- package/dist/lib/getTransactionsForAddress.d.mts +4 -0
- package/dist/lib/getTransactionsForAddress.d.mts.map +1 -0
- package/dist/lib/getTransactionsForAddress.d.ts +4 -0
- package/dist/lib/getTransactionsForAddress.d.ts.map +1 -0
- package/dist/lib/index.d.mts +2 -0
- package/dist/lib/index.d.mts.map +1 -0
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/index.d.ts.map +1 -0
- package/package.json +11 -17
- package/tsup.config.ts +0 -16
package/dist/index.d.mts
CHANGED
|
@@ -1,86 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Payload } from '@xyo-network/payload-model';
|
|
9
|
-
import * as _xyo_network_account_model from '@xyo-network/account-model';
|
|
10
|
-
import * as _xyo_network_core from '@xyo-network/core';
|
|
11
|
-
import { WitnessConfig, WitnessParams, AbstractWitness } from '@xyo-network/witness';
|
|
12
|
-
import { AddressTransactionHistoryWitnessConfigSchema, Transaction } from '@xyo-network/crypto-address-transaction-history-payload-plugin';
|
|
13
|
-
|
|
14
|
-
type AddressTransactionHistoryWitnessConfig = WitnessConfig<{
|
|
15
|
-
address?: string;
|
|
16
|
-
schema: AddressTransactionHistoryWitnessConfigSchema;
|
|
17
|
-
}>;
|
|
18
|
-
|
|
19
|
-
type AddressTransactionHistoryWitnessParams = WitnessParams<AnyConfigSchema<AddressTransactionHistoryWitnessConfig>, {
|
|
20
|
-
provider?: EtherscanProvider;
|
|
21
|
-
}>;
|
|
22
|
-
declare class AddressTransactionHistoryWitness<TParams extends AddressTransactionHistoryWitnessParams = AddressTransactionHistoryWitnessParams> extends AbstractWitness<TParams> {
|
|
23
|
-
static configSchemas: "network.xyo.crypto.address.transaction.witness.config"[];
|
|
24
|
-
protected get provider(): EtherscanProvider;
|
|
25
|
-
protected observeHandler(): Promise<Payload[]>;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
declare const AddressTransactionHistoryPlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<AddressTransactionHistoryWitness<_xyo_network_core.BaseParamsFields & {
|
|
29
|
-
account?: _xyo_network_account_model.AccountInstance | "random" | undefined;
|
|
30
|
-
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
31
|
-
accountDerivationPath?: string | undefined;
|
|
32
|
-
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
33
|
-
readonly name?: string | undefined;
|
|
34
|
-
readonly paging?: Record<string, {
|
|
35
|
-
size?: number | undefined;
|
|
36
|
-
}> | undefined;
|
|
37
|
-
readonly schema: string;
|
|
38
|
-
readonly security?: {
|
|
39
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
40
|
-
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
41
|
-
readonly disallowed?: Record<string, string[]> | undefined;
|
|
42
|
-
} | undefined;
|
|
43
|
-
readonly sign?: boolean | undefined;
|
|
44
|
-
readonly storeQueries?: boolean | undefined;
|
|
45
|
-
readonly timestamp?: boolean | undefined;
|
|
46
|
-
} & Omit<Omit<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
47
|
-
accountDerivationPath?: string | undefined;
|
|
48
|
-
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
49
|
-
readonly name?: string | undefined;
|
|
50
|
-
readonly paging?: Record<string, {
|
|
51
|
-
size?: number | undefined;
|
|
52
|
-
}> | undefined;
|
|
53
|
-
readonly schema: "network.xyo.crypto.address.transaction.witness.config";
|
|
54
|
-
readonly security?: {
|
|
55
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
56
|
-
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
57
|
-
readonly disallowed?: Record<string, string[]> | undefined;
|
|
58
|
-
} | undefined;
|
|
59
|
-
readonly sign?: boolean | undefined;
|
|
60
|
-
readonly storeQueries?: boolean | undefined;
|
|
61
|
-
readonly timestamp?: boolean | undefined;
|
|
62
|
-
} & Omit<{
|
|
63
|
-
archivist?: string | undefined;
|
|
64
|
-
schema: "network.xyo.crypto.address.transaction.witness.config";
|
|
65
|
-
targetSet?: (_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & _xyo_network_payload_model.PayloadSet & {
|
|
66
|
-
schema: "network.xyo.payload.set";
|
|
67
|
-
}) | undefined;
|
|
68
|
-
} & {
|
|
69
|
-
address?: string | undefined;
|
|
70
|
-
schema: "network.xyo.crypto.address.transaction.witness.config";
|
|
71
|
-
}, "schema"> & {
|
|
72
|
-
schema: "network.xyo.crypto.address.transaction.witness.config";
|
|
73
|
-
}, "schema"> & {
|
|
74
|
-
schema: string;
|
|
75
|
-
}, "schema"> & {
|
|
76
|
-
schema: string;
|
|
77
|
-
};
|
|
78
|
-
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
79
|
-
wallet?: _xyo_network_wallet_model.WalletInstance | undefined;
|
|
80
|
-
} & {
|
|
81
|
-
provider?: _ethersproject_providers.EtherscanProvider | undefined;
|
|
82
|
-
}>>;
|
|
83
|
-
|
|
84
|
-
declare const getTransactionsForAddress: (publicAddress: string, provider: EtherscanProvider) => Promise<Transaction[]>;
|
|
85
|
-
|
|
86
|
-
export { AddressTransactionHistoryPlugin, AddressTransactionHistoryWitness, AddressTransactionHistoryWitnessConfig, AddressTransactionHistoryWitnessParams, AddressTransactionHistoryPlugin as default, getTransactionsForAddress };
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,86 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Payload } from '@xyo-network/payload-model';
|
|
9
|
-
import * as _xyo_network_account_model from '@xyo-network/account-model';
|
|
10
|
-
import * as _xyo_network_core from '@xyo-network/core';
|
|
11
|
-
import { WitnessConfig, WitnessParams, AbstractWitness } from '@xyo-network/witness';
|
|
12
|
-
import { AddressTransactionHistoryWitnessConfigSchema, Transaction } from '@xyo-network/crypto-address-transaction-history-payload-plugin';
|
|
13
|
-
|
|
14
|
-
type AddressTransactionHistoryWitnessConfig = WitnessConfig<{
|
|
15
|
-
address?: string;
|
|
16
|
-
schema: AddressTransactionHistoryWitnessConfigSchema;
|
|
17
|
-
}>;
|
|
18
|
-
|
|
19
|
-
type AddressTransactionHistoryWitnessParams = WitnessParams<AnyConfigSchema<AddressTransactionHistoryWitnessConfig>, {
|
|
20
|
-
provider?: EtherscanProvider;
|
|
21
|
-
}>;
|
|
22
|
-
declare class AddressTransactionHistoryWitness<TParams extends AddressTransactionHistoryWitnessParams = AddressTransactionHistoryWitnessParams> extends AbstractWitness<TParams> {
|
|
23
|
-
static configSchemas: "network.xyo.crypto.address.transaction.witness.config"[];
|
|
24
|
-
protected get provider(): EtherscanProvider;
|
|
25
|
-
protected observeHandler(): Promise<Payload[]>;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
declare const AddressTransactionHistoryPlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<AddressTransactionHistoryWitness<_xyo_network_core.BaseParamsFields & {
|
|
29
|
-
account?: _xyo_network_account_model.AccountInstance | "random" | undefined;
|
|
30
|
-
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
31
|
-
accountDerivationPath?: string | undefined;
|
|
32
|
-
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
33
|
-
readonly name?: string | undefined;
|
|
34
|
-
readonly paging?: Record<string, {
|
|
35
|
-
size?: number | undefined;
|
|
36
|
-
}> | undefined;
|
|
37
|
-
readonly schema: string;
|
|
38
|
-
readonly security?: {
|
|
39
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
40
|
-
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
41
|
-
readonly disallowed?: Record<string, string[]> | undefined;
|
|
42
|
-
} | undefined;
|
|
43
|
-
readonly sign?: boolean | undefined;
|
|
44
|
-
readonly storeQueries?: boolean | undefined;
|
|
45
|
-
readonly timestamp?: boolean | undefined;
|
|
46
|
-
} & Omit<Omit<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
47
|
-
accountDerivationPath?: string | undefined;
|
|
48
|
-
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
49
|
-
readonly name?: string | undefined;
|
|
50
|
-
readonly paging?: Record<string, {
|
|
51
|
-
size?: number | undefined;
|
|
52
|
-
}> | undefined;
|
|
53
|
-
readonly schema: "network.xyo.crypto.address.transaction.witness.config";
|
|
54
|
-
readonly security?: {
|
|
55
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
56
|
-
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
57
|
-
readonly disallowed?: Record<string, string[]> | undefined;
|
|
58
|
-
} | undefined;
|
|
59
|
-
readonly sign?: boolean | undefined;
|
|
60
|
-
readonly storeQueries?: boolean | undefined;
|
|
61
|
-
readonly timestamp?: boolean | undefined;
|
|
62
|
-
} & Omit<{
|
|
63
|
-
archivist?: string | undefined;
|
|
64
|
-
schema: "network.xyo.crypto.address.transaction.witness.config";
|
|
65
|
-
targetSet?: (_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & _xyo_network_payload_model.PayloadSet & {
|
|
66
|
-
schema: "network.xyo.payload.set";
|
|
67
|
-
}) | undefined;
|
|
68
|
-
} & {
|
|
69
|
-
address?: string | undefined;
|
|
70
|
-
schema: "network.xyo.crypto.address.transaction.witness.config";
|
|
71
|
-
}, "schema"> & {
|
|
72
|
-
schema: "network.xyo.crypto.address.transaction.witness.config";
|
|
73
|
-
}, "schema"> & {
|
|
74
|
-
schema: string;
|
|
75
|
-
}, "schema"> & {
|
|
76
|
-
schema: string;
|
|
77
|
-
};
|
|
78
|
-
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
79
|
-
wallet?: _xyo_network_wallet_model.WalletInstance | undefined;
|
|
80
|
-
} & {
|
|
81
|
-
provider?: _ethersproject_providers.EtherscanProvider | undefined;
|
|
82
|
-
}>>;
|
|
83
|
-
|
|
84
|
-
declare const getTransactionsForAddress: (publicAddress: string, provider: EtherscanProvider) => Promise<Transaction[]>;
|
|
85
|
-
|
|
86
|
-
export { AddressTransactionHistoryPlugin, AddressTransactionHistoryWitness, AddressTransactionHistoryWitnessConfig, AddressTransactionHistoryWitnessParams, AddressTransactionHistoryPlugin as default, getTransactionsForAddress };
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,4 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,4 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA"}
|
package/package.json
CHANGED
|
@@ -11,27 +11,21 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@ethersproject/providers": "^5.7.2",
|
|
14
|
-
"@xylabs/assert": "^2.
|
|
15
|
-
"@xyo-network/crypto-address-transaction-history-payload-plugin": "~2.
|
|
16
|
-
"@xyo-network/module-model": "~2.
|
|
17
|
-
"@xyo-network/payload-model": "~2.
|
|
18
|
-
"@xyo-network/payloadset-plugin": "~2.
|
|
19
|
-
"@xyo-network/witness": "~2.
|
|
14
|
+
"@xylabs/assert": "^2.11.6",
|
|
15
|
+
"@xyo-network/crypto-address-transaction-history-payload-plugin": "~2.74.1",
|
|
16
|
+
"@xyo-network/module-model": "~2.74.1",
|
|
17
|
+
"@xyo-network/payload-model": "~2.74.1",
|
|
18
|
+
"@xyo-network/payloadset-plugin": "~2.74.1",
|
|
19
|
+
"@xyo-network/witness": "~2.74.1"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@xylabs/jest-helpers": "^2.
|
|
23
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
24
|
-
"@xylabs/tsconfig": "^
|
|
22
|
+
"@xylabs/jest-helpers": "^2.11.6",
|
|
23
|
+
"@xylabs/ts-scripts-yarn3": "^3.0.28",
|
|
24
|
+
"@xylabs/tsconfig": "^3.0.28",
|
|
25
25
|
"ethers": "^5.7.2",
|
|
26
|
-
"jest": "^29.
|
|
27
|
-
"publint": "^0.2.2",
|
|
28
|
-
"tsup": "^7.2.0",
|
|
26
|
+
"jest": "^29.7.0",
|
|
29
27
|
"typescript": "^5.2.2"
|
|
30
28
|
},
|
|
31
|
-
"scripts": {
|
|
32
|
-
"package-compile": "tsup && publint",
|
|
33
|
-
"package-recompile": "tsup && publint"
|
|
34
|
-
},
|
|
35
29
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
36
30
|
"docs": "dist/docs.json",
|
|
37
31
|
"types": "dist/index.d.ts",
|
|
@@ -72,5 +66,5 @@
|
|
|
72
66
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
73
67
|
},
|
|
74
68
|
"sideEffects": false,
|
|
75
|
-
"version": "2.
|
|
69
|
+
"version": "2.74.1"
|
|
76
70
|
}
|
package/tsup.config.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
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
|
-
})
|