@aurigami/sdk 0.1.6 → 0.1.7
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 +7 -7
- package/dist/SDK.d.ts +6 -5
- package/dist/constants.d.ts +1 -1
- package/dist/dummy.d.ts +6 -5
- package/dist/helpers.d.ts +2 -0
- package/dist/sdk.cjs.development.js +2939 -84
- 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 +2938 -85
- package/dist/sdk.esm.js.map +1 -1
- package/dist/token.d.ts +6 -0
- package/dist/tokenAmount.d.ts +8 -0
- package/dist/types.d.ts +12 -12
- package/package.json +2 -4
- package/src/MoneyMarket.ts +17 -20
- package/src/SDK.ts +44 -43
- package/src/abis/IERC20.json +1259 -0
- package/src/abis/auToken.json +1536 -0
- package/src/constants.ts +4 -7
- package/src/dummy.ts +30 -44
- package/src/helpers.ts +15 -0
- package/src/token.ts +11 -0
- package/src/tokenAmount.ts +29 -0
- package/src/types.ts +12 -12
package/dist/MoneyMarket.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { BlockchainEntity, BlockchainEntityRead } from './BlockchainEntity';
|
|
2
2
|
import { ProviderOrSigner, MoneyMarketDetails } from './types';
|
|
3
|
-
import { Address, CurrencyAmount } from '@pendle/sdk-core';
|
|
4
3
|
import { Contract } from 'ethers';
|
|
5
4
|
import { TransactionResponse } from '@ethersproject/abstract-provider';
|
|
5
|
+
import { TokenAmount } from './tokenAmount';
|
|
6
6
|
export declare class MoneyMarketRead extends BlockchainEntityRead {
|
|
7
7
|
protected _auToken: Contract;
|
|
8
|
-
constructor(providerOrSigner: ProviderOrSigner, auToken:
|
|
8
|
+
constructor(providerOrSigner: ProviderOrSigner, auToken: string);
|
|
9
9
|
getDetails(): Promise<MoneyMarketDetails>;
|
|
10
10
|
}
|
|
11
11
|
export declare class MoneyMarketReadWrite extends MoneyMarketRead {
|
|
12
12
|
dummyTransaction: () => Promise<TransactionResponse>;
|
|
13
|
-
deposit(amount:
|
|
14
|
-
borrow(amount:
|
|
15
|
-
withdraw(amount:
|
|
16
|
-
repay(amount:
|
|
13
|
+
deposit(amount: TokenAmount): Promise<TransactionResponse>;
|
|
14
|
+
borrow(amount: TokenAmount): Promise<TransactionResponse>;
|
|
15
|
+
withdraw(amount: TokenAmount): Promise<TransactionResponse>;
|
|
16
|
+
repay(amount: TokenAmount): Promise<TransactionResponse>;
|
|
17
17
|
enableCollateral(): Promise<TransactionResponse>;
|
|
18
18
|
disableCollateral(): Promise<TransactionResponse>;
|
|
19
19
|
}
|
|
20
20
|
export declare class MoneyMarket extends BlockchainEntity {
|
|
21
|
-
protected address:
|
|
21
|
+
protected address: string;
|
|
22
22
|
constructor(address: string);
|
|
23
23
|
read(provider: ProviderOrSigner): MoneyMarketRead;
|
|
24
24
|
}
|
package/dist/SDK.d.ts
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { BlockchainEntity, BlockchainEntityRead } from './BlockchainEntity';
|
|
2
2
|
import { LockingDetails, PlyAuroraPoolDetails, ProviderOrSigner, UserDetails } from './types';
|
|
3
|
-
import { Token, CurrencyAmount } from '@pendle/sdk-core';
|
|
4
3
|
import { TransactionResponse } from '@ethersproject/abstract-provider';
|
|
4
|
+
import { TokenAmount } from './tokenAmount';
|
|
5
|
+
import { Token } from './token';
|
|
5
6
|
export declare class SdkRead extends BlockchainEntityRead {
|
|
6
7
|
constructor(providerOrSigner: ProviderOrSigner);
|
|
7
8
|
getLockingDetails(): Promise<LockingDetails>;
|
|
8
9
|
getUserDetails(userAddress: string): Promise<UserDetails>;
|
|
9
10
|
getPlyAuroraPoolDetails(): Promise<PlyAuroraPoolDetails>;
|
|
10
|
-
getTokenPrice(token: Token): Promise<
|
|
11
|
-
stakeBalanceOf(user: string): Promise<
|
|
11
|
+
getTokenPrice(token: Token): Promise<TokenAmount>;
|
|
12
|
+
stakeBalanceOf(user: string): Promise<TokenAmount>;
|
|
12
13
|
}
|
|
13
14
|
export declare class SdkReadWrite extends SdkRead {
|
|
14
15
|
dummyTransaction: () => Promise<TransactionResponse>;
|
|
15
16
|
claim(): Promise<TransactionResponse>;
|
|
16
|
-
stake(amount:
|
|
17
|
-
unstake(amount:
|
|
17
|
+
stake(amount: TokenAmount): Promise<TransactionResponse>;
|
|
18
|
+
unstake(amount: TokenAmount): Promise<TransactionResponse>;
|
|
18
19
|
}
|
|
19
20
|
export declare class SDK extends BlockchainEntity {
|
|
20
21
|
constructor();
|
package/dist/constants.d.ts
CHANGED
package/dist/dummy.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { Token
|
|
1
|
+
import { Token } from './token';
|
|
2
|
+
import { TokenAmount } from './tokenAmount';
|
|
2
3
|
import { UserMarketDetails } from './types';
|
|
3
4
|
export declare const dummyToken: Token;
|
|
4
5
|
export declare const dummyPly: Token;
|
|
5
6
|
export declare const dummyPlyAurora: Token;
|
|
6
|
-
export declare const dummyTokenAmount:
|
|
7
|
-
export declare const dummyZeroTokenAmount:
|
|
8
|
-
export declare const dummyTokenAmount2:
|
|
9
|
-
export declare const dummyTokenAmount3:
|
|
7
|
+
export declare const dummyTokenAmount: TokenAmount;
|
|
8
|
+
export declare const dummyZeroTokenAmount: TokenAmount;
|
|
9
|
+
export declare const dummyTokenAmount2: TokenAmount;
|
|
10
|
+
export declare const dummyTokenAmount3: TokenAmount;
|
|
10
11
|
export declare const dummyMarketAddress = "0xbeb5d47a3f720ec0a390d04b4d41ed7d9688bc7f";
|
|
11
12
|
export declare const dummyUserMarketDetails: UserMarketDetails;
|
package/dist/helpers.d.ts
CHANGED