@aurigami/sdk 1.23.1 → 1.24.0
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 +48 -65
- package/dist/SDK.js +165 -0
- package/dist/abis/index.d.ts +18 -18
- package/dist/abis/index.js +39 -0
- package/dist/consts/constants.d.ts +139 -139
- package/dist/consts/constants.js +185 -0
- package/dist/consts/decimals.d.ts +1 -1
- package/dist/consts/decimals.js +35 -0
- package/dist/consts/deployments.d.ts +3 -3
- package/dist/consts/deployments.js +9 -0
- package/dist/consts/dummy.d.ts +13 -13
- package/dist/consts/dummy.js +43 -0
- package/dist/consts/index.d.ts +5 -5
- package/dist/consts/index.js +9 -0
- package/dist/consts/symbols.d.ts +1 -1
- package/dist/consts/symbols.js +10 -0
- package/dist/entities/BlockchainEntity.d.ts +13 -13
- package/dist/entities/BlockchainEntity.js +36 -0
- package/dist/entities/auriEnv.d.ts +34 -40
- package/dist/entities/auriEnv.js +166 -0
- package/dist/entities/index.d.ts +4 -4
- package/dist/entities/index.js +8 -0
- package/dist/entities/token.d.ts +7 -7
- package/dist/entities/token.js +27 -0
- package/dist/entities/tokenAmount.d.ts +13 -13
- package/dist/entities/tokenAmount.js +52 -0
- package/dist/helpers/aurigami-api.d.ts +13 -13
- package/dist/helpers/aurigami-api.js +26 -0
- package/dist/helpers/aurora-api-helpers.d.ts +1 -1
- package/dist/helpers/aurora-api-helpers.js +15 -0
- package/dist/helpers/graphql-helpers.d.ts +1 -1
- package/dist/helpers/graphql-helpers.js +13 -0
- package/dist/helpers/helpers.d.ts +23 -40
- package/dist/helpers/helpers.js +148 -0
- package/dist/helpers/historicalPriceFetcher.d.ts +15 -15
- package/dist/helpers/historicalPriceFetcher.js +142 -0
- package/dist/helpers/index.d.ts +7 -7
- package/dist/helpers/index.js +11 -0
- package/dist/helpers/kyber-aggregator-api.d.ts +5 -5
- package/dist/helpers/kyber-aggregator-api.js +27 -0
- package/dist/helpers/multicall.d.ts +40 -0
- package/dist/helpers/multicall.js +203 -0
- package/dist/helpers/notification-api.d.ts +2 -2
- package/dist/helpers/notification-api.js +21 -0
- package/dist/helpers/one-inch-aggregator-api.d.ts +21 -21
- package/dist/helpers/one-inch-aggregator-api.js +19 -0
- package/dist/helpers/priceFetcher.d.ts +36 -36
- package/dist/helpers/priceFetcher.js +296 -0
- package/dist/helpers/subgraphQuery.d.ts +1 -1
- package/dist/helpers/subgraphQuery.js +22 -0
- package/dist/helpers/transfer-event-query.d.ts +17 -26
- package/dist/helpers/transfer-event-query.js +41 -0
- package/dist/index.d.ts +7 -7
- package/dist/index.js +17 -8
- package/dist/interactors/Airdrop.d.ts +17 -26
- package/dist/interactors/Airdrop.js +48 -0
- package/dist/interactors/MoneyMarket.d.ts +63 -63
- package/dist/interactors/MoneyMarket.js +392 -0
- package/dist/interactors/Multicall.d.ts +15 -18
- package/dist/interactors/Multicall.js +36 -0
- package/dist/interactors/Papermill.d.ts +27 -57
- package/dist/interactors/Papermill.js +125 -0
- package/dist/interactors/PlyGame.d.ts +30 -42
- package/dist/interactors/PlyGame.js +146 -0
- package/dist/interactors/PlyTokenLock.d.ts +16 -16
- package/dist/interactors/PlyTokenLock.js +44 -0
- package/dist/interactors/Pulp.d.ts +17 -17
- package/dist/interactors/Pulp.js +43 -0
- package/dist/interactors/Referral.d.ts +35 -78
- package/dist/interactors/Referral.js +158 -0
- package/dist/interactors/Staking.d.ts +20 -26
- package/dist/interactors/Staking.js +106 -0
- package/dist/interactors/index.d.ts +9 -9
- package/dist/interactors/index.js +13 -0
- package/dist/interactors/misc.d.ts +31 -39
- package/dist/interactors/misc.js +318 -0
- package/dist/types/index.d.ts +175 -197
- package/dist/types/index.js +18 -0
- package/package.json +3 -3
- package/src/SDK.ts +1 -1
- package/src/entities/auriEnv.ts +29 -27
- package/src/helpers/historicalPriceFetcher.ts +9 -12
- package/src/helpers/multicall.ts +251 -0
- package/src/helpers/priceFetcher.ts +19 -20
- package/src/interactors/Airdrop.ts +2 -2
- package/src/interactors/MoneyMarket.ts +31 -27
- package/src/interactors/Multicall.ts +3 -3
- package/src/interactors/Papermill.ts +9 -9
- package/src/interactors/PlyGame.ts +10 -10
- package/src/interactors/PlyTokenLock.ts +2 -3
- package/src/interactors/Pulp.ts +4 -2
- package/src/interactors/Referral.ts +6 -6
- package/src/interactors/Staking.ts +13 -9
- package/src/interactors/misc.ts +7 -5
- package/src/types/index.ts +32 -2
- package/dist/sdk.cjs.development.js +0 -6325
- package/dist/sdk.cjs.development.js.map +0 -1
- package/dist/sdk.cjs.production.min.js +0 -2
- package/dist/sdk.cjs.production.min.js.map +0 -1
- package/dist/sdk.esm.js +0 -6193
- package/dist/sdk.esm.js.map +0 -1
package/dist/SDK.d.ts
CHANGED
|
@@ -1,65 +1,48 @@
|
|
|
1
|
-
import { TransactionResponse } from '@ethersproject/abstract-provider';
|
|
2
|
-
import BigNumber from 'bignumber.js';
|
|
3
|
-
import { AuriEnv, BlockchainEntity, BlockchainEntityRead, Token, TokenAmount } from './entities';
|
|
4
|
-
import { MiscRead, StakingRead } from './interactors';
|
|
5
|
-
import * as types from './types';
|
|
6
|
-
export declare class SdkRead extends BlockchainEntityRead {
|
|
7
|
-
protected env: AuriEnv;
|
|
8
|
-
protected _stakingRead: StakingRead;
|
|
9
|
-
protected _misc: MiscRead;
|
|
10
|
-
constructor(networkConnection: types.NetworkConnection);
|
|
11
|
-
getUserDetails(userAddress: string): Promise<types.UserDetails>;
|
|
12
|
-
getPLYWNEARPoolDetails(): Promise<types.PLYWNEARPoolDetails>;
|
|
13
|
-
getTokenPrice(token: Token): Promise<types.CurrencyAmount>;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
getUserNotificationSettings(addresses: types.Address[]): Promise<types.UserNotification>;
|
|
50
|
-
getLiquidationHistory(address: string): Promise<types.LiquidationDetail[]>;
|
|
51
|
-
calculateBorrowPower(tokenAmount: TokenAmount): Promise<types.CurrencyAmount>;
|
|
52
|
-
}
|
|
53
|
-
export declare class SdkReadWrite extends SdkRead {
|
|
54
|
-
/**
|
|
55
|
-
* Claim rewards in all markets + staking pools
|
|
56
|
-
*/
|
|
57
|
-
claim(): Promise<TransactionResponse>;
|
|
58
|
-
stake(amount: TokenAmount): Promise<TransactionResponse>;
|
|
59
|
-
unstake(amount: TokenAmount): Promise<TransactionResponse>;
|
|
60
|
-
}
|
|
61
|
-
export declare class SDK extends BlockchainEntity {
|
|
62
|
-
constructor();
|
|
63
|
-
read(networkConnection: types.NetworkConnection): SdkRead;
|
|
64
|
-
readWrite(networkConnection: types.NetworkConnection): SdkReadWrite;
|
|
65
|
-
}
|
|
1
|
+
import { TransactionResponse } from '@ethersproject/abstract-provider';
|
|
2
|
+
import BigNumber from 'bignumber.js';
|
|
3
|
+
import { AuriEnv, BlockchainEntity, BlockchainEntityRead, Token, TokenAmount } from './entities';
|
|
4
|
+
import { MiscRead, StakingRead } from './interactors';
|
|
5
|
+
import * as types from './types';
|
|
6
|
+
export declare class SdkRead extends BlockchainEntityRead {
|
|
7
|
+
protected env: AuriEnv;
|
|
8
|
+
protected _stakingRead: StakingRead;
|
|
9
|
+
protected _misc: MiscRead;
|
|
10
|
+
constructor(networkConnection: types.NetworkConnection);
|
|
11
|
+
getUserDetails(userAddress: string): Promise<types.UserDetails>;
|
|
12
|
+
getPLYWNEARPoolDetails(): Promise<types.PLYWNEARPoolDetails>;
|
|
13
|
+
getTokenPrice(token: Token): Promise<types.CurrencyAmount>;
|
|
14
|
+
stakeBalanceOf(user: string): Promise<TokenAmount>;
|
|
15
|
+
LpBalanceOf(user: string): Promise<TokenAmount>;
|
|
16
|
+
unclaimedRewardsOf(user: string): Promise<TokenAmount[]>;
|
|
17
|
+
calcHypotheticalStats({ userMarketDetail, currentBorrowLimit, currentBorrowValuation, action, tokenAmount, }: {
|
|
18
|
+
userMarketDetail: types.UserMarketDetails;
|
|
19
|
+
currentBorrowLimit: types.CurrencyAmount;
|
|
20
|
+
currentBorrowValuation: types.CurrencyAmount;
|
|
21
|
+
action: types.MarketAction;
|
|
22
|
+
tokenAmount?: TokenAmount;
|
|
23
|
+
}): types.HypotheticalStats;
|
|
24
|
+
getPlyCirculatingSupply(): Promise<TokenAmount>;
|
|
25
|
+
getUtilisation(userAddr: types.Address): Promise<BigNumber>;
|
|
26
|
+
sneakAccounts(accounts: string[], tokenAddresses: string[], dust?: BigNumber): Promise<types.AccountAuTokensInfo[]>;
|
|
27
|
+
getLTVAndLiquidationThreshold(userAddr: types.Address): Promise<{
|
|
28
|
+
ltv: BigNumber;
|
|
29
|
+
liquidationThreshold: BigNumber;
|
|
30
|
+
}>;
|
|
31
|
+
getNetApyWithoutIncentive(userAddress: types.Address): Promise<BigNumber>;
|
|
32
|
+
getNetApyWithIncentive(userAddress: types.Address): Promise<BigNumber>;
|
|
33
|
+
setUserNotificationSettings(address: types.Address, mail: string, utilisation: number, liquidation: boolean, captchaResponse: string): Promise<any>;
|
|
34
|
+
unsetUserNotificationSettings(address: types.Address, captchaResponse: string): Promise<any>;
|
|
35
|
+
getUserNotificationSettings(addresses: types.Address[]): Promise<types.UserNotification>;
|
|
36
|
+
getLiquidationHistory(address: string): Promise<types.LiquidationDetail[]>;
|
|
37
|
+
calculateBorrowPower(tokenAmount: TokenAmount): Promise<types.CurrencyAmount>;
|
|
38
|
+
}
|
|
39
|
+
export declare class SdkReadWrite extends SdkRead {
|
|
40
|
+
claim(): Promise<TransactionResponse>;
|
|
41
|
+
stake(amount: TokenAmount): Promise<TransactionResponse>;
|
|
42
|
+
unstake(amount: TokenAmount): Promise<TransactionResponse>;
|
|
43
|
+
}
|
|
44
|
+
export declare class SDK extends BlockchainEntity {
|
|
45
|
+
constructor();
|
|
46
|
+
read(networkConnection: types.NetworkConnection): SdkRead;
|
|
47
|
+
readWrite(networkConnection: types.NetworkConnection): SdkReadWrite;
|
|
48
|
+
}
|
package/dist/SDK.js
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SDK = exports.SdkReadWrite = exports.SdkRead = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const bignumber_js_1 = tslib_1.__importDefault(require("bignumber.js"));
|
|
6
|
+
const consts_1 = require("./consts");
|
|
7
|
+
const entities_1 = require("./entities");
|
|
8
|
+
const helpers_1 = require("./helpers");
|
|
9
|
+
const AuriAPI = tslib_1.__importStar(require("./helpers/aurigami-api"));
|
|
10
|
+
const NotificationApi = tslib_1.__importStar(require("./helpers/notification-api"));
|
|
11
|
+
const interactors_1 = require("./interactors");
|
|
12
|
+
class SdkRead extends entities_1.BlockchainEntityRead {
|
|
13
|
+
constructor(networkConnection) {
|
|
14
|
+
super(networkConnection);
|
|
15
|
+
Object.defineProperty(this, "env", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
configurable: true,
|
|
18
|
+
writable: true,
|
|
19
|
+
value: void 0
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(this, "_stakingRead", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
configurable: true,
|
|
24
|
+
writable: true,
|
|
25
|
+
value: void 0
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(this, "_misc", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
configurable: true,
|
|
30
|
+
writable: true,
|
|
31
|
+
value: void 0
|
|
32
|
+
});
|
|
33
|
+
this.env = new entities_1.AuriEnv(networkConnection);
|
|
34
|
+
this._stakingRead = new interactors_1.StakingRead(networkConnection);
|
|
35
|
+
this._misc = new interactors_1.MiscRead(networkConnection);
|
|
36
|
+
}
|
|
37
|
+
async getUserDetails(userAddress) {
|
|
38
|
+
return this._misc.getUserDetails(userAddress);
|
|
39
|
+
}
|
|
40
|
+
async getPLYWNEARPoolDetails() {
|
|
41
|
+
return this._stakingRead.getPLYWNEARPoolDetails();
|
|
42
|
+
}
|
|
43
|
+
async getTokenPrice(token) {
|
|
44
|
+
return this._misc.getTokenPrice(token);
|
|
45
|
+
}
|
|
46
|
+
async stakeBalanceOf(user) {
|
|
47
|
+
return this._stakingRead.stakeBalanceOf(user);
|
|
48
|
+
}
|
|
49
|
+
async LpBalanceOf(user) {
|
|
50
|
+
return this._stakingRead.LpBalanceOf(user);
|
|
51
|
+
}
|
|
52
|
+
async unclaimedRewardsOf(user) {
|
|
53
|
+
return this._stakingRead.unclaimedRewardsOf(user);
|
|
54
|
+
}
|
|
55
|
+
calcHypotheticalStats({ userMarketDetail, currentBorrowLimit, currentBorrowValuation, action, tokenAmount, }) {
|
|
56
|
+
return this._misc.calcHypotheticalStats({
|
|
57
|
+
userMarketDetail,
|
|
58
|
+
currentBorrowLimit,
|
|
59
|
+
currentBorrowValuation,
|
|
60
|
+
action,
|
|
61
|
+
tokenAmount,
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
async getPlyCirculatingSupply() {
|
|
65
|
+
return this._misc.getPlyCirculatingSupply();
|
|
66
|
+
}
|
|
67
|
+
async getUtilisation(userAddr) {
|
|
68
|
+
return this._misc.getUtilisation(userAddr);
|
|
69
|
+
}
|
|
70
|
+
async sneakAccounts(accounts, tokenAddresses, dust = new bignumber_js_1.default(0.1)) {
|
|
71
|
+
return this._misc.sneakAccounts(accounts, tokenAddresses, dust);
|
|
72
|
+
}
|
|
73
|
+
async getLTVAndLiquidationThreshold(userAddr) {
|
|
74
|
+
return this._misc.getLTVAndLiquidationThreshold(userAddr);
|
|
75
|
+
}
|
|
76
|
+
async getNetApyWithoutIncentive(userAddress) {
|
|
77
|
+
return this._misc.getNetApyWithoutIncentive(userAddress);
|
|
78
|
+
}
|
|
79
|
+
async getNetApyWithIncentive(userAddress) {
|
|
80
|
+
return this._misc.getNetApyWithIncentive(userAddress);
|
|
81
|
+
}
|
|
82
|
+
async setUserNotificationSettings(address, mail, utilisation, liquidation, captchaResponse) {
|
|
83
|
+
const body = {
|
|
84
|
+
address,
|
|
85
|
+
mail,
|
|
86
|
+
setting: {
|
|
87
|
+
utilisation,
|
|
88
|
+
liquidation,
|
|
89
|
+
},
|
|
90
|
+
captchaResponse,
|
|
91
|
+
};
|
|
92
|
+
const response = await NotificationApi.postApi('alert-setting/set', body);
|
|
93
|
+
return response;
|
|
94
|
+
}
|
|
95
|
+
async unsetUserNotificationSettings(address, captchaResponse) {
|
|
96
|
+
const body = {
|
|
97
|
+
address,
|
|
98
|
+
mail: '',
|
|
99
|
+
setting: {
|
|
100
|
+
utilisation: null,
|
|
101
|
+
liquidation: false,
|
|
102
|
+
},
|
|
103
|
+
captchaResponse,
|
|
104
|
+
};
|
|
105
|
+
const response = await NotificationApi.postApi('alert-setting/set', body);
|
|
106
|
+
return response;
|
|
107
|
+
}
|
|
108
|
+
async getUserNotificationSettings(addresses) {
|
|
109
|
+
const body = {
|
|
110
|
+
addresses,
|
|
111
|
+
};
|
|
112
|
+
const response = await NotificationApi.postApi('alert-setting/get-user-setting', body);
|
|
113
|
+
return response;
|
|
114
|
+
}
|
|
115
|
+
async getLiquidationHistory(address) {
|
|
116
|
+
const liquidationHistoryResp = await AuriAPI.getPaginatedApi('/liquidate/history', {
|
|
117
|
+
user: address,
|
|
118
|
+
});
|
|
119
|
+
const blocks = liquidationHistoryResp.items.map((event) => event.blockNumber);
|
|
120
|
+
const blocksTimestamp = await (0, helpers_1.getBlocksTimestamp)(this._networkConnection.provider, blocks);
|
|
121
|
+
const liquidationEvents = liquidationHistoryResp.items.map((event, idx) => {
|
|
122
|
+
const underlyingAddress = consts_1.networkAddresses.auTokens.find((auToken) => auToken.address.toLowerCase() === event.marketRepayToken.toLowerCase()).underlying;
|
|
123
|
+
const decimal = (0, helpers_1.getDecimal)(underlyingAddress);
|
|
124
|
+
const token = new entities_1.Token(underlyingAddress, decimal);
|
|
125
|
+
const tokenAmount = new entities_1.TokenAmount(token, event.repayAmount.toString(), true);
|
|
126
|
+
return {
|
|
127
|
+
liquidationTime: blocksTimestamp[idx],
|
|
128
|
+
tokenAmount,
|
|
129
|
+
transactionId: event.txnHash,
|
|
130
|
+
};
|
|
131
|
+
});
|
|
132
|
+
return liquidationEvents;
|
|
133
|
+
}
|
|
134
|
+
calculateBorrowPower(tokenAmount) {
|
|
135
|
+
return this._misc.calcBorrowPower(tokenAmount);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
exports.SdkRead = SdkRead;
|
|
139
|
+
class SdkReadWrite extends SdkRead {
|
|
140
|
+
async claim() {
|
|
141
|
+
return this.env.auriLens.raw
|
|
142
|
+
.connect(this._networkConnection.signer)
|
|
143
|
+
.claimRewards(this.env.comptroller.address, this.env.auriFairLaunch.address, consts_1.ALL_STAKING_POOLS);
|
|
144
|
+
}
|
|
145
|
+
async stake(amount) {
|
|
146
|
+
return new interactors_1.StakingReadWrite(this._networkConnection).stake(amount);
|
|
147
|
+
}
|
|
148
|
+
async unstake(amount) {
|
|
149
|
+
return new interactors_1.StakingReadWrite(this._networkConnection).unstake(amount);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
exports.SdkReadWrite = SdkReadWrite;
|
|
153
|
+
class SDK extends entities_1.BlockchainEntity {
|
|
154
|
+
constructor() {
|
|
155
|
+
super();
|
|
156
|
+
}
|
|
157
|
+
read(networkConnection) {
|
|
158
|
+
return new SdkRead(networkConnection);
|
|
159
|
+
}
|
|
160
|
+
readWrite(networkConnection) {
|
|
161
|
+
return new Sd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N6QixPQUFPLENBQUMsSUFBSSxDQUFDLGtCQUFrQixDQUFDLE1BQU8sQ0FBQzthQUN4QyxZQUFZLENBQ1gsSUFBSSxDQUFDLEdBQUcsQ0FBQyxXQUFXLENBQUMsT0FBTyxFQUM1QixJQUFJLENBQUMsR0FBRyxDQUFDLGNBQWMsQ0FBQyxPQUFPLEVBQy9CLDBCQUFpQixDQUNsQixDQUFDO0lBQ04sQ0FBQztJQUVNLEtBQUssQ0FBQyxLQUFLLENBQUMsTUFBbUI7UUFDcEMsT0FBTyxJQUFJLDhCQUFnQixDQUFDLElBQUksQ0FBQyxrQkFBa0IsQ0FBQyxDQUFDLEtBQUssQ0FBQyxNQUFNLENBQUMsQ0FBQztJQUNyRSxDQUFDO0lBRU0sS0FBSyxDQUFDLE9BQU8sQ0FBQyxNQUFtQjtRQUN0QyxPQUFPLElBQUksOEJBQWdCLENBQUMsSUFBSSxDQUFDLGtCQUFrQixDQUFDLENBQUMsT0FBTyxDQUFDLE1BQU0sQ0FBQyxDQUFDO0lBQ3ZFLENBQUM7Q0FLRjtBQXpCRCxvQ0F5QkM7QUFFRCxNQUFhLEdBQUksU0FBUSwyQkFBZ0I7SUFDdkM7UUFDRSxLQUFLLEVBQUUsQ0FBQztJQUNWLENBQUM7SUFDTSxJQUFJLENBQUMsaUJBQTBDO1FBQ3BELE9BQU8sSUFBSSxPQUFPLENBQUMsaUJBQWlCLENBQUMsQ0FBQztJQUN4QyxDQUFDO0lBRU0sU0FBUyxDQUFDLGlCQUEwQztRQUN6RCxPQUFPLElBQUksWUFBWSxDQUFDLGlCQUFpQixDQUFDLENBQUM7SUFDN0MsQ0FBQztDQUNGO0FBWEQsa0JBV0MifQ==
|
package/dist/abis/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import AuErc20ABI from '@aurigami/contracts/artifacts/contracts/AuErc20.sol/AuErc20.json';
|
|
2
|
-
import AuETHABI from '@aurigami/contracts/artifacts/contracts/AuETH.sol/AuETH.json';
|
|
3
|
-
import AuriAirdropABI from '@aurigami/contracts/artifacts/contracts/AuriAirdrop.sol/AuriAirdrop.json';
|
|
4
|
-
import AuriFairLaunchABI from '@aurigami/contracts/artifacts/contracts/AuriFairLaunch.sol/AuriFairLaunch.json';
|
|
5
|
-
import AuriLensABI from '@aurigami/contracts/artifacts/contracts/AuriLens.sol/AuriLens.json';
|
|
6
|
-
import AuriOracleABI from '@aurigami/contracts/artifacts/contracts/AuriOracle.sol/AuriOracle.json';
|
|
7
|
-
import AuTokenABI from '@aurigami/contracts/artifacts/contracts/AuToken.sol/AuToken.json';
|
|
8
|
-
import ComptrollerABI from '@aurigami/contracts/artifacts/contracts/Comptroller.sol/Comptroller.json';
|
|
9
|
-
import EthRepayHelperABI from '@aurigami/contracts/artifacts/contracts/EthRepayHelper.sol/EthRepayHelper.json';
|
|
10
|
-
import EIP20InterfaceABI from '@aurigami/contracts/artifacts/contracts/interfaces/EIP20Interface.sol/EIP20Interface.json';
|
|
11
|
-
import AuriInternalLensABI from '@aurigami/contracts/artifacts/contracts/mock/AuriInternalLens.sol/AuriInternalLens.json';
|
|
12
|
-
import IUniswapV2PairABI from '@aurigami/contracts/artifacts/contracts/mock/IUniswapV2Pair.sol/IUniswapV2Pair.json';
|
|
13
|
-
import Multicall2ABI from '@aurigami/contracts/artifacts/contracts/mock/Multicall2.sol/Multicall2.json';
|
|
14
|
-
import PulpABI from '@aurigami/contracts/artifacts/contracts/PULP.sol/PULP.json';
|
|
15
|
-
import ReferralDirectoryV2ABI from '@aurigami/contracts/artifacts/contracts/ReferralDirectoryV2.sol/ReferralDirectoryV2.json';
|
|
16
|
-
import PlyGameABI from '@aurigami/contracts/artifacts/contracts/plygame/PlyGame.sol/PlyGame.json';
|
|
17
|
-
import PlyTokenLockABI from '@aurigami/contracts/artifacts/contracts/PlyTokenLock.sol/PlyTokenLock.json';
|
|
18
|
-
export { AuriOracleABI, AuTokenABI, IUniswapV2PairABI, AuriAirdropABI, AuriFairLaunchABI, AuriLensABI, ComptrollerABI, EIP20InterfaceABI, ReferralDirectoryV2ABI, AuErc20ABI, AuETHABI, EthRepayHelperABI, Multicall2ABI, PulpABI, AuriInternalLensABI, PlyGameABI, PlyTokenLockABI, };
|
|
1
|
+
import AuErc20ABI from '@aurigami/contracts/artifacts/contracts/AuErc20.sol/AuErc20.json';
|
|
2
|
+
import AuETHABI from '@aurigami/contracts/artifacts/contracts/AuETH.sol/AuETH.json';
|
|
3
|
+
import AuriAirdropABI from '@aurigami/contracts/artifacts/contracts/AuriAirdrop.sol/AuriAirdrop.json';
|
|
4
|
+
import AuriFairLaunchABI from '@aurigami/contracts/artifacts/contracts/AuriFairLaunch.sol/AuriFairLaunch.json';
|
|
5
|
+
import AuriLensABI from '@aurigami/contracts/artifacts/contracts/AuriLens.sol/AuriLens.json';
|
|
6
|
+
import AuriOracleABI from '@aurigami/contracts/artifacts/contracts/AuriOracle.sol/AuriOracle.json';
|
|
7
|
+
import AuTokenABI from '@aurigami/contracts/artifacts/contracts/AuToken.sol/AuToken.json';
|
|
8
|
+
import ComptrollerABI from '@aurigami/contracts/artifacts/contracts/Comptroller.sol/Comptroller.json';
|
|
9
|
+
import EthRepayHelperABI from '@aurigami/contracts/artifacts/contracts/EthRepayHelper.sol/EthRepayHelper.json';
|
|
10
|
+
import EIP20InterfaceABI from '@aurigami/contracts/artifacts/contracts/interfaces/EIP20Interface.sol/EIP20Interface.json';
|
|
11
|
+
import AuriInternalLensABI from '@aurigami/contracts/artifacts/contracts/mock/AuriInternalLens.sol/AuriInternalLens.json';
|
|
12
|
+
import IUniswapV2PairABI from '@aurigami/contracts/artifacts/contracts/mock/IUniswapV2Pair.sol/IUniswapV2Pair.json';
|
|
13
|
+
import Multicall2ABI from '@aurigami/contracts/artifacts/contracts/mock/Multicall2.sol/Multicall2.json';
|
|
14
|
+
import PulpABI from '@aurigami/contracts/artifacts/contracts/PULP.sol/PULP.json';
|
|
15
|
+
import ReferralDirectoryV2ABI from '@aurigami/contracts/artifacts/contracts/ReferralDirectoryV2.sol/ReferralDirectoryV2.json';
|
|
16
|
+
import PlyGameABI from '@aurigami/contracts/artifacts/contracts/plygame/PlyGame.sol/PlyGame.json';
|
|
17
|
+
import PlyTokenLockABI from '@aurigami/contracts/artifacts/contracts/PlyTokenLock.sol/PlyTokenLock.json';
|
|
18
|
+
export { AuriOracleABI, AuTokenABI, IUniswapV2PairABI, AuriAirdropABI, AuriFairLaunchABI, AuriLensABI, ComptrollerABI, EIP20InterfaceABI, ReferralDirectoryV2ABI, AuErc20ABI, AuETHABI, EthRepayHelperABI, Multicall2ABI, PulpABI, AuriInternalLensABI, PlyGameABI, PlyTokenLockABI, };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlyTokenLockABI = exports.PlyGameABI = exports.AuriInternalLensABI = exports.PulpABI = exports.Multicall2ABI = exports.EthRepayHelperABI = exports.AuETHABI = exports.AuErc20ABI = exports.ReferralDirectoryV2ABI = exports.EIP20InterfaceABI = exports.ComptrollerABI = exports.AuriLensABI = exports.AuriFairLaunchABI = exports.AuriAirdropABI = exports.IUniswapV2PairABI = exports.AuTokenABI = exports.AuriOracleABI = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const AuErc20_json_1 = tslib_1.__importDefault(require("@aurigami/contracts/artifacts/contracts/AuErc20.sol/AuErc20.json"));
|
|
6
|
+
exports.AuErc20ABI = AuErc20_json_1.default;
|
|
7
|
+
const AuETH_json_1 = tslib_1.__importDefault(require("@aurigami/contracts/artifacts/contracts/AuETH.sol/AuETH.json"));
|
|
8
|
+
exports.AuETHABI = AuETH_json_1.default;
|
|
9
|
+
const AuriAirdrop_json_1 = tslib_1.__importDefault(require("@aurigami/contracts/artifacts/contracts/AuriAirdrop.sol/AuriAirdrop.json"));
|
|
10
|
+
exports.AuriAirdropABI = AuriAirdrop_json_1.default;
|
|
11
|
+
const AuriFairLaunch_json_1 = tslib_1.__importDefault(require("@aurigami/contracts/artifacts/contracts/AuriFairLaunch.sol/AuriFairLaunch.json"));
|
|
12
|
+
exports.AuriFairLaunchABI = AuriFairLaunch_json_1.default;
|
|
13
|
+
const AuriLens_json_1 = tslib_1.__importDefault(require("@aurigami/contracts/artifacts/contracts/AuriLens.sol/AuriLens.json"));
|
|
14
|
+
exports.AuriLensABI = AuriLens_json_1.default;
|
|
15
|
+
const AuriOracle_json_1 = tslib_1.__importDefault(require("@aurigami/contracts/artifacts/contracts/AuriOracle.sol/AuriOracle.json"));
|
|
16
|
+
exports.AuriOracleABI = AuriOracle_json_1.default;
|
|
17
|
+
const AuToken_json_1 = tslib_1.__importDefault(require("@aurigami/contracts/artifacts/contracts/AuToken.sol/AuToken.json"));
|
|
18
|
+
exports.AuTokenABI = AuToken_json_1.default;
|
|
19
|
+
const Comptroller_json_1 = tslib_1.__importDefault(require("@aurigami/contracts/artifacts/contracts/Comptroller.sol/Comptroller.json"));
|
|
20
|
+
exports.ComptrollerABI = Comptroller_json_1.default;
|
|
21
|
+
const EthRepayHelper_json_1 = tslib_1.__importDefault(require("@aurigami/contracts/artifacts/contracts/EthRepayHelper.sol/EthRepayHelper.json"));
|
|
22
|
+
exports.EthRepayHelperABI = EthRepayHelper_json_1.default;
|
|
23
|
+
const EIP20Interface_json_1 = tslib_1.__importDefault(require("@aurigami/contracts/artifacts/contracts/interfaces/EIP20Interface.sol/EIP20Interface.json"));
|
|
24
|
+
exports.EIP20InterfaceABI = EIP20Interface_json_1.default;
|
|
25
|
+
const AuriInternalLens_json_1 = tslib_1.__importDefault(require("@aurigami/contracts/artifacts/contracts/mock/AuriInternalLens.sol/AuriInternalLens.json"));
|
|
26
|
+
exports.AuriInternalLensABI = AuriInternalLens_json_1.default;
|
|
27
|
+
const IUniswapV2Pair_json_1 = tslib_1.__importDefault(require("@aurigami/contracts/artifacts/contracts/mock/IUniswapV2Pair.sol/IUniswapV2Pair.json"));
|
|
28
|
+
exports.IUniswapV2PairABI = IUniswapV2Pair_json_1.default;
|
|
29
|
+
const Multicall2_json_1 = tslib_1.__importDefault(require("@aurigami/contracts/artifacts/contracts/mock/Multicall2.sol/Multicall2.json"));
|
|
30
|
+
exports.Multicall2ABI = Multicall2_json_1.default;
|
|
31
|
+
const PULP_json_1 = tslib_1.__importDefault(require("@aurigami/contracts/artifacts/contracts/PULP.sol/PULP.json"));
|
|
32
|
+
exports.PulpABI = PULP_json_1.default;
|
|
33
|
+
const ReferralDirectoryV2_json_1 = tslib_1.__importDefault(require("@aurigami/contracts/artifacts/contracts/ReferralDirectoryV2.sol/ReferralDirectoryV2.json"));
|
|
34
|
+
exports.ReferralDirectoryV2ABI = ReferralDirectoryV2_json_1.default;
|
|
35
|
+
const PlyGame_json_1 = tslib_1.__importDefault(require("@aurigami/contracts/artifacts/contracts/plygame/PlyGame.sol/PlyGame.json"));
|
|
36
|
+
exports.PlyGameABI = PlyGame_json_1.default;
|
|
37
|
+
const PlyTokenLock_json_1 = tslib_1.__importDefault(require("@aurigami/contracts/artifacts/contracts/PlyTokenLock.sol/PlyTokenLock.json"));
|
|
38
|
+
exports.PlyTokenLockABI = PlyTokenLock_json_1.default;
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYWJpcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsNEhBQTBGO0FBNkJ4RixxQkE3Qkssc0JBQVUsQ0E2Qkw7QUE1Qlosc0hBQW9GO0FBNkJsRixtQkE3Qkssb0JBQVEsQ0E2Qkw7QUE1QlYsd0lBQXNHO0FBb0JwRyx5QkFwQkssMEJBQWMsQ0FvQkw7QUFuQmhCLGlKQUErRztBQW9CN0csNEJBcEJLLDZCQUFpQixDQW9CTDtBQW5CbkIsK0hBQTZGO0FBb0IzRixzQkFwQkssdUJBQVcsQ0FvQkw7QUFuQmIscUlBQW1HO0FBY2pHLHdCQWRLLHlCQUFhLENBY0w7QUFiZiw0SEFBMEY7QUFjeEYscUJBZEssc0JBQVUsQ0FjTDtBQWJaLHdJQUFzRztBQWtCcEcseUJBbEJLLDBCQUFjLENBa0JMO0FBakJoQixpSkFBK0c7QUF1QjdHLDRCQXZCSyw2QkFBaUIsQ0F1Qkw7QUF0Qm5CLDRKQUEwSDtBQWtCeEgsNEJBbEJLLDZCQUFpQixDQWtCTDtBQWhCbkIsNEpBQTBIO0FBdUJ4SCw4QkF2QkssK0JBQW1CLENBdUJMO0FBdEJyQixzSkFBb0g7QUFTbEgsNEJBVEssNkJBQWlCLENBU0w7QUFSbkIsMElBQXdHO0FBbUJ0Ryx3QkFuQksseUJBQWEsQ0FtQkw7QUFsQmYsbUhBQWlGO0FBbUIvRSxrQkFuQkssbUJBQU8sQ0FtQkw7QUFsQlQsZ0tBQThIO0FBYTVILGlDQWJLLGtDQUFzQixDQWFMO0FBWnhCLG9JQUFrRztBQW1CaEcscUJBbkJLLHNCQUFVLENBbUJMO0FBbEJaLDJJQUF5RztBQW1CdkcsMEJBbkJLLDJCQUFlLENBbUJMIn0=
|
|
@@ -1,139 +1,139 @@
|
|
|
1
|
-
import BigNumber from 'bignumber.js';
|
|
2
|
-
import { BigNumber as BN } from 'ethers';
|
|
3
|
-
export declare const dummyAddress: string;
|
|
4
|
-
export declare const ETHAddress: string;
|
|
5
|
-
export declare const AURORA_CHAINID = 1313161554;
|
|
6
|
-
export declare const DECIMAL_PRECISION = 10;
|
|
7
|
-
export declare const AURORA_PLUS_API_PREFIX = "https://aurora.plus/api/wallet/";
|
|
8
|
-
export declare const networkAddresses: {
|
|
9
|
-
readonly auTokens: readonly [{
|
|
10
|
-
readonly name: "auUSDC";
|
|
11
|
-
readonly address: string;
|
|
12
|
-
readonly underlying: string;
|
|
13
|
-
}, {
|
|
14
|
-
readonly name: "auETH";
|
|
15
|
-
readonly address: string;
|
|
16
|
-
readonly underlying: string;
|
|
17
|
-
}, {
|
|
18
|
-
readonly name: "auWBTC";
|
|
19
|
-
readonly address: string;
|
|
20
|
-
readonly underlying: string;
|
|
21
|
-
}, {
|
|
22
|
-
readonly name: "auUSDT";
|
|
23
|
-
readonly address: string;
|
|
24
|
-
readonly underlying: string;
|
|
25
|
-
}, {
|
|
26
|
-
readonly name: "auDAI";
|
|
27
|
-
readonly address: string;
|
|
28
|
-
readonly underlying: string;
|
|
29
|
-
}, {
|
|
30
|
-
readonly name: "auWNEAR";
|
|
31
|
-
readonly address: string;
|
|
32
|
-
readonly underlying: string;
|
|
33
|
-
}, {
|
|
34
|
-
readonly name: "auSTNEAR";
|
|
35
|
-
readonly address: string;
|
|
36
|
-
readonly underlying: string;
|
|
37
|
-
}, {
|
|
38
|
-
readonly name: "auAURORA";
|
|
39
|
-
readonly address: string;
|
|
40
|
-
readonly underlying: string;
|
|
41
|
-
}, {
|
|
42
|
-
readonly name: "auTRI";
|
|
43
|
-
readonly address: string;
|
|
44
|
-
readonly underlying: string;
|
|
45
|
-
}, {
|
|
46
|
-
readonly name: "auPLY";
|
|
47
|
-
readonly address: string;
|
|
48
|
-
readonly underlying: string;
|
|
49
|
-
}, {
|
|
50
|
-
readonly name: "auUSN";
|
|
51
|
-
readonly address: string;
|
|
52
|
-
readonly underlying: string;
|
|
53
|
-
}, {
|
|
54
|
-
readonly name: "auNEARX";
|
|
55
|
-
readonly address: string;
|
|
56
|
-
readonly underlying: string;
|
|
57
|
-
}, {
|
|
58
|
-
readonly name: "auUSDCNative";
|
|
59
|
-
readonly address: string;
|
|
60
|
-
readonly underlying: string;
|
|
61
|
-
}, {
|
|
62
|
-
readonly name: "auUSDTNative";
|
|
63
|
-
readonly address: string;
|
|
64
|
-
readonly underlying: string;
|
|
65
|
-
}];
|
|
66
|
-
readonly misc: {
|
|
67
|
-
readonly COMPTROLLER: string;
|
|
68
|
-
readonly DEPRECATED_OLD_ORACLE: string;
|
|
69
|
-
readonly PYTH_ORACLE: string;
|
|
70
|
-
readonly AURIFAIRLAUNCH: string;
|
|
71
|
-
readonly AURILENS: string;
|
|
72
|
-
readonly ETHREPAYHELPER: string;
|
|
73
|
-
readonly AURI_AIRDROP: string;
|
|
74
|
-
readonly MULTICALL: string;
|
|
75
|
-
readonly TEAM_MULTISIG: string;
|
|
76
|
-
readonly TEAM_MULTISIG_AURORA_PLUS: string;
|
|
77
|
-
readonly AURORA_PLUS: string;
|
|
78
|
-
readonly PULP_CONTRACT: string;
|
|
79
|
-
readonly PLY_TOKEN_LOCK: string;
|
|
80
|
-
readonly REFERRAL: string;
|
|
81
|
-
readonly REFERRAL_V2: string;
|
|
82
|
-
readonly AURI_INTERNAL_LENS: string;
|
|
83
|
-
readonly PLYGAME: string;
|
|
84
|
-
};
|
|
85
|
-
readonly tokens: {
|
|
86
|
-
readonly AURORA: string;
|
|
87
|
-
readonly PLY: string;
|
|
88
|
-
readonly stNEAR: string;
|
|
89
|
-
readonly USDC: string;
|
|
90
|
-
readonly WNEAR: string;
|
|
91
|
-
readonly TRI: string;
|
|
92
|
-
readonly META: string;
|
|
93
|
-
readonly PULP: string;
|
|
94
|
-
readonly PLYWNEAR: string;
|
|
95
|
-
readonly USN: string;
|
|
96
|
-
readonly PLY_WNEAR: string;
|
|
97
|
-
readonly WNEAR_TRI: string;
|
|
98
|
-
readonly AURORA_WNEAR: string;
|
|
99
|
-
readonly NEARX: string;
|
|
100
|
-
readonly STADER: string;
|
|
101
|
-
readonly USDC_NATIVE: string;
|
|
102
|
-
readonly USDT_NATIVE: string;
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
export declare const DEPOSIT_ONLY_TOKENS: string[];
|
|
106
|
-
export declare const PRICE_WHITELISTED: Set<string>;
|
|
107
|
-
export declare const REWARD_CLAIM_START = 1651759200;
|
|
108
|
-
export declare const BORROW_LIMIT_BUFFER: BigNumber;
|
|
109
|
-
export declare const ONE_DAY = 86400;
|
|
110
|
-
export declare const ONE_WEEK: number;
|
|
111
|
-
export declare const ONE_YEAR: number;
|
|
112
|
-
export declare const PLYWNEAR_POOL_ID = 0;
|
|
113
|
-
export declare const PLYWNEAR_REWARD_TOKENS: string[];
|
|
114
|
-
export declare const ALL_STAKING_POOLS: number[];
|
|
115
|
-
export declare const INF: BN;
|
|
116
|
-
export declare const AIRDROP_START_TIMESTAMP = 1649858400;
|
|
117
|
-
export declare const AIRDROP_END_TIMESTAMP = 1651068000;
|
|
118
|
-
export declare const AIRDROP_KEEP_THRESHOLD: number;
|
|
119
|
-
export declare const DEPOSIT_NEAR_REWARDS_PER_WEEK: {
|
|
120
|
-
[k: string]: string;
|
|
121
|
-
};
|
|
122
|
-
export declare const BORROW_NEAR_REWARDS_PER_WEEK: {
|
|
123
|
-
[k: string]: string;
|
|
124
|
-
};
|
|
125
|
-
export declare const HARDCODE_PRICE_TOKENS: {
|
|
126
|
-
[k: string]: string;
|
|
127
|
-
};
|
|
128
|
-
export declare const REFERRAL_CAMPAIGNS: {
|
|
129
|
-
[k: string]: {
|
|
130
|
-
start: number;
|
|
131
|
-
end: number;
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
export declare const CACHE_TIMEOUT: number;
|
|
135
|
-
export declare const SD_INCENTIVE_IN_SD = 83.35;
|
|
136
|
-
export declare const STADER_ETH: string;
|
|
137
|
-
export declare const USDT_ETH: string;
|
|
138
|
-
export declare const AURIGAMI_SUBGRAPH_URL = "https://api.thegraph.com/subgraphs/name/takao-aurigami/aurigami-feb-27";
|
|
139
|
-
export declare const GRAPHQL_URL = "https://old.explorer.aurora.dev/api/v1/graphql";
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
import { BigNumber as BN } from 'ethers';
|
|
3
|
+
export declare const dummyAddress: string;
|
|
4
|
+
export declare const ETHAddress: string;
|
|
5
|
+
export declare const AURORA_CHAINID = 1313161554;
|
|
6
|
+
export declare const DECIMAL_PRECISION = 10;
|
|
7
|
+
export declare const AURORA_PLUS_API_PREFIX = "https://aurora.plus/api/wallet/";
|
|
8
|
+
export declare const networkAddresses: {
|
|
9
|
+
readonly auTokens: readonly [{
|
|
10
|
+
readonly name: "auUSDC";
|
|
11
|
+
readonly address: string;
|
|
12
|
+
readonly underlying: string;
|
|
13
|
+
}, {
|
|
14
|
+
readonly name: "auETH";
|
|
15
|
+
readonly address: string;
|
|
16
|
+
readonly underlying: string;
|
|
17
|
+
}, {
|
|
18
|
+
readonly name: "auWBTC";
|
|
19
|
+
readonly address: string;
|
|
20
|
+
readonly underlying: string;
|
|
21
|
+
}, {
|
|
22
|
+
readonly name: "auUSDT";
|
|
23
|
+
readonly address: string;
|
|
24
|
+
readonly underlying: string;
|
|
25
|
+
}, {
|
|
26
|
+
readonly name: "auDAI";
|
|
27
|
+
readonly address: string;
|
|
28
|
+
readonly underlying: string;
|
|
29
|
+
}, {
|
|
30
|
+
readonly name: "auWNEAR";
|
|
31
|
+
readonly address: string;
|
|
32
|
+
readonly underlying: string;
|
|
33
|
+
}, {
|
|
34
|
+
readonly name: "auSTNEAR";
|
|
35
|
+
readonly address: string;
|
|
36
|
+
readonly underlying: string;
|
|
37
|
+
}, {
|
|
38
|
+
readonly name: "auAURORA";
|
|
39
|
+
readonly address: string;
|
|
40
|
+
readonly underlying: string;
|
|
41
|
+
}, {
|
|
42
|
+
readonly name: "auTRI";
|
|
43
|
+
readonly address: string;
|
|
44
|
+
readonly underlying: string;
|
|
45
|
+
}, {
|
|
46
|
+
readonly name: "auPLY";
|
|
47
|
+
readonly address: string;
|
|
48
|
+
readonly underlying: string;
|
|
49
|
+
}, {
|
|
50
|
+
readonly name: "auUSN";
|
|
51
|
+
readonly address: string;
|
|
52
|
+
readonly underlying: string;
|
|
53
|
+
}, {
|
|
54
|
+
readonly name: "auNEARX";
|
|
55
|
+
readonly address: string;
|
|
56
|
+
readonly underlying: string;
|
|
57
|
+
}, {
|
|
58
|
+
readonly name: "auUSDCNative";
|
|
59
|
+
readonly address: string;
|
|
60
|
+
readonly underlying: string;
|
|
61
|
+
}, {
|
|
62
|
+
readonly name: "auUSDTNative";
|
|
63
|
+
readonly address: string;
|
|
64
|
+
readonly underlying: string;
|
|
65
|
+
}];
|
|
66
|
+
readonly misc: {
|
|
67
|
+
readonly COMPTROLLER: string;
|
|
68
|
+
readonly DEPRECATED_OLD_ORACLE: string;
|
|
69
|
+
readonly PYTH_ORACLE: string;
|
|
70
|
+
readonly AURIFAIRLAUNCH: string;
|
|
71
|
+
readonly AURILENS: string;
|
|
72
|
+
readonly ETHREPAYHELPER: string;
|
|
73
|
+
readonly AURI_AIRDROP: string;
|
|
74
|
+
readonly MULTICALL: string;
|
|
75
|
+
readonly TEAM_MULTISIG: string;
|
|
76
|
+
readonly TEAM_MULTISIG_AURORA_PLUS: string;
|
|
77
|
+
readonly AURORA_PLUS: string;
|
|
78
|
+
readonly PULP_CONTRACT: string;
|
|
79
|
+
readonly PLY_TOKEN_LOCK: string;
|
|
80
|
+
readonly REFERRAL: string;
|
|
81
|
+
readonly REFERRAL_V2: string;
|
|
82
|
+
readonly AURI_INTERNAL_LENS: string;
|
|
83
|
+
readonly PLYGAME: string;
|
|
84
|
+
};
|
|
85
|
+
readonly tokens: {
|
|
86
|
+
readonly AURORA: string;
|
|
87
|
+
readonly PLY: string;
|
|
88
|
+
readonly stNEAR: string;
|
|
89
|
+
readonly USDC: string;
|
|
90
|
+
readonly WNEAR: string;
|
|
91
|
+
readonly TRI: string;
|
|
92
|
+
readonly META: string;
|
|
93
|
+
readonly PULP: string;
|
|
94
|
+
readonly PLYWNEAR: string;
|
|
95
|
+
readonly USN: string;
|
|
96
|
+
readonly PLY_WNEAR: string;
|
|
97
|
+
readonly WNEAR_TRI: string;
|
|
98
|
+
readonly AURORA_WNEAR: string;
|
|
99
|
+
readonly NEARX: string;
|
|
100
|
+
readonly STADER: string;
|
|
101
|
+
readonly USDC_NATIVE: string;
|
|
102
|
+
readonly USDT_NATIVE: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
export declare const DEPOSIT_ONLY_TOKENS: string[];
|
|
106
|
+
export declare const PRICE_WHITELISTED: Set<string>;
|
|
107
|
+
export declare const REWARD_CLAIM_START = 1651759200;
|
|
108
|
+
export declare const BORROW_LIMIT_BUFFER: BigNumber;
|
|
109
|
+
export declare const ONE_DAY = 86400;
|
|
110
|
+
export declare const ONE_WEEK: number;
|
|
111
|
+
export declare const ONE_YEAR: number;
|
|
112
|
+
export declare const PLYWNEAR_POOL_ID = 0;
|
|
113
|
+
export declare const PLYWNEAR_REWARD_TOKENS: string[];
|
|
114
|
+
export declare const ALL_STAKING_POOLS: number[];
|
|
115
|
+
export declare const INF: BN;
|
|
116
|
+
export declare const AIRDROP_START_TIMESTAMP = 1649858400;
|
|
117
|
+
export declare const AIRDROP_END_TIMESTAMP = 1651068000;
|
|
118
|
+
export declare const AIRDROP_KEEP_THRESHOLD: number;
|
|
119
|
+
export declare const DEPOSIT_NEAR_REWARDS_PER_WEEK: {
|
|
120
|
+
[k: string]: string;
|
|
121
|
+
};
|
|
122
|
+
export declare const BORROW_NEAR_REWARDS_PER_WEEK: {
|
|
123
|
+
[k: string]: string;
|
|
124
|
+
};
|
|
125
|
+
export declare const HARDCODE_PRICE_TOKENS: {
|
|
126
|
+
[k: string]: string;
|
|
127
|
+
};
|
|
128
|
+
export declare const REFERRAL_CAMPAIGNS: {
|
|
129
|
+
[k: string]: {
|
|
130
|
+
start: number;
|
|
131
|
+
end: number;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
export declare const CACHE_TIMEOUT: number;
|
|
135
|
+
export declare const SD_INCENTIVE_IN_SD = 83.35;
|
|
136
|
+
export declare const STADER_ETH: string;
|
|
137
|
+
export declare const USDT_ETH: string;
|
|
138
|
+
export declare const AURIGAMI_SUBGRAPH_URL = "https://api.thegraph.com/subgraphs/name/takao-aurigami/aurigami-feb-27";
|
|
139
|
+
export declare const GRAPHQL_URL = "https://old.explorer.aurora.dev/api/v1/graphql";
|