@0xtorch/evm 0.0.31 → 0.0.33
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/_cjs/decoder/decode.js +1 -0
- package/_cjs/decoder/decode.js.map +1 -1
- package/_cjs/index.js +1 -7
- package/_cjs/index.js.map +1 -1
- package/_esm/decoder/decode.js +1 -0
- package/_esm/decoder/decode.js.map +1 -1
- package/_esm/index.js +0 -2
- package/_esm/index.js.map +1 -1
- package/_types/chains/definitions/arbitrumOne.d.ts +1 -0
- package/_types/chains/definitions/arbitrumOne.d.ts.map +1 -1
- package/_types/chains/definitions/astar.d.ts +1 -0
- package/_types/chains/definitions/astar.d.ts.map +1 -1
- package/_types/chains/definitions/avalancheC.d.ts +1 -0
- package/_types/chains/definitions/avalancheC.d.ts.map +1 -1
- package/_types/chains/definitions/base.d.ts +1 -0
- package/_types/chains/definitions/base.d.ts.map +1 -1
- package/_types/chains/definitions/bsc.d.ts +1 -0
- package/_types/chains/definitions/bsc.d.ts.map +1 -1
- package/_types/chains/definitions/ethereum.d.ts +1 -0
- package/_types/chains/definitions/ethereum.d.ts.map +1 -1
- package/_types/chains/definitions/fantom.d.ts +1 -0
- package/_types/chains/definitions/fantom.d.ts.map +1 -1
- package/_types/chains/definitions/linea.d.ts +1 -0
- package/_types/chains/definitions/linea.d.ts.map +1 -1
- package/_types/chains/definitions/mantle.d.ts +1 -0
- package/_types/chains/definitions/mantle.d.ts.map +1 -1
- package/_types/chains/definitions/metis.d.ts +1 -0
- package/_types/chains/definitions/metis.d.ts.map +1 -1
- package/_types/chains/definitions/moonbeam.d.ts +1 -0
- package/_types/chains/definitions/moonbeam.d.ts.map +1 -1
- package/_types/chains/definitions/moonriver.d.ts +1 -0
- package/_types/chains/definitions/moonriver.d.ts.map +1 -1
- package/_types/chains/definitions/oasys.d.ts +1 -0
- package/_types/chains/definitions/oasys.d.ts.map +1 -1
- package/_types/chains/definitions/optimism.d.ts +1 -0
- package/_types/chains/definitions/optimism.d.ts.map +1 -1
- package/_types/chains/definitions/polygonPos.d.ts +1 -0
- package/_types/chains/definitions/polygonPos.d.ts.map +1 -1
- package/_types/chains/definitions/ronin.d.ts +1 -0
- package/_types/chains/definitions/ronin.d.ts.map +1 -1
- package/_types/decoder/tests.d.ts +1 -0
- package/_types/decoder/tests.d.ts.map +1 -1
- package/_types/explorers/definitions/blockscout.d.ts +4 -0
- package/_types/explorers/definitions/blockscout.d.ts.map +1 -1
- package/_types/explorers/definitions/etherscan.d.ts +4 -0
- package/_types/explorers/definitions/etherscan.d.ts.map +1 -1
- package/_types/explorers/definitions/roninExplorer.d.ts +4 -0
- package/_types/explorers/definitions/roninExplorer.d.ts.map +1 -1
- package/_types/index.d.ts +0 -2
- package/_types/index.d.ts.map +1 -1
- package/decoder/decode.ts +1 -0
- package/index.ts +0 -8
- package/package.json +2 -2
- package/_cjs/getAccountsTransactionFulls/getAccountsTransactionFulls.js +0 -22
- package/_cjs/getAccountsTransactionFulls/getAccountsTransactionFulls.js.map +0 -1
- package/_cjs/getAccountsTransactionFulls/getAccountsTransactionFullsCustom.js +0 -52
- package/_cjs/getAccountsTransactionFulls/getAccountsTransactionFullsCustom.js.map +0 -1
- package/_cjs/getAccountsTransactionFulls/getDecodedTransactionsPrices.js +0 -55
- package/_cjs/getAccountsTransactionFulls/getDecodedTransactionsPrices.js.map +0 -1
- package/_cjs/getAccountsTransactionFulls/getHashesAndInternalTxs.js +0 -49
- package/_cjs/getAccountsTransactionFulls/getHashesAndInternalTxs.js.map +0 -1
- package/_cjs/getAccountsTransactionFulls/getTransactionDetails.js +0 -28
- package/_cjs/getAccountsTransactionFulls/getTransactionDetails.js.map +0 -1
- package/_cjs/getAccountsTransactionFulls/getTransactionsApps.js +0 -24
- package/_cjs/getAccountsTransactionFulls/getTransactionsApps.js.map +0 -1
- package/_cjs/getAccountsTransactionFulls/index.js +0 -8
- package/_cjs/getAccountsTransactionFulls/index.js.map +0 -1
- package/_cjs/getAccountsTransactionFulls/types.js +0 -3
- package/_cjs/getAccountsTransactionFulls/types.js.map +0 -1
- package/_cjs/getAccountsTransactionFulls/withD.js +0 -41
- package/_cjs/getAccountsTransactionFulls/withD.js.map +0 -1
- package/_cjs/getAccountsTransactionFulls/withDA.js +0 -59
- package/_cjs/getAccountsTransactionFulls/withDA.js.map +0 -1
- package/_cjs/getAccountsTransactionFulls/withP.js +0 -61
- package/_cjs/getAccountsTransactionFulls/withP.js.map +0 -1
- package/_cjs/getAccountsTransactionFulls/withPD.js +0 -73
- package/_cjs/getAccountsTransactionFulls/withPD.js.map +0 -1
- package/_cjs/getAccountsTransactionFulls/withPDA.js +0 -89
- package/_cjs/getAccountsTransactionFulls/withPDA.js.map +0 -1
- package/_cjs/getAccountsTransactionFulls/withUndefined.js +0 -46
- package/_cjs/getAccountsTransactionFulls/withUndefined.js.map +0 -1
- package/_cjs/getTransactionFull/getTransactionFull.js +0 -18
- package/_cjs/getTransactionFull/getTransactionFull.js.map +0 -1
- package/_cjs/getTransactionFull/getTransactionFullCustom.js +0 -52
- package/_cjs/getTransactionFull/getTransactionFullCustom.js.map +0 -1
- package/_cjs/getTransactionFull/index.js +0 -8
- package/_cjs/getTransactionFull/index.js.map +0 -1
- package/_cjs/getTransactionFull/types.js +0 -3
- package/_cjs/getTransactionFull/types.js.map +0 -1
- package/_cjs/getTransactionFull/withD.js +0 -34
- package/_cjs/getTransactionFull/withD.js.map +0 -1
- package/_cjs/getTransactionFull/withDA.js +0 -48
- package/_cjs/getTransactionFull/withDA.js.map +0 -1
- package/_cjs/getTransactionFull/withP.js +0 -46
- package/_cjs/getTransactionFull/withP.js.map +0 -1
- package/_cjs/getTransactionFull/withPD.js +0 -78
- package/_cjs/getTransactionFull/withPD.js.map +0 -1
- package/_cjs/getTransactionFull/withPDA.js +0 -92
- package/_cjs/getTransactionFull/withPDA.js.map +0 -1
- package/_cjs/getTransactionFull/withUndefined.js +0 -29
- package/_cjs/getTransactionFull/withUndefined.js.map +0 -1
- package/_esm/getAccountsTransactionFulls/getAccountsTransactionFulls.js +0 -18
- package/_esm/getAccountsTransactionFulls/getAccountsTransactionFulls.js.map +0 -1
- package/_esm/getAccountsTransactionFulls/getAccountsTransactionFullsCustom.js +0 -48
- package/_esm/getAccountsTransactionFulls/getAccountsTransactionFullsCustom.js.map +0 -1
- package/_esm/getAccountsTransactionFulls/getDecodedTransactionsPrices.js +0 -55
- package/_esm/getAccountsTransactionFulls/getDecodedTransactionsPrices.js.map +0 -1
- package/_esm/getAccountsTransactionFulls/getHashesAndInternalTxs.js +0 -45
- package/_esm/getAccountsTransactionFulls/getHashesAndInternalTxs.js.map +0 -1
- package/_esm/getAccountsTransactionFulls/getTransactionDetails.js +0 -24
- package/_esm/getAccountsTransactionFulls/getTransactionDetails.js.map +0 -1
- package/_esm/getAccountsTransactionFulls/getTransactionsApps.js +0 -21
- package/_esm/getAccountsTransactionFulls/getTransactionsApps.js.map +0 -1
- package/_esm/getAccountsTransactionFulls/index.js +0 -3
- package/_esm/getAccountsTransactionFulls/index.js.map +0 -1
- package/_esm/getAccountsTransactionFulls/types.js +0 -2
- package/_esm/getAccountsTransactionFulls/types.js.map +0 -1
- package/_esm/getAccountsTransactionFulls/withD.js +0 -41
- package/_esm/getAccountsTransactionFulls/withD.js.map +0 -1
- package/_esm/getAccountsTransactionFulls/withDA.js +0 -60
- package/_esm/getAccountsTransactionFulls/withDA.js.map +0 -1
- package/_esm/getAccountsTransactionFulls/withP.js +0 -62
- package/_esm/getAccountsTransactionFulls/withP.js.map +0 -1
- package/_esm/getAccountsTransactionFulls/withPD.js +0 -74
- package/_esm/getAccountsTransactionFulls/withPD.js.map +0 -1
- package/_esm/getAccountsTransactionFulls/withPDA.js +0 -91
- package/_esm/getAccountsTransactionFulls/withPDA.js.map +0 -1
- package/_esm/getAccountsTransactionFulls/withUndefined.js +0 -45
- package/_esm/getAccountsTransactionFulls/withUndefined.js.map +0 -1
- package/_esm/getTransactionFull/getTransactionFull.js +0 -14
- package/_esm/getTransactionFull/getTransactionFull.js.map +0 -1
- package/_esm/getTransactionFull/getTransactionFullCustom.js +0 -48
- package/_esm/getTransactionFull/getTransactionFullCustom.js.map +0 -1
- package/_esm/getTransactionFull/index.js +0 -3
- package/_esm/getTransactionFull/index.js.map +0 -1
- package/_esm/getTransactionFull/types.js +0 -2
- package/_esm/getTransactionFull/types.js.map +0 -1
- package/_esm/getTransactionFull/withD.js +0 -33
- package/_esm/getTransactionFull/withD.js.map +0 -1
- package/_esm/getTransactionFull/withDA.js +0 -48
- package/_esm/getTransactionFull/withDA.js.map +0 -1
- package/_esm/getTransactionFull/withP.js +0 -45
- package/_esm/getTransactionFull/withP.js.map +0 -1
- package/_esm/getTransactionFull/withPD.js +0 -78
- package/_esm/getTransactionFull/withPD.js.map +0 -1
- package/_esm/getTransactionFull/withPDA.js +0 -94
- package/_esm/getTransactionFull/withPDA.js.map +0 -1
- package/_esm/getTransactionFull/withUndefined.js +0 -25
- package/_esm/getTransactionFull/withUndefined.js.map +0 -1
- package/_types/getAccountsTransactionFulls/getAccountsTransactionFulls.d.ts +0 -23
- package/_types/getAccountsTransactionFulls/getAccountsTransactionFulls.d.ts.map +0 -1
- package/_types/getAccountsTransactionFulls/getAccountsTransactionFullsCustom.d.ts +0 -4
- package/_types/getAccountsTransactionFulls/getAccountsTransactionFullsCustom.d.ts.map +0 -1
- package/_types/getAccountsTransactionFulls/getDecodedTransactionsPrices.d.ts +0 -5
- package/_types/getAccountsTransactionFulls/getDecodedTransactionsPrices.d.ts.map +0 -1
- package/_types/getAccountsTransactionFulls/getHashesAndInternalTxs.d.ts +0 -8
- package/_types/getAccountsTransactionFulls/getHashesAndInternalTxs.d.ts.map +0 -1
- package/_types/getAccountsTransactionFulls/getTransactionDetails.d.ts +0 -5
- package/_types/getAccountsTransactionFulls/getTransactionDetails.d.ts.map +0 -1
- package/_types/getAccountsTransactionFulls/getTransactionsApps.d.ts +0 -8
- package/_types/getAccountsTransactionFulls/getTransactionsApps.d.ts.map +0 -1
- package/_types/getAccountsTransactionFulls/index.d.ts +0 -3
- package/_types/getAccountsTransactionFulls/index.d.ts.map +0 -1
- package/_types/getAccountsTransactionFulls/types.d.ts +0 -87
- package/_types/getAccountsTransactionFulls/types.d.ts.map +0 -1
- package/_types/getAccountsTransactionFulls/withD.d.ts +0 -4
- package/_types/getAccountsTransactionFulls/withD.d.ts.map +0 -1
- package/_types/getAccountsTransactionFulls/withDA.d.ts +0 -4
- package/_types/getAccountsTransactionFulls/withDA.d.ts.map +0 -1
- package/_types/getAccountsTransactionFulls/withP.d.ts +0 -4
- package/_types/getAccountsTransactionFulls/withP.d.ts.map +0 -1
- package/_types/getAccountsTransactionFulls/withPD.d.ts +0 -4
- package/_types/getAccountsTransactionFulls/withPD.d.ts.map +0 -1
- package/_types/getAccountsTransactionFulls/withPDA.d.ts +0 -4
- package/_types/getAccountsTransactionFulls/withPDA.d.ts.map +0 -1
- package/_types/getAccountsTransactionFulls/withUndefined.d.ts +0 -4
- package/_types/getAccountsTransactionFulls/withUndefined.d.ts.map +0 -1
- package/_types/getTransactionFull/getTransactionFull.d.ts +0 -19
- package/_types/getTransactionFull/getTransactionFull.d.ts.map +0 -1
- package/_types/getTransactionFull/getTransactionFullCustom.d.ts +0 -4
- package/_types/getTransactionFull/getTransactionFullCustom.d.ts.map +0 -1
- package/_types/getTransactionFull/index.d.ts +0 -3
- package/_types/getTransactionFull/index.d.ts.map +0 -1
- package/_types/getTransactionFull/types.d.ts +0 -63
- package/_types/getTransactionFull/types.d.ts.map +0 -1
- package/_types/getTransactionFull/withD.d.ts +0 -4
- package/_types/getTransactionFull/withD.d.ts.map +0 -1
- package/_types/getTransactionFull/withDA.d.ts +0 -4
- package/_types/getTransactionFull/withDA.d.ts.map +0 -1
- package/_types/getTransactionFull/withP.d.ts +0 -4
- package/_types/getTransactionFull/withP.d.ts.map +0 -1
- package/_types/getTransactionFull/withPD.d.ts +0 -4
- package/_types/getTransactionFull/withPD.d.ts.map +0 -1
- package/_types/getTransactionFull/withPDA.d.ts +0 -4
- package/_types/getTransactionFull/withPDA.d.ts.map +0 -1
- package/_types/getTransactionFull/withUndefined.d.ts +0 -4
- package/_types/getTransactionFull/withUndefined.d.ts.map +0 -1
- package/getAccountsTransactionFulls/getAccountsTransactionFulls.ts +0 -46
- package/getAccountsTransactionFulls/getAccountsTransactionFullsCustom.ts +0 -106
- package/getAccountsTransactionFulls/getDecodedTransactionsPrices.ts +0 -97
- package/getAccountsTransactionFulls/getHashesAndInternalTxs.ts +0 -65
- package/getAccountsTransactionFulls/getTransactionDetails.ts +0 -41
- package/getAccountsTransactionFulls/getTransactionsApps.ts +0 -42
- package/getAccountsTransactionFulls/index.ts +0 -2
- package/getAccountsTransactionFulls/types.ts +0 -122
- package/getAccountsTransactionFulls/withD.ts +0 -80
- package/getAccountsTransactionFulls/withDA.ts +0 -112
- package/getAccountsTransactionFulls/withP.ts +0 -120
- package/getAccountsTransactionFulls/withPD.ts +0 -141
- package/getAccountsTransactionFulls/withPDA.ts +0 -167
- package/getAccountsTransactionFulls/withUndefined.ts +0 -88
- package/getTransactionFull/getTransactionFull.ts +0 -30
- package/getTransactionFull/getTransactionFullCustom.ts +0 -91
- package/getTransactionFull/index.ts +0 -2
- package/getTransactionFull/types.ts +0 -98
- package/getTransactionFull/withD.ts +0 -57
- package/getTransactionFull/withDA.ts +0 -78
- package/getTransactionFull/withP.ts +0 -69
- package/getTransactionFull/withPD.ts +0 -119
- package/getTransactionFull/withPDA.ts +0 -147
- package/getTransactionFull/withUndefined.ts +0 -39
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { getTransactionDetail } from '../getTransactionDetail';
|
|
2
|
-
import { toLowerHex } from '../types';
|
|
3
|
-
export const getTransactionFullCustomWithPDA = async (parameters, config) => {
|
|
4
|
-
const timeoutTimestamp = Date.now() + (config?.timeout === undefined ? 60_000 : config.timeout);
|
|
5
|
-
const { chain, hash, appDataSource, priceDataSource, fiat, decoder, analyzer, } = parameters;
|
|
6
|
-
// get transaction detail
|
|
7
|
-
const transactionDetail = await getTransactionDetail({ chain, hash }, config);
|
|
8
|
-
if (transactionDetail === undefined) {
|
|
9
|
-
return undefined;
|
|
10
|
-
}
|
|
11
|
-
// decode
|
|
12
|
-
const decodedData = await decoder.decode({
|
|
13
|
-
chain,
|
|
14
|
-
transactions: [transactionDetail],
|
|
15
|
-
}, {
|
|
16
|
-
timeout: timeoutTimestamp - Date.now(),
|
|
17
|
-
logger: config?.logger,
|
|
18
|
-
});
|
|
19
|
-
const transactionDecoded = decodedData.transactions[0];
|
|
20
|
-
// get data from datasources
|
|
21
|
-
const mut_currencies = [chain.nativeToken.currency];
|
|
22
|
-
for (const { token } of transactionDecoded.erc20Transfers) {
|
|
23
|
-
if (token.currency.market.coingeckoId === undefined) {
|
|
24
|
-
continue;
|
|
25
|
-
}
|
|
26
|
-
if (mut_currencies.some((currency) => currency.id === token.currency.id)) {
|
|
27
|
-
continue;
|
|
28
|
-
}
|
|
29
|
-
mut_currencies.push(token.currency);
|
|
30
|
-
}
|
|
31
|
-
const currencies = mut_currencies;
|
|
32
|
-
const timestampMs = Number(transactionDecoded.block.timestamp) * 1000;
|
|
33
|
-
const from = timestampMs - 1000 * 60 * 60;
|
|
34
|
-
const to = timestampMs + 1000 * 60 * 60;
|
|
35
|
-
const timeoutForDataSources = timeoutTimestamp - Date.now();
|
|
36
|
-
const [app, prices] = await Promise.all([
|
|
37
|
-
// get app
|
|
38
|
-
appDataSource === undefined || transactionDecoded.to === null
|
|
39
|
-
? undefined
|
|
40
|
-
: appDataSource.getApp(chain.id, toLowerHex(transactionDecoded.to), {
|
|
41
|
-
timeout: timeoutForDataSources,
|
|
42
|
-
logger: config?.logger,
|
|
43
|
-
}),
|
|
44
|
-
// get native token prices
|
|
45
|
-
priceDataSource.getHistoricalPrices({
|
|
46
|
-
targetCurrencies: currencies,
|
|
47
|
-
vsCurrency: fiat,
|
|
48
|
-
from,
|
|
49
|
-
to,
|
|
50
|
-
}, {
|
|
51
|
-
timeout: timeoutForDataSources,
|
|
52
|
-
logger: config?.logger,
|
|
53
|
-
}),
|
|
54
|
-
]);
|
|
55
|
-
const closestPrices = currencies.map((currency) => prices
|
|
56
|
-
.filter((price) => price.cryptoCurrencyId === currency.id)
|
|
57
|
-
.reduce((closestPrice, price) => closestPrice === undefined ||
|
|
58
|
-
Math.abs(price.timestamp - timestampMs) <
|
|
59
|
-
Math.abs(closestPrice.timestamp - timestampMs)
|
|
60
|
-
? price
|
|
61
|
-
: closestPrice, undefined));
|
|
62
|
-
const nativeTokenPrice = closestPrices.find((price) => price !== undefined &&
|
|
63
|
-
price.cryptoCurrencyId === chain.nativeToken.currency.id);
|
|
64
|
-
const transactionForAnalyzer = {
|
|
65
|
-
...transactionDecoded,
|
|
66
|
-
app,
|
|
67
|
-
nativeTokenPrice,
|
|
68
|
-
internalTransactions: transactionDecoded.internalTransactions.map((internalTransaction) => ({
|
|
69
|
-
...internalTransaction,
|
|
70
|
-
price: nativeTokenPrice,
|
|
71
|
-
})),
|
|
72
|
-
erc20Transfers: transactionDecoded.erc20Transfers.map((transfer) => ({
|
|
73
|
-
...transfer,
|
|
74
|
-
price: closestPrices.find((price) => price !== undefined &&
|
|
75
|
-
price.cryptoCurrencyId === transfer.token.currency.id),
|
|
76
|
-
})),
|
|
77
|
-
};
|
|
78
|
-
// analyze
|
|
79
|
-
const { actions, accountActions } = await analyzer.analyze({
|
|
80
|
-
chain,
|
|
81
|
-
transaction: transactionForAnalyzer,
|
|
82
|
-
accountAddresses: [],
|
|
83
|
-
}, {
|
|
84
|
-
timeout: timeoutTimestamp - Date.now(),
|
|
85
|
-
logger: config?.logger,
|
|
86
|
-
});
|
|
87
|
-
return {
|
|
88
|
-
...transactionForAnalyzer,
|
|
89
|
-
accountAddresses: [],
|
|
90
|
-
actions,
|
|
91
|
-
accountActions,
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
//# sourceMappingURL=withPDA.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
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V,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,MAAM,QAAQ,CAAC,OAAO,CACxD;QACE,KAAK;QACL,WAAW,EAAE,sBAAsB;QACnC,gBAAgB,EAAE,EAAE;KACrB,EACD;QACE,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAC,GAAG,EAAE;QACtC,MAAM,EAAE,MAAM,EAAE,MAAM;KACvB,CACF,CAAA;IAED,OAAO;QACL,GAAG,sBAAsB;QACzB,gBAAgB,EAAE,EAAE;QACpB,OAAO;QACP,cAAc;KACf,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { getTransactionDetail } from '../getTransactionDetail';
|
|
2
|
-
import { toLowerHex } from '../types';
|
|
3
|
-
export const getTransactionFullCustomWithAllUndefined = async (parameters, config) => {
|
|
4
|
-
const timeoutTimestamp = Date.now() + (config?.timeout === undefined ? 60_000 : config.timeout);
|
|
5
|
-
const { chain, hash, appDataSource } = parameters;
|
|
6
|
-
const transactionDetail = await getTransactionDetail({ chain, hash }, config);
|
|
7
|
-
if (transactionDetail === undefined) {
|
|
8
|
-
return undefined;
|
|
9
|
-
}
|
|
10
|
-
const app = appDataSource === undefined || transactionDetail.to === null
|
|
11
|
-
? undefined
|
|
12
|
-
: await appDataSource.getApp(chain.id, toLowerHex(transactionDetail.to), {
|
|
13
|
-
timeout: timeoutTimestamp - Date.now(),
|
|
14
|
-
logger: config?.logger,
|
|
15
|
-
});
|
|
16
|
-
if (transactionDetail === undefined) {
|
|
17
|
-
return undefined;
|
|
18
|
-
}
|
|
19
|
-
return {
|
|
20
|
-
...transactionDetail,
|
|
21
|
-
app,
|
|
22
|
-
nativeTokenPrice: undefined,
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=withUndefined.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withUndefined.js","sourceRoot":"","sources":["../../getTransactionFull/withUndefined.ts"],"names":[],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import type { LowerHex } from '../types';
|
|
4
|
-
type GetAccountsTransactionFullsParameters = {
|
|
5
|
-
readonly chain: Chain;
|
|
6
|
-
readonly addresses: readonly LowerHex[];
|
|
7
|
-
readonly fromBlock: bigint;
|
|
8
|
-
readonly toBlock: bigint;
|
|
9
|
-
readonly fiat?: FiatCurrency;
|
|
10
|
-
readonly onFetchHashes?: (hashes: readonly LowerHex[]) => void;
|
|
11
|
-
readonly onFetchTransaction?: (hash: LowerHex) => void;
|
|
12
|
-
};
|
|
13
|
-
export declare const getAccountsTransactionFulls: ({ chain, addresses, fromBlock, toBlock, fiat, onFetchHashes, onFetchTransaction, }: GetAccountsTransactionFullsParameters, config?: Config) => Promise<readonly import("../types").TransactionFull<{
|
|
14
|
-
cryptoCurrencyId: string;
|
|
15
|
-
fiatCurrencyId: string;
|
|
16
|
-
price: {
|
|
17
|
-
value: bigint;
|
|
18
|
-
decimals: number;
|
|
19
|
-
};
|
|
20
|
-
timestamp: number;
|
|
21
|
-
} | undefined, true, true>[]>;
|
|
22
|
-
export {};
|
|
23
|
-
//# sourceMappingURL=getAccountsTransactionFulls.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getAccountsTransactionFulls.d.ts","sourceRoot":"","sources":["../../getAccountsTransactionFulls/getAccountsTransactionFulls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAGzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAA;AAEtC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAGxC,KAAK,qCAAqC,GAAG;IAC3C,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAA;IACrB,QAAQ,CAAC,SAAS,EAAE,SAAS,QAAQ,EAAE,CAAA;IACvC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,IAAI,CAAC,EAAE,YAAY,CAAA;IAC5B,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,QAAQ,EAAE,KAAK,IAAI,CAAA;IAC9D,QAAQ,CAAC,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAA;CACvD,CAAA;AAED,eAAO,MAAM,2BAA2B,uFASnC,qCAAqC,WAC/B,MAAM;;;;;;;;6BAiBd,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Config } from '@0xtorch/core';
|
|
2
|
-
import type { GetAccountsTransactionFullsCustomParameters, GetAccountsTransactionFullsCustomReturnType } from './types';
|
|
3
|
-
export declare const getAccountsTransactionFullsCustom: <T extends GetAccountsTransactionFullsCustomParameters>(parameters: T, config?: Config) => Promise<GetAccountsTransactionFullsCustomReturnType<T>>;
|
|
4
|
-
//# sourceMappingURL=getAccountsTransactionFullsCustom.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getAccountsTransactionFullsCustom.d.ts","sourceRoot":"","sources":["../../getAccountsTransactionFulls/getAccountsTransactionFullsCustom.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EACV,2CAA2C,EAO3C,2CAA2C,EAC5C,MAAM,SAAS,CAAA;AAQhB,eAAO,MAAM,iCAAiC,kFAInC,MAAM,4DA6ChB,CAAA"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { Config, CryptoCurrencyDataSource, CryptoCurrencyPrice, FiatCurrency } from '@0xtorch/core';
|
|
2
|
-
import type { Chain } from '../chains';
|
|
3
|
-
import type { TransactionDecoded } from '../types';
|
|
4
|
-
export declare const getDecodedTransactionsPrices: (chain: Chain, priceDataSource: CryptoCurrencyDataSource, fiat: FiatCurrency, transactions: readonly TransactionDecoded<undefined>[], config?: Config) => Promise<readonly CryptoCurrencyPrice[]>;
|
|
5
|
-
//# sourceMappingURL=getDecodedTransactionsPrices.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getDecodedTransactionsPrices.d.ts","sourceRoot":"","sources":["../../getAccountsTransactionFulls/getDecodedTransactionsPrices.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EAEN,wBAAwB,EACxB,mBAAmB,EACnB,YAAY,EACb,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAElD,eAAO,MAAM,4BAA4B,UAChC,KAAK,mBACK,wBAAwB,QACnC,YAAY,gBACJ,SAAS,mBAAmB,SAAS,CAAC,EAAE,WAC7C,MAAM,KACd,QAAQ,SAAS,mBAAmB,EAAE,CAgFxC,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Config } from '@0xtorch/core';
|
|
2
|
-
import type { Chain } from '../chains';
|
|
3
|
-
import type { Hex, InternalTransaction, LowerHex } from '../types';
|
|
4
|
-
export declare const getHashesAndInternalTxs: (chain: Chain, addresses: readonly LowerHex[], fromBlock: bigint, toBlock: bigint, config?: Config) => Promise<{
|
|
5
|
-
readonly hashes: readonly Hex[];
|
|
6
|
-
readonly internalTransactions: readonly InternalTransaction<undefined>[];
|
|
7
|
-
}>;
|
|
8
|
-
//# sourceMappingURL=getHashesAndInternalTxs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getHashesAndInternalTxs.d.ts","sourceRoot":"","sources":["../../getAccountsTransactionFulls/getHashesAndInternalTxs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAGlE,eAAO,MAAM,uBAAuB,UAC3B,KAAK,aACD,SAAS,QAAQ,EAAE,aACnB,MAAM,WACR,MAAM,WACN,MAAM,KACd,QAAQ;IACT,QAAQ,CAAC,MAAM,EAAE,SAAS,GAAG,EAAE,CAAA;IAC/B,QAAQ,CAAC,oBAAoB,EAAE,SAAS,oBAAoB,SAAS,CAAC,EAAE,CAAA;CACzE,CAkDA,CAAA"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { Config } from '@0xtorch/core';
|
|
2
|
-
import type { Chain } from '../chains';
|
|
3
|
-
import type { Hex, InternalTransaction, TransactionDetail } from '../types';
|
|
4
|
-
export declare const getTransactionDetails: (chain: Chain, hashes: readonly Hex[], internalTransactions: readonly InternalTransaction<undefined>[], onFetchTransaction: ((hash: `0x${Lowercase<string>}`) => void) | undefined, config?: Config) => Promise<readonly TransactionDetail[]>;
|
|
5
|
-
//# sourceMappingURL=getTransactionDetails.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getTransactionDetails.d.ts","sourceRoot":"","sources":["../../getAccountsTransactionFulls/getTransactionDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAA;AAEtC,OAAO,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAG3E,eAAO,MAAM,qBAAqB,UACzB,KAAK,UACJ,SAAS,GAAG,EAAE,wBACA,SAAS,oBAAoB,SAAS,CAAC,EAAE,8BACnC,KAAK,UAAU,MAAM,CAAC,EAAE,KAAK,IAAI,wBACpD,MAAM,KACd,QAAQ,SAAS,iBAAiB,EAAE,CA2BtC,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { App, Config } from '@0xtorch/core';
|
|
2
|
-
import type { AppDataSource } from '../apps';
|
|
3
|
-
import type { LowerHex, TransactionDetail } from '../types';
|
|
4
|
-
export declare const getTransactionsApps: (appDataSource: AppDataSource | undefined, transactionos: readonly TransactionDetail[], config?: Config) => Promise<{
|
|
5
|
-
readonly address: LowerHex;
|
|
6
|
-
readonly app: App | undefined;
|
|
7
|
-
}[]>;
|
|
8
|
-
//# sourceMappingURL=getTransactionsApps.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getTransactionsApps.d.ts","sourceRoot":"","sources":["../../getAccountsTransactionFulls/getTransactionsApps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAG3D,eAAO,MAAM,mBAAmB,kBACf,aAAa,GAAG,SAAS,iBACzB,SAAS,iBAAiB,EAAE,WAClC,MAAM,KACd,QACD;IACE,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAA;IAC1B,QAAQ,CAAC,GAAG,EAAE,GAAG,GAAG,SAAS,CAAA;CAC9B,EAAE,CA4BJ,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../getAccountsTransactionFulls/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;AAC3E,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAA"}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import type { CryptoCurrencyDataSource, CryptoCurrencyPrice, FiatCurrency } from '@0xtorch/core';
|
|
2
|
-
import type { Analyzer } from '../analyzer';
|
|
3
|
-
import type { AppDataSource } from '../apps';
|
|
4
|
-
import type { Chain } from '../chains';
|
|
5
|
-
import type { Decoder } from '../decoder';
|
|
6
|
-
import type { LowerHex, TransactionFull } from '../types';
|
|
7
|
-
export type GetAccountsTransactionFullsCustomParameters = GetAccountsTransactionFullsCustomParametersAllUndefined | GetAccountsTransactionFullsCustomParametersP | GetAccountsTransactionFullsCustomParametersPD | GetAccountsTransactionFullsCustomParametersPDA | GetAccountsTransactionFullsCustomParametersD | GetAccountsTransactionFullsCustomParametersDA;
|
|
8
|
-
export type GetAccountsTransactionFullsCustomParametersAllUndefined = {
|
|
9
|
-
readonly chain: Chain;
|
|
10
|
-
readonly addresses: readonly LowerHex[];
|
|
11
|
-
readonly fromBlock: bigint;
|
|
12
|
-
readonly toBlock: bigint;
|
|
13
|
-
readonly appDataSource: AppDataSource | undefined;
|
|
14
|
-
readonly priceDataSource: undefined;
|
|
15
|
-
readonly fiat: undefined;
|
|
16
|
-
readonly decoder: undefined;
|
|
17
|
-
readonly analyzer: undefined;
|
|
18
|
-
readonly onFetchHashes?: (hashes: readonly LowerHex[]) => void;
|
|
19
|
-
readonly onFetchTransaction?: (hash: LowerHex) => void;
|
|
20
|
-
};
|
|
21
|
-
export type GetAccountsTransactionFullsCustomParametersP = {
|
|
22
|
-
readonly chain: Chain;
|
|
23
|
-
readonly addresses: readonly LowerHex[];
|
|
24
|
-
readonly fromBlock: bigint;
|
|
25
|
-
readonly toBlock: bigint;
|
|
26
|
-
readonly appDataSource: AppDataSource | undefined;
|
|
27
|
-
readonly priceDataSource: CryptoCurrencyDataSource;
|
|
28
|
-
readonly fiat: FiatCurrency;
|
|
29
|
-
readonly decoder: undefined;
|
|
30
|
-
readonly analyzer: undefined;
|
|
31
|
-
readonly onFetchHashes?: (hashes: readonly LowerHex[]) => void;
|
|
32
|
-
readonly onFetchTransaction?: (hash: LowerHex) => void;
|
|
33
|
-
};
|
|
34
|
-
export type GetAccountsTransactionFullsCustomParametersPD = {
|
|
35
|
-
readonly chain: Chain;
|
|
36
|
-
readonly addresses: readonly LowerHex[];
|
|
37
|
-
readonly fromBlock: bigint;
|
|
38
|
-
readonly toBlock: bigint;
|
|
39
|
-
readonly appDataSource: AppDataSource | undefined;
|
|
40
|
-
readonly priceDataSource: CryptoCurrencyDataSource;
|
|
41
|
-
readonly fiat: FiatCurrency;
|
|
42
|
-
readonly decoder: Decoder;
|
|
43
|
-
readonly analyzer: undefined;
|
|
44
|
-
readonly onFetchHashes?: (hashes: readonly LowerHex[]) => void;
|
|
45
|
-
readonly onFetchTransaction?: (hash: LowerHex) => void;
|
|
46
|
-
};
|
|
47
|
-
export type GetAccountsTransactionFullsCustomParametersPDA = {
|
|
48
|
-
readonly chain: Chain;
|
|
49
|
-
readonly addresses: readonly LowerHex[];
|
|
50
|
-
readonly fromBlock: bigint;
|
|
51
|
-
readonly toBlock: bigint;
|
|
52
|
-
readonly appDataSource: AppDataSource | undefined;
|
|
53
|
-
readonly priceDataSource: CryptoCurrencyDataSource;
|
|
54
|
-
readonly fiat: FiatCurrency;
|
|
55
|
-
readonly decoder: Decoder;
|
|
56
|
-
readonly analyzer: Analyzer<CryptoCurrencyPrice | undefined>;
|
|
57
|
-
readonly onFetchHashes?: (hashes: readonly LowerHex[]) => void;
|
|
58
|
-
readonly onFetchTransaction?: (hash: LowerHex) => void;
|
|
59
|
-
};
|
|
60
|
-
export type GetAccountsTransactionFullsCustomParametersD = {
|
|
61
|
-
readonly chain: Chain;
|
|
62
|
-
readonly addresses: readonly LowerHex[];
|
|
63
|
-
readonly fromBlock: bigint;
|
|
64
|
-
readonly toBlock: bigint;
|
|
65
|
-
readonly appDataSource: AppDataSource | undefined;
|
|
66
|
-
readonly priceDataSource: undefined;
|
|
67
|
-
readonly fiat: undefined;
|
|
68
|
-
readonly decoder: Decoder;
|
|
69
|
-
readonly analyzer: undefined;
|
|
70
|
-
readonly onFetchHashes?: (hashes: readonly LowerHex[]) => void;
|
|
71
|
-
readonly onFetchTransaction?: (hash: LowerHex) => void;
|
|
72
|
-
};
|
|
73
|
-
export type GetAccountsTransactionFullsCustomParametersDA = {
|
|
74
|
-
readonly chain: Chain;
|
|
75
|
-
readonly addresses: readonly LowerHex[];
|
|
76
|
-
readonly fromBlock: bigint;
|
|
77
|
-
readonly toBlock: bigint;
|
|
78
|
-
readonly appDataSource: AppDataSource | undefined;
|
|
79
|
-
readonly priceDataSource: undefined;
|
|
80
|
-
readonly fiat: undefined;
|
|
81
|
-
readonly decoder: Decoder;
|
|
82
|
-
readonly analyzer: Analyzer<undefined>;
|
|
83
|
-
readonly onFetchHashes?: (hashes: readonly LowerHex[]) => void;
|
|
84
|
-
readonly onFetchTransaction?: (hash: LowerHex) => void;
|
|
85
|
-
};
|
|
86
|
-
export type GetAccountsTransactionFullsCustomReturnType<T extends GetAccountsTransactionFullsCustomParameters> = T extends GetAccountsTransactionFullsCustomParametersAllUndefined ? readonly TransactionFull<undefined, false, false>[] : T extends GetAccountsTransactionFullsCustomParametersP ? readonly TransactionFull<CryptoCurrencyPrice | undefined, false, false>[] : T extends GetAccountsTransactionFullsCustomParametersPD ? readonly TransactionFull<CryptoCurrencyPrice | undefined, true, false>[] : T extends GetAccountsTransactionFullsCustomParametersPDA ? readonly TransactionFull<CryptoCurrencyPrice | undefined, true, true>[] : T extends GetAccountsTransactionFullsCustomParametersD ? readonly TransactionFull<undefined, true, false>[] : T extends GetAccountsTransactionFullsCustomParametersDA ? readonly TransactionFull<undefined, true, true>[] : never;
|
|
87
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../getAccountsTransactionFulls/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,mBAAmB,EACnB,YAAY,EACb,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5C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';
|
|
2
|
-
import type { GetAccountsTransactionFullsCustomParametersD, GetAccountsTransactionFullsCustomReturnType } from './types';
|
|
3
|
-
export declare const getAccountsTransactionFullsCustomWithD: ({ chain, addresses, fromBlock, toBlock, appDataSource, decoder, onFetchHashes, onFetchTransaction, }: GetAccountsTransactionFullsCustomParametersD, config?: Config) => Promise<GetAccountsTransactionFullsCustomReturnType<GetAccountsTransactionFullsCustomParametersD>>;
|
|
4
|
-
//# sourceMappingURL=withD.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withD.d.ts","sourceRoot":"","sources":["../../getAccountsTransactionFulls/withD.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAK3C,OAAO,KAAK,EACV,4CAA4C,EAC5C,2CAA2C,EAC5C,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,sCAAsC,yGAU9C,4CAA4C,WACtC,MAAM,KACd,QACD,4CAA4C,4CAA4C,CAAC,CAwD1F,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Config } from '@0xtorch/core';
|
|
2
|
-
import type { GetAccountsTransactionFullsCustomParametersDA, GetAccountsTransactionFullsCustomReturnType } from './types';
|
|
3
|
-
export declare const getAccountsTransactionFullsCustomWithDA: ({ chain, addresses, fromBlock, toBlock, appDataSource, decoder, analyzer, onFetchHashes, onFetchTransaction, }: GetAccountsTransactionFullsCustomParametersDA, config?: Config) => Promise<GetAccountsTransactionFullsCustomReturnType<GetAccountsTransactionFullsCustomParametersDA>>;
|
|
4
|
-
//# sourceMappingURL=withDA.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withDA.d.ts","sourceRoot":"","sources":["../../getAccountsTransactionFulls/withDA.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAK3C,OAAO,KAAK,EACV,6CAA6C,EAC7C,2CAA2C,EAC5C,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,uCAAuC,mHAW/C,6CAA6C,WACvC,MAAM,KACd,QACD,4CAA4C,6CAA6C,CAAC,CAsF3F,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Config } from '@0xtorch/core';
|
|
2
|
-
import type { GetAccountsTransactionFullsCustomParametersP, GetAccountsTransactionFullsCustomReturnType } from './types';
|
|
3
|
-
export declare const getAccountsTransactionFullsCustomWithP: ({ chain, addresses, fromBlock, toBlock, appDataSource, priceDataSource, fiat, onFetchHashes, onFetchTransaction, }: GetAccountsTransactionFullsCustomParametersP, config?: Config) => Promise<GetAccountsTransactionFullsCustomReturnType<GetAccountsTransactionFullsCustomParametersP>>;
|
|
4
|
-
//# sourceMappingURL=withP.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withP.d.ts","sourceRoot":"","sources":["../../getAccountsTransactionFulls/withP.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAuB,MAAM,eAAe,CAAA;AAKhE,OAAO,KAAK,EACV,4CAA4C,EAC5C,2CAA2C,EAC5C,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,sCAAsC,uHAW9C,4CAA4C,WACtC,MAAM,KACd,QACD,4CAA4C,4CAA4C,CAAC,CA+F1F,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Config } from '@0xtorch/core';
|
|
2
|
-
import type { GetAccountsTransactionFullsCustomParametersPD, GetAccountsTransactionFullsCustomReturnType } from './types';
|
|
3
|
-
export declare const getAccountsTransactionFullsCustomWithPD: ({ chain, addresses, fromBlock, toBlock, appDataSource, priceDataSource, fiat, decoder, onFetchHashes, onFetchTransaction, }: GetAccountsTransactionFullsCustomParametersPD, config?: Config) => Promise<GetAccountsTransactionFullsCustomReturnType<GetAccountsTransactionFullsCustomParametersPD>>;
|
|
4
|
-
//# sourceMappingURL=withPD.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withPD.d.ts","sourceRoot":"","sources":["../../getAccountsTransactionFulls/withPD.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAuB,MAAM,eAAe,CAAA;AAMhE,OAAO,KAAK,EACV,6CAA6C,EAC7C,2CAA2C,EAC5C,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,uCAAuC,gIAY/C,6CAA6C,WACvC,MAAM,KACd,QACD,4CAA4C,6CAA6C,CAAC,CAiH3F,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Config } from '@0xtorch/core';
|
|
2
|
-
import type { GetAccountsTransactionFullsCustomParametersPDA, GetAccountsTransactionFullsCustomReturnType } from './types';
|
|
3
|
-
export declare const getAccountsTransactionFullsCustomWithPDA: ({ chain, addresses, fromBlock, toBlock, appDataSource, priceDataSource, fiat, decoder, analyzer, onFetchHashes, onFetchTransaction, }: GetAccountsTransactionFullsCustomParametersPDA, config?: Config) => Promise<GetAccountsTransactionFullsCustomReturnType<GetAccountsTransactionFullsCustomParametersPDA>>;
|
|
4
|
-
//# sourceMappingURL=withPDA.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withPDA.d.ts","sourceRoot":"","sources":["../../getAccountsTransactionFulls/withPDA.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAuB,MAAM,eAAe,CAAA;AAMhE,OAAO,KAAK,EACV,8CAA8C,EAC9C,2CAA2C,EAC5C,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,wCAAwC,0IAahD,8CAA8C,WACxC,MAAM,KACd,QACD,4CAA4C,8CAA8C,CAAC,CA0I5F,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Config } from '@0xtorch/core';
|
|
2
|
-
import type { GetAccountsTransactionFullsCustomParametersAllUndefined, GetAccountsTransactionFullsCustomReturnType } from './types';
|
|
3
|
-
export declare const getAccountsTransactionFullsCustomWithAllUndefined: ({ chain, addresses, fromBlock, toBlock, appDataSource, onFetchHashes, onFetchTransaction, }: GetAccountsTransactionFullsCustomParametersAllUndefined, config?: Config) => Promise<GetAccountsTransactionFullsCustomReturnType<GetAccountsTransactionFullsCustomParametersAllUndefined>>;
|
|
4
|
-
//# sourceMappingURL=withUndefined.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withUndefined.d.ts","sourceRoot":"","sources":["../../getAccountsTransactionFulls/withUndefined.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAK3C,OAAO,KAAK,EACV,uDAAuD,EACvD,2CAA2C,EAC5C,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,iDAAiD,gGASzD,uDAAuD,WACjD,MAAM,KACd,QACD,4CAA4C,uDAAuD,CAAC,CAiErG,CAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { Config, FiatCurrency } from '@0xtorch/core';
|
|
2
|
-
import type { Chain } from '../chains';
|
|
3
|
-
import type { Hex } from '../types';
|
|
4
|
-
type GetTransactionFullParameters = {
|
|
5
|
-
readonly chain: Chain;
|
|
6
|
-
readonly hash: Hex;
|
|
7
|
-
readonly fiat?: FiatCurrency;
|
|
8
|
-
};
|
|
9
|
-
export declare const getTransactionFull: ({ chain, hash, fiat }: GetTransactionFullParameters, config?: Config) => Promise<import("../types").TransactionFull<{
|
|
10
|
-
cryptoCurrencyId: string;
|
|
11
|
-
fiatCurrencyId: string;
|
|
12
|
-
price: {
|
|
13
|
-
value: bigint;
|
|
14
|
-
decimals: number;
|
|
15
|
-
};
|
|
16
|
-
timestamp: number;
|
|
17
|
-
} | undefined, true, true> | undefined>;
|
|
18
|
-
export {};
|
|
19
|
-
//# sourceMappingURL=getTransactionFull.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getTransactionFull.d.ts","sourceRoot":"","sources":["../../getTransactionFull/getTransactionFull.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAGzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAA;AAEtC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAGnC,KAAK,4BAA4B,GAAG;IAClC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAA;IAClB,QAAQ,CAAC,IAAI,CAAC,EAAE,YAAY,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,kBAAkB,0BACA,4BAA4B,WAChD,MAAM;;;;;;;;uCAad,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Config } from '@0xtorch/core';
|
|
2
|
-
import type { GetTransactionFullCustomParameters, GetTransactionFullCustomReturnType } from './types';
|
|
3
|
-
export declare const getTransactionFullCustom: <T extends GetTransactionFullCustomParameters>(parameters: T, config?: Config) => Promise<GetTransactionFullCustomReturnType<T>>;
|
|
4
|
-
//# sourceMappingURL=getTransactionFullCustom.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getTransactionFullCustom.d.ts","sourceRoot":"","sources":["../../getTransactionFull/getTransactionFullCustom.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EACV,kCAAkC,EAOlC,kCAAkC,EACnC,MAAM,SAAS,CAAA;AAQhB,eAAO,MAAM,wBAAwB,yEAI1B,MAAM,mDA8BhB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../getTransactionFull/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import type { CryptoCurrencyDataSource, CryptoCurrencyPrice, FiatCurrency } from '@0xtorch/core';
|
|
2
|
-
import type { Analyzer } from '../analyzer';
|
|
3
|
-
import type { AppDataSource } from '../apps';
|
|
4
|
-
import type { Chain } from '../chains';
|
|
5
|
-
import type { Decoder } from '../decoder';
|
|
6
|
-
import type { Hex, TransactionFull } from '../types';
|
|
7
|
-
export type GetTransactionFullCustomParameters = GetTransactionFullCustomParametersAllUndefined | GetTransactionFullCustomParametersP | GetTransactionFullCustomParametersPD | GetTransactionFullCustomParametersPDA | GetTransactionFullCustomParametersD | GetTransactionFullCustomParametersDA;
|
|
8
|
-
export type GetTransactionFullCustomParametersAllUndefined = {
|
|
9
|
-
readonly chain: Chain;
|
|
10
|
-
readonly hash: Hex;
|
|
11
|
-
readonly appDataSource: AppDataSource | undefined;
|
|
12
|
-
readonly priceDataSource: undefined;
|
|
13
|
-
readonly fiat: undefined;
|
|
14
|
-
readonly decoder: undefined;
|
|
15
|
-
readonly analyzer: undefined;
|
|
16
|
-
};
|
|
17
|
-
export type GetTransactionFullCustomParametersP = {
|
|
18
|
-
readonly chain: Chain;
|
|
19
|
-
readonly hash: Hex;
|
|
20
|
-
readonly appDataSource: AppDataSource | undefined;
|
|
21
|
-
readonly priceDataSource: CryptoCurrencyDataSource;
|
|
22
|
-
readonly fiat: FiatCurrency;
|
|
23
|
-
readonly decoder: undefined;
|
|
24
|
-
readonly analyzer: undefined;
|
|
25
|
-
};
|
|
26
|
-
export type GetTransactionFullCustomParametersPD = {
|
|
27
|
-
readonly chain: Chain;
|
|
28
|
-
readonly hash: Hex;
|
|
29
|
-
readonly appDataSource: AppDataSource | undefined;
|
|
30
|
-
readonly priceDataSource: CryptoCurrencyDataSource;
|
|
31
|
-
readonly fiat: FiatCurrency;
|
|
32
|
-
readonly decoder: Decoder;
|
|
33
|
-
readonly analyzer: undefined;
|
|
34
|
-
};
|
|
35
|
-
export type GetTransactionFullCustomParametersPDA = {
|
|
36
|
-
readonly chain: Chain;
|
|
37
|
-
readonly hash: Hex;
|
|
38
|
-
readonly appDataSource: AppDataSource | undefined;
|
|
39
|
-
readonly priceDataSource: CryptoCurrencyDataSource;
|
|
40
|
-
readonly fiat: FiatCurrency;
|
|
41
|
-
readonly decoder: Decoder;
|
|
42
|
-
readonly analyzer: Analyzer<CryptoCurrencyPrice | undefined>;
|
|
43
|
-
};
|
|
44
|
-
export type GetTransactionFullCustomParametersD = {
|
|
45
|
-
readonly chain: Chain;
|
|
46
|
-
readonly hash: Hex;
|
|
47
|
-
readonly appDataSource: AppDataSource | undefined;
|
|
48
|
-
readonly priceDataSource: undefined;
|
|
49
|
-
readonly fiat: undefined;
|
|
50
|
-
readonly decoder: Decoder;
|
|
51
|
-
readonly analyzer: undefined;
|
|
52
|
-
};
|
|
53
|
-
export type GetTransactionFullCustomParametersDA = {
|
|
54
|
-
readonly chain: Chain;
|
|
55
|
-
readonly hash: Hex;
|
|
56
|
-
readonly appDataSource: AppDataSource | undefined;
|
|
57
|
-
readonly priceDataSource: undefined;
|
|
58
|
-
readonly fiat: undefined;
|
|
59
|
-
readonly decoder: Decoder;
|
|
60
|
-
readonly analyzer: Analyzer<undefined>;
|
|
61
|
-
};
|
|
62
|
-
export type GetTransactionFullCustomReturnType<T extends GetTransactionFullCustomParameters> = T extends GetTransactionFullCustomParametersAllUndefined ? TransactionFull<undefined, false, false> | undefined : T extends GetTransactionFullCustomParametersP ? TransactionFull<CryptoCurrencyPrice | undefined, false, false> | undefined : T extends GetTransactionFullCustomParametersPD ? TransactionFull<CryptoCurrencyPrice | undefined, true, false> | undefined : T extends GetTransactionFullCustomParametersPDA ? TransactionFull<CryptoCurrencyPrice | undefined, true, true> | undefined : T extends GetTransactionFullCustomParametersD ? TransactionFull<undefined, true, false> | undefined : T extends GetTransactionFullCustomParametersDA ? TransactionFull<undefined, true, true> | undefined : never;
|
|
63
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../getTransactionFull/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,mBAAmB,EACnB,YAAY,EACb,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACzC,OAAO,KAAK,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAEpD,MAAM,MAAM,kCAAkC,GAC1C,8CAA8C,GAC9C,mCAAmC,GACnC,oCAAoC,GACpC,qCAAqC,GACrC,mCAAmC,GACnC,oCAAoC,CAAA;AAExC,MAAM,MAAM,8CAA8C,GAAG;IAC3D,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAA;IAClB,QAAQ,CAAC,aAAa,EAAE,aAAa,GAAG,SAAS,CAAA;IACjD,QAAQ,CAAC,eAAe,EAAE,SAAS,CAAA;IACnC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;IACxB,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAA;IAC3B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,mCAAmC,GAAG;IAChD,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAA;IAClB,QAAQ,CAAC,aAAa,EAAE,aAAa,GAAG,SAAS,CAAA;IACjD,QAAQ,CAAC,eAAe,EAAE,wBAAwB,CAA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export declare const getTransactionFullCustomWithD: (parameters: GetTransactionFullCustomParametersD, config?: Config) => Promise<GetTransactionFullCustomReturnType<GetTransactionFullCustomParametersD>>;
|
|
4
|
-
//# sourceMappingURL=withD.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withD.d.ts","sourceRoot":"","sources":["../../getTransactionFull/withD.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAG3C,OAAO,KAAK,EACV,mCAAmC,EACnC,kCAAkC,EACnC,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,6BAA6B,eAC5B,mCAAmC,WACtC,MAAM,KACd,QACD,mCAAmC,mCAAmC,CAAC,CA4CxE,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Config } from '@0xtorch/core';
|
|
2
|
-
import type { GetTransactionFullCustomParametersDA, GetTransactionFullCustomReturnType } from './types';
|
|
3
|
-
export declare const getTransactionFullCustomWithDA: (parameters: GetTransactionFullCustomParametersDA, config?: Config) => Promise<GetTransactionFullCustomReturnType<GetTransactionFullCustomParametersDA>>;
|
|
4
|
-
//# sourceMappingURL=withDA.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withDA.d.ts","sourceRoot":"","sources":["../../getTransactionFull/withDA.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAG3C,OAAO,KAAK,EACV,oCAAoC,EACpC,kCAAkC,EACnC,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,8BAA8B,eAC7B,oCAAoC,WACvC,MAAM,KACd,QACD,mCAAmC,oCAAoC,CAAC,CAgEzE,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Config } from '@0xtorch/core';
|
|
2
|
-
import type { GetTransactionFullCustomParametersP, GetTransactionFullCustomReturnType } from './types';
|
|
3
|
-
export declare const getTransactionFullCustomWithP: (parameters: GetTransactionFullCustomParametersP, config?: Config) => Promise<GetTransactionFullCustomReturnType<GetTransactionFullCustomParametersP>>;
|
|
4
|
-
//# sourceMappingURL=withP.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withP.d.ts","sourceRoot":"","sources":["../../getTransactionFull/withP.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAuB,MAAM,eAAe,CAAA;AAGhE,OAAO,KAAK,EACV,mCAAmC,EACnC,kCAAkC,EACnC,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,6BAA6B,eAC5B,mCAAmC,WACtC,MAAM,KACd,QACD,mCAAmC,mCAAmC,CAAC,CAwDxE,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Config } from '@0xtorch/core';
|
|
2
|
-
import type { GetTransactionFullCustomParametersPD, GetTransactionFullCustomReturnType } from './types';
|
|
3
|
-
export declare const getTransactionFullCustomWithPD: (parameters: GetTransactionFullCustomParametersPD, config?: Config) => Promise<GetTransactionFullCustomReturnType<GetTransactionFullCustomParametersPD>>;
|
|
4
|
-
//# sourceMappingURL=withPD.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withPD.d.ts","sourceRoot":"","sources":["../../getTransactionFull/withPD.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAuC,MAAM,eAAe,CAAA;AAGhF,OAAO,KAAK,EACV,oCAAoC,EACpC,kCAAkC,EACnC,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,8BAA8B,eAC7B,oCAAoC,WACvC,MAAM,KACd,QACD,mCAAmC,oCAAoC,CAAC,CAyGzE,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Config } from '@0xtorch/core';
|
|
2
|
-
import type { GetTransactionFullCustomParametersPDA, GetTransactionFullCustomReturnType } from './types';
|
|
3
|
-
export declare const getTransactionFullCustomWithPDA: (parameters: GetTransactionFullCustomParametersPDA, config?: Config) => Promise<GetTransactionFullCustomReturnType<GetTransactionFullCustomParametersPDA>>;
|
|
4
|
-
//# sourceMappingURL=withPDA.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withPDA.d.ts","sourceRoot":"","sources":["../../getTransactionFull/withPDA.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAuC,MAAM,eAAe,CAAA;AAGhF,OAAO,KAAK,EACV,qCAAqC,EACrC,kCAAkC,EACnC,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,+BAA+B,eAC9B,qCAAqC,WACxC,MAAM,KACd,QACD,mCAAmC,qCAAqC,CAAC,CAqI1E,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Config } from '@0xtorch/core';
|
|
2
|
-
import type { GetTransactionFullCustomParametersAllUndefined, GetTransactionFullCustomReturnType } from './types';
|
|
3
|
-
export declare const getTransactionFullCustomWithAllUndefined: (parameters: GetTransactionFullCustomParametersAllUndefined, config?: Config) => Promise<GetTransactionFullCustomReturnType<GetTransactionFullCustomParametersAllUndefined>>;
|
|
4
|
-
//# sourceMappingURL=withUndefined.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withUndefined.d.ts","sourceRoot":"","sources":["../../getTransactionFull/withUndefined.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAG3C,OAAO,KAAK,EACV,8CAA8C,EAC9C,kCAAkC,EACnC,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,wCAAwC,eACvC,8CAA8C,WACjD,MAAM,KACd,QACD,mCAAmC,8CAA8C,CAAC,CA0BnF,CAAA"}
|