@huma-finance/sdk 0.0.21 → 0.0.24
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/API.md +482 -482
- package/LICENSE +660 -660
- package/README.md +34 -34
- package/dist/cjs/graphql/generatedTypes.d.ts +40 -40
- package/dist/cjs/graphql/generatedTypes.js +8 -8
- package/dist/cjs/graphql/index.d.ts +1 -1
- package/dist/cjs/graphql/index.js +4 -4
- package/dist/cjs/helpers/ERC20TransferableReceivableContractHelper.d.ts +10 -10
- package/dist/cjs/helpers/ERC20TransferableReceivableContractHelper.js +21 -21
- package/dist/cjs/helpers/PoolContractHelper.d.ts +104 -104
- package/dist/cjs/helpers/PoolContractHelper.js +102 -104
- package/dist/cjs/helpers/PoolContractHelper.js.map +1 -1
- package/dist/cjs/helpers/RealWorldReceivableContractHelper.d.ts +10 -10
- package/dist/cjs/helpers/RealWorldReceivableContractHelper.js +21 -21
- package/dist/cjs/helpers/index.d.ts +3 -3
- package/dist/cjs/helpers/index.js +6 -6
- package/dist/cjs/hooks/index.d.ts +4 -4
- package/dist/cjs/hooks/index.js +7 -7
- package/dist/cjs/hooks/useContract.d.ts +13 -13
- package/dist/cjs/hooks/useContract.js +30 -30
- package/dist/cjs/hooks/useERC20TransferableReceivableContract.d.ts +12 -12
- package/dist/cjs/hooks/useERC20TransferableReceivableContract.js +20 -20
- package/dist/cjs/hooks/usePoolContract.d.ts +60 -60
- package/dist/cjs/hooks/usePoolContract.js +53 -53
- package/dist/cjs/hooks/useRealWorldReceivableContract.d.ts +10 -10
- package/dist/cjs/hooks/useRealWorldReceivableContract.js +19 -19
- package/dist/cjs/index.d.ts +4 -4
- package/dist/cjs/index.js +7 -7
- package/dist/cjs/services/ARWeaveService.d.ts +81 -81
- package/dist/cjs/services/ARWeaveService.js +140 -145
- package/dist/cjs/services/ARWeaveService.js.map +1 -1
- package/dist/cjs/services/EAService.d.ts +18 -20
- package/dist/cjs/services/EAService.js +12 -33
- package/dist/cjs/services/EAService.js.map +1 -1
- package/dist/cjs/services/ReceivableService.d.ts +87 -89
- package/dist/cjs/services/ReceivableService.js +188 -193
- package/dist/cjs/services/ReceivableService.js.map +1 -1
- package/dist/cjs/services/SubgraphService.d.ts +53 -53
- package/dist/cjs/services/SubgraphService.js +100 -93
- package/dist/cjs/services/SubgraphService.js.map +1 -1
- package/dist/cjs/services/index.d.ts +4 -4
- package/dist/cjs/services/index.js +7 -7
- package/dist/cjs/utils/chain.d.ts +14 -15
- package/dist/cjs/utils/chain.js +33 -37
- package/dist/cjs/utils/chain.js.map +1 -1
- package/dist/cjs/utils/index.d.ts +3 -4
- package/dist/cjs/utils/index.js +6 -7
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/utils/poolInfo.d.ts +8 -8
- package/dist/cjs/utils/poolInfo.js +12 -12
- package/dist/cjs/utils/web3.d.ts +4 -4
- package/dist/cjs/utils/web3.js +28 -28
- package/dist/graphql/generatedTypes.d.ts +40 -40
- package/dist/graphql/generatedTypes.js +4 -4
- package/dist/graphql/index.d.ts +1 -1
- package/dist/graphql/index.js +1 -1
- package/dist/helpers/ERC20TransferableReceivableContractHelper.d.ts +10 -10
- package/dist/helpers/ERC20TransferableReceivableContractHelper.js +17 -17
- package/dist/helpers/PoolContractHelper.d.ts +104 -104
- package/dist/helpers/PoolContractHelper.js +94 -96
- package/dist/helpers/PoolContractHelper.js.map +1 -1
- package/dist/helpers/RealWorldReceivableContractHelper.d.ts +10 -10
- package/dist/helpers/RealWorldReceivableContractHelper.js +17 -17
- package/dist/helpers/index.d.ts +3 -3
- package/dist/helpers/index.js +3 -3
- package/dist/hooks/index.d.ts +4 -4
- package/dist/hooks/index.js +4 -4
- package/dist/hooks/useContract.d.ts +13 -13
- package/dist/hooks/useContract.js +26 -26
- package/dist/hooks/useERC20TransferableReceivableContract.d.ts +12 -12
- package/dist/hooks/useERC20TransferableReceivableContract.js +16 -16
- package/dist/hooks/usePoolContract.d.ts +60 -60
- package/dist/hooks/usePoolContract.js +48 -48
- package/dist/hooks/useRealWorldReceivableContract.d.ts +10 -10
- package/dist/hooks/useRealWorldReceivableContract.js +15 -15
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/services/ARWeaveService.d.ts +81 -81
- package/dist/services/ARWeaveService.js +135 -140
- package/dist/services/ARWeaveService.js.map +1 -1
- package/dist/services/EAService.d.ts +18 -20
- package/dist/services/EAService.js +9 -30
- package/dist/services/EAService.js.map +1 -1
- package/dist/services/ReceivableService.d.ts +87 -89
- package/dist/services/ReceivableService.js +184 -189
- package/dist/services/ReceivableService.js.map +1 -1
- package/dist/services/SubgraphService.d.ts +53 -53
- package/dist/services/SubgraphService.js +97 -90
- package/dist/services/SubgraphService.js.map +1 -1
- package/dist/services/index.d.ts +4 -4
- package/dist/services/index.js +4 -4
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/utils/chain.d.ts +14 -15
- package/dist/utils/chain.js +28 -31
- package/dist/utils/chain.js.map +1 -1
- package/dist/utils/index.d.ts +3 -4
- package/dist/utils/index.js +3 -4
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/poolInfo.d.ts +8 -8
- package/dist/utils/poolInfo.js +8 -8
- package/dist/utils/web3.d.ts +4 -4
- package/dist/utils/web3.js +23 -23
- package/getting-started.md +190 -190
- package/package.json +3 -3
- package/dist/cjs/helpers/BaseCreditPoolReceivableContractHelper.d.ts +0 -10
- package/dist/cjs/helpers/BaseCreditPoolReceivableContractHelper.js +0 -22
- package/dist/cjs/helpers/BaseCreditPoolReceivableContractHelper.js.map +0 -1
- package/dist/cjs/hooks/useBaseCreditPoolReceivableContract.d.ts +0 -10
- package/dist/cjs/hooks/useBaseCreditPoolReceivableContract.js +0 -20
- package/dist/cjs/hooks/useBaseCreditPoolReceivableContract.js.map +0 -1
- package/dist/cjs/hooks/useReceivableFactoringPoolContract.d.ts +0 -10
- package/dist/cjs/hooks/useReceivableFactoringPoolContract.js +0 -17
- package/dist/cjs/hooks/useReceivableFactoringPoolContract.js.map +0 -1
- package/dist/cjs/utils/maticGasStation.d.ts +0 -3
- package/dist/cjs/utils/maticGasStation.js +0 -39
- package/dist/cjs/utils/maticGasStation.js.map +0 -1
- package/dist/helpers/BaseCreditPoolReceivableContractHelper.d.ts +0 -10
- package/dist/helpers/BaseCreditPoolReceivableContractHelper.js +0 -18
- package/dist/helpers/BaseCreditPoolReceivableContractHelper.js.map +0 -1
- package/dist/hooks/useBaseCreditPoolReceivableContract.d.ts +0 -10
- package/dist/hooks/useBaseCreditPoolReceivableContract.js +0 -16
- package/dist/hooks/useBaseCreditPoolReceivableContract.js.map +0 -1
- package/dist/hooks/usePool.d.ts +0 -0
- package/dist/hooks/usePool.js +0 -2
- package/dist/hooks/usePool.js.map +0 -1
- package/dist/hooks/useReceivableFactoringPoolContract.d.ts +0 -10
- package/dist/hooks/useReceivableFactoringPoolContract.js +0 -13
- package/dist/hooks/useReceivableFactoringPoolContract.js.map +0 -1
- package/dist/utils/maticGasStation.d.ts +0 -3
- package/dist/utils/maticGasStation.js +0 -33
- package/dist/utils/maticGasStation.js.map +0 -1
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { useMemo } from 'react';
|
|
2
|
-
import { getContract } from '../utils/web3';
|
|
3
|
-
/**
|
|
4
|
-
* Custom hook for creating an ethers instance of a smart contract.
|
|
5
|
-
*
|
|
6
|
-
* @template T - The type of the contract.
|
|
7
|
-
* @param {string | null | undefined} address - The address of the smart contract instance.
|
|
8
|
-
* @param {any} ABI - The ABI of the smart contract.
|
|
9
|
-
* @param {ethers.providers.Provider | ethers.Signer} signerOrProvider - The signer or provider used to sign transactions or retrieve blockchain data.
|
|
10
|
-
* Note that this signerOrProvider must be connected to the same network as the smart contract in question.
|
|
11
|
-
* @returns {T | null} An instance of the smart contract, or null if an error occurs.
|
|
12
|
-
*/
|
|
13
|
-
export function useContract(address,
|
|
14
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15
|
-
ABI, signerOrProvider) {
|
|
16
|
-
return useMemo(() => {
|
|
17
|
-
if (!address || !ABI || !signerOrProvider)
|
|
18
|
-
return null;
|
|
19
|
-
try {
|
|
20
|
-
return getContract(address, ABI, signerOrProvider);
|
|
21
|
-
}
|
|
22
|
-
catch (error) {
|
|
23
|
-
return null;
|
|
24
|
-
}
|
|
25
|
-
}, [address, ABI, signerOrProvider]);
|
|
26
|
-
}
|
|
1
|
+
import { useMemo } from 'react';
|
|
2
|
+
import { getContract } from '../utils/web3';
|
|
3
|
+
/**
|
|
4
|
+
* Custom hook for creating an ethers instance of a smart contract.
|
|
5
|
+
*
|
|
6
|
+
* @template T - The type of the contract.
|
|
7
|
+
* @param {string | null | undefined} address - The address of the smart contract instance.
|
|
8
|
+
* @param {any} ABI - The ABI of the smart contract.
|
|
9
|
+
* @param {ethers.providers.Provider | ethers.Signer} signerOrProvider - The signer or provider used to sign transactions or retrieve blockchain data.
|
|
10
|
+
* Note that this signerOrProvider must be connected to the same network as the smart contract in question.
|
|
11
|
+
* @returns {T | null} An instance of the smart contract, or null if an error occurs.
|
|
12
|
+
*/
|
|
13
|
+
export function useContract(address,
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15
|
+
ABI, signerOrProvider) {
|
|
16
|
+
return useMemo(() => {
|
|
17
|
+
if (!address || !ABI || !signerOrProvider)
|
|
18
|
+
return null;
|
|
19
|
+
try {
|
|
20
|
+
return getContract(address, ABI, signerOrProvider);
|
|
21
|
+
}
|
|
22
|
+
catch (error) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
}, [address, ABI, signerOrProvider]);
|
|
26
|
+
}
|
|
27
27
|
//# sourceMappingURL=useContract.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Contract, ethers } from 'ethers';
|
|
2
|
-
import { POOL_NAME } from '@huma-finance/shared';
|
|
3
|
-
/**
|
|
4
|
-
* A react hook that returns an ethers contract instance for the ERC20TransferableReceivable contract
|
|
5
|
-
* associated with the given pool name on the current chain.
|
|
6
|
-
*
|
|
7
|
-
* @param {ethers.providers.Provider | ethers.Signer} signerOrProvider The provider or signer instance to use for the contract.
|
|
8
|
-
* @param {number} chainId The chain id where the contract instance exists
|
|
9
|
-
* @param {POOL_NAME} poolName The name of the pool to get the contract for.
|
|
10
|
-
* @returns {Contract | null} A contract instance for the ERC20TransferableReceivable contract or null if it could not be found.
|
|
11
|
-
*/
|
|
12
|
-
export declare function useERC20TransferableReceivableContract(signerOrProvider: ethers.providers.Provider | ethers.Signer, chainId: number, poolName: POOL_NAME): Contract | null;
|
|
1
|
+
import { Contract, ethers } from 'ethers';
|
|
2
|
+
import { POOL_NAME } from '@huma-finance/shared';
|
|
3
|
+
/**
|
|
4
|
+
* A react hook that returns an ethers contract instance for the ERC20TransferableReceivable contract
|
|
5
|
+
* associated with the given pool name on the current chain.
|
|
6
|
+
*
|
|
7
|
+
* @param {ethers.providers.Provider | ethers.Signer} signerOrProvider The provider or signer instance to use for the contract.
|
|
8
|
+
* @param {number} chainId The chain id where the contract instance exists
|
|
9
|
+
* @param {POOL_NAME} poolName The name of the pool to get the contract for.
|
|
10
|
+
* @returns {Contract | null} A contract instance for the ERC20TransferableReceivable contract or null if it could not be found.
|
|
11
|
+
*/
|
|
12
|
+
export declare function useERC20TransferableReceivableContract(signerOrProvider: ethers.providers.Provider | ethers.Signer, chainId: number, poolName: POOL_NAME): Contract | null;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { ERC20_TRANSFERABLE_RECEIVABLE_ABI, POOL_TYPE, PoolContractMap, } from '@huma-finance/shared';
|
|
2
|
-
import { useContract } from './useContract';
|
|
3
|
-
/**
|
|
4
|
-
* A react hook that returns an ethers contract instance for the ERC20TransferableReceivable contract
|
|
5
|
-
* associated with the given pool name on the current chain.
|
|
6
|
-
*
|
|
7
|
-
* @param {ethers.providers.Provider | ethers.Signer} signerOrProvider The provider or signer instance to use for the contract.
|
|
8
|
-
* @param {number} chainId The chain id where the contract instance exists
|
|
9
|
-
* @param {POOL_NAME} poolName The name of the pool to get the contract for.
|
|
10
|
-
* @returns {Contract | null} A contract instance for the ERC20TransferableReceivable contract or null if it could not be found.
|
|
11
|
-
*/
|
|
12
|
-
export function useERC20TransferableReceivableContract(signerOrProvider, chainId, poolName) {
|
|
13
|
-
var _a, _b, _c;
|
|
14
|
-
const TransferableReceivableAddress = (_c = (_b = (_a = PoolContractMap[chainId]) === null || _a === void 0 ? void 0 : _a[POOL_TYPE.Invoice]) === null || _b === void 0 ? void 0 : _b[poolName]) === null || _c === void 0 ? void 0 : _c.assetAddress;
|
|
15
|
-
return useContract(TransferableReceivableAddress, ERC20_TRANSFERABLE_RECEIVABLE_ABI, signerOrProvider);
|
|
16
|
-
}
|
|
1
|
+
import { ERC20_TRANSFERABLE_RECEIVABLE_ABI, POOL_TYPE, PoolContractMap, } from '@huma-finance/shared';
|
|
2
|
+
import { useContract } from './useContract';
|
|
3
|
+
/**
|
|
4
|
+
* A react hook that returns an ethers contract instance for the ERC20TransferableReceivable contract
|
|
5
|
+
* associated with the given pool name on the current chain.
|
|
6
|
+
*
|
|
7
|
+
* @param {ethers.providers.Provider | ethers.Signer} signerOrProvider The provider or signer instance to use for the contract.
|
|
8
|
+
* @param {number} chainId The chain id where the contract instance exists
|
|
9
|
+
* @param {POOL_NAME} poolName The name of the pool to get the contract for.
|
|
10
|
+
* @returns {Contract | null} A contract instance for the ERC20TransferableReceivable contract or null if it could not be found.
|
|
11
|
+
*/
|
|
12
|
+
export function useERC20TransferableReceivableContract(signerOrProvider, chainId, poolName) {
|
|
13
|
+
var _a, _b, _c;
|
|
14
|
+
const TransferableReceivableAddress = (_c = (_b = (_a = PoolContractMap[chainId]) === null || _a === void 0 ? void 0 : _a[POOL_TYPE.Invoice]) === null || _b === void 0 ? void 0 : _b[poolName]) === null || _c === void 0 ? void 0 : _c.assetAddress;
|
|
15
|
+
return useContract(TransferableReceivableAddress, ERC20_TRANSFERABLE_RECEIVABLE_ABI, signerOrProvider);
|
|
16
|
+
}
|
|
17
17
|
//# sourceMappingURL=useERC20TransferableReceivableContract.js.map
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import { BigNumber } from '@ethersproject/bignumber';
|
|
2
|
-
import { Contract, ethers } from 'ethers';
|
|
3
|
-
import { POOL_NAME, POOL_TYPE } from '@huma-finance/shared';
|
|
4
|
-
/**
|
|
5
|
-
* A react hook that returns a contract instance of a specific pool using an ethers provider or signer
|
|
6
|
-
*
|
|
7
|
-
* @namespace usePoolContract
|
|
8
|
-
* @template T - The type of the contract.
|
|
9
|
-
* @param {ethers.providers.Provider | ethers.Signer} signerOrProvider - An ethers signer or provider instance.
|
|
10
|
-
* @param {number} chainId The chain id where the contract instance exists
|
|
11
|
-
* @param {POOL_NAME} poolName - The name of the pool.
|
|
12
|
-
* @param {POOL_TYPE} poolType - The type of the pool.
|
|
13
|
-
* @returns {T} A contract instance of the specific pool.
|
|
14
|
-
*/
|
|
15
|
-
export declare function usePoolContract<T extends Contract>(signerOrProvider: ethers.providers.Provider | ethers.Signer, chainId: number, poolName: POOL_NAME, poolType: POOL_TYPE): T | null;
|
|
16
|
-
/**
|
|
17
|
-
* CreditRecordDetails type object representing the details of a credit line.
|
|
18
|
-
*
|
|
19
|
-
* @memberof usePoolContract
|
|
20
|
-
* @typedef {Object} CreditRecordDetails
|
|
21
|
-
* @property {number} aprInBps - The APR (annual percentage rate) in basis points.
|
|
22
|
-
* @property {BigNumber} correction - adjustment of interest over or under-counted because of drawdown
|
|
23
|
-
* or principal payment in the middle of a billing period
|
|
24
|
-
* @property {BigNumber} creditLimit - The credit limit in the pools base currency.
|
|
25
|
-
* @property {BigNumber} defaultAmount - The amount of the default, if any.
|
|
26
|
-
* @property {BigNumber} dueDate - The due date of the next payment.
|
|
27
|
-
* @property {BigNumber} feesAndInterestDue - The fees and interest due.
|
|
28
|
-
* @property {number} intervalInDays - The interval in days between payment periods.
|
|
29
|
-
* @property {number} missedPeriods - The number of missed periods.
|
|
30
|
-
* @property {number} remainingPeriods - The number of remaining periods before this credit line is considered paid off.
|
|
31
|
-
* @property {number} state - The state of the factorization. Please see the CreditState in huma-contracts for more details.
|
|
32
|
-
* @property {BigNumber} totalDue - The total due amount of this credit line.
|
|
33
|
-
* @property {BigNumber} unbilledPrincipal - The unbilled principal of the next payment.
|
|
34
|
-
*/
|
|
35
|
-
export type CreditRecordDetails = {
|
|
36
|
-
aprInBps: number;
|
|
37
|
-
correction: BigNumber;
|
|
38
|
-
creditLimit: BigNumber;
|
|
39
|
-
defaultAmount: BigNumber;
|
|
40
|
-
dueDate: BigNumber;
|
|
41
|
-
feesAndInterestDue: BigNumber;
|
|
42
|
-
intervalInDays: number;
|
|
43
|
-
missedPeriods: number;
|
|
44
|
-
remainingPeriods: number;
|
|
45
|
-
state: number;
|
|
46
|
-
totalDue: BigNumber;
|
|
47
|
-
unbilledPrincipal: BigNumber;
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* A react hook that returns the credit record details for a user in a given pool, as well as a function to refresh the data.
|
|
51
|
-
*
|
|
52
|
-
* @memberof usePoolContract
|
|
53
|
-
* @param {string} userAddress - The address of the user to get the credit record details for.
|
|
54
|
-
* @param {ethers.providers.Provider | ethers.Signer} signerOrProvider - The signer or provider object to use for the contract.
|
|
55
|
-
* @param {number} chainId The chain id where the contract instance exists
|
|
56
|
-
* @param {POOL_NAME} poolName - The name of the pool to get the credit record details for.
|
|
57
|
-
* @param {POOL_TYPE} poolType - The type of the pool.
|
|
58
|
-
* @returns {Array<CreditRecordDetails | undefined, function():void>} An array containing the credit record details and a function to refresh the data.
|
|
59
|
-
*/
|
|
60
|
-
export declare function useCreditRecordDetails(userAddress: string, signerOrProvider: ethers.providers.Provider | ethers.Signer, chainId: number, poolName: POOL_NAME, poolType: POOL_TYPE): [CreditRecordDetails | undefined, () => void];
|
|
1
|
+
import { BigNumber } from '@ethersproject/bignumber';
|
|
2
|
+
import { Contract, ethers } from 'ethers';
|
|
3
|
+
import { POOL_NAME, POOL_TYPE } from '@huma-finance/shared';
|
|
4
|
+
/**
|
|
5
|
+
* A react hook that returns a contract instance of a specific pool using an ethers provider or signer
|
|
6
|
+
*
|
|
7
|
+
* @namespace usePoolContract
|
|
8
|
+
* @template T - The type of the contract.
|
|
9
|
+
* @param {ethers.providers.Provider | ethers.Signer} signerOrProvider - An ethers signer or provider instance.
|
|
10
|
+
* @param {number} chainId The chain id where the contract instance exists
|
|
11
|
+
* @param {POOL_NAME} poolName - The name of the pool.
|
|
12
|
+
* @param {POOL_TYPE} poolType - The type of the pool.
|
|
13
|
+
* @returns {T} A contract instance of the specific pool.
|
|
14
|
+
*/
|
|
15
|
+
export declare function usePoolContract<T extends Contract>(signerOrProvider: ethers.providers.Provider | ethers.Signer, chainId: number, poolName: POOL_NAME, poolType: POOL_TYPE): T | null;
|
|
16
|
+
/**
|
|
17
|
+
* CreditRecordDetails type object representing the details of a credit line.
|
|
18
|
+
*
|
|
19
|
+
* @memberof usePoolContract
|
|
20
|
+
* @typedef {Object} CreditRecordDetails
|
|
21
|
+
* @property {number} aprInBps - The APR (annual percentage rate) in basis points.
|
|
22
|
+
* @property {BigNumber} correction - adjustment of interest over or under-counted because of drawdown
|
|
23
|
+
* or principal payment in the middle of a billing period
|
|
24
|
+
* @property {BigNumber} creditLimit - The credit limit in the pools base currency.
|
|
25
|
+
* @property {BigNumber} defaultAmount - The amount of the default, if any.
|
|
26
|
+
* @property {BigNumber} dueDate - The due date of the next payment.
|
|
27
|
+
* @property {BigNumber} feesAndInterestDue - The fees and interest due.
|
|
28
|
+
* @property {number} intervalInDays - The interval in days between payment periods.
|
|
29
|
+
* @property {number} missedPeriods - The number of missed periods.
|
|
30
|
+
* @property {number} remainingPeriods - The number of remaining periods before this credit line is considered paid off.
|
|
31
|
+
* @property {number} state - The state of the factorization. Please see the CreditState in huma-contracts for more details.
|
|
32
|
+
* @property {BigNumber} totalDue - The total due amount of this credit line.
|
|
33
|
+
* @property {BigNumber} unbilledPrincipal - The unbilled principal of the next payment.
|
|
34
|
+
*/
|
|
35
|
+
export type CreditRecordDetails = {
|
|
36
|
+
aprInBps: number;
|
|
37
|
+
correction: BigNumber;
|
|
38
|
+
creditLimit: BigNumber;
|
|
39
|
+
defaultAmount: BigNumber;
|
|
40
|
+
dueDate: BigNumber;
|
|
41
|
+
feesAndInterestDue: BigNumber;
|
|
42
|
+
intervalInDays: number;
|
|
43
|
+
missedPeriods: number;
|
|
44
|
+
remainingPeriods: number;
|
|
45
|
+
state: number;
|
|
46
|
+
totalDue: BigNumber;
|
|
47
|
+
unbilledPrincipal: BigNumber;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* A react hook that returns the credit record details for a user in a given pool, as well as a function to refresh the data.
|
|
51
|
+
*
|
|
52
|
+
* @memberof usePoolContract
|
|
53
|
+
* @param {string} userAddress - The address of the user to get the credit record details for.
|
|
54
|
+
* @param {ethers.providers.Provider | ethers.Signer} signerOrProvider - The signer or provider object to use for the contract.
|
|
55
|
+
* @param {number} chainId The chain id where the contract instance exists
|
|
56
|
+
* @param {POOL_NAME} poolName - The name of the pool to get the credit record details for.
|
|
57
|
+
* @param {POOL_TYPE} poolType - The type of the pool.
|
|
58
|
+
* @returns {Array<CreditRecordDetails | undefined, function():void>} An array containing the credit record details and a function to refresh the data.
|
|
59
|
+
*/
|
|
60
|
+
export declare function useCreditRecordDetails(userAddress: string, signerOrProvider: ethers.providers.Provider | ethers.Signer, chainId: number, poolName: POOL_NAME, poolType: POOL_TYPE): [CreditRecordDetails | undefined, () => void];
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { useCallback, useEffect, useState } from 'react';
|
|
2
|
-
import { useContract } from './useContract';
|
|
3
|
-
import { getPoolInfo } from '../utils/poolInfo';
|
|
4
|
-
/**
|
|
5
|
-
* A react hook that returns a contract instance of a specific pool using an ethers provider or signer
|
|
6
|
-
*
|
|
7
|
-
* @namespace usePoolContract
|
|
8
|
-
* @template T - The type of the contract.
|
|
9
|
-
* @param {ethers.providers.Provider | ethers.Signer} signerOrProvider - An ethers signer or provider instance.
|
|
10
|
-
* @param {number} chainId The chain id where the contract instance exists
|
|
11
|
-
* @param {POOL_NAME} poolName - The name of the pool.
|
|
12
|
-
* @param {POOL_TYPE} poolType - The type of the pool.
|
|
13
|
-
* @returns {T} A contract instance of the specific pool.
|
|
14
|
-
*/
|
|
15
|
-
export function usePoolContract(signerOrProvider, chainId, poolName, poolType) {
|
|
16
|
-
const poolInfo = getPoolInfo(chainId, poolName, poolType);
|
|
17
|
-
return useContract(poolInfo === null || poolInfo === void 0 ? void 0 : poolInfo.pool, poolInfo === null || poolInfo === void 0 ? void 0 : poolInfo.poolAbi, signerOrProvider);
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* A react hook that returns the credit record details for a user in a given pool, as well as a function to refresh the data.
|
|
21
|
-
*
|
|
22
|
-
* @memberof usePoolContract
|
|
23
|
-
* @param {string} userAddress - The address of the user to get the credit record details for.
|
|
24
|
-
* @param {ethers.providers.Provider | ethers.Signer} signerOrProvider - The signer or provider object to use for the contract.
|
|
25
|
-
* @param {number} chainId The chain id where the contract instance exists
|
|
26
|
-
* @param {POOL_NAME} poolName - The name of the pool to get the credit record details for.
|
|
27
|
-
* @param {POOL_TYPE} poolType - The type of the pool.
|
|
28
|
-
* @returns {Array<CreditRecordDetails | undefined, function():void>} An array containing the credit record details and a function to refresh the data.
|
|
29
|
-
*/
|
|
30
|
-
export function useCreditRecordDetails(userAddress, signerOrProvider, chainId, poolName, poolType) {
|
|
31
|
-
const poolContract = usePoolContract(signerOrProvider, chainId, poolName, poolType);
|
|
32
|
-
const [creditRecordDetails, setCreditRecordDetails] = useState();
|
|
33
|
-
const [refreshCount, setRefreshCount] = useState(0);
|
|
34
|
-
useEffect(() => {
|
|
35
|
-
const fetchData = async () => {
|
|
36
|
-
if (poolContract && userAddress) {
|
|
37
|
-
const creditRecordMapping = await poolContract.creditRecordMapping(userAddress);
|
|
38
|
-
const creditRecordStaticMapping = await poolContract.creditRecordStaticMapping(userAddress);
|
|
39
|
-
setCreditRecordDetails(Object.assign(Object.assign({}, creditRecordMapping), creditRecordStaticMapping));
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
fetchData();
|
|
43
|
-
}, [userAddress, poolContract, refreshCount]);
|
|
44
|
-
const refresh = useCallback(() => {
|
|
45
|
-
setRefreshCount((pre) => pre + 1);
|
|
46
|
-
}, []);
|
|
47
|
-
return [creditRecordDetails, refresh];
|
|
48
|
-
}
|
|
1
|
+
import { useCallback, useEffect, useState } from 'react';
|
|
2
|
+
import { useContract } from './useContract';
|
|
3
|
+
import { getPoolInfo } from '../utils/poolInfo';
|
|
4
|
+
/**
|
|
5
|
+
* A react hook that returns a contract instance of a specific pool using an ethers provider or signer
|
|
6
|
+
*
|
|
7
|
+
* @namespace usePoolContract
|
|
8
|
+
* @template T - The type of the contract.
|
|
9
|
+
* @param {ethers.providers.Provider | ethers.Signer} signerOrProvider - An ethers signer or provider instance.
|
|
10
|
+
* @param {number} chainId The chain id where the contract instance exists
|
|
11
|
+
* @param {POOL_NAME} poolName - The name of the pool.
|
|
12
|
+
* @param {POOL_TYPE} poolType - The type of the pool.
|
|
13
|
+
* @returns {T} A contract instance of the specific pool.
|
|
14
|
+
*/
|
|
15
|
+
export function usePoolContract(signerOrProvider, chainId, poolName, poolType) {
|
|
16
|
+
const poolInfo = getPoolInfo(chainId, poolName, poolType);
|
|
17
|
+
return useContract(poolInfo === null || poolInfo === void 0 ? void 0 : poolInfo.pool, poolInfo === null || poolInfo === void 0 ? void 0 : poolInfo.poolAbi, signerOrProvider);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* A react hook that returns the credit record details for a user in a given pool, as well as a function to refresh the data.
|
|
21
|
+
*
|
|
22
|
+
* @memberof usePoolContract
|
|
23
|
+
* @param {string} userAddress - The address of the user to get the credit record details for.
|
|
24
|
+
* @param {ethers.providers.Provider | ethers.Signer} signerOrProvider - The signer or provider object to use for the contract.
|
|
25
|
+
* @param {number} chainId The chain id where the contract instance exists
|
|
26
|
+
* @param {POOL_NAME} poolName - The name of the pool to get the credit record details for.
|
|
27
|
+
* @param {POOL_TYPE} poolType - The type of the pool.
|
|
28
|
+
* @returns {Array<CreditRecordDetails | undefined, function():void>} An array containing the credit record details and a function to refresh the data.
|
|
29
|
+
*/
|
|
30
|
+
export function useCreditRecordDetails(userAddress, signerOrProvider, chainId, poolName, poolType) {
|
|
31
|
+
const poolContract = usePoolContract(signerOrProvider, chainId, poolName, poolType);
|
|
32
|
+
const [creditRecordDetails, setCreditRecordDetails] = useState();
|
|
33
|
+
const [refreshCount, setRefreshCount] = useState(0);
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
const fetchData = async () => {
|
|
36
|
+
if (poolContract && userAddress) {
|
|
37
|
+
const creditRecordMapping = await poolContract.creditRecordMapping(userAddress);
|
|
38
|
+
const creditRecordStaticMapping = await poolContract.creditRecordStaticMapping(userAddress);
|
|
39
|
+
setCreditRecordDetails(Object.assign(Object.assign({}, creditRecordMapping), creditRecordStaticMapping));
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
fetchData();
|
|
43
|
+
}, [userAddress, poolContract, refreshCount]);
|
|
44
|
+
const refresh = useCallback(() => {
|
|
45
|
+
setRefreshCount((pre) => pre + 1);
|
|
46
|
+
}, []);
|
|
47
|
+
return [creditRecordDetails, refresh];
|
|
48
|
+
}
|
|
49
49
|
//# sourceMappingURL=usePoolContract.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Contract, ethers } from 'ethers';
|
|
2
|
-
/**
|
|
3
|
-
* A react hook that returns an ethers contract instance for the RealWorldReceivable contract
|
|
4
|
-
* associated with the given pool name on the current chain.
|
|
5
|
-
*
|
|
6
|
-
* @param {ethers.providers.Provider | ethers.Signer} signerOrProvider The provider or signer instance to use for the contract.
|
|
7
|
-
* @param {number} chainId The chain id where the contract instance exists
|
|
8
|
-
* @returns {Contract | null} A contract instance for the RealWorldReceivable contract or null if it could not be found.
|
|
9
|
-
*/
|
|
10
|
-
export declare function useRealWorldReceivableContract(signerOrProvider: ethers.providers.Provider | ethers.Signer, chainId: number): Contract | null;
|
|
1
|
+
import { Contract, ethers } from 'ethers';
|
|
2
|
+
/**
|
|
3
|
+
* A react hook that returns an ethers contract instance for the RealWorldReceivable contract
|
|
4
|
+
* associated with the given pool name on the current chain.
|
|
5
|
+
*
|
|
6
|
+
* @param {ethers.providers.Provider | ethers.Signer} signerOrProvider The provider or signer instance to use for the contract.
|
|
7
|
+
* @param {number} chainId The chain id where the contract instance exists
|
|
8
|
+
* @returns {Contract | null} A contract instance for the RealWorldReceivable contract or null if it could not be found.
|
|
9
|
+
*/
|
|
10
|
+
export declare function useRealWorldReceivableContract(signerOrProvider: ethers.providers.Provider | ethers.Signer, chainId: number): Contract | null;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { REAL_WORLD_RECEIVABLE_ABI, SupplementaryContracts, SupplementaryContractsMap, } from '@huma-finance/shared';
|
|
2
|
-
import { useContract } from './useContract';
|
|
3
|
-
/**
|
|
4
|
-
* A react hook that returns an ethers contract instance for the RealWorldReceivable contract
|
|
5
|
-
* associated with the given pool name on the current chain.
|
|
6
|
-
*
|
|
7
|
-
* @param {ethers.providers.Provider | ethers.Signer} signerOrProvider The provider or signer instance to use for the contract.
|
|
8
|
-
* @param {number} chainId The chain id where the contract instance exists
|
|
9
|
-
* @returns {Contract | null} A contract instance for the RealWorldReceivable contract or null if it could not be found.
|
|
10
|
-
*/
|
|
11
|
-
export function useRealWorldReceivableContract(signerOrProvider, chainId) {
|
|
12
|
-
var _a;
|
|
13
|
-
const realWorldReceivable = (_a = SupplementaryContractsMap[chainId]) === null || _a === void 0 ? void 0 : _a[SupplementaryContracts.RealWorldReceivable];
|
|
14
|
-
return useContract(realWorldReceivable, REAL_WORLD_RECEIVABLE_ABI, signerOrProvider);
|
|
15
|
-
}
|
|
1
|
+
import { REAL_WORLD_RECEIVABLE_ABI, SupplementaryContracts, SupplementaryContractsMap, } from '@huma-finance/shared';
|
|
2
|
+
import { useContract } from './useContract';
|
|
3
|
+
/**
|
|
4
|
+
* A react hook that returns an ethers contract instance for the RealWorldReceivable contract
|
|
5
|
+
* associated with the given pool name on the current chain.
|
|
6
|
+
*
|
|
7
|
+
* @param {ethers.providers.Provider | ethers.Signer} signerOrProvider The provider or signer instance to use for the contract.
|
|
8
|
+
* @param {number} chainId The chain id where the contract instance exists
|
|
9
|
+
* @returns {Contract | null} A contract instance for the RealWorldReceivable contract or null if it could not be found.
|
|
10
|
+
*/
|
|
11
|
+
export function useRealWorldReceivableContract(signerOrProvider, chainId) {
|
|
12
|
+
var _a;
|
|
13
|
+
const realWorldReceivable = (_a = SupplementaryContractsMap[chainId]) === null || _a === void 0 ? void 0 : _a[SupplementaryContracts.RealWorldReceivable];
|
|
14
|
+
return useContract(realWorldReceivable, REAL_WORLD_RECEIVABLE_ABI, signerOrProvider);
|
|
15
|
+
}
|
|
16
16
|
//# sourceMappingURL=useRealWorldReceivableContract.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './helpers';
|
|
2
|
-
export * from './hooks';
|
|
3
|
-
export * from './services';
|
|
4
|
-
export * from './utils';
|
|
1
|
+
export * from './helpers';
|
|
2
|
+
export * from './hooks';
|
|
3
|
+
export * from './services';
|
|
4
|
+
export * from './utils';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './helpers';
|
|
2
|
-
export * from './hooks';
|
|
3
|
-
export * from './services';
|
|
4
|
-
export * from './utils';
|
|
1
|
+
export * from './helpers';
|
|
2
|
+
export * from './hooks';
|
|
3
|
+
export * from './services';
|
|
4
|
+
export * from './utils';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
import { FundResponse, UploadResponse } from '@bundlr-network/client/build/common/types';
|
|
2
|
-
import { Web3Provider } from '@ethersproject/providers';
|
|
3
|
-
/**
|
|
4
|
-
* The configuration for Bundlr network instances
|
|
5
|
-
*
|
|
6
|
-
* @typedef {Object} BundlrConfig
|
|
7
|
-
* @memberof ArweaveService
|
|
8
|
-
* @property {string} nodeUrl - The Bundlr node URL to use.
|
|
9
|
-
* @property {string} currency - The currency to pay for uploads with.
|
|
10
|
-
* Please see https://docs.bundlr.network/sdk/using-other-currencies for all the supported currencies
|
|
11
|
-
* @property {string} [providerUrl] - The provider URL, required for devnets.
|
|
12
|
-
*/
|
|
13
|
-
export type BundlrConfig = {
|
|
14
|
-
nodeUrl: string;
|
|
15
|
-
currency: string;
|
|
16
|
-
providerUrl?: string;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Get the configuration for Bundlr network given a chain ID
|
|
20
|
-
*
|
|
21
|
-
* @function
|
|
22
|
-
* @memberof ArweaveService
|
|
23
|
-
* @param {number} chainId - The chain ID.
|
|
24
|
-
* @returns {BundlrConfig} - The configuration for the Bundlr network.
|
|
25
|
-
*/
|
|
26
|
-
export declare function getBundlrNetworkConfig(chainId: number): BundlrConfig;
|
|
27
|
-
/**
|
|
28
|
-
* Prefund the Bundlr network with the specified amount. Required if not lazy funding.
|
|
29
|
-
*
|
|
30
|
-
* @async
|
|
31
|
-
* @function
|
|
32
|
-
* @memberof ArweaveService
|
|
33
|
-
* @param {BundlrConfig} config - The configuration for the Bundlr network.
|
|
34
|
-
* @param {any} signer - The wallet to send funds from. This can be either a web3 signer or a private key string.
|
|
35
|
-
* @param {number} amount - The amount to fund, denoted in whatever currency specified by the config.
|
|
36
|
-
* @returns {Promise<FundResponse>} - The fund response.
|
|
37
|
-
*/
|
|
38
|
-
declare function prefundBundlr(config: BundlrConfig, signer: any, amount: number): Promise<FundResponse>;
|
|
39
|
-
/**
|
|
40
|
-
* Store data on ARWeave using the Bundlr Network.
|
|
41
|
-
*
|
|
42
|
-
* @async
|
|
43
|
-
* @function
|
|
44
|
-
* @memberof ArweaveService
|
|
45
|
-
* @param {BundlrConfig} config - Configuration object for the Bundlr instance.
|
|
46
|
-
* @param {Web3Provider | string} signerOrPrivateKey - Wallet object used for interacting with the Bundlr instance.
|
|
47
|
-
* If calling from a browser, this should be a `Web3Provider` instance. If calling from a Node.js
|
|
48
|
-
* environment, this should be a private key string.
|
|
49
|
-
* @param {JSON} data - The data to store in the Bundlr instance.
|
|
50
|
-
* @param {Array<{ name: string, value: string }>} tags - Array of tag objects with `name` and `value` properties.
|
|
51
|
-
* @param {boolean} [lazyFund=true] - Optional flag to fund the Bundlr instance lazily. If set to `false`, the
|
|
52
|
-
* Bundlr node should already be funded or else uploads will fail.
|
|
53
|
-
* @returns {Promise<UploadResponse>} Promise resolving with the upload response.
|
|
54
|
-
*/
|
|
55
|
-
declare function storeData(config: BundlrConfig, signerOrPrivateKey: Web3Provider | string, data: JSON, tags: {
|
|
56
|
-
name: string;
|
|
57
|
-
value: string;
|
|
58
|
-
}[], lazyFund?: boolean): Promise<UploadResponse>;
|
|
59
|
-
/**
|
|
60
|
-
* Helper method to query the Arweave network for receivables metadata previously uploaded.
|
|
61
|
-
*
|
|
62
|
-
* @async
|
|
63
|
-
* @function
|
|
64
|
-
* @memberof ArweaveService
|
|
65
|
-
* @param {number} chainId - The chain ID.
|
|
66
|
-
* @param {string} sender - The sender tag to query.
|
|
67
|
-
* @param {string} referenceId - The referenceId tag to query, whatever was used when uploading the metadata.
|
|
68
|
-
* @returns {Promise<any>} Promise resolving with the queried data.
|
|
69
|
-
*/
|
|
70
|
-
declare function queryForMetadata(chainId: number, sender: string, referenceId: string): Promise<string | null>;
|
|
71
|
-
/**
|
|
72
|
-
* An object that contains functions to interact with Huma-related data stored on ARWeave
|
|
73
|
-
* @namespace ARWeaveService
|
|
74
|
-
*/
|
|
75
|
-
export declare const ARWeaveService: {
|
|
76
|
-
queryForMetadata: typeof queryForMetadata;
|
|
77
|
-
storeData: typeof storeData;
|
|
78
|
-
prefundBundlr: typeof prefundBundlr;
|
|
79
|
-
getBundlrNetworkConfig: typeof getBundlrNetworkConfig;
|
|
80
|
-
};
|
|
81
|
-
export {};
|
|
1
|
+
import { FundResponse, UploadResponse } from '@bundlr-network/client/build/common/types';
|
|
2
|
+
import { Web3Provider } from '@ethersproject/providers';
|
|
3
|
+
/**
|
|
4
|
+
* The configuration for Bundlr network instances
|
|
5
|
+
*
|
|
6
|
+
* @typedef {Object} BundlrConfig
|
|
7
|
+
* @memberof ArweaveService
|
|
8
|
+
* @property {string} nodeUrl - The Bundlr node URL to use.
|
|
9
|
+
* @property {string} currency - The currency to pay for uploads with.
|
|
10
|
+
* Please see https://docs.bundlr.network/sdk/using-other-currencies for all the supported currencies
|
|
11
|
+
* @property {string} [providerUrl] - The provider URL, required for devnets.
|
|
12
|
+
*/
|
|
13
|
+
export type BundlrConfig = {
|
|
14
|
+
nodeUrl: string;
|
|
15
|
+
currency: string;
|
|
16
|
+
providerUrl?: string;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Get the configuration for Bundlr network given a chain ID
|
|
20
|
+
*
|
|
21
|
+
* @function
|
|
22
|
+
* @memberof ArweaveService
|
|
23
|
+
* @param {number} chainId - The chain ID.
|
|
24
|
+
* @returns {BundlrConfig} - The configuration for the Bundlr network.
|
|
25
|
+
*/
|
|
26
|
+
export declare function getBundlrNetworkConfig(chainId: number): BundlrConfig;
|
|
27
|
+
/**
|
|
28
|
+
* Prefund the Bundlr network with the specified amount. Required if not lazy funding.
|
|
29
|
+
*
|
|
30
|
+
* @async
|
|
31
|
+
* @function
|
|
32
|
+
* @memberof ArweaveService
|
|
33
|
+
* @param {BundlrConfig} config - The configuration for the Bundlr network.
|
|
34
|
+
* @param {any} signer - The wallet to send funds from. This can be either a web3 signer or a private key string.
|
|
35
|
+
* @param {number} amount - The amount to fund, denoted in whatever currency specified by the config.
|
|
36
|
+
* @returns {Promise<FundResponse>} - The fund response.
|
|
37
|
+
*/
|
|
38
|
+
declare function prefundBundlr(config: BundlrConfig, signer: any, amount: number): Promise<FundResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* Store data on ARWeave using the Bundlr Network.
|
|
41
|
+
*
|
|
42
|
+
* @async
|
|
43
|
+
* @function
|
|
44
|
+
* @memberof ArweaveService
|
|
45
|
+
* @param {BundlrConfig} config - Configuration object for the Bundlr instance.
|
|
46
|
+
* @param {Web3Provider | string} signerOrPrivateKey - Wallet object used for interacting with the Bundlr instance.
|
|
47
|
+
* If calling from a browser, this should be a `Web3Provider` instance. If calling from a Node.js
|
|
48
|
+
* environment, this should be a private key string.
|
|
49
|
+
* @param {JSON} data - The data to store in the Bundlr instance.
|
|
50
|
+
* @param {Array<{ name: string, value: string }>} tags - Array of tag objects with `name` and `value` properties.
|
|
51
|
+
* @param {boolean} [lazyFund=true] - Optional flag to fund the Bundlr instance lazily. If set to `false`, the
|
|
52
|
+
* Bundlr node should already be funded or else uploads will fail.
|
|
53
|
+
* @returns {Promise<UploadResponse>} Promise resolving with the upload response.
|
|
54
|
+
*/
|
|
55
|
+
declare function storeData(config: BundlrConfig, signerOrPrivateKey: Web3Provider | string, data: JSON, tags: {
|
|
56
|
+
name: string;
|
|
57
|
+
value: string;
|
|
58
|
+
}[], lazyFund?: boolean): Promise<UploadResponse>;
|
|
59
|
+
/**
|
|
60
|
+
* Helper method to query the Arweave network for receivables metadata previously uploaded.
|
|
61
|
+
*
|
|
62
|
+
* @async
|
|
63
|
+
* @function
|
|
64
|
+
* @memberof ArweaveService
|
|
65
|
+
* @param {number} chainId - The chain ID.
|
|
66
|
+
* @param {string} sender - The sender tag to query.
|
|
67
|
+
* @param {string} referenceId - The referenceId tag to query, whatever was used when uploading the metadata.
|
|
68
|
+
* @returns {Promise<any>} Promise resolving with the queried data.
|
|
69
|
+
*/
|
|
70
|
+
declare function queryForMetadata(chainId: number, sender: string, referenceId: string): Promise<string | null>;
|
|
71
|
+
/**
|
|
72
|
+
* An object that contains functions to interact with Huma-related data stored on ARWeave
|
|
73
|
+
* @namespace ARWeaveService
|
|
74
|
+
*/
|
|
75
|
+
export declare const ARWeaveService: {
|
|
76
|
+
queryForMetadata: typeof queryForMetadata;
|
|
77
|
+
storeData: typeof storeData;
|
|
78
|
+
prefundBundlr: typeof prefundBundlr;
|
|
79
|
+
getBundlrNetworkConfig: typeof getBundlrNetworkConfig;
|
|
80
|
+
};
|
|
81
|
+
export {};
|