@aurigami/sdk 1.6.0-no-src → 1.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/SDK.d.ts +9 -0
- package/dist/contracts/Multicall.d.ts +18 -0
- package/dist/contracts/Papermill.d.ts +8 -0
- package/dist/sdk.cjs.development.js +102841 -40
- 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 +102841 -40
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +4 -3
- package/src/SDK.ts +430 -0
- package/src/abis/Faucet.json +157 -0
- package/src/abis/IUniswapV2Pair.json +663 -0
- package/src/abis/Oracle.json +247 -0
- package/src/abis/dummy.json +3 -0
- package/src/consts/constants.ts +146 -0
- package/src/consts/decimals.ts +24 -0
- package/src/consts/deployments.ts +4 -0
- package/src/consts/dummy.ts +38 -0
- package/src/consts/index.ts +4 -0
- package/src/contracts/MoneyMarket.ts +510 -0
- package/src/contracts/Multicall.ts +55 -0
- package/src/contracts/Papermill.ts +271 -0
- package/src/contracts/Staking.ts +183 -0
- package/src/contracts/airdrop-lottery.ts +320 -0
- package/src/contracts/index.ts +4 -0
- package/src/entities/BlockchainEntity.ts +33 -0
- package/src/entities/index.ts +3 -0
- package/src/entities/token.ts +21 -0
- package/src/entities/tokenAmount.ts +42 -0
- package/src/helpers/aurora-api-helpers.ts +20 -0
- package/src/helpers/helpers.ts +97 -0
- package/src/helpers/index.ts +4 -0
- package/src/helpers/priceFetcher.ts +317 -0
- package/src/helpers/transfer-event-query.ts +70 -0
- package/src/index.ts +13 -0
- package/src/misc/airdrop_misc/auTokensInfo.json +34 -0
- package/src/misc/airdrop_misc/whitelist.json +102629 -0
- package/src/types/index.ts +106 -0
package/dist/SDK.d.ts
CHANGED
|
@@ -28,6 +28,15 @@ export declare class SdkRead extends BlockchainEntityRead {
|
|
|
28
28
|
action: types.MarketAction;
|
|
29
29
|
tokenAmount?: TokenAmount;
|
|
30
30
|
}): types.HypotheticalStats;
|
|
31
|
+
/**
|
|
32
|
+
* Get ply circulating supply.
|
|
33
|
+
* It is calculated by the total supply, minus:
|
|
34
|
+
* - Ply in team multisig contract
|
|
35
|
+
* - Ply in comptroller contract
|
|
36
|
+
* - Ply in fairlaunch contract
|
|
37
|
+
* - Ply in vesting contract
|
|
38
|
+
*/
|
|
39
|
+
getPlyCirculatingSupply(): Promise<TokenAmount>;
|
|
31
40
|
}
|
|
32
41
|
export declare class SdkReadWrite extends SdkRead {
|
|
33
42
|
/**
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Multicall2 } from '@aurigami/contracts/typechain';
|
|
2
|
+
import { Contract } from 'ethers';
|
|
3
|
+
import { BlockchainEntityRead } from '../entities';
|
|
4
|
+
import { NetworkConnection } from '../types';
|
|
5
|
+
import { Result } from 'ethers/lib/utils';
|
|
6
|
+
export declare class MulticallRead extends BlockchainEntityRead {
|
|
7
|
+
protected _multicall: Multicall2;
|
|
8
|
+
constructor(networkConnection: NetworkConnection);
|
|
9
|
+
/**
|
|
10
|
+
* Run multiple calls via multicall contract
|
|
11
|
+
*/
|
|
12
|
+
aggregate(calls: {
|
|
13
|
+
contract: Contract;
|
|
14
|
+
method: string;
|
|
15
|
+
args: any[];
|
|
16
|
+
returnTypes: string[];
|
|
17
|
+
}[]): Promise<Result[]>;
|
|
18
|
+
}
|
|
@@ -29,6 +29,14 @@ export declare class PapermillRead extends BlockchainEntityRead {
|
|
|
29
29
|
* @param targetUnlockPortion unlockPortion target
|
|
30
30
|
*/
|
|
31
31
|
getTimestampToUnlock(userAddress: Address, targetUnlockPortion: number): Promise<number>;
|
|
32
|
+
/**
|
|
33
|
+
* Get the start timestamp of next week of the papermill contract.
|
|
34
|
+
*
|
|
35
|
+
* This is a sync function!
|
|
36
|
+
*
|
|
37
|
+
* @returns the timestamp in seconds
|
|
38
|
+
*/
|
|
39
|
+
getNextWeekTimestamp(): number;
|
|
32
40
|
getUnlockPortionAt(userAddress: Address, timestamp: number): Promise<number>;
|
|
33
41
|
}
|
|
34
42
|
export declare class PapermillReadWrite extends PapermillRead {
|