@clonegod/ttd-sol-common 2.0.70 → 2.0.71

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.
@@ -101,8 +101,8 @@ class SolTransactionBuilder {
101
101
  if (tip_lamports < 5000) {
102
102
  tip_lamports = 5000;
103
103
  }
104
- if (tip_lamports > 300000) {
105
- tip_lamports = 300000;
104
+ if (tip_lamports > 1000000) {
105
+ tip_lamports = 1000000;
106
106
  }
107
107
  let tip_instruction = web3_js_1.SystemProgram.transfer({
108
108
  fromPubkey: this.keypair.publicKey,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-sol-common",
3
- "version": "2.0.70",
3
+ "version": "2.0.71",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "push": "npm run build && npm publish"
14
14
  },
15
15
  "dependencies": {
16
- "@clonegod/ttd-core": "3.1.84",
16
+ "@clonegod/ttd-core": "3.1.86",
17
17
  "@solana/web3.js": "1.91.6",
18
18
  "rpc-websockets": "7.10.0",
19
19
  "axios": "^1.2.3",
@@ -178,10 +178,10 @@ export class SolTransactionBuilder {
178
178
  // 2、swqos + jito: 至少 0.0002 SOL 小费 -> lamports = 0.0002 * LAMPORTS_PER_SOL
179
179
  let tip_lamports = sol_tip_fee
180
180
  if (tip_lamports < 5000) {
181
- tip_lamports = 5000
181
+ tip_lamports = 5000 // 下限:Helius swqos 协议硬要求
182
182
  }
183
- if (tip_lamports > 300000) {
184
- tip_lamports = 300000
183
+ if (tip_lamports > 1000000) {
184
+ tip_lamports = 1000000 // 上限:0.001 SOL
185
185
  }
186
186
  let tip_instruction = SystemProgram.transfer({
187
187
  fromPubkey: this.keypair.publicKey,