Skip to content

Commit

Permalink
feat: add flutter binding
Browse files Browse the repository at this point in the history
  • Loading branch information
Egor Komarov committed Jun 28, 2024
1 parent d49bfd1 commit ff3da06
Show file tree
Hide file tree
Showing 113 changed files with 957 additions and 560 deletions.
7 changes: 7 additions & 0 deletions packages/flutter_nekoton_bridge/ios/Classes/frb.h
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,12 @@ void wire_make_full_account_boc(int64_t port_, struct wire_uint_8_list *account_

void wire_parse_full_account_boc(int64_t port_, struct wire_uint_8_list *account);

void wire_compute_storage_fee(int64_t port_,
struct wire_uint_8_list *config,
struct wire_uint_8_list *account,
uint32_t utime,
bool is_masterchain);

void wire_test_logger_info(int64_t port_, struct wire_uint_8_list *string);

void wire_test_logger_debug(int64_t port_, struct wire_uint_8_list *string);
Expand Down Expand Up @@ -1229,6 +1235,7 @@ static int64_t dummy_method_to_enforce_bundling(void) {
dummy_var ^= ((int64_t) (void*) wire_encode_internal_message);
dummy_var ^= ((int64_t) (void*) wire_make_full_account_boc);
dummy_var ^= ((int64_t) (void*) wire_parse_full_account_boc);
dummy_var ^= ((int64_t) (void*) wire_compute_storage_fee);
dummy_var ^= ((int64_t) (void*) wire_test_logger_info);
dummy_var ^= ((int64_t) (void*) wire_test_logger_debug);
dummy_var ^= ((int64_t) (void*) wire_test_logger_warn);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'mega_struct.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

Coords _$CoordsFromJson(Map<String, dynamic> json) {
return _Coords.fromJson(json);
Expand Down Expand Up @@ -144,7 +144,7 @@ class _$CoordsImpl with DiagnosticableTreeMixin implements _Coords {
}

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$CoordsImpl &&
Expand Down Expand Up @@ -346,7 +346,7 @@ class _$MegaStructImpl with DiagnosticableTreeMixin implements _MegaStruct {
}

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$MegaStructImpl &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'account_to_add.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

AccountToAdd _$AccountToAddFromJson(Map<String, dynamic> json) {
return _AccountToAdd.fromJson(json);
Expand Down Expand Up @@ -217,7 +217,7 @@ class _$AccountToAddImpl implements _AccountToAdd {
}

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$AccountToAddImpl &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'additional_assets.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

AdditionalAssets _$AdditionalAssetsFromJson(Map<String, dynamic> json) {
return _AdditionalAssets.fromJson(json);
Expand Down Expand Up @@ -140,7 +140,7 @@ class _$AdditionalAssetsImpl implements _AdditionalAssets {
}

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$AdditionalAssetsImpl &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'assets_list.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

AssetsList _$AssetsListFromJson(Map<String, dynamic> json) {
return _AssetsList.fromJson(json);
Expand Down Expand Up @@ -176,7 +176,7 @@ class _$AssetsListImpl extends _AssetsList {
}

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$AssetsListImpl &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'depool_asset.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

DePoolAsset _$DePoolAssetFromJson(Map<String, dynamic> json) {
return _DePoolAsset.fromJson(json);
Expand Down Expand Up @@ -124,7 +124,7 @@ class _$DePoolAssetImpl implements _DePoolAsset {
}

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$DePoolAssetImpl &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'token_wallet_asset.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

TokenWalletAsset _$TokenWalletAssetFromJson(Map<String, dynamic> json) {
return _TokenWalletAsset.fromJson(json);
Expand Down Expand Up @@ -125,7 +125,7 @@ class _$TokenWalletAssetImpl implements _TokenWalletAsset {
}

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$TokenWalletAssetImpl &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'ton_wallet_asset.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

TonWalletAsset _$TonWalletAssetFromJson(Map<String, dynamic> json) {
return _TonWalletAsset.fromJson(json);
Expand Down Expand Up @@ -174,7 +174,7 @@ class _$TonWalletAssetImpl extends _TonWalletAsset {
}

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$TonWalletAssetImpl &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'wallet_type.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

WalletType _$WalletTypeFromJson(Map<String, dynamic> json) {
switch (json['type']) {
Expand Down Expand Up @@ -156,7 +156,7 @@ class _$MultisigImpl implements _Multisig {
}

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$MultisigImpl &&
Expand Down Expand Up @@ -300,7 +300,7 @@ class _$WalletV3Impl implements _WalletV3 {
}

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType && other is _$WalletV3Impl);
}
Expand Down Expand Up @@ -432,7 +432,7 @@ class _$HighloadWalletV2Impl implements _HighloadWalletV2 {
}

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType && other is _$HighloadWalletV2Impl);
}
Expand Down Expand Up @@ -564,7 +564,7 @@ class _$WalletTypeEverWalletImpl implements _WalletTypeEverWallet {
}

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$WalletTypeEverWalletImpl);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'key_store_entry.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

KeyStoreEntry _$KeyStoreEntryFromJson(Map<String, dynamic> json) {
return _KeyStoreEntry.fromJson(json);
Expand Down Expand Up @@ -204,7 +204,7 @@ class _$KeyStoreEntryImpl extends _KeyStoreEntry {
}

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$KeyStoreEntryImpl &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'accounts_list.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

AccountsList _$AccountsListFromJson(Map<String, dynamic> json) {
return _AccountsList.fromJson(json);
Expand Down Expand Up @@ -139,7 +139,7 @@ class _$AccountsListImpl implements _AccountsList {
}

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$AccountsListImpl &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'address.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

/// @nodoc
mixin _$Address {
Expand Down Expand Up @@ -96,7 +96,7 @@ class _$FromStringImpl extends _FromString {
final String address;

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$FromStringImpl &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'blockchain_config.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

BlockchainConfig _$BlockchainConfigFromJson(Map<String, dynamic> json) {
return _BlockchainConfig.fromJson(json);
Expand Down Expand Up @@ -156,7 +156,7 @@ class _$BlockchainConfigImpl implements _BlockchainConfig {
}

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$BlockchainConfigImpl &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'contract_state.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

ContractState _$ContractStateFromJson(Map<String, dynamic> json) {
return _ContractState.fromJson(json);
Expand Down Expand Up @@ -209,7 +209,7 @@ class _$ContractStateImpl implements _ContractState {
}

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$ContractStateImpl &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'existing_contract.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

ExistingContract _$ExistingContractFromJson(Map<String, dynamic> json) {
return _ExistingContract.fromJson(json);
Expand Down Expand Up @@ -170,7 +170,7 @@ class _$ExistingContractImpl implements _ExistingContract {
}

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$ExistingContractImpl &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'expiration.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

Expiration _$ExpirationFromJson(Map<String, dynamic> json) {
switch (json['type']) {
Expand Down Expand Up @@ -129,7 +129,7 @@ class _$NeverImpl implements _Never {
}

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType && other is _$NeverImpl);
}
Expand Down Expand Up @@ -272,7 +272,7 @@ class _$TimeoutImpl implements _Timeout {
}

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$TimeoutImpl &&
Expand Down Expand Up @@ -428,7 +428,7 @@ class _$TimestampImpl implements _Timestamp {
}

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$TimestampImpl &&
Expand Down
Loading

0 comments on commit ff3da06

Please sign in to comment.