four-flap-meme-sdk 1.4.88 → 1.4.90
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.
|
@@ -66,6 +66,19 @@ export type HoldersMakerParams = {
|
|
|
66
66
|
/** 配置 */
|
|
67
67
|
config: HoldersMakerConfig;
|
|
68
68
|
};
|
|
69
|
+
/**
|
|
70
|
+
* ✅ 交易层级(用于按依赖顺序广播)
|
|
71
|
+
* 每层内的交易可以并行广播,层之间需要按顺序等待确认
|
|
72
|
+
*/
|
|
73
|
+
export type TransactionLayer = {
|
|
74
|
+
/** 层级名称 */
|
|
75
|
+
name: string;
|
|
76
|
+
/** 该层的交易索引范围 [startIndex, endIndex) */
|
|
77
|
+
startIndex: number;
|
|
78
|
+
endIndex: number;
|
|
79
|
+
/** 该层交易数量 */
|
|
80
|
+
count: number;
|
|
81
|
+
};
|
|
69
82
|
/** 批次结果 */
|
|
70
83
|
export type BatchResult = {
|
|
71
84
|
batchIndex: number;
|
|
@@ -74,6 +87,10 @@ export type BatchResult = {
|
|
|
74
87
|
txHashes?: string[];
|
|
75
88
|
error?: string;
|
|
76
89
|
walletCount: number;
|
|
90
|
+
/** ✅ 交易层级信息(用于非 Bundle 链按依赖顺序广播) */
|
|
91
|
+
transactionLayers?: TransactionLayer[];
|
|
92
|
+
/** ✅ 分发多跳数 */
|
|
93
|
+
disperseHopCount?: number;
|
|
77
94
|
};
|
|
78
95
|
/** 刷持有人结果 */
|
|
79
96
|
export type HoldersMakerResult = {
|
|
@@ -95,6 +112,8 @@ export type HoldersMakerResult = {
|
|
|
95
112
|
totalBatchCount: number;
|
|
96
113
|
/** 错误信息 */
|
|
97
114
|
error?: string;
|
|
115
|
+
/** ✅ 分发多跳数 */
|
|
116
|
+
disperseHopCount?: number;
|
|
98
117
|
};
|
|
99
118
|
/**
|
|
100
119
|
* 刷持有人(一个 bundle 完成分发+买入)
|
|
@@ -774,13 +774,16 @@ export async function holdersMaker(params) {
|
|
|
774
774
|
success: res.success,
|
|
775
775
|
signedTransactions: res.signedTransactions,
|
|
776
776
|
error: res.error,
|
|
777
|
-
walletCount: res.walletCount
|
|
777
|
+
walletCount: res.walletCount,
|
|
778
|
+
disperseHopCount: disperseHopCount // ✅ 添加分发多跳数
|
|
778
779
|
});
|
|
779
780
|
}
|
|
780
781
|
// ✅ 添加利润多跳钱包到结果
|
|
781
782
|
if (allProfitHopWallets.length > 0) {
|
|
782
783
|
result.profitHopWallets = allProfitHopWallets;
|
|
783
784
|
}
|
|
785
|
+
// ✅ 添加分发多跳数到结果
|
|
786
|
+
result.disperseHopCount = disperseHopCount;
|
|
784
787
|
result.success = result.successBatchCount > 0;
|
|
785
788
|
console.log(`[HoldersMaker] 完成: ${result.successBatchCount}/${result.totalBatchCount} 批成功`);
|
|
786
789
|
}
|