File tree 2 files changed +1
-27
lines changed
packages/tfchain_client/lib 2 files changed +1
-27
lines changed Original file line number Diff line number Diff line change @@ -21,30 +21,3 @@ class CouncilProposal {
21
21
required this .active,
22
22
});
23
23
}
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
- }
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import 'package:polkadart/multisig/multisig_base.dart';
3
3
import 'package:polkadart_keyring/polkadart_keyring.dart' ;
4
4
import 'package:tfchain_client/generated/dev/types/pallet_collective/votes.dart' ;
5
5
import 'package:tfchain_client/models/council.dart' ;
6
+ import 'package:tfchain_client/models/dao.dart' ;
6
7
import 'package:tfchain_client/tfchain_client.dart' ;
7
8
8
9
class QueryCouncil {
You can’t perform that action at this time.
0 commit comments