Skip to content

Commit

Permalink
fix: ton KnownPayload support
Browse files Browse the repository at this point in the history
  • Loading branch information
Egor Komarov committed Dec 13, 2024
1 parent 47cf176 commit e862819
Show file tree
Hide file tree
Showing 5 changed files with 286 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:flutter_nekoton_bridge/nekoton/core/jetton_wallet/models/jetton_outgoing_transfer.dart';
import 'package:flutter_nekoton_bridge/nekoton/core/token_wallet/models/token_outgoing_transfer.dart';
import 'package:flutter_nekoton_bridge/nekoton/core/token_wallet/models/token_swap_back.dart';
import 'package:freezed_annotation/freezed_annotation.dart';

part 'known_payload.freezed.dart';
part 'known_payload.g.dart';
Expand All @@ -12,6 +13,9 @@ sealed class KnownPayload with _$KnownPayload {
const factory KnownPayload.tokenOutgoingTransfer(
final TokenOutgoingTransfer data) = _TokenOutgoingTransfer;

const factory KnownPayload.jettonOutgoingTransfer(
final JettonOutgoingTransfer data) = _JettonOutgoingTransfer;

const factory KnownPayload.tokenSwapBack(final TokenSwapBack data) =
_TokenSwapBack;

Expand Down
Loading

0 comments on commit e862819

Please sign in to comment.