@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.
Files changed (39) hide show
  1. package/dist/SDK.d.ts +9 -0
  2. package/dist/contracts/Multicall.d.ts +18 -0
  3. package/dist/contracts/Papermill.d.ts +8 -0
  4. package/dist/sdk.cjs.development.js +102841 -40
  5. package/dist/sdk.cjs.development.js.map +1 -1
  6. package/dist/sdk.cjs.production.min.js +1 -1
  7. package/dist/sdk.cjs.production.min.js.map +1 -1
  8. package/dist/sdk.esm.js +102841 -40
  9. package/dist/sdk.esm.js.map +1 -1
  10. package/package.json +4 -3
  11. package/src/SDK.ts +430 -0
  12. package/src/abis/Faucet.json +157 -0
  13. package/src/abis/IUniswapV2Pair.json +663 -0
  14. package/src/abis/Oracle.json +247 -0
  15. package/src/abis/dummy.json +3 -0
  16. package/src/consts/constants.ts +146 -0
  17. package/src/consts/decimals.ts +24 -0
  18. package/src/consts/deployments.ts +4 -0
  19. package/src/consts/dummy.ts +38 -0
  20. package/src/consts/index.ts +4 -0
  21. package/src/contracts/MoneyMarket.ts +510 -0
  22. package/src/contracts/Multicall.ts +55 -0
  23. package/src/contracts/Papermill.ts +271 -0
  24. package/src/contracts/Staking.ts +183 -0
  25. package/src/contracts/airdrop-lottery.ts +320 -0
  26. package/src/contracts/index.ts +4 -0
  27. package/src/entities/BlockchainEntity.ts +33 -0
  28. package/src/entities/index.ts +3 -0
  29. package/src/entities/token.ts +21 -0
  30. package/src/entities/tokenAmount.ts +42 -0
  31. package/src/helpers/aurora-api-helpers.ts +20 -0
  32. package/src/helpers/helpers.ts +97 -0
  33. package/src/helpers/index.ts +4 -0
  34. package/src/helpers/priceFetcher.ts +317 -0
  35. package/src/helpers/transfer-event-query.ts +70 -0
  36. package/src/index.ts +13 -0
  37. package/src/misc/airdrop_misc/auTokensInfo.json +34 -0
  38. package/src/misc/airdrop_misc/whitelist.json +102629 -0
  39. 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 {