Skip to content

Commit 4f69125

Browse files
committed
fix: add new methods to epiccash template
1 parent e81816e commit 4f69125

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

tool/wl_templates/EPIC_libepiccash_interface_impl.template.dart

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,37 @@ final class _LibEpicCashInterfaceImpl extends LibEpicCashInterface {
3030
}
3131

3232
@override
33-
Future<({String commitId, String slateId})> createTransaction({
33+
Future<({String slateId, String commitId, String slateJson})> txReceive({
34+
required String wallet,
35+
required String slateJson,
36+
}) {
37+
return LibEpiccash.txReceive(
38+
wallet: wallet,
39+
slateJson: slateJson,
40+
);
41+
}
42+
43+
@override
44+
Future<({String slateId, String commitId})> txFinalize({
45+
required String wallet,
46+
required String slateJson,
47+
}) {
48+
return LibEpiccash.txFinalize(
49+
wallet: wallet,
50+
slateJson: slateJson,
51+
);
52+
}
53+
54+
@override
55+
Future<({String commitId, String slateId, String slateJson})> createTransaction({
3456
required String wallet,
3557
required int amount,
3658
required String address,
3759
required int secretKeyIndex,
3860
required String epicboxConfig,
3961
required int minimumConfirmations,
4062
required String note,
63+
bool returnSlate = false,
4164
}) {
4265
return LibEpiccash.createTransaction(
4366
wallet: wallet,
@@ -47,6 +70,7 @@ final class _LibEpicCashInterfaceImpl extends LibEpicCashInterface {
4770
epicboxConfig: epicboxConfig,
4871
minimumConfirmations: minimumConfirmations,
4972
note: note,
73+
returnSlate: returnSlate,
5074
);
5175
}
5276

0 commit comments

Comments
 (0)