@aurigami/sdk 1.7.1 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sdk.cjs.development.js +4 -15
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +4 -15
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/helpers/graphql-helpers.ts +4 -6
package/dist/sdk.esm.js
CHANGED
|
@@ -21,7 +21,6 @@ import abis$4 from '@aurigami/contracts/artifacts/contracts/PULP.sol/PULP.json';
|
|
|
21
21
|
import abis$a from '@aurigami/contracts/artifacts/contracts/ReferralDirectory.sol/ReferralDirectory.json';
|
|
22
22
|
import { Signer } from '@ethersproject/abstract-signer';
|
|
23
23
|
import axios from 'axios';
|
|
24
|
-
import fetch from 'node-fetch';
|
|
25
24
|
|
|
26
25
|
var dummyAddress = '0xDEADbeEfEEeEEEeEEEeEEeeeeeEeEEeeeeEEEEeE';
|
|
27
26
|
var ETHAddress = '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE';
|
|
@@ -1146,25 +1145,15 @@ function _queryGraphQL() {
|
|
|
1146
1145
|
switch (_context.prev = _context.next) {
|
|
1147
1146
|
case 0:
|
|
1148
1147
|
_context.next = 2;
|
|
1149
|
-
return
|
|
1150
|
-
|
|
1151
|
-
'Content-Type': 'application/json'
|
|
1152
|
-
},
|
|
1153
|
-
method: 'POST',
|
|
1154
|
-
body: JSON.stringify({
|
|
1155
|
-
query: query
|
|
1156
|
-
})
|
|
1148
|
+
return axios.post(GRAPHQL_URL, {
|
|
1149
|
+
query: query
|
|
1157
1150
|
});
|
|
1158
1151
|
|
|
1159
1152
|
case 2:
|
|
1160
1153
|
resp = _context.sent;
|
|
1161
|
-
_context.
|
|
1162
|
-
return resp.json();
|
|
1163
|
-
|
|
1164
|
-
case 5:
|
|
1165
|
-
return _context.abrupt("return", _context.sent.data);
|
|
1154
|
+
return _context.abrupt("return", resp.data.data);
|
|
1166
1155
|
|
|
1167
|
-
case
|
|
1156
|
+
case 4:
|
|
1168
1157
|
case "end":
|
|
1169
1158
|
return _context.stop();
|
|
1170
1159
|
}
|