Skip to content

Commit

Permalink
chore: update Flutter bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 17, 2024
1 parent 2d71957 commit 62b114f
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 70 deletions.
74 changes: 37 additions & 37 deletions crates/yttrium_dart/lib/generated/frb_generated.dart
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ abstract class YttriumDartApi extends BaseApi {
Future<ChainAbstractionClient> crateChainAbstractionClientNew(
{required String projectId});

Future<RouteResponse> crateChainAbstractionClientRoute(
Future<PrepareResponse> crateChainAbstractionClientRoute(
{required ChainAbstractionClient that,
required InitialTransaction initialTransaction});

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -1025,7 +1025,7 @@ class YttriumDartApiImpl extends YttriumDartApiImplPlatform
);

@override
Future<RouteResponse> crateChainAbstractionClientRoute(
Future<PrepareResponse> crateChainAbstractionClientRoute(
{required ChainAbstractionClient that,
required InitialTransaction initialTransaction}) {
return handler.executeNormal(NormalTask(
Expand All @@ -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,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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<dynamic>);
return PrepareResponseImpl.frbInternalDcoDecode(raw as List<dynamic>);
}

@protected
Expand Down Expand Up @@ -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<dynamic>);
return PrepareResponseImpl.frbInternalDcoDecode(raw as List<dynamic>);
}

@protected
Expand Down Expand Up @@ -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));
}

Expand Down Expand Up @@ -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));
}

Expand Down Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
}

Expand Down Expand Up @@ -2319,7 +2319,7 @@ class ChainAbstractionClientImpl extends RustOpaque
YttriumDart.instance.api.crateChainAbstractionClientEstimateFees(
that: this, chainId: chainId);

Future<RouteResponse> route(
Future<PrepareResponse> route(
{required InitialTransaction initialTransaction}) =>
YttriumDart.instance.api.crateChainAbstractionClientRoute(
that: this, initialTransaction: initialTransaction);
Expand Down Expand Up @@ -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<dynamic> wire)
PrepareResponseImpl.frbInternalDcoDecode(List<dynamic> 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,
);
}

Expand Down
52 changes: 26 additions & 26 deletions crates/yttrium_dart/lib/generated/frb_generated.io.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ abstract class YttriumDartApiImplPlatform extends BaseApiImpl<YttriumDartWire> {
._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
Expand Down Expand Up @@ -75,8 +75,8 @@ abstract class YttriumDartApiImplPlatform extends BaseApiImpl<YttriumDartWire> {
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
Expand Down Expand Up @@ -145,8 +145,8 @@ abstract class YttriumDartApiImplPlatform extends BaseApiImpl<YttriumDartWire> {
dynamic raw);

@protected
RouteResponse
dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponse(
PrepareResponse
dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponse(
dynamic raw);

@protected
Expand Down Expand Up @@ -227,8 +227,8 @@ abstract class YttriumDartApiImplPlatform extends BaseApiImpl<YttriumDartWire> {
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
Expand Down Expand Up @@ -297,8 +297,8 @@ abstract class YttriumDartApiImplPlatform extends BaseApiImpl<YttriumDartWire> {
SseDeserializer deserializer);

@protected
RouteResponse
sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponse(
PrepareResponse
sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponse(
SseDeserializer deserializer);

@protected
Expand Down Expand Up @@ -386,8 +386,8 @@ abstract class YttriumDartApiImplPlatform extends BaseApiImpl<YttriumDartWire> {

@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
Expand Down Expand Up @@ -456,8 +456,8 @@ abstract class YttriumDartApiImplPlatform extends BaseApiImpl<YttriumDartWire> {

@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
Expand Down Expand Up @@ -696,35 +696,35 @@ class YttriumDartWire implements BaseWire {
.asFunction<void Function(ffi.Pointer<ffi.Void>)>();

void
rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponse(
rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponse(
ffi.Pointer<ffi.Void> 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<ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Void>)>>(
'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 Function(ffi.Pointer<ffi.Void>)>();

void
rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRouteResponse(
rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPrepareResponse(
ffi.Pointer<ffi.Void> 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<ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Void>)>>(
'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 Function(ffi.Pointer<ffi.Void>)>();

void
Expand Down
7 changes: 4 additions & 3 deletions crates/yttrium_dart/lib/generated/lib.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ abstract class ChainAbstractionClient implements RustOpaqueInterface {
YttriumDart.instance.api
.crateChainAbstractionClientNew(projectId: projectId);

Future<RouteResponse> route({required InitialTransaction initialTransaction});
Future<PrepareResponse> route(
{required InitialTransaction initialTransaction});

Future<StatusResponse> status({required String orchestrationId});

Expand All @@ -103,8 +104,8 @@ abstract class Config implements RustOpaqueInterface {}
// Rust type: RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<InitialTransaction>>
abstract class InitialTransaction implements RustOpaqueInterface {}

// Rust type: RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<RouteResponse>>
abstract class RouteResponse implements RustOpaqueInterface {}
// Rust type: RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<PrepareResponse>>
abstract class PrepareResponse implements RustOpaqueInterface {}

// Rust type: RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<StatusResponse>>
abstract class StatusResponse implements RustOpaqueInterface {}
Expand Down
12 changes: 8 additions & 4 deletions crates/yttrium_dart/rust/src/frb_generated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,9 @@ impl SseDecode

impl SseDecode
for RustOpaqueMoi<
flutter_rust_bridge::for_generated::RustAutoOpaqueInner<PrepareResponse>,
flutter_rust_bridge::for_generated::RustAutoOpaqueInner<
PrepareResponse,
>,
>
{
// Codec=Sse (Serialization based), see doc to use other codecs
Expand Down Expand Up @@ -1804,7 +1806,9 @@ impl SseEncode

impl SseEncode
for RustOpaqueMoi<
flutter_rust_bridge::for_generated::RustAutoOpaqueInner<PrepareResponse>,
flutter_rust_bridge::for_generated::RustAutoOpaqueInner<
PrepareResponse,
>,
>
{
// Codec=Sse (Serialization based), see doc to use other codecs
Expand Down Expand Up @@ -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::<
Expand All @@ -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::<
Expand Down

0 comments on commit 62b114f

Please sign in to comment.