@mixerx/oracles 1.0.0 → 2.0.0
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/README.md +78 -111
- package/dist/application/ports/ILogger.d.ts +0 -1
- package/dist/application/ports/ILogger.js.map +1 -1
- package/dist/application/ports/index.d.ts +0 -1
- package/dist/application/ports/index.js.map +1 -1
- package/dist/domain/config/TokenDefaults.d.ts +0 -32
- package/dist/domain/config/TokenDefaults.js +7 -72
- package/dist/domain/config/TokenDefaults.js.map +1 -1
- package/dist/domain/config/index.d.ts +1 -2
- package/dist/domain/config/index.js +1 -13
- package/dist/domain/config/index.js.map +1 -1
- package/dist/domain/exceptions.d.ts +8 -4
- package/dist/domain/exceptions.js +12 -3
- package/dist/domain/exceptions.js.map +1 -1
- package/dist/domain/repositories.d.ts +3 -1
- package/dist/domain/repositories.js +10 -0
- package/dist/domain/repositories.js.map +1 -1
- package/dist/factory.d.ts +11 -32
- package/dist/factory.js +16 -26
- package/dist/factory.js.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/blockchain/staticProvider.d.ts +3 -0
- package/dist/infrastructure/blockchain/staticProvider.js +37 -0
- package/dist/infrastructure/blockchain/staticProvider.js.map +1 -0
- package/dist/infrastructure/config/ProtocolTokenConfig.d.ts +0 -1
- package/dist/infrastructure/config/ProtocolTokenConfig.js +2 -0
- package/dist/infrastructure/config/ProtocolTokenConfig.js.map +1 -1
- package/dist/infrastructure/config/gasOracleConfigs.d.ts +2 -13
- package/dist/infrastructure/config/gasOracleConfigs.js +7 -33
- package/dist/infrastructure/config/gasOracleConfigs.js.map +1 -1
- package/dist/infrastructure/config/index.d.ts +0 -1
- package/dist/infrastructure/config/index.js.map +1 -1
- package/dist/infrastructure/gas/GasPriceOracle.d.ts +12 -2
- package/dist/infrastructure/gas/GasPriceOracle.js +77 -38
- package/dist/infrastructure/gas/GasPriceOracle.js.map +1 -1
- package/dist/infrastructure/mixerx/MixerXFeeOracle.d.ts +88 -0
- package/dist/infrastructure/mixerx/MixerXFeeOracle.js +220 -0
- package/dist/infrastructure/mixerx/MixerXFeeOracle.js.map +1 -0
- package/dist/infrastructure/multicall/MulticallProvider.d.ts +5 -3
- package/dist/infrastructure/multicall/MulticallProvider.js +44 -9
- package/dist/infrastructure/multicall/MulticallProvider.js.map +1 -1
- package/dist/infrastructure/token-price/TokenPriceOracle.d.ts +11 -46
- package/dist/infrastructure/token-price/TokenPriceOracle.js +68 -101
- package/dist/infrastructure/token-price/TokenPriceOracle.js.map +1 -1
- package/dist/infrastructure/token-price/index.d.ts +2 -2
- package/dist/infrastructure/token-price/index.js.map +1 -1
- package/dist/types.d.ts +5 -1
- package/dist/types.js.map +1 -1
- package/package.json +56 -40
- package/dist/application/ports/ILogger.d.ts.map +0 -1
- package/dist/application/ports/index.d.ts.map +0 -1
- package/dist/application/services/TokenPriceService.d.ts +0 -61
- package/dist/application/services/TokenPriceService.d.ts.map +0 -1
- package/dist/application/services/TokenPriceService.js +0 -137
- package/dist/application/services/TokenPriceService.js.map +0 -1
- package/dist/domain/config/TokenDefaults.d.ts.map +0 -1
- package/dist/domain/config/index.d.ts.map +0 -1
- package/dist/domain/exceptions.d.ts.map +0 -1
- package/dist/domain/repositories.d.ts.map +0 -1
- package/dist/factory.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/infrastructure/blockchain/contracts.d.ts +0 -20
- package/dist/infrastructure/blockchain/contracts.d.ts.map +0 -1
- package/dist/infrastructure/blockchain/contracts.js +0 -10
- package/dist/infrastructure/blockchain/contracts.js.map +0 -1
- package/dist/infrastructure/config/ProtocolTokenConfig.d.ts.map +0 -1
- package/dist/infrastructure/config/gasOracleConfigs.d.ts.map +0 -1
- package/dist/infrastructure/config/index.d.ts.map +0 -1
- package/dist/infrastructure/gas/GasPriceOracle.d.ts.map +0 -1
- package/dist/infrastructure/multicall/MulticallProvider.d.ts.map +0 -1
- package/dist/infrastructure/token-price/TokenPriceOracle.d.ts.map +0 -1
- package/dist/infrastructure/token-price/index.d.ts.map +0 -1
- package/dist/infrastructure/tornado/TornadoFeeOracle.d.ts +0 -90
- package/dist/infrastructure/tornado/TornadoFeeOracle.d.ts.map +0 -1
- package/dist/infrastructure/tornado/TornadoFeeOracle.js +0 -230
- package/dist/infrastructure/tornado/TornadoFeeOracle.js.map +0 -1
- package/dist/types.d.ts.map +0 -1
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TornadoFeeOracle = void 0;
|
|
4
|
-
const GasPriceOracle_1 = require("../gas/GasPriceOracle");
|
|
5
|
-
const TokenPriceOracle_1 = require("../token-price/TokenPriceOracle");
|
|
6
|
-
const ILogger_1 = require("../../application/ports/ILogger");
|
|
7
|
-
const TokenDefaults_1 = require("../../domain/config/TokenDefaults");
|
|
8
|
-
// NOTE: Gas limits now imported from TokenDefaults (centralized configuration)
|
|
9
|
-
// This eliminates duplication between TornadoFeeOracle, ChainConfigs, and FeeCalculator
|
|
10
|
-
/**
|
|
11
|
-
* TornadoFeeOracle
|
|
12
|
-
* Calculates fees for Tornado Cash withdrawals
|
|
13
|
-
* Based on @tornado/tornado-oracles TornadoFeeOracleV5
|
|
14
|
-
*
|
|
15
|
-
* Features:
|
|
16
|
-
* - Smart gas limit bumping (10% for relayer, 30% for user)
|
|
17
|
-
* - Token price conversion (ETH↔Token)
|
|
18
|
-
* - Refund calculation for non-ETH tokens
|
|
19
|
-
* - EIP-1559 and Legacy support
|
|
20
|
-
*/
|
|
21
|
-
class TornadoFeeOracle {
|
|
22
|
-
chainId;
|
|
23
|
-
relayerFeePercent;
|
|
24
|
-
gasPriceOracle;
|
|
25
|
-
tokenPriceOracle;
|
|
26
|
-
priceRepository;
|
|
27
|
-
logger;
|
|
28
|
-
constructor(options) {
|
|
29
|
-
this.chainId = options.chainId;
|
|
30
|
-
this.relayerFeePercent = options.relayerFeePercent;
|
|
31
|
-
// Initialize gas price oracle
|
|
32
|
-
this.gasPriceOracle = options.gasPriceOracle ?? new GasPriceOracle_1.GasPriceOracle({
|
|
33
|
-
chainId: options.chainId,
|
|
34
|
-
rpcUrl: options.rpcUrl,
|
|
35
|
-
logger: options.logger ?? new ILogger_1.ConsoleLogger('LegacyGasOracle'),
|
|
36
|
-
});
|
|
37
|
-
// Initialize token price oracle if RPC provided
|
|
38
|
-
if (options.tokenPriceOracle) {
|
|
39
|
-
this.tokenPriceOracle = options.tokenPriceOracle;
|
|
40
|
-
}
|
|
41
|
-
else if (options.rpcUrl) {
|
|
42
|
-
this.tokenPriceOracle = new TokenPriceOracle_1.TokenPriceOracle(options.rpcUrl, options.chainId, options.offchainOracleAddress, options.multicallAddress);
|
|
43
|
-
}
|
|
44
|
-
this.priceRepository = options.priceRepository;
|
|
45
|
-
this.logger = options.logger ?? new ILogger_1.ConsoleLogger('TornadoFeeOracle');
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Calculate withdrawal fee
|
|
49
|
-
* Main method matching TornadoFeeOracleV5.calculateWithdrawalFeeViaRelayer
|
|
50
|
-
*/
|
|
51
|
-
async calculateWithdrawalFee(input) {
|
|
52
|
-
const { currency, amount, decimals, refund, txType = 'relayer_withdrawal' } = input;
|
|
53
|
-
const currencyLower = currency.toLowerCase();
|
|
54
|
-
// 1. Get gas parameters
|
|
55
|
-
const gasParams = await this.getGasParams(txType);
|
|
56
|
-
const gasLimit = this.getGasLimit(currencyLower, txType);
|
|
57
|
-
const gasPriceWei = gasParams.maxFeePerGas
|
|
58
|
-
? BigInt(gasParams.maxFeePerGas)
|
|
59
|
-
: gasParams.gasPrice
|
|
60
|
-
? BigInt(gasParams.gasPrice)
|
|
61
|
-
: 0n;
|
|
62
|
-
// 2. Calculate gas cost in wei
|
|
63
|
-
const gasCostWei = this.calculateGasCost(gasParams, currencyLower, txType);
|
|
64
|
-
// 3. Calculate relayer fee
|
|
65
|
-
const relayerFee = this.calculateRelayerFee(amount);
|
|
66
|
-
this.logger.debug('TornadoFeeOracle fee inputs', {
|
|
67
|
-
chainId: this.chainId,
|
|
68
|
-
currency: currencyLower,
|
|
69
|
-
amount: amount.toString(),
|
|
70
|
-
decimals,
|
|
71
|
-
refund,
|
|
72
|
-
txType,
|
|
73
|
-
gasLimit,
|
|
74
|
-
gasPriceWei: gasPriceWei.toString(),
|
|
75
|
-
maxFeePerGas: gasParams.maxFeePerGas,
|
|
76
|
-
maxPriorityFeePerGas: gasParams.maxPriorityFeePerGas,
|
|
77
|
-
gasPrice: gasParams.gasPrice,
|
|
78
|
-
relayerFeePercent: this.relayerFeePercent,
|
|
79
|
-
});
|
|
80
|
-
// 4. For ETH, calculation is simple
|
|
81
|
-
if (currencyLower === 'eth') {
|
|
82
|
-
const totalFee = gasCostWei + relayerFee;
|
|
83
|
-
this.logger.debug('TornadoFeeOracle fee breakdown', {
|
|
84
|
-
gasCost: gasCostWei.toString(),
|
|
85
|
-
relayerFee: relayerFee.toString(),
|
|
86
|
-
totalFee: totalFee.toString(),
|
|
87
|
-
currency: 'eth',
|
|
88
|
-
});
|
|
89
|
-
return {
|
|
90
|
-
gasCost: gasCostWei,
|
|
91
|
-
relayerFee,
|
|
92
|
-
refundAmount: 0n,
|
|
93
|
-
totalFee,
|
|
94
|
-
currency: 'eth',
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
// 5. For tokens, convert ETH costs to token
|
|
98
|
-
const tokenPriceInEth = await this.getTokenPrice(currencyLower);
|
|
99
|
-
if (!tokenPriceInEth) {
|
|
100
|
-
throw new Error(`No price available for ${currency}`);
|
|
101
|
-
}
|
|
102
|
-
// Convert gas cost from ETH to token
|
|
103
|
-
// Formula: (ethAmount * 10^decimals) / price
|
|
104
|
-
const decimalsFactor = BigInt(10 ** decimals);
|
|
105
|
-
const gasCostInToken = (gasCostWei * decimalsFactor) / tokenPriceInEth;
|
|
106
|
-
// Relayer fee is already in token units
|
|
107
|
-
const relayerFeeInToken = relayerFee;
|
|
108
|
-
// Calculate refund in token if provided
|
|
109
|
-
let refundInToken = 0n;
|
|
110
|
-
if (refund && BigInt(refund) > 0) {
|
|
111
|
-
const refundWei = BigInt(refund);
|
|
112
|
-
refundInToken = (refundWei * decimalsFactor) / tokenPriceInEth;
|
|
113
|
-
}
|
|
114
|
-
// Total fee
|
|
115
|
-
const totalFee = gasCostInToken + relayerFeeInToken + refundInToken;
|
|
116
|
-
this.logger.debug('TornadoFeeOracle fee breakdown', {
|
|
117
|
-
tokenPriceInEth: tokenPriceInEth.toString(),
|
|
118
|
-
gasCostInToken: gasCostInToken.toString(),
|
|
119
|
-
relayerFeeInToken: relayerFeeInToken.toString(),
|
|
120
|
-
refundInToken: refundInToken.toString(),
|
|
121
|
-
totalFee: totalFee.toString(),
|
|
122
|
-
});
|
|
123
|
-
return {
|
|
124
|
-
gasCost: gasCostInToken,
|
|
125
|
-
relayerFee: relayerFeeInToken,
|
|
126
|
-
refundAmount: refundInToken,
|
|
127
|
-
totalFee,
|
|
128
|
-
currency: currencyLower,
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Get gas parameters for transaction
|
|
133
|
-
*/
|
|
134
|
-
async getGasParams(txType) {
|
|
135
|
-
const bumpPercent = this.getBumpPercent(txType);
|
|
136
|
-
return this.gasPriceOracle.getTxGasParams({
|
|
137
|
-
isLegacy: false,
|
|
138
|
-
bumpPercent,
|
|
139
|
-
legacySpeed: 'fast',
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* Calculate gas cost in wei
|
|
144
|
-
*/
|
|
145
|
-
calculateGasCost(gasParams, currency, txType) {
|
|
146
|
-
const gasLimit = this.getGasLimit(currency, txType);
|
|
147
|
-
// Extract gas price from params (EIP-1559 or Legacy)
|
|
148
|
-
let gasPriceWei;
|
|
149
|
-
if (gasParams.maxFeePerGas) {
|
|
150
|
-
// EIP-1559: use maxFeePerGas
|
|
151
|
-
gasPriceWei = BigInt(gasParams.maxFeePerGas);
|
|
152
|
-
}
|
|
153
|
-
else if (gasParams.gasPrice) {
|
|
154
|
-
// Legacy: use gasPrice
|
|
155
|
-
gasPriceWei = BigInt(gasParams.gasPrice);
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
throw new Error('Invalid gas parameters');
|
|
159
|
-
}
|
|
160
|
-
return gasPriceWei * BigInt(gasLimit);
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* Calculate relayer fee
|
|
164
|
-
*/
|
|
165
|
-
calculateRelayerFee(amount) {
|
|
166
|
-
const percent = this.relayerFeePercent;
|
|
167
|
-
// Apply fee percentage
|
|
168
|
-
// Formula: amount * percent (where percent is 0.004 for 0.4%)
|
|
169
|
-
const fee = (amount * BigInt(Math.round(percent * 1e6))) / BigInt(1e6);
|
|
170
|
-
return fee;
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* Get gas limit for operation and token
|
|
174
|
-
* Uses centralized TokenDefaults to eliminate duplication
|
|
175
|
-
*/
|
|
176
|
-
getGasLimit(currency, txType) {
|
|
177
|
-
// Check if it's a mining operation
|
|
178
|
-
if (txType.includes('mining')) {
|
|
179
|
-
const operation = txType.includes('reward') ? 'reward' : 'withdraw';
|
|
180
|
-
return (0, TokenDefaults_1.getMiningGasLimit)(operation);
|
|
181
|
-
}
|
|
182
|
-
// Regular Tornado withdraw
|
|
183
|
-
return (0, TokenDefaults_1.getTornadoGasLimit)(currency);
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* Get bump percent based on transaction type (V5 smart bumping)
|
|
187
|
-
* Uses centralized TokenDefaults to eliminate duplication
|
|
188
|
-
*/
|
|
189
|
-
getBumpPercent(txType) {
|
|
190
|
-
return (0, TokenDefaults_1.getBumpPercent)(txType);
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* Get token price in ETH (wei per token unit)
|
|
194
|
-
*/
|
|
195
|
-
async getTokenPrice(symbol) {
|
|
196
|
-
// Try price repository first (Redis)
|
|
197
|
-
if (this.priceRepository) {
|
|
198
|
-
const price = await this.priceRepository.getPrice(symbol);
|
|
199
|
-
if (price)
|
|
200
|
-
return price;
|
|
201
|
-
}
|
|
202
|
-
// Fallback to token price oracle
|
|
203
|
-
if (this.tokenPriceOracle) {
|
|
204
|
-
try {
|
|
205
|
-
const prices = await this.tokenPriceOracle.fetchPrices();
|
|
206
|
-
const price = prices[symbol.toLowerCase()];
|
|
207
|
-
if (price)
|
|
208
|
-
return BigInt(price);
|
|
209
|
-
}
|
|
210
|
-
catch {
|
|
211
|
-
// Ignore error, will return null
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
return null;
|
|
215
|
-
}
|
|
216
|
-
/**
|
|
217
|
-
* Get gas parameters for direct use
|
|
218
|
-
*/
|
|
219
|
-
async getGasParameters(isLegacy = false) {
|
|
220
|
-
return this.gasPriceOracle.getTxGasParams({ isLegacy });
|
|
221
|
-
}
|
|
222
|
-
/**
|
|
223
|
-
* Get chain ID
|
|
224
|
-
*/
|
|
225
|
-
getChainId() {
|
|
226
|
-
return this.chainId;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
exports.TornadoFeeOracle = TornadoFeeOracle;
|
|
230
|
-
//# sourceMappingURL=TornadoFeeOracle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TornadoFeeOracle.js","sourceRoot":"","sources":["../../../src/infrastructure/tornado/TornadoFeeOracle.ts"],"names":[],"mappings":";;;AAAA,0DAAuE;AACvE,sEAAmE;AAGnE,6DAAyE;AACzE,qEAM2C;AA8B3C,+EAA+E;AAC/E,wFAAwF;AAExF;;;;;;;;;;GAUG;AACH,MAAa,gBAAgB;IACnB,OAAO,CAAU;IACjB,iBAAiB,CAAS;IAC1B,cAAc,CAAiB;IAC/B,gBAAgB,CAAoB;IACpC,eAAe,CAAyB;IACxC,MAAM,CAAU;IAExB,YAAY,OA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