@minip2p/react-native 0.8.2 → 0.8.3

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.
@@ -2144,7 +2144,8 @@ export const P2pEvent = (() => {
2144
2144
  }
2145
2145
  }
2146
2146
  /**
2147
- * One hole-punch window failed.
2147
+ * One DCUtR hole-punch round failed; the relay holder may start the
2148
+ * next one.
2148
2149
  */
2149
2150
  class HolePunchFailed_ extends UniffiEnum {
2150
2151
  /**
@@ -2531,16 +2532,19 @@ const FfiConverterTypeP2pEvent = (() => {
2531
2532
  case 7:
2532
2533
  return new P2pEvent.IdentifyReceived({
2533
2534
  peerId: FfiConverterString.readFromCursor(c),
2535
+ connId: FfiConverterUInt64.readFromCursor(c),
2534
2536
  info: FfiConverterTypeIdentifyInfo.readFromCursor(c)
2535
2537
  });
2536
2538
  case 8:
2537
2539
  return new P2pEvent.PingRttMeasured({
2538
2540
  peerId: FfiConverterString.readFromCursor(c),
2541
+ connId: FfiConverterUInt64.readFromCursor(c),
2539
2542
  rttMs: FfiConverterUInt64.readFromCursor(c)
2540
2543
  });
2541
2544
  case 9:
2542
2545
  return new P2pEvent.PingTimeout({
2543
- peerId: FfiConverterString.readFromCursor(c)
2546
+ peerId: FfiConverterString.readFromCursor(c),
2547
+ connId: FfiConverterUInt64.readFromCursor(c)
2544
2548
  });
2545
2549
  case 10:
2546
2550
  return new P2pEvent.StreamReady({
@@ -2619,14 +2623,17 @@ const FfiConverterTypeP2pEvent = (() => {
2619
2623
  case 22:
2620
2624
  return new P2pEvent.InboundPathEstablished({
2621
2625
  peerId: FfiConverterString.readFromCursor(c),
2622
- path: FfiConverterTypePathKind.readFromCursor(c)
2626
+ path: FfiConverterTypePathKind.readFromCursor(c),
2627
+ connId: FfiConverterUInt64.readFromCursor(c)
2623
2628
  });
2624
2629
  case 23:
2625
2630
  return new P2pEvent.PathUpgraded({
2626
2631
  connectId: FfiConverterUInt64.readFromCursor(c),
2627
2632
  peerId: FfiConverterString.readFromCursor(c),
2628
2633
  from: FfiConverterTypePathKind.readFromCursor(c),
2629
- to: FfiConverterTypePathKind.readFromCursor(c)
2634
+ to: FfiConverterTypePathKind.readFromCursor(c),
2635
+ oldConnId: FfiConverterUInt64.readFromCursor(c),
2636
+ newConnId: FfiConverterUInt64.readFromCursor(c)
2630
2637
  });
2631
2638
  case 24:
2632
2639
  return new P2pEvent.HolePunchFailed({
@@ -2648,7 +2655,9 @@ const FfiConverterTypeP2pEvent = (() => {
2648
2655
  });
2649
2656
  case 27:
2650
2657
  return new P2pEvent.InboundDirectUpgrade({
2651
- peerId: FfiConverterString.readFromCursor(c)
2658
+ peerId: FfiConverterString.readFromCursor(c),
2659
+ oldConnId: FfiConverterUInt64.readFromCursor(c),
2660
+ newConnId: FfiConverterUInt64.readFromCursor(c)
2652
2661
  });
2653
2662
  case 28:
2654
2663
  return new P2pEvent.Message({
@@ -2768,6 +2777,7 @@ const FfiConverterTypeP2pEvent = (() => {
2768
2777
  c.writeI32(7);
2769
2778
  const inner = value.inner;
2770
2779
  FfiConverterString.writeIntoCursor(inner.peerId, c);
2780
+ FfiConverterUInt64.writeIntoCursor(inner.connId, c);
2771
2781
  FfiConverterTypeIdentifyInfo.writeIntoCursor(inner.info, c);
2772
2782
  return;
2773
2783
  }
@@ -2776,6 +2786,7 @@ const FfiConverterTypeP2pEvent = (() => {
2776
2786
  c.writeI32(8);
2777
2787
  const inner = value.inner;
2778
2788
  FfiConverterString.writeIntoCursor(inner.peerId, c);
2789
+ FfiConverterUInt64.writeIntoCursor(inner.connId, c);
2779
2790
  FfiConverterUInt64.writeIntoCursor(inner.rttMs, c);
2780
2791
  return;
2781
2792
  }
@@ -2784,6 +2795,7 @@ const FfiConverterTypeP2pEvent = (() => {
2784
2795
  c.writeI32(9);
2785
2796
  const inner = value.inner;
2786
2797
  FfiConverterString.writeIntoCursor(inner.peerId, c);
2798
+ FfiConverterUInt64.writeIntoCursor(inner.connId, c);
2787
2799
  return;
2788
2800
  }
2789
2801
  case P2pEvent_Tags.StreamReady:
@@ -2902,6 +2914,7 @@ const FfiConverterTypeP2pEvent = (() => {
2902
2914
  const inner = value.inner;
2903
2915
  FfiConverterString.writeIntoCursor(inner.peerId, c);
2904
2916
  FfiConverterTypePathKind.writeIntoCursor(inner.path, c);
2917
+ FfiConverterUInt64.writeIntoCursor(inner.connId, c);
2905
2918
  return;
2906
2919
  }
2907
2920
  case P2pEvent_Tags.PathUpgraded:
@@ -2912,6 +2925,8 @@ const FfiConverterTypeP2pEvent = (() => {
2912
2925
  FfiConverterString.writeIntoCursor(inner.peerId, c);
2913
2926
  FfiConverterTypePathKind.writeIntoCursor(inner.from, c);
2914
2927
  FfiConverterTypePathKind.writeIntoCursor(inner.to, c);
2928
+ FfiConverterUInt64.writeIntoCursor(inner.oldConnId, c);
2929
+ FfiConverterUInt64.writeIntoCursor(inner.newConnId, c);
2915
2930
  return;
2916
2931
  }
2917
2932
  case P2pEvent_Tags.HolePunchFailed:
@@ -2946,6 +2961,8 @@ const FfiConverterTypeP2pEvent = (() => {
2946
2961
  c.writeI32(27);
2947
2962
  const inner = value.inner;
2948
2963
  FfiConverterString.writeIntoCursor(inner.peerId, c);
2964
+ FfiConverterUInt64.writeIntoCursor(inner.oldConnId, c);
2965
+ FfiConverterUInt64.writeIntoCursor(inner.newConnId, c);
2949
2966
  return;
2950
2967
  }
2951
2968
  case P2pEvent_Tags.Message:
@@ -3097,6 +3114,7 @@ const FfiConverterTypeP2pEvent = (() => {
3097
3114
  const inner = value.inner;
3098
3115
  let size = 4;
3099
3116
  size += FfiConverterString.allocationSize(inner.peerId);
3117
+ size += FfiConverterUInt64.allocationSize(inner.connId);
3100
3118
  size += FfiConverterTypeIdentifyInfo.allocationSize(inner.info);
3101
3119
  return size;
3102
3120
  }
@@ -3105,6 +3123,7 @@ const FfiConverterTypeP2pEvent = (() => {
3105
3123
  const inner = value.inner;
3106
3124
  let size = 4;
3107
3125
  size += FfiConverterString.allocationSize(inner.peerId);
3126
+ size += FfiConverterUInt64.allocationSize(inner.connId);
3108
3127
  size += FfiConverterUInt64.allocationSize(inner.rttMs);
3109
3128
  return size;
3110
3129
  }
@@ -3113,6 +3132,7 @@ const FfiConverterTypeP2pEvent = (() => {
3113
3132
  const inner = value.inner;
3114
3133
  let size = 4;
3115
3134
  size += FfiConverterString.allocationSize(inner.peerId);
3135
+ size += FfiConverterUInt64.allocationSize(inner.connId);
3116
3136
  return size;
3117
3137
  }
3118
3138
  case P2pEvent_Tags.StreamReady:
@@ -3231,6 +3251,7 @@ const FfiConverterTypeP2pEvent = (() => {
3231
3251
  let size = 4;
3232
3252
  size += FfiConverterString.allocationSize(inner.peerId);
3233
3253
  size += FfiConverterTypePathKind.allocationSize(inner.path);
3254
+ size += FfiConverterUInt64.allocationSize(inner.connId);
3234
3255
  return size;
3235
3256
  }
3236
3257
  case P2pEvent_Tags.PathUpgraded:
@@ -3241,6 +3262,8 @@ const FfiConverterTypeP2pEvent = (() => {
3241
3262
  size += FfiConverterString.allocationSize(inner.peerId);
3242
3263
  size += FfiConverterTypePathKind.allocationSize(inner.from);
3243
3264
  size += FfiConverterTypePathKind.allocationSize(inner.to);
3265
+ size += FfiConverterUInt64.allocationSize(inner.oldConnId);
3266
+ size += FfiConverterUInt64.allocationSize(inner.newConnId);
3244
3267
  return size;
3245
3268
  }
3246
3269
  case P2pEvent_Tags.HolePunchFailed:
@@ -3275,6 +3298,8 @@ const FfiConverterTypeP2pEvent = (() => {
3275
3298
  const inner = value.inner;
3276
3299
  let size = 4;
3277
3300
  size += FfiConverterString.allocationSize(inner.peerId);
3301
+ size += FfiConverterUInt64.allocationSize(inner.oldConnId);
3302
+ size += FfiConverterUInt64.allocationSize(inner.newConnId);
3278
3303
  return size;
3279
3304
  }
3280
3305
  case P2pEvent_Tags.Message: