@huma-finance/sdk 0.0.11 → 0.0.13

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.
Files changed (67) hide show
  1. package/API.md +482 -0
  2. package/README.md +9 -5
  3. package/dist/cjs/graphql/generatedTypes.d.ts +40 -0
  4. package/dist/cjs/graphql/generatedTypes.js +9 -0
  5. package/dist/cjs/graphql/generatedTypes.js.map +1 -0
  6. package/dist/cjs/graphql/index.d.ts +1 -0
  7. package/dist/cjs/graphql/index.js +5 -0
  8. package/dist/cjs/graphql/index.js.map +1 -0
  9. package/dist/cjs/helpers/PoolContractHelper.d.ts +30 -1
  10. package/dist/cjs/helpers/PoolContractHelper.js +45 -1
  11. package/dist/cjs/helpers/PoolContractHelper.js.map +1 -1
  12. package/dist/cjs/services/ARWeaveService.d.ts +1 -18
  13. package/dist/cjs/services/ARWeaveService.js +17 -51
  14. package/dist/cjs/services/ARWeaveService.js.map +1 -1
  15. package/dist/cjs/services/ReceivableService.d.ts +11 -0
  16. package/dist/cjs/services/ReceivableService.js +71 -20
  17. package/dist/cjs/services/ReceivableService.js.map +1 -1
  18. package/dist/graphql/generatedTypes.d.ts +40 -0
  19. package/dist/graphql/generatedTypes.js +5 -0
  20. package/dist/graphql/generatedTypes.js.map +1 -0
  21. package/dist/graphql/index.d.ts +1 -0
  22. package/dist/graphql/index.js +2 -0
  23. package/dist/graphql/index.js.map +1 -0
  24. package/dist/helpers/ERC20TransferableReceivableContractHelper.d.ts +10 -10
  25. package/dist/helpers/ERC20TransferableReceivableContractHelper.js +17 -17
  26. package/dist/helpers/PoolContractHelper.d.ts +41 -12
  27. package/dist/helpers/PoolContractHelper.js +58 -16
  28. package/dist/helpers/PoolContractHelper.js.map +1 -1
  29. package/dist/helpers/RealWorldReceivableContractHelper.d.ts +10 -10
  30. package/dist/helpers/RealWorldReceivableContractHelper.js +17 -17
  31. package/dist/helpers/index.d.ts +3 -3
  32. package/dist/helpers/index.js +3 -3
  33. package/dist/hooks/index.d.ts +4 -4
  34. package/dist/hooks/index.js +4 -4
  35. package/dist/hooks/useContract.d.ts +13 -13
  36. package/dist/hooks/useContract.js +26 -26
  37. package/dist/hooks/useERC20TransferableReceivableContract.d.ts +12 -12
  38. package/dist/hooks/useERC20TransferableReceivableContract.js +16 -16
  39. package/dist/hooks/usePoolContract.d.ts +60 -60
  40. package/dist/hooks/usePoolContract.js +48 -48
  41. package/dist/hooks/useRealWorldReceivableContract.d.ts +10 -10
  42. package/dist/hooks/useRealWorldReceivableContract.js +15 -15
  43. package/dist/index.d.ts +4 -4
  44. package/dist/index.js +4 -4
  45. package/dist/services/ARWeaveService.d.ts +81 -84
  46. package/dist/services/ARWeaveService.js +133 -144
  47. package/dist/services/ARWeaveService.js.map +1 -1
  48. package/dist/services/EAService.d.ts +18 -18
  49. package/dist/services/EAService.js +9 -9
  50. package/dist/services/ReceivableService.d.ts +87 -76
  51. package/dist/services/ReceivableService.js +182 -132
  52. package/dist/services/ReceivableService.js.map +1 -1
  53. package/dist/services/SubgraphService.d.ts +53 -53
  54. package/dist/services/SubgraphService.js +79 -79
  55. package/dist/services/index.d.ts +4 -4
  56. package/dist/services/index.js +4 -4
  57. package/dist/tsconfig.cjs.tsbuildinfo +1 -1
  58. package/dist/utils/chain.d.ts +14 -14
  59. package/dist/utils/chain.js +28 -28
  60. package/dist/utils/index.d.ts +3 -3
  61. package/dist/utils/index.js +3 -3
  62. package/dist/utils/poolInfo.d.ts +9 -9
  63. package/dist/utils/poolInfo.js +9 -9
  64. package/dist/utils/web3.d.ts +4 -4
  65. package/dist/utils/web3.js +23 -23
  66. package/getting-started.md +191 -0
  67. package/package.json +13 -6
@@ -1,14 +1,14 @@
1
- import { JsonRpcProvider, JsonRpcSigner } from '@ethersproject/providers';
2
- import { ethers } from 'ethers';
3
- /**
4
- * Get the chain ID from a signer or provider object.
5
- * @param {JsonRpcProvider | JsonRpcSigner} signerOrProvider - The signer or provider object to get the chain ID from.
6
- * @returns {number} - The chain ID.
7
- */
8
- export declare function getChainIdFromJsonSignerOrProvider(signerOrProvider: JsonRpcProvider | JsonRpcSigner): number;
9
- /**
10
- * Get the chain ID from a signer or provider object.
11
- * @param {ethers.provider.Provider | ethers.Signer} signerOrProvider - The signer or provider object to get the chain ID from.
12
- * @returns {number} - The chain ID.
13
- */
14
- export declare function getChainIdFromSignerOrProvider(signerOrProvider: ethers.providers.Provider | ethers.Signer): Promise<number | undefined>;
1
+ import { JsonRpcProvider, JsonRpcSigner } from '@ethersproject/providers';
2
+ import { ethers } from 'ethers';
3
+ /**
4
+ * Get the chain ID from a signer or provider object.
5
+ * @param {JsonRpcProvider | JsonRpcSigner} signerOrProvider - The signer or provider object to get the chain ID from.
6
+ * @returns {number} - The chain ID.
7
+ */
8
+ export declare function getChainIdFromJsonSignerOrProvider(signerOrProvider: JsonRpcProvider | JsonRpcSigner): number;
9
+ /**
10
+ * Get the chain ID from a signer or provider object.
11
+ * @param {ethers.provider.Provider | ethers.Signer} signerOrProvider - The signer or provider object to get the chain ID from.
12
+ * @returns {number} - The chain ID.
13
+ */
14
+ export declare function getChainIdFromSignerOrProvider(signerOrProvider: ethers.providers.Provider | ethers.Signer): Promise<number | undefined>;
@@ -1,29 +1,29 @@
1
- import { JsonRpcProvider } from '@ethersproject/providers';
2
- import { ethers } from 'ethers';
3
- /**
4
- * Get the chain ID from a signer or provider object.
5
- * @param {JsonRpcProvider | JsonRpcSigner} signerOrProvider - The signer or provider object to get the chain ID from.
6
- * @returns {number} - The chain ID.
7
- */
8
- export function getChainIdFromJsonSignerOrProvider(signerOrProvider) {
9
- return signerOrProvider instanceof JsonRpcProvider
10
- ? signerOrProvider.network.chainId
11
- : signerOrProvider.provider.network.chainId;
12
- }
13
- /**
14
- * Get the chain ID from a signer or provider object.
15
- * @param {ethers.provider.Provider | ethers.Signer} signerOrProvider - The signer or provider object to get the chain ID from.
16
- * @returns {number} - The chain ID.
17
- */
18
- export async function getChainIdFromSignerOrProvider(signerOrProvider) {
19
- var _a;
20
- let network;
21
- if (signerOrProvider instanceof ethers.providers.Provider) {
22
- network = await signerOrProvider.getNetwork();
23
- }
24
- else {
25
- network = await ((_a = signerOrProvider === null || signerOrProvider === void 0 ? void 0 : signerOrProvider.provider) === null || _a === void 0 ? void 0 : _a.getNetwork());
26
- }
27
- return network === null || network === void 0 ? void 0 : network.chainId;
28
- }
1
+ import { JsonRpcProvider } from '@ethersproject/providers';
2
+ import { ethers } from 'ethers';
3
+ /**
4
+ * Get the chain ID from a signer or provider object.
5
+ * @param {JsonRpcProvider | JsonRpcSigner} signerOrProvider - The signer or provider object to get the chain ID from.
6
+ * @returns {number} - The chain ID.
7
+ */
8
+ export function getChainIdFromJsonSignerOrProvider(signerOrProvider) {
9
+ return signerOrProvider instanceof JsonRpcProvider
10
+ ? signerOrProvider.network.chainId
11
+ : signerOrProvider.provider.network.chainId;
12
+ }
13
+ /**
14
+ * Get the chain ID from a signer or provider object.
15
+ * @param {ethers.provider.Provider | ethers.Signer} signerOrProvider - The signer or provider object to get the chain ID from.
16
+ * @returns {number} - The chain ID.
17
+ */
18
+ export async function getChainIdFromSignerOrProvider(signerOrProvider) {
19
+ var _a;
20
+ let network;
21
+ if (signerOrProvider instanceof ethers.providers.Provider) {
22
+ network = await signerOrProvider.getNetwork();
23
+ }
24
+ else {
25
+ network = await ((_a = signerOrProvider === null || signerOrProvider === void 0 ? void 0 : signerOrProvider.provider) === null || _a === void 0 ? void 0 : _a.getNetwork());
26
+ }
27
+ return network === null || network === void 0 ? void 0 : network.chainId;
28
+ }
29
29
  //# sourceMappingURL=chain.js.map
@@ -1,3 +1,3 @@
1
- export * from './chain';
2
- export * from './web3';
3
- export * from './poolInfo';
1
+ export * from './chain';
2
+ export * from './web3';
3
+ export * from './poolInfo';
@@ -1,4 +1,4 @@
1
- export * from './chain';
2
- export * from './web3';
3
- export * from './poolInfo';
1
+ export * from './chain';
2
+ export * from './web3';
3
+ export * from './poolInfo';
4
4
  //# sourceMappingURL=index.js.map
@@ -1,9 +1,9 @@
1
- import { POOL_NAME, POOL_TYPE, PoolInfoType } from '@huma-finance/shared';
2
- /**
3
- * Returns the pool info based on the provided pool name and type, using the same chain ID as the provider/signer given
4
- * @param {JsonRpcProvider | JsonRpcSigner} signerOrProvider - The Web3 provider or signer.
5
- * @param {POOL_NAME} poolName - The name of the pool.
6
- * @param {POOL_TYPE} poolType - The type of the pool.
7
- * @returns {PoolInfoType|undefined} - The pool info or undefined if the chain ID is not supported.
8
- */
9
- export declare const getPoolInfo: (chainId: number, poolName: POOL_NAME, poolType: POOL_TYPE) => PoolInfoType | undefined;
1
+ import { POOL_NAME, POOL_TYPE, PoolInfoType } from '@huma-finance/shared';
2
+ /**
3
+ * Returns the pool info based on the provided pool name and type, using the same chain ID as the provider/signer given
4
+ * @param {JsonRpcProvider | JsonRpcSigner} signerOrProvider - The Web3 provider or signer.
5
+ * @param {POOL_NAME} poolName - The name of the pool.
6
+ * @param {POOL_TYPE} poolType - The type of the pool.
7
+ * @returns {PoolInfoType|undefined} - The pool info or undefined if the chain ID is not supported.
8
+ */
9
+ export declare const getPoolInfo: (chainId: number, poolName: POOL_NAME, poolType: POOL_TYPE) => PoolInfoType | undefined;
@@ -1,10 +1,10 @@
1
- import { PoolContractMap, } from '@huma-finance/shared';
2
- /**
3
- * Returns the pool info based on the provided pool name and type, using the same chain ID as the provider/signer given
4
- * @param {JsonRpcProvider | JsonRpcSigner} signerOrProvider - The Web3 provider or signer.
5
- * @param {POOL_NAME} poolName - The name of the pool.
6
- * @param {POOL_TYPE} poolType - The type of the pool.
7
- * @returns {PoolInfoType|undefined} - The pool info or undefined if the chain ID is not supported.
8
- */
9
- export const getPoolInfo = (chainId, poolName, poolType) => { var _a, _b; return (_b = (_a = PoolContractMap[chainId]) === null || _a === void 0 ? void 0 : _a[poolType]) === null || _b === void 0 ? void 0 : _b[poolName]; };
1
+ import { PoolContractMap, } from '@huma-finance/shared';
2
+ /**
3
+ * Returns the pool info based on the provided pool name and type, using the same chain ID as the provider/signer given
4
+ * @param {JsonRpcProvider | JsonRpcSigner} signerOrProvider - The Web3 provider or signer.
5
+ * @param {POOL_NAME} poolName - The name of the pool.
6
+ * @param {POOL_TYPE} poolType - The type of the pool.
7
+ * @returns {PoolInfoType|undefined} - The pool info or undefined if the chain ID is not supported.
8
+ */
9
+ export const getPoolInfo = (chainId, poolName, poolType) => { var _a, _b; return (_b = (_a = PoolContractMap[chainId]) === null || _a === void 0 ? void 0 : _a[poolType]) === null || _b === void 0 ? void 0 : _b[poolName]; };
10
10
  //# sourceMappingURL=poolInfo.js.map
@@ -1,4 +1,4 @@
1
- import { Contract } from '@ethersproject/contracts';
2
- import { ethers } from 'ethers';
3
- export declare function isAddress(value: any): string | false;
4
- export declare function getContract(address: string, ABI: any, signerOrProvider: ethers.providers.Provider | ethers.Signer): Contract;
1
+ import { Contract } from '@ethersproject/contracts';
2
+ import { ethers } from 'ethers';
3
+ export declare function isAddress(value: any): string | false;
4
+ export declare function getContract(address: string, ABI: any, signerOrProvider: ethers.providers.Provider | ethers.Signer): Contract;
@@ -1,24 +1,24 @@
1
- import { Contract } from '@ethersproject/contracts';
2
- import { AddressZero } from '@ethersproject/constants';
3
- import { getAddress } from '@ethersproject/address';
4
- // returns the checksummed address if the address is valid, otherwise returns false
5
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
6
- export function isAddress(value) {
7
- try {
8
- // Alphabetical letters must be made lowercase for getAddress to work.
9
- // See documentation here: https://docs.ethers.io/v5/api/utils/address/
10
- return getAddress(value.toLowerCase());
11
- }
12
- catch (_a) {
13
- return false;
14
- }
15
- }
16
- export function getContract(address,
17
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
18
- ABI, signerOrProvider) {
19
- if (!isAddress(address) || address === AddressZero) {
20
- throw Error(`Invalid 'address' parameter '${address}'.`);
21
- }
22
- return new Contract(address, ABI, signerOrProvider);
23
- }
1
+ import { Contract } from '@ethersproject/contracts';
2
+ import { AddressZero } from '@ethersproject/constants';
3
+ import { getAddress } from '@ethersproject/address';
4
+ // returns the checksummed address if the address is valid, otherwise returns false
5
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
6
+ export function isAddress(value) {
7
+ try {
8
+ // Alphabetical letters must be made lowercase for getAddress to work.
9
+ // See documentation here: https://docs.ethers.io/v5/api/utils/address/
10
+ return getAddress(value.toLowerCase());
11
+ }
12
+ catch (_a) {
13
+ return false;
14
+ }
15
+ }
16
+ export function getContract(address,
17
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
18
+ ABI, signerOrProvider) {
19
+ if (!isAddress(address) || address === AddressZero) {
20
+ throw Error(`Invalid 'address' parameter '${address}'.`);
21
+ }
22
+ return new Contract(address, ABI, signerOrProvider);
23
+ }
24
24
  //# sourceMappingURL=web3.js.map
@@ -0,0 +1,191 @@
1
+ # Getting Started
2
+
3
+ In this guide we'll take a look at using Huma's SDK to mint and pay a receivable, call functions on our pool, and more.
4
+
5
+ ## Installation
6
+
7
+ Huma's SDK can be installed using npm or yarn.
8
+
9
+ ```
10
+ npm install @huma-finance/sdk
11
+ yarn add @huma-finance/sdk
12
+ ```
13
+
14
+ You'll also want to install Huma's shared utilities
15
+
16
+ ```
17
+ npm install @huma-finance/shared
18
+ yarn add @huma-finance/shared
19
+ ```
20
+
21
+ ## Mint a Pool Receivable
22
+
23
+ Create a new file `index.js` and import services from `@huma-finance/sdk` and `@huma-finance/shared`
24
+
25
+ ```
26
+ import { ReceivableService, PaymentMethod } from '@huma-finance/sdk'
27
+ import { POOL_NAME, POOL_TYPE } from "@huma-finance/shared";
28
+ ```
29
+
30
+ Set up your ethers Provider and import your private key
31
+
32
+ ```
33
+ const TEST_PRIVATE_KEY = "YOUR_PRIVATE_KEY";
34
+ const provider = new ethers.providers.JsonRpcProvider(
35
+ `https://goerli.infura.io/v3/${INFURA_API_KEY}`,
36
+ {
37
+ name: "Goerli",
38
+ chainId: 5,
39
+ }
40
+ );
41
+ ```
42
+
43
+ Call on the `mintReceivable` method with an ethers Wallet instance
44
+
45
+ > Note: Receivables support multiple payment methods. Declarative receivables
46
+ > don't actually transfer ERC20 tokens, they just update their balance on-chain.
47
+ > Payable receivables will actually call pool methods to transfer ERC20 tokens.
48
+
49
+ ```
50
+ const wallet = new Wallet(TEST_PRIVATE_KEY, provider);
51
+ const tx = await ReceivableService.mintReceivable(
52
+ wallet,
53
+ POOL_NAME.HumaCreditLine,
54
+ POOL_TYPE.CreditLine,
55
+ 1000, // receivableAmount
56
+ 1684517656, // maturityDate
57
+ PaymentMethod.Declarative, // paymentMethod
58
+ ""
59
+ );
60
+ const data = await tx.wait();
61
+ console.log(`Success. Tx hash: ${data.transactionHash}`);
62
+ ```
63
+
64
+ Running this in the console, we should see the following result
65
+
66
+ ```
67
+ $ node index.js
68
+ {}
69
+ Success. Tx hash: 0xb789af3611bc01b6a90f002327500421abf575660be1bbb30013d52518260e41
70
+ ```
71
+
72
+ Congrats! You've successfully minted your own receivable token, which are used to borrow from Huma's pools.
73
+
74
+ If you're stuck or want to view a complete solution, check out our `examples` directory (here)[https://github.com/00labs/huma-dapp/blob/develop/packages/examples/src/]
75
+
76
+ ## Call functions from Huma's pool
77
+
78
+ We can use the Huma SDK to easily obtain ethers Contract instances of any Huma pool.
79
+
80
+ ```
81
+ import { getPoolContract } from "@huma-finance/sdk";
82
+ import { POOL_NAME, POOL_TYPE } from "@huma-finance/shared";
83
+ ```
84
+
85
+ With a ethers provider, pass in some config options for which pool contract you'd like to fetch.
86
+
87
+ ```
88
+ const poolContract = getPoolContract(
89
+ wallet,
90
+ 5, // Goerli chain ID
91
+ POOL_NAME.HumaCreditLine,
92
+ POOL_TYPE.CreditLine
93
+ );
94
+ ```
95
+
96
+ Now you can call any functions you want on the pool as if it were any other ethers Contract. Let's try fetching credit record details of our current account:
97
+
98
+ ```
99
+ const data = await poolContract.creditRecordMapping(wallet.address);
100
+ console.log(data);
101
+ ```
102
+
103
+ Running this in the console, you should see something like this
104
+
105
+ ```
106
+ $ node index.js
107
+ [
108
+ BigNumber { _hex: '0x00', _isBigNumber: true },
109
+ BigNumber { _hex: '0x00', _isBigNumber: true },
110
+ BigNumber { _hex: '0x00', _isBigNumber: true },
111
+ BigNumber { _hex: '0x00', _isBigNumber: true },
112
+ BigNumber { _hex: '0x00', _isBigNumber: true },
113
+ 0,
114
+ 0,
115
+ 0,
116
+ unbilledPrincipal: BigNumber { _hex: '0x00', _isBigNumber: true },
117
+ dueDate: BigNumber { _hex: '0x00', _isBigNumber: true },
118
+ correction: BigNumber { _hex: '0x00', _isBigNumber: true },
119
+ totalDue: BigNumber { _hex: '0x00', _isBigNumber: true },
120
+ feesAndInterestDue: BigNumber { _hex: '0x00', _isBigNumber: true },
121
+ missedPeriods: 0,
122
+ remainingPeriods: 0,
123
+ state: 0
124
+ ]
125
+ Done in 4.90s.
126
+ ```
127
+
128
+ # Other SDK examples
129
+
130
+ ## Declare a receivable as paid
131
+
132
+ Once we've minted a receivable, we can use the `ReceivableService` to pay it off using multiple types of payment methods.
133
+
134
+ ```
135
+ const wallet = new Wallet(TEST_PRIVATE_KEY, provider);
136
+
137
+ const data = await ReceivableService.payReceivableByTokenId(
138
+ wallet,
139
+ 8, // receivableTokenId
140
+ 10, // paymentAmount
141
+ PaymentMethod.Declarative // paymentMethod
142
+ );
143
+ console.log(`Success. Tx hash: ${data.transactionHash}`);
144
+ ```
145
+
146
+ ## Mint a receivable with metadata automatically uploaded to ARWeave
147
+
148
+ Huma supports both lazy funding and pre-funding the ARWeave network to pay for metadata uploads.
149
+
150
+ ```
151
+ // Prefund...
152
+ await prefundBundlr(getBundlrNetworkConfig(5), signer, 1_000_000)
153
+
154
+ // Or pay as you go! (Note: it's recommended you still prefund with a small
155
+ // amount of currency to avoid slippage)
156
+ const data = await ReceivableService.mintReceivableWithMetadata(
157
+ signer,
158
+ TEST_PRIVATE_KEY,
159
+ chainId,
160
+ poolName,
161
+ poolType,
162
+ receivableAmount,
163
+ maturityDate,
164
+ paymentMethod,
165
+ JSON.parse(metadata),
166
+ internalID,
167
+ [],
168
+ )
169
+ setMintResult(`Success, Tx Hash: ${data.transactionHash}`)
170
+ console.log(data)
171
+ ```
172
+
173
+ ## Query for receivables uploaded to ARWeave
174
+
175
+ Once metadata is uploaded to ARWeave, you can query them by referenceId tags, which you can specify during upload.
176
+
177
+ ```
178
+ const data = await ARWeaveService.queryForMetadata(
179
+ chainId,
180
+ poolName,
181
+ poolType,
182
+ address,
183
+ '12', // referenceId
184
+ )
185
+ setQueryResult(data)
186
+ console.log(data)
187
+ ```
188
+
189
+ ## Next steps
190
+
191
+ If you want to learn more about the different functions and helpers available in the Huma SDK, please check out our [API documentation](API.md).
package/package.json CHANGED
@@ -1,17 +1,21 @@
1
1
  {
2
2
  "name": "@huma-finance/sdk",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "types": "./dist/index.d.ts",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/index.js",
7
7
  "files": [
8
- "dist"
8
+ "dist",
9
+ "getting-started.md",
10
+ "API.md"
9
11
  ],
10
12
  "scripts": {
11
13
  "start": "tsc -w",
14
+ "graphql": "graphql-codegen",
12
15
  "generateDocs": "jsdoc2md --files src/**/*.ts --configure ./jsdoc2md.json > API.md",
13
16
  "build": "tsc --project ./tsconfig.json && tsc --project ./tsconfig.cjs.json",
14
- "lint-staged": "lint-staged"
17
+ "lint-staged": "lint-staged",
18
+ "prettier": "prettier --write \"src/**/*.{js,ts,tsx,graphql}\""
15
19
  },
16
20
  "dependencies": {
17
21
  "@bundlr-network/client": "^0.10.5",
@@ -20,10 +24,10 @@
20
24
  "@ethersproject/constants": "^5.7.0",
21
25
  "@ethersproject/contracts": "^5.7.0",
22
26
  "@ethersproject/providers": "^5.6.0",
23
- "@huma-finance/shared": "^0.0.11",
27
+ "@huma-finance/shared": "^0.0.13",
24
28
  "arweave": "^1.13.5",
25
29
  "ethers": "^5.7.2",
26
- "graphql-request": "^6.0.0",
30
+ "graphql-request": "5.1.0",
27
31
  "react": "^18.2.0",
28
32
  "tslib": "^2.5.0",
29
33
  "typescript": "^4.8.4"
@@ -57,6 +61,9 @@
57
61
  "@babel/core": "^7.21.4",
58
62
  "@babel/preset-env": "^7.21.4",
59
63
  "@babel/preset-typescript": "^7.21.4",
64
+ "@graphql-codegen/cli": "^3.3.1",
65
+ "@graphql-codegen/typescript": "^3.0.4",
66
+ "@graphql-codegen/typescript-graphql-request": "^4.5.9",
60
67
  "@typechain/ethers-v5": "^10.1.0",
61
68
  "@typescript-eslint/eslint-plugin": "^5.41.0",
62
69
  "@typescript-eslint/parser": "^5.41.0",
@@ -83,5 +90,5 @@
83
90
  "optionalDependencies": {
84
91
  "encoding": "^0.1.13"
85
92
  },
86
- "gitHead": "12afb4430fa58ad8403bde9aadb52c7ddb1f048c"
93
+ "gitHead": "d4c4b86cde3f84209204f8f926de995bb07a1bd2"
87
94
  }