diff --git a/crates/yttrium_dart/lib/generated/frb_generated.dart b/crates/yttrium_dart/lib/generated/frb_generated.dart index eb875056..d10d8a27 100644 --- a/crates/yttrium_dart/lib/generated/frb_generated.dart +++ b/crates/yttrium_dart/lib/generated/frb_generated.dart @@ -164,7 +164,7 @@ abstract class YttriumDartApi extends BaseApi { Future crateChainAbstractionClientNew( {required String projectId}); - Future crateChainAbstractionClientRoute( + Future crateChainAbstractionClientRoute( {required ChainAbstractionClient that, required InitialTransaction initialTransaction}); @@ -221,13 +221,13 @@ abstract class YttriumDartApi extends BaseApi { get rust_arc_decrement_strong_count_InitialTransactionPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_RouteResponse; + get rust_arc_increment_strong_count_PrepareResponse; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_RouteResponse; + get rust_arc_decrement_strong_count_PrepareResponse; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_RouteResponsePtr; + get rust_arc_decrement_strong_count_PrepareResponsePtr; RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_StatusResponse; @@ -1025,7 +1025,7 @@ class YttriumDartApiImpl extends YttriumDartApiImplPlatform ); @override - Future crateChainAbstractionClientRoute( + Future crateChainAbstractionClientRoute( {required ChainAbstractionClient that, required InitialTransaction initialTransaction}) { return handler.executeNormal(NormalTask( @@ -1040,7 +1040,7 @@ class YttriumDartApiImpl extends YttriumDartApiImplPlatform }, codec: SseCodec( decodeSuccessData: - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponse, + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponse, decodeErrorData: sse_decode_error, ), constMeta: kCrateChainAbstractionClientRouteConstMeta, @@ -1161,12 +1161,12 @@ class YttriumDartApiImpl extends YttriumDartApiImplPlatform .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerInitialTransaction; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_RouteResponse => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponse; + get rust_arc_increment_strong_count_PrepareResponse => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponse; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_RouteResponse => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponse; + get rust_arc_decrement_strong_count_PrepareResponse => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponse; RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_StatusResponse => wire @@ -1226,11 +1226,11 @@ class YttriumDartApiImpl extends YttriumDartApiImplPlatform } @protected - RouteResponse - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponse( + PrepareResponse + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponse( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return RouteResponseImpl.frbInternalDcoDecode(raw as List); + return PrepareResponseImpl.frbInternalDcoDecode(raw as List); } @protected @@ -1342,11 +1342,11 @@ class YttriumDartApiImpl extends YttriumDartApiImplPlatform } @protected - RouteResponse - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponse( + PrepareResponse + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponse( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return RouteResponseImpl.frbInternalDcoDecode(raw as List); + return PrepareResponseImpl.frbInternalDcoDecode(raw as List); } @protected @@ -1528,11 +1528,11 @@ class YttriumDartApiImpl extends YttriumDartApiImplPlatform } @protected - RouteResponse - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponse( + PrepareResponse + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponse( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return RouteResponseImpl.frbInternalSseDecode( + return PrepareResponseImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @@ -1654,11 +1654,11 @@ class YttriumDartApiImpl extends YttriumDartApiImplPlatform } @protected - RouteResponse - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponse( + PrepareResponse + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponse( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return RouteResponseImpl.frbInternalSseDecode( + return PrepareResponseImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @@ -1857,11 +1857,11 @@ class YttriumDartApiImpl extends YttriumDartApiImplPlatform @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponse( - RouteResponse self, SseSerializer serializer) { + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponse( + PrepareResponse self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_usize( - (self as RouteResponseImpl).frbInternalSseEncode(move: true), + (self as PrepareResponseImpl).frbInternalSseEncode(move: true), serializer); } @@ -1996,11 +1996,11 @@ class YttriumDartApiImpl extends YttriumDartApiImplPlatform @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponse( - RouteResponse self, SseSerializer serializer) { + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponse( + PrepareResponse self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_usize( - (self as RouteResponseImpl).frbInternalSseEncode(move: null), + (self as PrepareResponseImpl).frbInternalSseEncode(move: null), serializer); } @@ -2319,7 +2319,7 @@ class ChainAbstractionClientImpl extends RustOpaque YttriumDart.instance.api.crateChainAbstractionClientEstimateFees( that: this, chainId: chainId); - Future route( + Future route( {required InitialTransaction initialTransaction}) => YttriumDart.instance.api.crateChainAbstractionClientRoute( that: this, initialTransaction: initialTransaction); @@ -2382,22 +2382,22 @@ class InitialTransactionImpl extends RustOpaque implements InitialTransaction { } @sealed -class RouteResponseImpl extends RustOpaque implements RouteResponse { +class PrepareResponseImpl extends RustOpaque implements PrepareResponse { // Not to be used by end users - RouteResponseImpl.frbInternalDcoDecode(List wire) + PrepareResponseImpl.frbInternalDcoDecode(List wire) : super.frbInternalDcoDecode(wire, _kStaticData); // Not to be used by end users - RouteResponseImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + PrepareResponseImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - YttriumDart.instance.api.rust_arc_increment_strong_count_RouteResponse, - rustArcDecrementStrongCount: - YttriumDart.instance.api.rust_arc_decrement_strong_count_RouteResponse, + rustArcIncrementStrongCount: YttriumDart + .instance.api.rust_arc_increment_strong_count_PrepareResponse, + rustArcDecrementStrongCount: YttriumDart + .instance.api.rust_arc_decrement_strong_count_PrepareResponse, rustArcDecrementStrongCountPtr: YttriumDart - .instance.api.rust_arc_decrement_strong_count_RouteResponsePtr, + .instance.api.rust_arc_decrement_strong_count_PrepareResponsePtr, ); } diff --git a/crates/yttrium_dart/lib/generated/frb_generated.io.dart b/crates/yttrium_dart/lib/generated/frb_generated.io.dart index a44c8f8d..e624d14d 100644 --- a/crates/yttrium_dart/lib/generated/frb_generated.io.dart +++ b/crates/yttrium_dart/lib/generated/frb_generated.io.dart @@ -38,8 +38,8 @@ abstract class YttriumDartApiImplPlatform extends BaseApiImpl { ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerInitialTransactionPtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_RouteResponsePtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponsePtr; + get rust_arc_decrement_strong_count_PrepareResponsePtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponsePtr; CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_StatusResponsePtr => wire @@ -75,8 +75,8 @@ abstract class YttriumDartApiImplPlatform extends BaseApiImpl { dynamic raw); @protected - RouteResponse - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponse( + PrepareResponse + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponse( dynamic raw); @protected @@ -145,8 +145,8 @@ abstract class YttriumDartApiImplPlatform extends BaseApiImpl { dynamic raw); @protected - RouteResponse - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponse( + PrepareResponse + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponse( dynamic raw); @protected @@ -227,8 +227,8 @@ abstract class YttriumDartApiImplPlatform extends BaseApiImpl { SseDeserializer deserializer); @protected - RouteResponse - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponse( + PrepareResponse + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponse( SseDeserializer deserializer); @protected @@ -297,8 +297,8 @@ abstract class YttriumDartApiImplPlatform extends BaseApiImpl { SseDeserializer deserializer); @protected - RouteResponse - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponse( + PrepareResponse + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponse( SseDeserializer deserializer); @protected @@ -386,8 +386,8 @@ abstract class YttriumDartApiImplPlatform extends BaseApiImpl { @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponse( - RouteResponse self, SseSerializer serializer); + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponse( + PrepareResponse self, SseSerializer serializer); @protected void @@ -456,8 +456,8 @@ abstract class YttriumDartApiImplPlatform extends BaseApiImpl { @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponse( - RouteResponse self, SseSerializer serializer); + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponse( + PrepareResponse self, SseSerializer serializer); @protected void @@ -696,35 +696,35 @@ class YttriumDartWire implements BaseWire { .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponse( + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponse( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponse( + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponse( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponsePtr = + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponsePtr = _lookup)>>( - 'frbgen_yttrium_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponse'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponse = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponsePtr + 'frbgen_yttrium_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponse'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponse = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponsePtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponse( + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponse( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponse( + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponse( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponsePtr = + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponsePtr = _lookup)>>( - 'frbgen_yttrium_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponse'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponse = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponsePtr + 'frbgen_yttrium_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponse'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponse = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponsePtr .asFunction)>(); void diff --git a/crates/yttrium_dart/lib/generated/lib.dart b/crates/yttrium_dart/lib/generated/lib.dart index 696aa46a..d4c194bb 100644 --- a/crates/yttrium_dart/lib/generated/lib.dart +++ b/crates/yttrium_dart/lib/generated/lib.dart @@ -87,7 +87,8 @@ abstract class ChainAbstractionClient implements RustOpaqueInterface { YttriumDart.instance.api .crateChainAbstractionClientNew(projectId: projectId); - Future route({required InitialTransaction initialTransaction}); + Future route( + {required InitialTransaction initialTransaction}); Future status({required String orchestrationId}); @@ -103,8 +104,8 @@ abstract class Config implements RustOpaqueInterface {} // Rust type: RustOpaqueMoi> abstract class InitialTransaction implements RustOpaqueInterface {} -// Rust type: RustOpaqueMoi> -abstract class RouteResponse implements RustOpaqueInterface {} +// Rust type: RustOpaqueMoi> +abstract class PrepareResponse implements RustOpaqueInterface {} // Rust type: RustOpaqueMoi> abstract class StatusResponse implements RustOpaqueInterface {} diff --git a/crates/yttrium_dart/rust/src/frb_generated.rs b/crates/yttrium_dart/rust/src/frb_generated.rs index 6265811a..6eca72fa 100644 --- a/crates/yttrium_dart/rust/src/frb_generated.rs +++ b/crates/yttrium_dart/rust/src/frb_generated.rs @@ -986,7 +986,9 @@ impl SseDecode impl SseDecode for RustOpaqueMoi< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner, + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + PrepareResponse, + >, > { // Codec=Sse (Serialization based), see doc to use other codecs @@ -1804,7 +1806,9 @@ impl SseEncode impl SseEncode for RustOpaqueMoi< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner, + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + PrepareResponse, + >, > { // Codec=Sse (Serialization based), see doc to use other codecs @@ -2147,7 +2151,7 @@ mod io { } #[no_mangle] - pub extern "C" fn frbgen_yttrium_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponse( + pub extern "C" fn frbgen_yttrium_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponse( ptr: *const std::ffi::c_void, ) { MoiArc::< @@ -2158,7 +2162,7 @@ mod io { } #[no_mangle] - pub extern "C" fn frbgen_yttrium_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponse( + pub extern "C" fn frbgen_yttrium_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponse( ptr: *const std::ffi::c_void, ) { MoiArc::<