@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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-core",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "description": "Common types and utilities for trading systems - use `npm run push` to publish",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",
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
- block_offset?: number // Solana特定:交易在提交之后的指定slot偏移内有效
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