@breeztech/breez-sdk-spark-react-native 0.9.0 → 0.9.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breeztech/breez-sdk-spark-react-native",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "React Native bindings for the Breez SDK - Nodeless (Spark Implementation)",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
@@ -197,7 +197,7 @@
197
197
  "version": "0.49.0"
198
198
  },
199
199
  "checksums": {
200
- "android": "5733f5e014bb2fa6f7604d62f42e263ba34d8cb8c6783303ccf82b7576ac3ba4",
201
- "ios": "fc28008cb7995c273ffaebbbde96a7a120b6e54e223ea635c24d10fac445c233"
200
+ "android": "db63a1981bacf6ec143f5402ed2c8cae49a9ba70354eb8fc14419920809bbe45",
201
+ "ios": "8b93c7c568f5d2006f8a75082711440edfec999b46bf9bac6d6ed44e0038beae"
202
202
  }
203
203
  }
@@ -2070,6 +2070,12 @@ export type Config = {
2070
2070
  * once the balance exceeds the threshold.
2071
2071
  */
2072
2072
  stableBalanceConfig: StableBalanceConfig | undefined;
2073
+ /**
2074
+ * Maximum number of concurrent transfer claims.
2075
+ *
2076
+ * Default is 4. Increase for server environments with high incoming payment volume.
2077
+ */
2078
+ maxConcurrentClaims: /*u32*/ number;
2073
2079
  };
2074
2080
 
2075
2081
  /**
@@ -2119,6 +2125,7 @@ const FfiConverterTypeConfig = (() => {
2119
2125
  optimizationConfig: FfiConverterTypeOptimizationConfig.read(from),
2120
2126
  stableBalanceConfig:
2121
2127
  FfiConverterOptionalTypeStableBalanceConfig.read(from),
2128
+ maxConcurrentClaims: FfiConverterUInt32.read(from),
2122
2129
  };
2123
2130
  }
2124
2131
  write(value: TypeName, into: RustBuffer): void {
@@ -2140,6 +2147,7 @@ const FfiConverterTypeConfig = (() => {
2140
2147
  value.stableBalanceConfig,
2141
2148
  into
2142
2149
  );
2150
+ FfiConverterUInt32.write(value.maxConcurrentClaims, into);
2143
2151
  }
2144
2152
  allocationSize(value: TypeName): number {
2145
2153
  return (
@@ -2162,7 +2170,8 @@ const FfiConverterTypeConfig = (() => {
2162
2170
  ) +
2163
2171
  FfiConverterOptionalTypeStableBalanceConfig.allocationSize(
2164
2172
  value.stableBalanceConfig
2165
- )
2173
+ ) +
2174
+ FfiConverterUInt32.allocationSize(value.maxConcurrentClaims)
2166
2175
  );
2167
2176
  }
2168
2177
  }
@@ -6830,11 +6839,15 @@ export type OptimizationConfig = {
6830
6839
  */
6831
6840
  autoEnabled: boolean;
6832
6841
  /**
6833
- * The desired multiplicity for the leaf set. Acceptable values are 0-5.
6842
+ * The desired multiplicity for the leaf set.
6834
6843
  *
6835
6844
  * Setting this to 0 will optimize for maximizing unilateral exit.
6836
6845
  * Higher values will optimize for minimizing transfer swaps, with higher values
6837
- * being more aggressive.
6846
+ * being more aggressive and allowing better TPS rates.
6847
+ *
6848
+ * For end-user wallets, values of 1-5 are recommended. Values above 5 are
6849
+ * intended for high-throughput server environments and are not recommended
6850
+ * for end-user wallets due to significantly higher unilateral exit costs.
6838
6851
  *
6839
6852
  * Default value is 1.
6840
6853
  */