Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Minor fix in graph module #3

Merged
merged 1 commit into from
Jul 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
# v0.0.1+3

# Fixes

- Minor fix in graph module

# v0.0.1+2

# Updates:
# Updates

- Added a model for collectible

# v0.0.1+1

# Updates:
# Updates

- Improve Dio initialization

# v0.0.1
1 change: 1 addition & 0 deletions lib/constants/variables.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
class Variables {
Variables._();

static const NFT_SUB_GRAPH_URL = 'https://api.thegraph.com/subgraphs/name/fuseio/fuse-nft';
static const FUSE_CHAIN_ID = 122;
static const FUSE_RPC_URL = 'https://rpc.fuse.io';
static const int DEFAULT_GAS_LIMIT = 700000;
Expand Down
12 changes: 7 additions & 5 deletions lib/src/graph.dart
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
library graph;

import 'dart:async';
import 'package:charge_wallet_sdk/models/collectible/collectible.dart';

import 'package:gql/language.dart';
import 'package:graphql/client.dart';

import 'package:charge_wallet_sdk/constants/variables.dart';
import 'package:charge_wallet_sdk/models/collectible/collectible.dart';
import 'package:charge_wallet_sdk/src/queries.dart';

class Graph {
late final GraphQLClient _clientNFT;

Graph(
String baseUrl,
String nftSubgraph,
) {
Graph({
String nftSubgraph = Variables.FUSE_RPC_URL,
}) {
_clientNFT = GraphQLClient(
link: HttpLink(nftSubgraph),
cache: GraphQLCache(),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: charge_wallet_sdk
version: 0.0.1+2
version: 0.0.1+3
homepage: https://docs.chargeweb3.com/docs/overview-2
repository: https://github.com/fuseio/charge_wallet_sdk
description: SDK for Charge wallet API
Expand Down