@aurigami/sdk 1.11.1 → 1.12.0-beta1

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.
@@ -4,6 +4,7 @@ export declare const dummyAddress: string;
4
4
  export declare const ETHAddress: string;
5
5
  export declare const AURORA_CHAINID = 1313161554;
6
6
  export declare const DECIMAL_PRECISION = 10;
7
+ export declare const AURORA_PLUS_API_PREFIX = "https://aurora.plus/api/wallet/";
7
8
  export declare type NetworkAddresses = {
8
9
  auTokens: {
9
10
  name: string;
@@ -1,14 +1,11 @@
1
- import { TypedEvent } from '@aurigami/contracts/typechain/common';
2
1
  import { Provider } from '@ethersproject/abstract-provider';
3
2
  import BigNumber from 'bignumber.js';
4
- import { Result } from 'ethers/lib/utils';
5
3
  import { Address } from '../types';
6
4
  export declare function assert(condition: boolean, message?: string): void;
7
5
  export declare function formatObject(object: Object): string;
8
6
  export declare function decimalFactor(decimal: number): string;
9
7
  export declare const isSameAddress: (address1: Address, address2: Address) => boolean;
10
8
  export declare const getCurrentTimestamp: () => number;
11
- export declare function sleep(duration: number): Promise<void>;
12
9
  export declare function validateAndParseAddress(address: Address): Address;
13
10
  export declare function getDecimal(address: Address): number;
14
11
  export declare function getSymbol(address: Address): string;
@@ -32,8 +29,3 @@ export declare function getBlocksTimestamp(provider: Provider, blockNumbers: num
32
29
  */
33
30
  export declare function getBlockBeforeTimestamp(provider: Provider, timestamp: number): Promise<number>;
34
31
  export declare function devLog(message?: any, ...optionalParams: any[]): void;
35
- /**
36
- * Sorts (in place) an array of Events by blocknumber.
37
- * This method mutates the array and returns a reference to the same array.
38
- **/
39
- export declare function sortEvents<T extends Result>(events: TypedEvent<T>[]): TypedEvent<T>[];
@@ -16,6 +16,7 @@ export declare class PlyGameRead extends BlockchainEntityRead {
16
16
  * Get current jackpot amount
17
17
  */
18
18
  currentJackpotAmount(): Promise<TokenAmount>;
19
+ nextJackpotRevealTime(): Promise<number>;
19
20
  earlyUnlockedPulpAmount(user: Address): Promise<TokenAmount>;
20
21
  getPlyGameResultsInTransaction(txHash: Address): Promise<PlyGameBetResult[]>;
21
22
  /**
@@ -24,6 +25,10 @@ export declare class PlyGameRead extends BlockchainEntityRead {
24
25
  leaderboard(): Promise<PlyGameLeaderboardItem[]>;
25
26
  }
26
27
  export declare class PlyGameReadWrite extends PlyGameRead {
28
+ /**
29
+ * makes "times" independent bets, but consecutively, of the same amount
30
+ */
31
+ makeBetMultiple(amount: TokenAmount, times: number): Promise<TransactionResponse>;
27
32
  /**
28
33
  * Make a single bet
29
34
  */
@@ -38,6 +38,8 @@ export declare class ReferralRead extends BlockchainEntityRead {
38
38
  * Top 50 reward earners from the last round, sorted by token amount
39
39
  */
40
40
  leaderboard(campaign: string): Promise<ReferralReward[]>;
41
+ isWhitelistedAddress(address: Address): Promise<boolean>;
42
+ isOnAuroraPlus(address: Address): Promise<boolean>;
41
43
  }
42
44
  export declare class ReferralReadWrite extends ReferralRead {
43
45
  /**