@minip2p/react-native 0.7.1 → 0.7.2
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/README.md +1 -0
- package/android/src/main/jniLibs/arm64-v8a/libminip2p_ffi.so +0 -0
- package/android/src/main/jniLibs/x86_64/libminip2p_ffi.so +0 -0
- package/build/Minip2pFfi.xcframework/Info.plist +4 -4
- package/build/Minip2pFfi.xcframework/ios-arm64/libminip2p_ffi.a +2 -2
- package/build/Minip2pFfi.xcframework/ios-arm64-simulator/libminip2p_ffi.a +2 -2
- package/cpp/generated/minip2p_ffi.cpp +12 -8
- package/lib/module/adapter.js +51 -47
- package/lib/module/adapter.js.map +1 -1
- package/lib/module/generated/minip2p_ffi.js +135 -78
- package/lib/module/generated/minip2p_ffi.js.map +1 -1
- package/lib/typescript/src/adapter.d.ts.map +1 -1
- package/lib/typescript/src/generated/minip2p_ffi-ffi.d.ts +4 -4
- package/lib/typescript/src/generated/minip2p_ffi-ffi.d.ts.map +1 -1
- package/lib/typescript/src/generated/minip2p_ffi.d.ts +105 -43
- package/lib/typescript/src/generated/minip2p_ffi.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/adapter.ts +77 -46
- package/src/generated/minip2p_ffi-ffi.ts +4 -4
- package/src/generated/minip2p_ffi.ts +160 -86
|
@@ -121,15 +121,17 @@ const FfiConverterTypeConnectionInfo = (() => {
|
|
|
121
121
|
readFromCursor(c) {
|
|
122
122
|
return {
|
|
123
123
|
connId: FfiConverterUInt64.readFromCursor(c),
|
|
124
|
-
remoteAddr: FfiConverterOptionalString.readFromCursor(c)
|
|
124
|
+
remoteAddr: FfiConverterOptionalString.readFromCursor(c),
|
|
125
|
+
readyProtocols: FfiConverterOptionalSequenceString.readFromCursor(c)
|
|
125
126
|
};
|
|
126
127
|
}
|
|
127
128
|
writeIntoCursor(value, c) {
|
|
128
129
|
FfiConverterUInt64.writeIntoCursor(value.connId, c);
|
|
129
130
|
FfiConverterOptionalString.writeIntoCursor(value.remoteAddr, c);
|
|
131
|
+
FfiConverterOptionalSequenceString.writeIntoCursor(value.readyProtocols, c);
|
|
130
132
|
}
|
|
131
133
|
allocationSize(value) {
|
|
132
|
-
return FfiConverterUInt64.allocationSize(value.connId) + FfiConverterOptionalString.allocationSize(value.remoteAddr);
|
|
134
|
+
return FfiConverterUInt64.allocationSize(value.connId) + FfiConverterOptionalString.allocationSize(value.remoteAddr) + FfiConverterOptionalSequenceString.allocationSize(value.readyProtocols);
|
|
133
135
|
}
|
|
134
136
|
}
|
|
135
137
|
;
|
|
@@ -1654,6 +1656,7 @@ export let P2pEvent_Tags = /*#__PURE__*/function (P2pEvent_Tags) {
|
|
|
1654
1656
|
P2pEvent_Tags["DriverFailed"] = "DriverFailed";
|
|
1655
1657
|
P2pEvent_Tags["ConnectionEstablished"] = "ConnectionEstablished";
|
|
1656
1658
|
P2pEvent_Tags["ConnectionClosed"] = "ConnectionClosed";
|
|
1659
|
+
P2pEvent_Tags["ConnectionReplaced"] = "ConnectionReplaced";
|
|
1657
1660
|
P2pEvent_Tags["PeerReady"] = "PeerReady";
|
|
1658
1661
|
P2pEvent_Tags["IdentifyReceived"] = "IdentifyReceived";
|
|
1659
1662
|
P2pEvent_Tags["PingRttMeasured"] = "PingRttMeasured";
|
|
@@ -1733,7 +1736,7 @@ export const P2pEvent = (() => {
|
|
|
1733
1736
|
}
|
|
1734
1737
|
}
|
|
1735
1738
|
/**
|
|
1736
|
-
* A verified connection
|
|
1739
|
+
* A peer went from disconnected to connected over a verified connection.
|
|
1737
1740
|
*/
|
|
1738
1741
|
class ConnectionEstablished_ extends UniffiEnum {
|
|
1739
1742
|
/**
|
|
@@ -1754,7 +1757,7 @@ export const P2pEvent = (() => {
|
|
|
1754
1757
|
}
|
|
1755
1758
|
}
|
|
1756
1759
|
/**
|
|
1757
|
-
*
|
|
1760
|
+
* The peer's last connection closed; the peer is now disconnected.
|
|
1758
1761
|
*/
|
|
1759
1762
|
class ConnectionClosed_ extends UniffiEnum {
|
|
1760
1763
|
/**
|
|
@@ -1775,7 +1778,33 @@ export const P2pEvent = (() => {
|
|
|
1775
1778
|
}
|
|
1776
1779
|
}
|
|
1777
1780
|
/**
|
|
1778
|
-
* A
|
|
1781
|
+
* A newer connection took the peer's single connection slot from
|
|
1782
|
+
* `old_conn_id`.
|
|
1783
|
+
* The peer stays connected; every stream on `old_conn_id` ended with
|
|
1784
|
+
* it, and a fresh `PeerReady` follows for `new_conn_id`.
|
|
1785
|
+
*/
|
|
1786
|
+
class ConnectionReplaced_ extends UniffiEnum {
|
|
1787
|
+
/**
|
|
1788
|
+
* @private
|
|
1789
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1790
|
+
*/
|
|
1791
|
+
[uniffiTypeNameSymbol] = "P2pEvent";
|
|
1792
|
+
tag = P2pEvent_Tags.ConnectionReplaced;
|
|
1793
|
+
constructor(inner) {
|
|
1794
|
+
super("P2pEvent", "ConnectionReplaced");
|
|
1795
|
+
this.inner = Object.freeze(inner);
|
|
1796
|
+
}
|
|
1797
|
+
static new(inner) {
|
|
1798
|
+
return new ConnectionReplaced_(inner);
|
|
1799
|
+
}
|
|
1800
|
+
static instanceOf(obj) {
|
|
1801
|
+
return obj.tag === P2pEvent_Tags.ConnectionReplaced;
|
|
1802
|
+
}
|
|
1803
|
+
}
|
|
1804
|
+
/**
|
|
1805
|
+
* A peer's connection completed Identify and is ready for application
|
|
1806
|
+
* protocols. Fires once per connection; one whose `conn_id` is no longer
|
|
1807
|
+
* the peer's current connection is stale.
|
|
1779
1808
|
*/
|
|
1780
1809
|
class PeerReady_ extends UniffiEnum {
|
|
1781
1810
|
/**
|
|
@@ -2242,7 +2271,7 @@ export const P2pEvent = (() => {
|
|
|
2242
2271
|
}
|
|
2243
2272
|
}
|
|
2244
2273
|
/**
|
|
2245
|
-
* A peer
|
|
2274
|
+
* A peer's subscription ended: withdrawn, or its connection closed or was replaced.
|
|
2246
2275
|
*/
|
|
2247
2276
|
class PeerUnsubscribed_ extends UniffiEnum {
|
|
2248
2277
|
/**
|
|
@@ -2418,6 +2447,7 @@ export const P2pEvent = (() => {
|
|
|
2418
2447
|
DriverFailed: DriverFailed_,
|
|
2419
2448
|
ConnectionEstablished: ConnectionEstablished_,
|
|
2420
2449
|
ConnectionClosed: ConnectionClosed_,
|
|
2450
|
+
ConnectionReplaced: ConnectionReplaced_,
|
|
2421
2451
|
PeerReady: PeerReady_,
|
|
2422
2452
|
IdentifyReceived: IdentifyReceived_,
|
|
2423
2453
|
PingRttMeasured: PingRttMeasured_,
|
|
@@ -2481,25 +2511,32 @@ const FfiConverterTypeP2pEvent = (() => {
|
|
|
2481
2511
|
connId: FfiConverterUInt64.readFromCursor(c)
|
|
2482
2512
|
});
|
|
2483
2513
|
case 5:
|
|
2514
|
+
return new P2pEvent.ConnectionReplaced({
|
|
2515
|
+
peerId: FfiConverterString.readFromCursor(c),
|
|
2516
|
+
oldConnId: FfiConverterUInt64.readFromCursor(c),
|
|
2517
|
+
newConnId: FfiConverterUInt64.readFromCursor(c)
|
|
2518
|
+
});
|
|
2519
|
+
case 6:
|
|
2484
2520
|
return new P2pEvent.PeerReady({
|
|
2485
2521
|
peerId: FfiConverterString.readFromCursor(c),
|
|
2522
|
+
connId: FfiConverterUInt64.readFromCursor(c),
|
|
2486
2523
|
protocols: FfiConverterSequenceString.readFromCursor(c)
|
|
2487
2524
|
});
|
|
2488
|
-
case
|
|
2525
|
+
case 7:
|
|
2489
2526
|
return new P2pEvent.IdentifyReceived({
|
|
2490
2527
|
peerId: FfiConverterString.readFromCursor(c),
|
|
2491
2528
|
info: FfiConverterTypeIdentifyInfo.readFromCursor(c)
|
|
2492
2529
|
});
|
|
2493
|
-
case
|
|
2530
|
+
case 8:
|
|
2494
2531
|
return new P2pEvent.PingRttMeasured({
|
|
2495
2532
|
peerId: FfiConverterString.readFromCursor(c),
|
|
2496
2533
|
rttMs: FfiConverterUInt64.readFromCursor(c)
|
|
2497
2534
|
});
|
|
2498
|
-
case
|
|
2535
|
+
case 9:
|
|
2499
2536
|
return new P2pEvent.PingTimeout({
|
|
2500
2537
|
peerId: FfiConverterString.readFromCursor(c)
|
|
2501
2538
|
});
|
|
2502
|
-
case
|
|
2539
|
+
case 10:
|
|
2503
2540
|
return new P2pEvent.StreamReady({
|
|
2504
2541
|
peerId: FfiConverterString.readFromCursor(c),
|
|
2505
2542
|
connId: FfiConverterUInt64.readFromCursor(c),
|
|
@@ -2507,26 +2544,26 @@ const FfiConverterTypeP2pEvent = (() => {
|
|
|
2507
2544
|
protocolId: FfiConverterString.readFromCursor(c),
|
|
2508
2545
|
initiatedLocally: FfiConverterBool.readFromCursor(c)
|
|
2509
2546
|
});
|
|
2510
|
-
case
|
|
2547
|
+
case 11:
|
|
2511
2548
|
return new P2pEvent.StreamData({
|
|
2512
2549
|
peerId: FfiConverterString.readFromCursor(c),
|
|
2513
2550
|
connId: FfiConverterUInt64.readFromCursor(c),
|
|
2514
2551
|
streamId: FfiConverterUInt64.readFromCursor(c),
|
|
2515
2552
|
data: FfiConverterArrayBuffer.readFromCursor(c)
|
|
2516
2553
|
});
|
|
2517
|
-
case
|
|
2554
|
+
case 12:
|
|
2518
2555
|
return new P2pEvent.StreamRemoteWriteClosed({
|
|
2519
2556
|
peerId: FfiConverterString.readFromCursor(c),
|
|
2520
2557
|
connId: FfiConverterUInt64.readFromCursor(c),
|
|
2521
2558
|
streamId: FfiConverterUInt64.readFromCursor(c)
|
|
2522
2559
|
});
|
|
2523
|
-
case
|
|
2560
|
+
case 13:
|
|
2524
2561
|
return new P2pEvent.StreamClosed({
|
|
2525
2562
|
peerId: FfiConverterString.readFromCursor(c),
|
|
2526
2563
|
connId: FfiConverterUInt64.readFromCursor(c),
|
|
2527
2564
|
streamId: FfiConverterUInt64.readFromCursor(c)
|
|
2528
2565
|
});
|
|
2529
|
-
case
|
|
2566
|
+
case 14:
|
|
2530
2567
|
return new P2pEvent.EndpointError({
|
|
2531
2568
|
kind: FfiConverterTypeEndpointErrorKind.readFromCursor(c),
|
|
2532
2569
|
peerId: FfiConverterOptionalString.readFromCursor(c),
|
|
@@ -2534,67 +2571,67 @@ const FfiConverterTypeP2pEvent = (() => {
|
|
|
2534
2571
|
streamId: FfiConverterOptionalUInt64.readFromCursor(c),
|
|
2535
2572
|
detail: FfiConverterString.readFromCursor(c)
|
|
2536
2573
|
});
|
|
2537
|
-
case
|
|
2574
|
+
case 15:
|
|
2538
2575
|
return new P2pEvent.ReachabilityChanged({
|
|
2539
2576
|
previous: FfiConverterTypeReachability.readFromCursor(c),
|
|
2540
2577
|
current: FfiConverterTypeReachability.readFromCursor(c),
|
|
2541
2578
|
confirmedAddrs: FfiConverterSequenceString.readFromCursor(c)
|
|
2542
2579
|
});
|
|
2543
|
-
case
|
|
2580
|
+
case 16:
|
|
2544
2581
|
return new P2pEvent.PublicAddressesChanged({
|
|
2545
2582
|
addrs: FfiConverterSequenceString.readFromCursor(c)
|
|
2546
2583
|
});
|
|
2547
|
-
case
|
|
2584
|
+
case 17:
|
|
2548
2585
|
return new P2pEvent.RelayReserved({
|
|
2549
2586
|
relayPeerId: FfiConverterString.readFromCursor(c),
|
|
2550
2587
|
expiresUnixSecs: FfiConverterOptionalUInt64.readFromCursor(c)
|
|
2551
2588
|
});
|
|
2552
|
-
case
|
|
2589
|
+
case 18:
|
|
2553
2590
|
return new P2pEvent.RelayReservationLost({
|
|
2554
2591
|
relayPeerId: FfiConverterString.readFromCursor(c)
|
|
2555
2592
|
});
|
|
2556
|
-
case
|
|
2593
|
+
case 19:
|
|
2557
2594
|
return new P2pEvent.PathEstablished({
|
|
2558
2595
|
connectId: FfiConverterUInt64.readFromCursor(c),
|
|
2559
2596
|
peerId: FfiConverterString.readFromCursor(c),
|
|
2560
2597
|
connId: FfiConverterUInt64.readFromCursor(c),
|
|
2561
2598
|
path: FfiConverterTypePathKind.readFromCursor(c)
|
|
2562
2599
|
});
|
|
2563
|
-
case
|
|
2600
|
+
case 20:
|
|
2564
2601
|
return new P2pEvent.InboundPathEstablished({
|
|
2565
2602
|
peerId: FfiConverterString.readFromCursor(c),
|
|
2566
2603
|
path: FfiConverterTypePathKind.readFromCursor(c)
|
|
2567
2604
|
});
|
|
2568
|
-
case
|
|
2605
|
+
case 21:
|
|
2569
2606
|
return new P2pEvent.PathUpgraded({
|
|
2570
2607
|
connectId: FfiConverterUInt64.readFromCursor(c),
|
|
2571
2608
|
peerId: FfiConverterString.readFromCursor(c),
|
|
2572
2609
|
from: FfiConverterTypePathKind.readFromCursor(c),
|
|
2573
2610
|
to: FfiConverterTypePathKind.readFromCursor(c)
|
|
2574
2611
|
});
|
|
2575
|
-
case
|
|
2612
|
+
case 22:
|
|
2576
2613
|
return new P2pEvent.HolePunchFailed({
|
|
2577
2614
|
connectId: FfiConverterUInt64.readFromCursor(c),
|
|
2578
2615
|
attempt: FfiConverterUInt32.readFromCursor(c),
|
|
2579
2616
|
reason: FfiConverterString.readFromCursor(c)
|
|
2580
2617
|
});
|
|
2581
|
-
case
|
|
2618
|
+
case 23:
|
|
2582
2619
|
return new P2pEvent.ConnectFailed({
|
|
2583
2620
|
connectId: FfiConverterUInt64.readFromCursor(c),
|
|
2584
2621
|
peerId: FfiConverterString.readFromCursor(c),
|
|
2585
2622
|
kind: FfiConverterTypeNatErrorKind.readFromCursor(c),
|
|
2586
2623
|
detail: FfiConverterString.readFromCursor(c)
|
|
2587
2624
|
});
|
|
2588
|
-
case
|
|
2625
|
+
case 24:
|
|
2589
2626
|
return new P2pEvent.ConnectCancelled({
|
|
2590
2627
|
connectId: FfiConverterUInt64.readFromCursor(c),
|
|
2591
2628
|
peerId: FfiConverterString.readFromCursor(c)
|
|
2592
2629
|
});
|
|
2593
|
-
case
|
|
2630
|
+
case 25:
|
|
2594
2631
|
return new P2pEvent.InboundDirectUpgrade({
|
|
2595
2632
|
peerId: FfiConverterString.readFromCursor(c)
|
|
2596
2633
|
});
|
|
2597
|
-
case
|
|
2634
|
+
case 26:
|
|
2598
2635
|
return new P2pEvent.Message({
|
|
2599
2636
|
fromPeerId: FfiConverterString.readFromCursor(c),
|
|
2600
2637
|
topics: FfiConverterSequenceString.readFromCursor(c),
|
|
@@ -2602,48 +2639,48 @@ const FfiConverterTypeP2pEvent = (() => {
|
|
|
2602
2639
|
seqno: FfiConverterArrayBuffer.readFromCursor(c),
|
|
2603
2640
|
signed: FfiConverterBool.readFromCursor(c)
|
|
2604
2641
|
});
|
|
2605
|
-
case
|
|
2642
|
+
case 27:
|
|
2606
2643
|
return new P2pEvent.PeerSubscribed({
|
|
2607
2644
|
peerId: FfiConverterString.readFromCursor(c),
|
|
2608
2645
|
topic: FfiConverterString.readFromCursor(c)
|
|
2609
2646
|
});
|
|
2610
|
-
case
|
|
2647
|
+
case 28:
|
|
2611
2648
|
return new P2pEvent.PeerUnsubscribed({
|
|
2612
2649
|
peerId: FfiConverterString.readFromCursor(c),
|
|
2613
2650
|
topic: FfiConverterString.readFromCursor(c)
|
|
2614
2651
|
});
|
|
2615
|
-
case
|
|
2652
|
+
case 29:
|
|
2616
2653
|
return new P2pEvent.GossipsubOutboundFailure({
|
|
2617
2654
|
peerId: FfiConverterString.readFromCursor(c),
|
|
2618
2655
|
reason: FfiConverterString.readFromCursor(c)
|
|
2619
2656
|
});
|
|
2620
|
-
case
|
|
2657
|
+
case 30:
|
|
2621
2658
|
return new P2pEvent.GossipsubProtocolViolation({
|
|
2622
2659
|
peerId: FfiConverterString.readFromCursor(c),
|
|
2623
2660
|
reason: FfiConverterString.readFromCursor(c)
|
|
2624
2661
|
});
|
|
2625
|
-
case
|
|
2662
|
+
case 31:
|
|
2626
2663
|
return new P2pEvent.PeerDiscovered({
|
|
2627
2664
|
peerId: FfiConverterString.readFromCursor(c),
|
|
2628
2665
|
addrs: FfiConverterSequenceString.readFromCursor(c),
|
|
2629
2666
|
source: FfiConverterTypeDiscoverySource.readFromCursor(c)
|
|
2630
2667
|
});
|
|
2631
|
-
case
|
|
2668
|
+
case 32:
|
|
2632
2669
|
return new P2pEvent.PeerUpdated({
|
|
2633
2670
|
peerId: FfiConverterString.readFromCursor(c),
|
|
2634
2671
|
addrs: FfiConverterSequenceString.readFromCursor(c),
|
|
2635
2672
|
source: FfiConverterTypeDiscoverySource.readFromCursor(c)
|
|
2636
2673
|
});
|
|
2637
|
-
case
|
|
2674
|
+
case 33:
|
|
2638
2675
|
return new P2pEvent.PeerExpired({
|
|
2639
2676
|
peerId: FfiConverterString.readFromCursor(c)
|
|
2640
2677
|
});
|
|
2641
|
-
case
|
|
2678
|
+
case 34:
|
|
2642
2679
|
return new P2pEvent.DiscoveryDialFailed({
|
|
2643
2680
|
peerId: FfiConverterString.readFromCursor(c),
|
|
2644
2681
|
reason: FfiConverterString.readFromCursor(c)
|
|
2645
2682
|
});
|
|
2646
|
-
case
|
|
2683
|
+
case 35:
|
|
2647
2684
|
return new P2pEvent.DiscoveryProtocolViolation({
|
|
2648
2685
|
peerId: FfiConverterOptionalString.readFromCursor(c),
|
|
2649
2686
|
source: FfiConverterTypeDiscoverySource.readFromCursor(c),
|
|
@@ -2689,17 +2726,27 @@ const FfiConverterTypeP2pEvent = (() => {
|
|
|
2689
2726
|
FfiConverterUInt64.writeIntoCursor(inner.connId, c);
|
|
2690
2727
|
return;
|
|
2691
2728
|
}
|
|
2692
|
-
case P2pEvent_Tags.
|
|
2729
|
+
case P2pEvent_Tags.ConnectionReplaced:
|
|
2693
2730
|
{
|
|
2694
2731
|
c.writeI32(5);
|
|
2695
2732
|
const inner = value.inner;
|
|
2696
2733
|
FfiConverterString.writeIntoCursor(inner.peerId, c);
|
|
2734
|
+
FfiConverterUInt64.writeIntoCursor(inner.oldConnId, c);
|
|
2735
|
+
FfiConverterUInt64.writeIntoCursor(inner.newConnId, c);
|
|
2736
|
+
return;
|
|
2737
|
+
}
|
|
2738
|
+
case P2pEvent_Tags.PeerReady:
|
|
2739
|
+
{
|
|
2740
|
+
c.writeI32(6);
|
|
2741
|
+
const inner = value.inner;
|
|
2742
|
+
FfiConverterString.writeIntoCursor(inner.peerId, c);
|
|
2743
|
+
FfiConverterUInt64.writeIntoCursor(inner.connId, c);
|
|
2697
2744
|
FfiConverterSequenceString.writeIntoCursor(inner.protocols, c);
|
|
2698
2745
|
return;
|
|
2699
2746
|
}
|
|
2700
2747
|
case P2pEvent_Tags.IdentifyReceived:
|
|
2701
2748
|
{
|
|
2702
|
-
c.writeI32(
|
|
2749
|
+
c.writeI32(7);
|
|
2703
2750
|
const inner = value.inner;
|
|
2704
2751
|
FfiConverterString.writeIntoCursor(inner.peerId, c);
|
|
2705
2752
|
FfiConverterTypeIdentifyInfo.writeIntoCursor(inner.info, c);
|
|
@@ -2707,7 +2754,7 @@ const FfiConverterTypeP2pEvent = (() => {
|
|
|
2707
2754
|
}
|
|
2708
2755
|
case P2pEvent_Tags.PingRttMeasured:
|
|
2709
2756
|
{
|
|
2710
|
-
c.writeI32(
|
|
2757
|
+
c.writeI32(8);
|
|
2711
2758
|
const inner = value.inner;
|
|
2712
2759
|
FfiConverterString.writeIntoCursor(inner.peerId, c);
|
|
2713
2760
|
FfiConverterUInt64.writeIntoCursor(inner.rttMs, c);
|
|
@@ -2715,14 +2762,14 @@ const FfiConverterTypeP2pEvent = (() => {
|
|
|
2715
2762
|
}
|
|
2716
2763
|
case P2pEvent_Tags.PingTimeout:
|
|
2717
2764
|
{
|
|
2718
|
-
c.writeI32(
|
|
2765
|
+
c.writeI32(9);
|
|
2719
2766
|
const inner = value.inner;
|
|
2720
2767
|
FfiConverterString.writeIntoCursor(inner.peerId, c);
|
|
2721
2768
|
return;
|
|
2722
2769
|
}
|
|
2723
2770
|
case P2pEvent_Tags.StreamReady:
|
|
2724
2771
|
{
|
|
2725
|
-
c.writeI32(
|
|
2772
|
+
c.writeI32(10);
|
|
2726
2773
|
const inner = value.inner;
|
|
2727
2774
|
FfiConverterString.writeIntoCursor(inner.peerId, c);
|
|
2728
2775
|
FfiConverterUInt64.writeIntoCursor(inner.connId, c);
|
|
@@ -2733,7 +2780,7 @@ const FfiConverterTypeP2pEvent = (() => {
|
|
|
2733
2780
|
}
|
|
2734
2781
|
case P2pEvent_Tags.StreamData:
|
|
2735
2782
|
{
|
|
2736
|
-
c.writeI32(
|
|
2783
|
+
c.writeI32(11);
|
|
2737
2784
|
const inner = value.inner;
|
|
2738
2785
|
FfiConverterString.writeIntoCursor(inner.peerId, c);
|
|
2739
2786
|
FfiConverterUInt64.writeIntoCursor(inner.connId, c);
|
|
@@ -2743,7 +2790,7 @@ const FfiConverterTypeP2pEvent = (() => {
|
|
|
2743
2790
|
}
|
|
2744
2791
|
case P2pEvent_Tags.StreamRemoteWriteClosed:
|
|
2745
2792
|
{
|
|
2746
|
-
c.writeI32(
|
|
2793
|
+
c.writeI32(12);
|
|
2747
2794
|
const inner = value.inner;
|
|
2748
2795
|
FfiConverterString.writeIntoCursor(inner.peerId, c);
|
|
2749
2796
|
FfiConverterUInt64.writeIntoCursor(inner.connId, c);
|
|
@@ -2752,7 +2799,7 @@ const FfiConverterTypeP2pEvent = (() => {
|
|
|
2752
2799
|
}
|
|
2753
2800
|
case P2pEvent_Tags.StreamClosed:
|
|
2754
2801
|
{
|
|
2755
|
-
c.writeI32(
|
|
2802
|
+
c.writeI32(13);
|
|
2756
2803
|
const inner = value.inner;
|
|
2757
2804
|
FfiConverterString.writeIntoCursor(inner.peerId, c);
|
|
2758
2805
|
FfiConverterUInt64.writeIntoCursor(inner.connId, c);
|
|
@@ -2761,7 +2808,7 @@ const FfiConverterTypeP2pEvent = (() => {
|
|
|
2761
2808
|
}
|
|
2762
2809
|
case P2pEvent_Tags.EndpointError:
|
|
2763
2810
|
{
|
|
2764
|
-
c.writeI32(
|
|
2811
|
+
c.writeI32(14);
|
|
2765
2812
|
const inner = value.inner;
|
|
2766
2813
|
FfiConverterTypeEndpointErrorKind.writeIntoCursor(inner.kind, c);
|
|
2767
2814
|
FfiConverterOptionalString.writeIntoCursor(inner.peerId, c);
|
|
@@ -2772,7 +2819,7 @@ const FfiConverterTypeP2pEvent = (() => {
|
|
|
2772
2819
|
}
|
|
2773
2820
|
case P2pEvent_Tags.ReachabilityChanged:
|
|
2774
2821
|
{
|
|
2775
|
-
c.writeI32(
|
|
2822
|
+
c.writeI32(15);
|
|
2776
2823
|
const inner = value.inner;
|
|
2777
2824
|
FfiConverterTypeReachability.writeIntoCursor(inner.previous, c);
|
|
2778
2825
|
FfiConverterTypeReachability.writeIntoCursor(inner.current, c);
|
|
@@ -2781,14 +2828,14 @@ const FfiConverterTypeP2pEvent = (() => {
|
|
|
2781
2828
|
}
|
|
2782
2829
|
case P2pEvent_Tags.PublicAddressesChanged:
|
|
2783
2830
|
{
|
|
2784
|
-
c.writeI32(
|
|
2831
|
+
c.writeI32(16);
|
|
2785
2832
|
const inner = value.inner;
|
|
2786
2833
|
FfiConverterSequenceString.writeIntoCursor(inner.addrs, c);
|
|
2787
2834
|
return;
|
|
2788
2835
|
}
|
|
2789
2836
|
case P2pEvent_Tags.RelayReserved:
|
|
2790
2837
|
{
|
|
2791
|
-
c.writeI32(
|
|
2838
|
+
c.writeI32(17);
|
|
2792
2839
|
const inner = value.inner;
|
|
2793
2840
|
FfiConverterString.writeIntoCursor(inner.relayPeerId, c);
|
|
2794
2841
|
FfiConverterOptionalUInt64.writeIntoCursor(inner.expiresUnixSecs, c);
|
|
@@ -2796,14 +2843,14 @@ const FfiConverterTypeP2pEvent = (() => {
|
|
|
2796
2843
|
}
|
|
2797
2844
|
case P2pEvent_Tags.RelayReservationLost:
|
|
2798
2845
|
{
|
|
2799
|
-
c.writeI32(
|
|
2846
|
+
c.writeI32(18);
|
|
2800
2847
|
const inner = value.inner;
|
|
2801
2848
|
FfiConverterString.writeIntoCursor(inner.relayPeerId, c);
|
|
2802
2849
|
return;
|
|
2803
2850
|
}
|
|
2804
2851
|
case P2pEvent_Tags.PathEstablished:
|
|
2805
2852
|
{
|
|
2806
|
-
c.writeI32(
|
|
2853
|
+
c.writeI32(19);
|
|
2807
2854
|
const inner = value.inner;
|
|
2808
2855
|
FfiConverterUInt64.writeIntoCursor(inner.connectId, c);
|
|
2809
2856
|
FfiConverterString.writeIntoCursor(inner.peerId, c);
|
|
@@ -2813,7 +2860,7 @@ const FfiConverterTypeP2pEvent = (() => {
|
|
|
2813
2860
|
}
|
|
2814
2861
|
case P2pEvent_Tags.InboundPathEstablished:
|
|
2815
2862
|
{
|
|
2816
|
-
c.writeI32(
|
|
2863
|
+
c.writeI32(20);
|
|
2817
2864
|
const inner = value.inner;
|
|
2818
2865
|
FfiConverterString.writeIntoCursor(inner.peerId, c);
|
|
2819
2866
|
FfiConverterTypePathKind.writeIntoCursor(inner.path, c);
|
|
@@ -2821,7 +2868,7 @@ const FfiConverterTypeP2pEvent = (() => {
|
|
|
2821
2868
|
}
|
|
2822
2869
|
case P2pEvent_Tags.PathUpgraded:
|
|
2823
2870
|
{
|
|
2824
|
-
c.writeI32(
|
|
2871
|
+
c.writeI32(21);
|
|
2825
2872
|
const inner = value.inner;
|
|
2826
2873
|
FfiConverterUInt64.writeIntoCursor(inner.connectId, c);
|
|
2827
2874
|
FfiConverterString.writeIntoCursor(inner.peerId, c);
|
|
@@ -2831,7 +2878,7 @@ const FfiConverterTypeP2pEvent = (() => {
|
|
|
2831
2878
|
}
|
|
2832
2879
|
case P2pEvent_Tags.HolePunchFailed:
|
|
2833
2880
|
{
|
|
2834
|
-
c.writeI32(
|
|
2881
|
+
c.writeI32(22);
|
|
2835
2882
|
const inner = value.inner;
|
|
2836
2883
|
FfiConverterUInt64.writeIntoCursor(inner.connectId, c);
|
|
2837
2884
|
FfiConverterUInt32.writeIntoCursor(inner.attempt, c);
|
|
@@ -2840,7 +2887,7 @@ const FfiConverterTypeP2pEvent = (() => {
|
|
|
2840
2887
|
}
|
|
2841
2888
|
case P2pEvent_Tags.ConnectFailed:
|
|
2842
2889
|
{
|
|
2843
|
-
c.writeI32(
|
|
2890
|
+
c.writeI32(23);
|
|
2844
2891
|
const inner = value.inner;
|
|
2845
2892
|
FfiConverterUInt64.writeIntoCursor(inner.connectId, c);
|
|
2846
2893
|
FfiConverterString.writeIntoCursor(inner.peerId, c);
|
|
@@ -2850,7 +2897,7 @@ const FfiConverterTypeP2pEvent = (() => {
|
|
|
2850
2897
|
}
|
|
2851
2898
|
case P2pEvent_Tags.ConnectCancelled:
|
|
2852
2899
|
{
|
|
2853
|
-
c.writeI32(
|
|
2900
|
+
c.writeI32(24);
|
|
2854
2901
|
const inner = value.inner;
|
|
2855
2902
|
FfiConverterUInt64.writeIntoCursor(inner.connectId, c);
|
|
2856
2903
|
FfiConverterString.writeIntoCursor(inner.peerId, c);
|
|
@@ -2858,14 +2905,14 @@ const FfiConverterTypeP2pEvent = (() => {
|
|
|
2858
2905
|
}
|
|
2859
2906
|
case P2pEvent_Tags.InboundDirectUpgrade:
|
|
2860
2907
|
{
|
|
2861
|
-
c.writeI32(
|
|
2908
|
+
c.writeI32(25);
|
|
2862
2909
|
const inner = value.inner;
|
|
2863
2910
|
FfiConverterString.writeIntoCursor(inner.peerId, c);
|
|
2864
2911
|
return;
|
|
2865
2912
|
}
|
|
2866
2913
|
case P2pEvent_Tags.Message:
|
|
2867
2914
|
{
|
|
2868
|
-
c.writeI32(
|
|
2915
|
+
c.writeI32(26);
|
|
2869
2916
|
const inner = value.inner;
|
|
2870
2917
|
FfiConverterString.writeIntoCursor(inner.fromPeerId, c);
|
|
2871
2918
|
FfiConverterSequenceString.writeIntoCursor(inner.topics, c);
|
|
@@ -2876,7 +2923,7 @@ const FfiConverterTypeP2pEvent = (() => {
|
|
|
2876
2923
|
}
|
|
2877
2924
|
case P2pEvent_Tags.PeerSubscribed:
|
|
2878
2925
|
{
|
|
2879
|
-
c.writeI32(
|
|
2926
|
+
c.writeI32(27);
|
|
2880
2927
|
const inner = value.inner;
|
|
2881
2928
|
FfiConverterString.writeIntoCursor(inner.peerId, c);
|
|
2882
2929
|
FfiConverterString.writeIntoCursor(inner.topic, c);
|
|
@@ -2884,7 +2931,7 @@ const FfiConverterTypeP2pEvent = (() => {
|
|
|
2884
2931
|
}
|
|
2885
2932
|
case P2pEvent_Tags.PeerUnsubscribed:
|
|
2886
2933
|
{
|
|
2887
|
-
c.writeI32(
|
|
2934
|
+
c.writeI32(28);
|
|
2888
2935
|
const inner = value.inner;
|
|
2889
2936
|
FfiConverterString.writeIntoCursor(inner.peerId, c);
|
|
2890
2937
|
FfiConverterString.writeIntoCursor(inner.topic, c);
|
|
@@ -2892,7 +2939,7 @@ const FfiConverterTypeP2pEvent = (() => {
|
|
|
2892
2939
|
}
|
|
2893
2940
|
case P2pEvent_Tags.GossipsubOutboundFailure:
|
|
2894
2941
|
{
|
|
2895
|
-
c.writeI32(
|
|
2942
|
+
c.writeI32(29);
|
|
2896
2943
|
const inner = value.inner;
|
|
2897
2944
|
FfiConverterString.writeIntoCursor(inner.peerId, c);
|
|
2898
2945
|
FfiConverterString.writeIntoCursor(inner.reason, c);
|
|
@@ -2900,7 +2947,7 @@ const FfiConverterTypeP2pEvent = (() => {
|
|
|
2900
2947
|
}
|
|
2901
2948
|
case P2pEvent_Tags.GossipsubProtocolViolation:
|
|
2902
2949
|
{
|
|
2903
|
-
c.writeI32(
|
|
2950
|
+
c.writeI32(30);
|
|
2904
2951
|
const inner = value.inner;
|
|
2905
2952
|
FfiConverterString.writeIntoCursor(inner.peerId, c);
|
|
2906
2953
|
FfiConverterString.writeIntoCursor(inner.reason, c);
|
|
@@ -2908,7 +2955,7 @@ const FfiConverterTypeP2pEvent = (() => {
|
|
|
2908
2955
|
}
|
|
2909
2956
|
case P2pEvent_Tags.PeerDiscovered:
|
|
2910
2957
|
{
|
|
2911
|
-
c.writeI32(
|
|
2958
|
+
c.writeI32(31);
|
|
2912
2959
|
const inner = value.inner;
|
|
2913
2960
|
FfiConverterString.writeIntoCursor(inner.peerId, c);
|
|
2914
2961
|
FfiConverterSequenceString.writeIntoCursor(inner.addrs, c);
|
|
@@ -2917,7 +2964,7 @@ const FfiConverterTypeP2pEvent = (() => {
|
|
|
2917
2964
|
}
|
|
2918
2965
|
case P2pEvent_Tags.PeerUpdated:
|
|
2919
2966
|
{
|
|
2920
|
-
c.writeI32(
|
|
2967
|
+
c.writeI32(32);
|
|
2921
2968
|
const inner = value.inner;
|
|
2922
2969
|
FfiConverterString.writeIntoCursor(inner.peerId, c);
|
|
2923
2970
|
FfiConverterSequenceString.writeIntoCursor(inner.addrs, c);
|
|
@@ -2926,14 +2973,14 @@ const FfiConverterTypeP2pEvent = (() => {
|
|
|
2926
2973
|
}
|
|
2927
2974
|
case P2pEvent_Tags.PeerExpired:
|
|
2928
2975
|
{
|
|
2929
|
-
c.writeI32(
|
|
2976
|
+
c.writeI32(33);
|
|
2930
2977
|
const inner = value.inner;
|
|
2931
2978
|
FfiConverterString.writeIntoCursor(inner.peerId, c);
|
|
2932
2979
|
return;
|
|
2933
2980
|
}
|
|
2934
2981
|
case P2pEvent_Tags.DiscoveryDialFailed:
|
|
2935
2982
|
{
|
|
2936
|
-
c.writeI32(
|
|
2983
|
+
c.writeI32(34);
|
|
2937
2984
|
const inner = value.inner;
|
|
2938
2985
|
FfiConverterString.writeIntoCursor(inner.peerId, c);
|
|
2939
2986
|
FfiConverterString.writeIntoCursor(inner.reason, c);
|
|
@@ -2941,7 +2988,7 @@ const FfiConverterTypeP2pEvent = (() => {
|
|
|
2941
2988
|
}
|
|
2942
2989
|
case P2pEvent_Tags.DiscoveryProtocolViolation:
|
|
2943
2990
|
{
|
|
2944
|
-
c.writeI32(
|
|
2991
|
+
c.writeI32(35);
|
|
2945
2992
|
const inner = value.inner;
|
|
2946
2993
|
FfiConverterOptionalString.writeIntoCursor(inner.peerId, c);
|
|
2947
2994
|
FfiConverterTypeDiscoverySource.writeIntoCursor(inner.source, c);
|
|
@@ -2989,11 +3036,21 @@ const FfiConverterTypeP2pEvent = (() => {
|
|
|
2989
3036
|
size += FfiConverterUInt64.allocationSize(inner.connId);
|
|
2990
3037
|
return size;
|
|
2991
3038
|
}
|
|
3039
|
+
case P2pEvent_Tags.ConnectionReplaced:
|
|
3040
|
+
{
|
|
3041
|
+
const inner = value.inner;
|
|
3042
|
+
let size = 4;
|
|
3043
|
+
size += FfiConverterString.allocationSize(inner.peerId);
|
|
3044
|
+
size += FfiConverterUInt64.allocationSize(inner.oldConnId);
|
|
3045
|
+
size += FfiConverterUInt64.allocationSize(inner.newConnId);
|
|
3046
|
+
return size;
|
|
3047
|
+
}
|
|
2992
3048
|
case P2pEvent_Tags.PeerReady:
|
|
2993
3049
|
{
|
|
2994
3050
|
const inner = value.inner;
|
|
2995
3051
|
let size = 4;
|
|
2996
3052
|
size += FfiConverterString.allocationSize(inner.peerId);
|
|
3053
|
+
size += FfiConverterUInt64.allocationSize(inner.connId);
|
|
2997
3054
|
size += FfiConverterSequenceString.allocationSize(inner.protocols);
|
|
2998
3055
|
return size;
|
|
2999
3056
|
}
|
|
@@ -3390,9 +3447,9 @@ export class P2pEndpoint extends UniffiAbstractObject {
|
|
|
3390
3447
|
/**
|
|
3391
3448
|
* Forgets a stream.
|
|
3392
3449
|
*/
|
|
3393
|
-
abandonStream(peerId, streamId) /*throws*/{
|
|
3450
|
+
abandonStream(peerId, connId, streamId) /*throws*/{
|
|
3394
3451
|
uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeFfiError.lift.bind(FfiConverterTypeFfiError), /*caller:*/callStatus => {
|
|
3395
|
-
nativeModule().ubrn_uniffi_minip2p_ffi_fn_method_p2pendpoint_abandon_stream(uniffiTypeP2pEndpointObjectFactory.clonePointer(this), FfiConverterString.lower(peerId, nativeModule().rustbuffer_alloc), FfiConverterUInt64.lower(streamId, nativeModule().rustbuffer_alloc), callStatus);
|
|
3452
|
+
nativeModule().ubrn_uniffi_minip2p_ffi_fn_method_p2pendpoint_abandon_stream(uniffiTypeP2pEndpointObjectFactory.clonePointer(this), FfiConverterString.lower(peerId, nativeModule().rustbuffer_alloc), FfiConverterUInt64.lower(connId, nativeModule().rustbuffer_alloc), FfiConverterUInt64.lower(streamId, nativeModule().rustbuffer_alloc), callStatus);
|
|
3396
3453
|
}, /*liftString:*/FfiConverterString.lift.bind(FfiConverterString));
|
|
3397
3454
|
}
|
|
3398
3455
|
|
|
@@ -3431,9 +3488,9 @@ export class P2pEndpoint extends UniffiAbstractObject {
|
|
|
3431
3488
|
/**
|
|
3432
3489
|
* Half-closes a stream's write side.
|
|
3433
3490
|
*/
|
|
3434
|
-
closeStreamWrite(peerId, streamId) /*throws*/{
|
|
3491
|
+
closeStreamWrite(peerId, connId, streamId) /*throws*/{
|
|
3435
3492
|
uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeFfiError.lift.bind(FfiConverterTypeFfiError), /*caller:*/callStatus => {
|
|
3436
|
-
nativeModule().ubrn_uniffi_minip2p_ffi_fn_method_p2pendpoint_close_stream_write(uniffiTypeP2pEndpointObjectFactory.clonePointer(this), FfiConverterString.lower(peerId, nativeModule().rustbuffer_alloc), FfiConverterUInt64.lower(streamId, nativeModule().rustbuffer_alloc), callStatus);
|
|
3493
|
+
nativeModule().ubrn_uniffi_minip2p_ffi_fn_method_p2pendpoint_close_stream_write(uniffiTypeP2pEndpointObjectFactory.clonePointer(this), FfiConverterString.lower(peerId, nativeModule().rustbuffer_alloc), FfiConverterUInt64.lower(connId, nativeModule().rustbuffer_alloc), FfiConverterUInt64.lower(streamId, nativeModule().rustbuffer_alloc), callStatus);
|
|
3437
3494
|
}, /*liftString:*/FfiConverterString.lift.bind(FfiConverterString));
|
|
3438
3495
|
}
|
|
3439
3496
|
|
|
@@ -3648,18 +3705,18 @@ export class P2pEndpoint extends UniffiAbstractObject {
|
|
|
3648
3705
|
/**
|
|
3649
3706
|
* Resets a stream.
|
|
3650
3707
|
*/
|
|
3651
|
-
resetStream(peerId, streamId) /*throws*/{
|
|
3708
|
+
resetStream(peerId, connId, streamId) /*throws*/{
|
|
3652
3709
|
uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeFfiError.lift.bind(FfiConverterTypeFfiError), /*caller:*/callStatus => {
|
|
3653
|
-
nativeModule().ubrn_uniffi_minip2p_ffi_fn_method_p2pendpoint_reset_stream(uniffiTypeP2pEndpointObjectFactory.clonePointer(this), FfiConverterString.lower(peerId, nativeModule().rustbuffer_alloc), FfiConverterUInt64.lower(streamId, nativeModule().rustbuffer_alloc), callStatus);
|
|
3710
|
+
nativeModule().ubrn_uniffi_minip2p_ffi_fn_method_p2pendpoint_reset_stream(uniffiTypeP2pEndpointObjectFactory.clonePointer(this), FfiConverterString.lower(peerId, nativeModule().rustbuffer_alloc), FfiConverterUInt64.lower(connId, nativeModule().rustbuffer_alloc), FfiConverterUInt64.lower(streamId, nativeModule().rustbuffer_alloc), callStatus);
|
|
3654
3711
|
}, /*liftString:*/FfiConverterString.lift.bind(FfiConverterString));
|
|
3655
3712
|
}
|
|
3656
3713
|
|
|
3657
3714
|
/**
|
|
3658
|
-
* Sends bytes on a stream.
|
|
3715
|
+
* Sends bytes on a stream, named by its connection and stream ids.
|
|
3659
3716
|
*/
|
|
3660
|
-
sendStream(peerId, streamId, data) /*throws*/{
|
|
3717
|
+
sendStream(peerId, connId, streamId, data) /*throws*/{
|
|
3661
3718
|
uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeFfiError.lift.bind(FfiConverterTypeFfiError), /*caller:*/callStatus => {
|
|
3662
|
-
nativeModule().ubrn_uniffi_minip2p_ffi_fn_method_p2pendpoint_send_stream(uniffiTypeP2pEndpointObjectFactory.clonePointer(this), FfiConverterString.lower(peerId, nativeModule().rustbuffer_alloc), FfiConverterUInt64.lower(streamId, nativeModule().rustbuffer_alloc), FfiConverterArrayBuffer.lower(data, nativeModule().rustbuffer_alloc), callStatus);
|
|
3719
|
+
nativeModule().ubrn_uniffi_minip2p_ffi_fn_method_p2pendpoint_send_stream(uniffiTypeP2pEndpointObjectFactory.clonePointer(this), FfiConverterString.lower(peerId, nativeModule().rustbuffer_alloc), FfiConverterUInt64.lower(connId, nativeModule().rustbuffer_alloc), FfiConverterUInt64.lower(streamId, nativeModule().rustbuffer_alloc), FfiConverterArrayBuffer.lower(data, nativeModule().rustbuffer_alloc), callStatus);
|
|
3663
3720
|
}, /*liftString:*/FfiConverterString.lift.bind(FfiConverterString));
|
|
3664
3721
|
}
|
|
3665
3722
|
|
|
@@ -3836,7 +3893,7 @@ function uniffiEnsureInitialized() {
|
|
|
3836
3893
|
if (nativeModule().ubrn_uniffi_minip2p_ffi_checksum_constructor_p2pendpoint_new() !== 8152) {
|
|
3837
3894
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_minip2p_ffi_checksum_constructor_p2pendpoint_new");
|
|
3838
3895
|
}
|
|
3839
|
-
if (nativeModule().ubrn_uniffi_minip2p_ffi_checksum_method_p2pendpoint_abandon_stream() !==
|
|
3896
|
+
if (nativeModule().ubrn_uniffi_minip2p_ffi_checksum_method_p2pendpoint_abandon_stream() !== 17669) {
|
|
3840
3897
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_minip2p_ffi_checksum_method_p2pendpoint_abandon_stream");
|
|
3841
3898
|
}
|
|
3842
3899
|
if (nativeModule().ubrn_uniffi_minip2p_ffi_checksum_method_p2pendpoint_active_reservation() !== 6405) {
|
|
@@ -3848,7 +3905,7 @@ function uniffiEnsureInitialized() {
|
|
|
3848
3905
|
if (nativeModule().ubrn_uniffi_minip2p_ffi_checksum_method_p2pendpoint_cancel_connect() !== 24195) {
|
|
3849
3906
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_minip2p_ffi_checksum_method_p2pendpoint_cancel_connect");
|
|
3850
3907
|
}
|
|
3851
|
-
if (nativeModule().ubrn_uniffi_minip2p_ffi_checksum_method_p2pendpoint_close_stream_write() !==
|
|
3908
|
+
if (nativeModule().ubrn_uniffi_minip2p_ffi_checksum_method_p2pendpoint_close_stream_write() !== 58591) {
|
|
3852
3909
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_minip2p_ffi_checksum_method_p2pendpoint_close_stream_write");
|
|
3853
3910
|
}
|
|
3854
3911
|
if (nativeModule().ubrn_uniffi_minip2p_ffi_checksum_method_p2pendpoint_connect() !== 53603) {
|
|
@@ -3902,10 +3959,10 @@ function uniffiEnsureInitialized() {
|
|
|
3902
3959
|
if (nativeModule().ubrn_uniffi_minip2p_ffi_checksum_method_p2pendpoint_reachability() !== 22554) {
|
|
3903
3960
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_minip2p_ffi_checksum_method_p2pendpoint_reachability");
|
|
3904
3961
|
}
|
|
3905
|
-
if (nativeModule().ubrn_uniffi_minip2p_ffi_checksum_method_p2pendpoint_reset_stream() !==
|
|
3962
|
+
if (nativeModule().ubrn_uniffi_minip2p_ffi_checksum_method_p2pendpoint_reset_stream() !== 24179) {
|
|
3906
3963
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_minip2p_ffi_checksum_method_p2pendpoint_reset_stream");
|
|
3907
3964
|
}
|
|
3908
|
-
if (nativeModule().ubrn_uniffi_minip2p_ffi_checksum_method_p2pendpoint_send_stream() !==
|
|
3965
|
+
if (nativeModule().ubrn_uniffi_minip2p_ffi_checksum_method_p2pendpoint_send_stream() !== 40818) {
|
|
3909
3966
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_minip2p_ffi_checksum_method_p2pendpoint_send_stream");
|
|
3910
3967
|
}
|
|
3911
3968
|
if (nativeModule().ubrn_uniffi_minip2p_ffi_checksum_method_p2pendpoint_set_active() !== 10522) {
|