wip indexer
This commit is contained in:
parent
7f83965a8b
commit
d38cabe1eb
|
@ -80,7 +80,8 @@ Future<void> main() async {
|
|||
}
|
||||
// log.d(await configBox.get('endpoint'));
|
||||
|
||||
const indexerEndpoint = "http://192.168.1.72:8080/v1/graphql";
|
||||
// const indexerEndpoint = "http://192.168.1.72:8080/v1/graphql";
|
||||
const indexerEndpoint = "https://duniter-indexer.coinduf.eu/v1/graphql";
|
||||
|
||||
HttpOverrides.global = MyHttpOverrides();
|
||||
|
||||
|
|
|
@ -7,3 +7,72 @@ query ($address: String!) {
|
|||
}
|
||||
}
|
||||
''';
|
||||
|
||||
const String searchAddressByNameQ = r'''
|
||||
query ($name: String!) {
|
||||
search_identity(args: {name: $name}) {
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
||||
''';
|
||||
|
||||
const String getHistoryByAddressQ = r'''
|
||||
query ($address: String!) {
|
||||
account_by_pk(id: "5CQ8T4qpbYJq7uVsxGPQ5q2df7x3Wa4aRY6HUWMBYjfLZhnn") {
|
||||
transactions_issued {
|
||||
receiver_id
|
||||
amount
|
||||
created_at
|
||||
created_on
|
||||
}
|
||||
transactions_received {
|
||||
issuer_id
|
||||
amount
|
||||
created_at
|
||||
created_on
|
||||
}
|
||||
}
|
||||
}
|
||||
''';
|
||||
|
||||
const String getHistoryByAddressQ2 = r'''
|
||||
query ($address: String!) {
|
||||
{
|
||||
transaction(where: {_or: [{issuer_id: {_eq: $address}},
|
||||
{receiver_id: {_eq: $address}}]}, order_by: {created_at: desc})
|
||||
{
|
||||
amount
|
||||
created_at
|
||||
issuer_id
|
||||
receiver_id
|
||||
}
|
||||
}
|
||||
}
|
||||
''';
|
||||
|
||||
const String getHistoryByAddressQ3 = r'''
|
||||
query ($address: String!) {
|
||||
transaction_connection(where:
|
||||
{_or: [
|
||||
{issuer_id: {_eq: $address}},
|
||||
{receiver_id: {_eq: $address}}
|
||||
]},
|
||||
order_by: {created_at: desc}) {
|
||||
edges {
|
||||
node {
|
||||
amount
|
||||
created_at
|
||||
issuer_id
|
||||
receiver_id
|
||||
}
|
||||
}
|
||||
pageInfo {
|
||||
endCursor
|
||||
hasNextPage
|
||||
hasPreviousPage
|
||||
startCursor
|
||||
}
|
||||
}
|
||||
}
|
||||
''';
|
||||
|
|
|
@ -147,6 +147,9 @@ class WalletOptionsProvider with ChangeNotifier {
|
|||
);
|
||||
}
|
||||
|
||||
log.d('bbbbbbbbbbbb: ' +
|
||||
DateTime.parse("2022-06-13T16:51:24.001+00:00").toString());
|
||||
|
||||
return Consumer<SubstrateSdk>(builder: (context, _sub, _) {
|
||||
return FutureBuilder(
|
||||
future: _sub.idtyStatus(address),
|
||||
|
|
|
@ -5,7 +5,7 @@ description: Pay with G1.
|
|||
# pub.dev using `pub publish`. This is preferred for private packages.
|
||||
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
||||
|
||||
version: 0.0.8+9
|
||||
version: 0.0.9+1
|
||||
|
||||
environment:
|
||||
sdk: '>=2.12.0 <3.0.0'
|
||||
|
|
Loading…
Reference in New Issue