Skip to content

Commit b558f15

Browse files
Remove useless models
1 parent ed4fe89 commit b558f15

File tree

2 files changed

+1
-27
lines changed

2 files changed

+1
-27
lines changed

packages/tfchain_client/lib/models/council.dart

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -21,30 +21,3 @@ class CouncilProposal {
2121
required this.active,
2222
});
2323
}
24-
25-
class ProposalInfo {
26-
String module;
27-
String method;
28-
Map<String, dynamic> args;
29-
30-
ProposalInfo(
31-
{required this.module, required this.method, required this.args});
32-
33-
factory ProposalInfo.fromJson(Map<String, Map<String, dynamic>> json) {
34-
final argsJson = json.values.first.values.first;
35-
final Map<String, dynamic> args = {};
36-
if (argsJson != null) {
37-
for (final entry in argsJson.entries) {
38-
if (entry.value == null) {
39-
args[entry.key] = entry.value;
40-
} else {
41-
args[entry.key] = String.fromCharCodes(entry.value);
42-
}
43-
}
44-
}
45-
return ProposalInfo(
46-
module: json.keys.first,
47-
method: json.values.first.keys.first,
48-
args: args);
49-
}
50-
}

packages/tfchain_client/lib/src/council.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import 'package:polkadart/multisig/multisig_base.dart';
33
import 'package:polkadart_keyring/polkadart_keyring.dart';
44
import 'package:tfchain_client/generated/dev/types/pallet_collective/votes.dart';
55
import 'package:tfchain_client/models/council.dart';
6+
import 'package:tfchain_client/models/dao.dart';
67
import 'package:tfchain_client/tfchain_client.dart';
78

89
class QueryCouncil {

0 commit comments

Comments
 (0)