@clonegod/ttd-core 2.1.2 → 2.1.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.
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
- package/types/index.d.ts +5 -1
package/dist/index.d.ts
CHANGED
|
@@ -114,6 +114,8 @@ export declare enum CACHE_KEY_TYPE {
|
|
|
114
114
|
ORDER_RESULT = "o:result"
|
|
115
115
|
}
|
|
116
116
|
export declare enum LOCAL_EVENT_NAME {
|
|
117
|
+
EVENT_NEW_BLOCK_META = "EVENT_NEW_BLOCK_META",
|
|
118
|
+
EVENT_NEW_BLOCK = "EVENT_NEW_BLOCK",
|
|
117
119
|
EVENT_POOL_ACCOUNT_CHANGE = "EVENT_POOL_ACCOUNT_CHANGE",
|
|
118
120
|
EVENT_WALLET_TRANSACTION = "EVENT_WALLET_TRANSACTION",
|
|
119
121
|
EVENT_WALLET_TRANSACTION_NEW_TXID = "EVENT_WALLET_TRANSACTION_NEW_TXID"
|
package/dist/index.js
CHANGED
|
@@ -205,6 +205,8 @@ var CACHE_KEY_TYPE;
|
|
|
205
205
|
})(CACHE_KEY_TYPE || (exports.CACHE_KEY_TYPE = CACHE_KEY_TYPE = {}));
|
|
206
206
|
var LOCAL_EVENT_NAME;
|
|
207
207
|
(function (LOCAL_EVENT_NAME) {
|
|
208
|
+
LOCAL_EVENT_NAME["EVENT_NEW_BLOCK_META"] = "EVENT_NEW_BLOCK_META";
|
|
209
|
+
LOCAL_EVENT_NAME["EVENT_NEW_BLOCK"] = "EVENT_NEW_BLOCK";
|
|
208
210
|
LOCAL_EVENT_NAME["EVENT_POOL_ACCOUNT_CHANGE"] = "EVENT_POOL_ACCOUNT_CHANGE";
|
|
209
211
|
LOCAL_EVENT_NAME["EVENT_WALLET_TRANSACTION"] = "EVENT_WALLET_TRANSACTION";
|
|
210
212
|
LOCAL_EVENT_NAME["EVENT_WALLET_TRANSACTION_NEW_TXID"] = "EVENT_WALLET_TRANSACTION_NEW_TXID";
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -168,7 +168,11 @@ export interface TradeStrategyType {
|
|
|
168
168
|
fee_max_cap: number, // 动态GAS的上限
|
|
169
169
|
tip_ratio: number // tip 占总gas的比例(gas=priority_fee + tip_fee)
|
|
170
170
|
tip_up_ratio: number // tip上浮比例
|
|
171
|
-
|
|
171
|
+
|
|
172
|
+
sol_priority_fee: number // solana 优先级费用 lamports (1SOL = 10^9 lamports)
|
|
173
|
+
sol_tip_fee: number // solana tip 金额 lamports (1SOL = 10^9 lamports)
|
|
174
|
+
max_block_offset: number // Solana特定:限制交易在多少个区块内有效(约等于秒数,1 block ≈ 0.4秒)。使用最新blockhash,设置lastValidBlockHeight = currentBlockHeight + max_block_offset
|
|
175
|
+
|
|
172
176
|
// evm chain
|
|
173
177
|
evm_gas_limit: number // 300000
|
|
174
178
|
evm_gas_price_gwei: number // 1.1 Gwei
|