@aave/client 0.5.0 → 0.6.1
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/actions/index.cjs +1 -1
- package/dist/actions/index.cjs.map +1 -1
- package/dist/actions/index.d.cts +119 -3
- package/dist/actions/index.d.ts +119 -3
- package/dist/actions/index.js +1 -1
- package/dist/chunk-2U2ENVQ6.js +3 -0
- package/dist/chunk-2U2ENVQ6.js.map +1 -0
- package/dist/chunk-M6NMMOPY.js +2 -0
- package/dist/chunk-M6NMMOPY.js.map +1 -0
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1 -1
- package/dist/test-utils.cjs +63 -63
- package/dist/test-utils.cjs.map +1 -1
- package/dist/test-utils.d.cts +4 -2
- package/dist/test-utils.d.ts +4 -2
- package/dist/test-utils.js +53 -53
- package/dist/test-utils.js.map +1 -1
- package/dist/thirdweb.cjs +2 -1
- package/dist/thirdweb.cjs.map +1 -1
- package/dist/thirdweb.js +2 -1
- package/dist/thirdweb.js.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-IKLPSB3H.js +0 -3
- package/dist/chunk-IKLPSB3H.js.map +0 -1
- package/dist/chunk-KT47UJBO.js +0 -2
- package/dist/chunk-KT47UJBO.js.map +0 -1
package/dist/test-utils.d.cts
CHANGED
|
@@ -10,15 +10,17 @@ import { U as UnexpectedError, G as GraphQLErrorCode } from './types-DwXCLJq5.cj
|
|
|
10
10
|
|
|
11
11
|
declare const environment: EnvironmentConfig;
|
|
12
12
|
declare const ETHEREUM_FORK_ID: _aave_types.ChainId;
|
|
13
|
+
declare const ETHEREUM_GHO_ADDRESS: EvmAddress;
|
|
13
14
|
declare const ETHEREUM_WETH_ADDRESS: EvmAddress;
|
|
14
15
|
declare const ETHEREUM_USDC_ADDRESS: EvmAddress;
|
|
15
16
|
declare const ETHEREUM_DAI_ADDRESS: EvmAddress;
|
|
16
17
|
declare const ETHEREUM_MARKET_ADDRESS: EvmAddress;
|
|
18
|
+
declare const ETHEREUM_SGHO_ADDRESS: EvmAddress;
|
|
17
19
|
declare const ETHEREUM_MARKET_ETH_CORRELATED_EMODE_CATEGORY = 1;
|
|
18
20
|
|
|
19
21
|
declare const ethereumForkChain: Chain;
|
|
20
22
|
declare const client: AaveClient;
|
|
21
|
-
declare function createNewWallet(): WalletClient;
|
|
23
|
+
declare function createNewWallet(privateKey?: `0x${string}`): WalletClient;
|
|
22
24
|
declare function fundNativeAddress(address: EvmAddress, amount?: BigDecimal): ResultAsync<string, UnexpectedError>;
|
|
23
25
|
declare function fundErc20Address(tokenAddress: EvmAddress, address: EvmAddress, amount: BigDecimal, decimals?: number): ResultAsync<string, UnexpectedError>;
|
|
24
26
|
declare function fetchReserve(tokenAddress: EvmAddress, user?: EvmAddress): Promise<Reserve>;
|
|
@@ -34,4 +36,4 @@ declare function assertTypedDocumentSatisfies<TResult, TVariables extends AnyVar
|
|
|
34
36
|
declare function wait(ms: number): Promise<unknown>;
|
|
35
37
|
declare function getBalance(address: EvmAddress, tokenAddress: EvmAddress): Promise<number>;
|
|
36
38
|
|
|
37
|
-
export { ETHEREUM_DAI_ADDRESS, ETHEREUM_FORK_ID, ETHEREUM_MARKET_ADDRESS, ETHEREUM_MARKET_ETH_CORRELATED_EMODE_CATEGORY, ETHEREUM_USDC_ADDRESS, ETHEREUM_WETH_ADDRESS, assertTypedDocumentSatisfies, client, createGraphQLErrorObject, createNewWallet, environment, ethereumForkChain, fetchReserve, fundErc20Address, fundNativeAddress, getBalance, wait };
|
|
39
|
+
export { ETHEREUM_DAI_ADDRESS, ETHEREUM_FORK_ID, ETHEREUM_GHO_ADDRESS, ETHEREUM_MARKET_ADDRESS, ETHEREUM_MARKET_ETH_CORRELATED_EMODE_CATEGORY, ETHEREUM_SGHO_ADDRESS, ETHEREUM_USDC_ADDRESS, ETHEREUM_WETH_ADDRESS, assertTypedDocumentSatisfies, client, createGraphQLErrorObject, createNewWallet, environment, ethereumForkChain, fetchReserve, fundErc20Address, fundNativeAddress, getBalance, wait };
|
package/dist/test-utils.d.ts
CHANGED
|
@@ -10,15 +10,17 @@ import { U as UnexpectedError, G as GraphQLErrorCode } from './types-DwXCLJq5.js
|
|
|
10
10
|
|
|
11
11
|
declare const environment: EnvironmentConfig;
|
|
12
12
|
declare const ETHEREUM_FORK_ID: _aave_types.ChainId;
|
|
13
|
+
declare const ETHEREUM_GHO_ADDRESS: EvmAddress;
|
|
13
14
|
declare const ETHEREUM_WETH_ADDRESS: EvmAddress;
|
|
14
15
|
declare const ETHEREUM_USDC_ADDRESS: EvmAddress;
|
|
15
16
|
declare const ETHEREUM_DAI_ADDRESS: EvmAddress;
|
|
16
17
|
declare const ETHEREUM_MARKET_ADDRESS: EvmAddress;
|
|
18
|
+
declare const ETHEREUM_SGHO_ADDRESS: EvmAddress;
|
|
17
19
|
declare const ETHEREUM_MARKET_ETH_CORRELATED_EMODE_CATEGORY = 1;
|
|
18
20
|
|
|
19
21
|
declare const ethereumForkChain: Chain;
|
|
20
22
|
declare const client: AaveClient;
|
|
21
|
-
declare function createNewWallet(): WalletClient;
|
|
23
|
+
declare function createNewWallet(privateKey?: `0x${string}`): WalletClient;
|
|
22
24
|
declare function fundNativeAddress(address: EvmAddress, amount?: BigDecimal): ResultAsync<string, UnexpectedError>;
|
|
23
25
|
declare function fundErc20Address(tokenAddress: EvmAddress, address: EvmAddress, amount: BigDecimal, decimals?: number): ResultAsync<string, UnexpectedError>;
|
|
24
26
|
declare function fetchReserve(tokenAddress: EvmAddress, user?: EvmAddress): Promise<Reserve>;
|
|
@@ -34,4 +36,4 @@ declare function assertTypedDocumentSatisfies<TResult, TVariables extends AnyVar
|
|
|
34
36
|
declare function wait(ms: number): Promise<unknown>;
|
|
35
37
|
declare function getBalance(address: EvmAddress, tokenAddress: EvmAddress): Promise<number>;
|
|
36
38
|
|
|
37
|
-
export { ETHEREUM_DAI_ADDRESS, ETHEREUM_FORK_ID, ETHEREUM_MARKET_ADDRESS, ETHEREUM_MARKET_ETH_CORRELATED_EMODE_CATEGORY, ETHEREUM_USDC_ADDRESS, ETHEREUM_WETH_ADDRESS, assertTypedDocumentSatisfies, client, createGraphQLErrorObject, createNewWallet, environment, ethereumForkChain, fetchReserve, fundErc20Address, fundNativeAddress, getBalance, wait };
|
|
39
|
+
export { ETHEREUM_DAI_ADDRESS, ETHEREUM_FORK_ID, ETHEREUM_GHO_ADDRESS, ETHEREUM_MARKET_ADDRESS, ETHEREUM_MARKET_ETH_CORRELATED_EMODE_CATEGORY, ETHEREUM_SGHO_ADDRESS, ETHEREUM_USDC_ADDRESS, ETHEREUM_WETH_ADDRESS, assertTypedDocumentSatisfies, client, createGraphQLErrorObject, createNewWallet, environment, ethereumForkChain, fetchReserve, fundErc20Address, fundNativeAddress, getBalance, wait };
|