@aurigami/sdk 0.2.5 → 0.3.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/MoneyMarket.d.ts +11 -1
- package/dist/constants.d.ts +5 -3
- package/dist/sdk.cjs.development.js +952 -901
- 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 +950 -901
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/MoneyMarket.ts +53 -20
- package/src/SDK.ts +9 -8
- package/src/constants.ts +32 -35
- package/src/decimals.ts +16 -15
- package/src/helpers.ts +4 -3
- package/src/priceFetcher.ts +4 -1
package/dist/MoneyMarket.d.ts
CHANGED
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
import { BlockchainEntity, BlockchainEntityRead } from './BlockchainEntity';
|
|
2
2
|
import { MoneyMarketDetails, NetworkConnection, Address } from './types';
|
|
3
|
-
import {
|
|
3
|
+
import { BigNumber as BN } from 'ethers';
|
|
4
|
+
import { AuErc20, AuETH, AuriLens, Comptroller } from "@aurigami/contracts/typechain";
|
|
4
5
|
import { TransactionResponse } from '@ethersproject/abstract-provider';
|
|
5
6
|
import BigNumber from "bignumber.js";
|
|
6
7
|
import { Token } from './token';
|
|
7
8
|
import { TokenAmount } from './tokenAmount';
|
|
9
|
+
declare type RewardSpeeds = {
|
|
10
|
+
plyRewardSupplySpeed: BN;
|
|
11
|
+
plyRewardBorrowSpeed: BN;
|
|
12
|
+
auroraRewardSupplySpeed: BN;
|
|
13
|
+
auroraRewardBorrowSpeed: BN;
|
|
14
|
+
};
|
|
8
15
|
export declare class MoneyMarketRead extends BlockchainEntityRead {
|
|
9
16
|
underlying: Token;
|
|
10
17
|
auToken: AuErc20 | AuETH;
|
|
11
18
|
protected _comptroller: Comptroller;
|
|
19
|
+
protected _auriLens: AuriLens;
|
|
12
20
|
constructor(networkConnection: NetworkConnection, auToken: Address, underlyingAsset: Address);
|
|
21
|
+
protected getRewardSpeeds(): Promise<RewardSpeeds>;
|
|
13
22
|
getTotalTokenBorrowed(): Promise<TokenAmount>;
|
|
14
23
|
getTotalTokenDeposited(): Promise<TokenAmount>;
|
|
15
24
|
getDepositAPY(): Promise<BigNumber>;
|
|
@@ -35,3 +44,4 @@ export declare class MoneyMarket extends BlockchainEntity {
|
|
|
35
44
|
constructor(address: string, underlying: string);
|
|
36
45
|
read(networkConnection: NetworkConnection): MoneyMarketRead;
|
|
37
46
|
}
|
|
47
|
+
export {};
|
package/dist/constants.d.ts
CHANGED
|
@@ -2,9 +2,11 @@ import BigNumber from 'bignumber.js';
|
|
|
2
2
|
import { Signer } from 'ethers';
|
|
3
3
|
export declare const AVAX_DEFAULT_PROVIDER_URL = "https://api.avax.network/ext/bc/C/rpc";
|
|
4
4
|
export declare const AVAX_DEFAULT_PROVIDER: any;
|
|
5
|
+
export declare const AURORA_DEFAULT_PROVIDER_URL = "https://mainnet.aurora.dev";
|
|
6
|
+
export declare const AURORA_DEFAULT_PROVIDER: any;
|
|
5
7
|
export declare const dummyAddress: string;
|
|
6
8
|
export declare const ETHAddress: string;
|
|
7
|
-
export declare const
|
|
9
|
+
export declare const AURORA_DEFAULT_SIGNER: Signer;
|
|
8
10
|
export declare const AURORA_CHAINID = 1313161554;
|
|
9
11
|
export declare const DECIMAL_PRECISION = 6;
|
|
10
12
|
export declare type NetworkAddresses = {
|
|
@@ -17,7 +19,7 @@ export declare type NetworkAddresses = {
|
|
|
17
19
|
};
|
|
18
20
|
export declare const networkAddresses: NetworkAddresses;
|
|
19
21
|
export declare const BORROW_LIMIT_BUFFER: BigNumber;
|
|
20
|
-
export declare const REWARDCLAIMSTART =
|
|
22
|
+
export declare const REWARDCLAIMSTART = 1640995200;
|
|
21
23
|
export declare const ONE_DAY = 86400;
|
|
22
24
|
export declare const ONE_YEAR: number;
|
|
23
|
-
export declare const AurPlyPid =
|
|
25
|
+
export declare const AurPlyPid = 0;
|