@aurigami/sdk 1.6.8 → 1.6.9

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 CHANGED
@@ -37,6 +37,7 @@ export declare class SdkRead extends BlockchainEntityRead {
37
37
  */
38
38
  getPlyCirculatingSupply(): Promise<TokenAmount>;
39
39
  getUltilizations(userAddr: types.Address): Promise<BigNumber>;
40
+ sneakAccounts(accounts: string[], tokenAddresses: string[]): Promise<types.AccountAuTokenInfo[][]>;
40
41
  }
41
42
  export declare class SdkReadWrite extends SdkRead {
42
43
  /**
@@ -4,12 +4,13 @@ import AuriAirdropABI from '@aurigami/contracts/artifacts/contracts/AuriAirdrop.
4
4
  import AuriFairLaunchABI from '@aurigami/contracts/artifacts/contracts/AuriFairLaunch.sol/AuriFairLaunch.json';
5
5
  import AuriLensABI from '@aurigami/contracts/artifacts/contracts/AuriLens.sol/AuriLens.json';
6
6
  import AuriOracleABI from '@aurigami/contracts/artifacts/contracts/AuriOracle.sol/AuriOracle.json';
7
+ import AuTokenABI from '@aurigami/contracts/artifacts/contracts/AuToken.sol/AuToken.json';
7
8
  import ComptrollerABI from '@aurigami/contracts/artifacts/contracts/Comptroller.sol/Comptroller.json';
8
9
  import EthRepayHelperABI from '@aurigami/contracts/artifacts/contracts/EthRepayHelper.sol/EthRepayHelper.json';
9
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';
10
12
  import IUniswapV2PairABI from '@aurigami/contracts/artifacts/contracts/mock/IUniswapV2Pair.sol/IUniswapV2Pair.json';
11
13
  import Multicall2ABI from '@aurigami/contracts/artifacts/contracts/mock/Multicall2.sol/Multicall2.json';
12
- import UltilizationHelperABI from '@aurigami/contracts/artifacts/contracts/mock/UltilizationHelper.sol/UltilizationHelper.json';
13
14
  import PulpABI from '@aurigami/contracts/artifacts/contracts/PULP.sol/PULP.json';
14
15
  import ReferralDirectoryABI from '@aurigami/contracts/artifacts/contracts/ReferralDirectory.sol/ReferralDirectory.json';
15
- export { AuriOracleABI, IUniswapV2PairABI, AuriAirdropABI, AuriFairLaunchABI, AuriLensABI, ComptrollerABI, EIP20InterfaceABI, ReferralDirectoryABI, AuErc20ABI, AuETHABI, EthRepayHelperABI, Multicall2ABI, PulpABI, UltilizationHelperABI };
16
+ export { AuriOracleABI, AuTokenABI, IUniswapV2PairABI, AuriAirdropABI, AuriFairLaunchABI, AuriLensABI, ComptrollerABI, EIP20InterfaceABI, ReferralDirectoryABI, AuErc20ABI, AuETHABI, EthRepayHelperABI, Multicall2ABI, PulpABI, AuriInternalLensABI, };
@@ -1,4 +1,5 @@
1
1
  export * from './constants';
2
2
  export * from './decimals';
3
- export * from './dummy';
4
3
  export * from './deployments';
4
+ export * from './dummy';
5
+ export * from './symbols';
@@ -0,0 +1 @@
1
+ export declare const symbolRecords: Record<string, string>;
@@ -1,3 +1,4 @@
1
+ import BigNumber from 'bignumber.js';
1
2
  import { AuriEnv, BlockchainEntityRead, Token, TokenAmount } from '../entities';
2
3
  import * as types from '../types';
3
4
  import { StakingRead } from './Staking';
@@ -23,4 +24,6 @@ export declare class MiscRead extends BlockchainEntityRead {
23
24
  * - Ply in vesting contract
24
25
  */
25
26
  getPlyCirculatingSupply(): Promise<TokenAmount>;
27
+ getUltilizations(userAddr: types.Address): Promise<BigNumber>;
28
+ sneakAccounts(accounts: string[], tokenAddresses: string[]): Promise<types.AccountAuTokenInfo[][]>;
26
29
  }
@@ -1,4 +1,4 @@
1
- import { AuriFairLaunch, AuriLens, Comptroller, IERC20, PULP } from '@aurigami/contracts/typechain';
1
+ import { AuriFairLaunch, AuriInternalLens, AuriLens, Comptroller, IERC20, PULP } from '@aurigami/contracts/typechain';
2
2
  import { Contract } from 'ethers';
3
3
  import { NetworkConnection } from '../types';
4
4
  import { BlockchainEntityRead } from './BlockchainEntity';
@@ -8,6 +8,7 @@ export declare class AuriEnv extends BlockchainEntityRead {
8
8
  auriLens: AuriLens;
9
9
  ply: IERC20;
10
10
  pulp: PULP;
11
+ auriInternalLens: AuriInternalLens;
11
12
  getContract<CType extends Contract>(address: string, abi: any): CType;
12
13
  constructor(networkConnection: NetworkConnection);
13
14
  }
@@ -8,6 +8,7 @@ export declare const isSameAddress: (address1: Address, address2: Address) => bo
8
8
  export declare const getCurrentTimestamp: () => number;
9
9
  export declare function validateAndParseAddress(address: Address): Address;
10
10
  export declare function getDecimal(address: Address): number;
11
+ export declare function getSymbol(address: Address): string;
11
12
  export declare function calcLMRewardApr(rewardsValue: BigNumber, totalStakeValue: BigNumber, frequencyPerYear: number): BigNumber;
12
13
  export declare function getBlockTimestamp(provider: Provider, blockNumber: number): Promise<number>;
13
14
  /**
@@ -15,17 +15,17 @@ var AuriAirdropABI = _interopDefault(require('@aurigami/contracts/artifacts/cont
15
15
  var abis$2 = _interopDefault(require('@aurigami/contracts/artifacts/contracts/AuriFairLaunch.sol/AuriFairLaunch.json'));
16
16
  var abis$3 = _interopDefault(require('@aurigami/contracts/artifacts/contracts/AuriLens.sol/AuriLens.json'));
17
17
  var AuriOracleABI = _interopDefault(require('@aurigami/contracts/artifacts/contracts/AuriOracle.sol/AuriOracle.json'));
18
+ var AuTokenABI = _interopDefault(require('@aurigami/contracts/artifacts/contracts/AuToken.sol/AuToken.json'));
18
19
  var abis$4 = _interopDefault(require('@aurigami/contracts/artifacts/contracts/Comptroller.sol/Comptroller.json'));
19
20
  var abis$5 = _interopDefault(require('@aurigami/contracts/artifacts/contracts/EthRepayHelper.sol/EthRepayHelper.json'));
20
21
  var abis$6 = _interopDefault(require('@aurigami/contracts/artifacts/contracts/interfaces/EIP20Interface.sol/EIP20Interface.json'));
22
+ var abis$7 = _interopDefault(require('@aurigami/contracts/artifacts/contracts/mock/AuriInternalLens.sol/AuriInternalLens.json'));
21
23
  var IUniswapV2PairABI = _interopDefault(require('@aurigami/contracts/artifacts/contracts/mock/IUniswapV2Pair.sol/IUniswapV2Pair.json'));
22
- var abis$7 = _interopDefault(require('@aurigami/contracts/artifacts/contracts/mock/Multicall2.sol/Multicall2.json'));
23
- var abis$8 = _interopDefault(require('@aurigami/contracts/artifacts/contracts/mock/UltilizationHelper.sol/UltilizationHelper.json'));
24
+ var abis$8 = _interopDefault(require('@aurigami/contracts/artifacts/contracts/mock/Multicall2.sol/Multicall2.json'));
24
25
  var abis$9 = _interopDefault(require('@aurigami/contracts/artifacts/contracts/PULP.sol/PULP.json'));
25
26
  var abis$a = _interopDefault(require('@aurigami/contracts/artifacts/contracts/ReferralDirectory.sol/ReferralDirectory.json'));
26
27
  var abstractSigner = require('@ethersproject/abstract-signer');
27
28
  var axios = _interopDefault(require('axios'));
28
- var AuTokenABI = _interopDefault(require('@aurigami/contracts/artifacts/contracts/AuToken.sol/AuToken.json'));
29
29
 
30
30
  var dummyAddress = '0xDEADbeEfEEeEEEeEEEeEEeeeeeEeEEeeeeEEEEeE';
31
31
  var ETHAddress = '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE';
@@ -88,7 +88,7 @@ var networkAddresses = {
88
88
  TEAM_MULTISIG: /*#__PURE__*/'0x2D05FfFE70CE64c5954710D4C308dB31C8dBd8dE'.toLowerCase(),
89
89
  PLY_TOKEN_LOCK: /*#__PURE__*/MAINNET_ADDRESSES.plyTokenLock.toLowerCase(),
90
90
  REFERRAL: /*#__PURE__*/MAINNET_ADDRESSES.referralDirectory.toLowerCase(),
91
- ULTILIZATION_HELPER: /*#__PURE__*/MAINNET_ADDRESSES.ultilizationHelper.toLowerCase()
91
+ AURI_INTERNAL_LENS: /*#__PURE__*/MAINNET_ADDRESSES.auriInternalLens.toLowerCase()
92
92
  },
93
93
  tokens: {
94
94
  AURORA: /*#__PURE__*/'0x8bec47865ade3b172a928df8f990bc7f2a3b9f79'.toLowerCase(),
@@ -318,6 +318,7 @@ var AuriEnv = /*#__PURE__*/function (_BlockchainEntityRead) {
318
318
  _this.ply = _this.getContract(networkAddresses.tokens.PLY, abis$6.abi);
319
319
  _this.pulp = _this.getContract(networkAddresses.tokens.PULP, abis$9.abi); // this.faucet = this.getContract<Faucet>(networkAddresses.misc.FAUCET, abis.FaucetABI.abi);
320
320
 
321
+ _this.auriInternalLens = _this.getContract(networkAddresses.misc.AURI_INTERNAL_LENS, abis$7.abi);
321
322
  return _this;
322
323
  } // public faucet: Faucet;
323
324
 
@@ -1091,6 +1092,10 @@ try {
1091
1092
  }
1092
1093
  });
1093
1094
 
1095
+ var symbolRecords = /*#__PURE__*/Object.fromEntries( /*#__PURE__*/networkAddresses.auTokens.map(function (e) {
1096
+ return [e.address.toLowerCase(), e.name];
1097
+ }));
1098
+
1094
1099
  var AURORA_API_BASE_URL = 'https://api.aurorascan.dev/api';
1095
1100
  function getQuery(_x, _x2, _x3) {
1096
1101
  return _getQuery.apply(this, arguments);
@@ -1166,6 +1171,11 @@ function getDecimal(address) {
1166
1171
  assert(decimalRecords[addressLowercase] != undefined, 'Decimal not found for ' + address);
1167
1172
  return decimalRecords[addressLowercase];
1168
1173
  }
1174
+ function getSymbol(address) {
1175
+ var addressLowercase = address.toLowerCase();
1176
+ assert(symbolRecords[addressLowercase] != undefined, 'Symbol not found for ' + address);
1177
+ return symbolRecords[addressLowercase];
1178
+ }
1169
1179
  function calcLMRewardApr(rewardsValue, totalStakeValue, frequencyPerYear) {
1170
1180
  if (rewardsValue.isZero()) {
1171
1181
  return new BigNumber(0);
@@ -2036,6 +2046,7 @@ var helpers = {
2036
2046
  getCurrentTimestamp: getCurrentTimestamp,
2037
2047
  validateAndParseAddress: validateAndParseAddress,
2038
2048
  getDecimal: getDecimal,
2049
+ getSymbol: getSymbol,
2039
2050
  calcLMRewardApr: calcLMRewardApr,
2040
2051
  getBlockTimestamp: getBlockTimestamp,
2041
2052
  getBlockBeforeTimestamp: getBlockBeforeTimestamp,
@@ -2910,7 +2921,7 @@ var MulticallRead = /*#__PURE__*/function (_BlockchainEntityRead) {
2910
2921
  var _this;
2911
2922
 
2912
2923
  _this = _BlockchainEntityRead.call(this, networkConnection) || this;
2913
- _this.multicall = new ethers.Contract(networkAddresses.misc.MULTICALL, abis$7.abi, networkConnection.provider);
2924
+ _this.multicall = new ethers.Contract(networkAddresses.misc.MULTICALL, abis$8.abi, networkConnection.provider);
2914
2925
  return _this;
2915
2926
  }
2916
2927
  /**
@@ -3930,6 +3941,136 @@ var MiscRead = /*#__PURE__*/function (_BlockchainEntityRead) {
3930
3941
  return getPlyCirculatingSupply;
3931
3942
  }();
3932
3943
 
3944
+ _proto.getUltilizations = /*#__PURE__*/function () {
3945
+ var _getUltilizations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(userAddr) {
3946
+ var accountDetail, sumBorrow, sumCol;
3947
+ return runtime_1.wrap(function _callee4$(_context4) {
3948
+ while (1) {
3949
+ switch (_context4.prev = _context4.next) {
3950
+ case 0:
3951
+ _context4.next = 2;
3952
+ return this.env.auriInternalLens.getAccountLiquidity(userAddr);
3953
+
3954
+ case 2:
3955
+ accountDetail = _context4.sent;
3956
+ sumBorrow = new BigNumber(accountDetail.sumBorrowPlusEffects.toString());
3957
+ sumCol = new BigNumber(accountDetail.sumCollateral.toString());
3958
+ return _context4.abrupt("return", sumBorrow.dividedBy(sumCol));
3959
+
3960
+ case 6:
3961
+ case "end":
3962
+ return _context4.stop();
3963
+ }
3964
+ }
3965
+ }, _callee4, this);
3966
+ }));
3967
+
3968
+ function getUltilizations(_x3) {
3969
+ return _getUltilizations.apply(this, arguments);
3970
+ }
3971
+
3972
+ return getUltilizations;
3973
+ }();
3974
+
3975
+ _proto.sneakAccounts = /*#__PURE__*/function () {
3976
+ var _sneakAccounts = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee5(accounts, tokenAddresses) {
3977
+ var _this3 = this;
3978
+
3979
+ var _1E18, _1E9, oracle, tokens, prices, exrate, res, _iterator2, _step2, addr, infos, _i, snapshot, bal, bor, balR, borR;
3980
+
3981
+ return runtime_1.wrap(function _callee5$(_context5) {
3982
+ while (1) {
3983
+ switch (_context5.prev = _context5.next) {
3984
+ case 0:
3985
+ _1E18 = ethers.BigNumber.from(10).pow(18);
3986
+ _1E9 = ethers.BigNumber.from(10).pow(9);
3987
+ oracle = this.env.getContract(networkAddresses.misc.oracle, AuriOracleABI.abi);
3988
+ tokens = tokenAddresses.map(function (addr) {
3989
+ return _this3.env.getContract(addr, AuTokenABI.abi);
3990
+ });
3991
+ _context5.next = 6;
3992
+ return oracle.getUnderlyingPrices(tokenAddresses);
3993
+
3994
+ case 6:
3995
+ prices = _context5.sent;
3996
+ _context5.next = 9;
3997
+ return this.env.auriInternalLens.callStatic.getExchangeRates(tokenAddresses);
3998
+
3999
+ case 9:
4000
+ exrate = _context5.sent;
4001
+ res = [];
4002
+ _iterator2 = _createForOfIteratorHelperLoose(accounts);
4003
+
4004
+ case 12:
4005
+ if ((_step2 = _iterator2()).done) {
4006
+ _context5.next = 33;
4007
+ break;
4008
+ }
4009
+
4010
+ addr = _step2.value;
4011
+ infos = [];
4012
+ _i = 0;
4013
+
4014
+ case 16:
4015
+ if (!(_i < tokens.length)) {
4016
+ _context5.next = 30;
4017
+ break;
4018
+ }
4019
+
4020
+ _context5.next = 19;
4021
+ return tokens[_i].getAccountSnapshot(addr);
4022
+
4023
+ case 19:
4024
+ snapshot = _context5.sent;
4025
+ bal = snapshot[0].mul(exrate[_i]).div(_1E18).mul(prices[_i]).div(_1E18);
4026
+ bor = snapshot[1].mul(prices[_i]).div(_1E18);
4027
+ balR = bal.div(_1E9).toNumber() / Math.pow(10, 9);
4028
+ borR = bor.div(_1E9).toNumber() / Math.pow(10, 9);
4029
+
4030
+ if (!(balR < 0.1 || borR < 0.1)) {
4031
+ _context5.next = 26;
4032
+ break;
4033
+ }
4034
+
4035
+ return _context5.abrupt("continue", 27);
4036
+
4037
+ case 26:
4038
+ infos.push({
4039
+ token: getSymbol(tokenAddresses[_i]),
4040
+ deposit: balR,
4041
+ borrow: borR
4042
+ });
4043
+
4044
+ case 27:
4045
+ ++_i;
4046
+ _context5.next = 16;
4047
+ break;
4048
+
4049
+ case 30:
4050
+ res.push(infos);
4051
+
4052
+ case 31:
4053
+ _context5.next = 12;
4054
+ break;
4055
+
4056
+ case 33:
4057
+ return _context5.abrupt("return", res);
4058
+
4059
+ case 34:
4060
+ case "end":
4061
+ return _context5.stop();
4062
+ }
4063
+ }
4064
+ }, _callee5, this);
4065
+ }));
4066
+
4067
+ function sneakAccounts(_x4, _x5) {
4068
+ return _sneakAccounts.apply(this, arguments);
4069
+ }
4070
+
4071
+ return sneakAccounts;
4072
+ }();
4073
+
3933
4074
  return MiscRead;
3934
4075
  }(BlockchainEntityRead);
3935
4076
 
@@ -4379,22 +4520,13 @@ var SdkRead = /*#__PURE__*/function (_BlockchainEntityRead) {
4379
4520
 
4380
4521
  _proto.getUltilizations = /*#__PURE__*/function () {
4381
4522
  var _getUltilizations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8(userAddr) {
4382
- var helper, accountDetail, sumBorrow, sumCol;
4383
4523
  return runtime_1.wrap(function _callee8$(_context8) {
4384
4524
  while (1) {
4385
4525
  switch (_context8.prev = _context8.next) {
4386
4526
  case 0:
4387
- helper = new ethers.Contract(networkAddresses.misc.ULTILIZATION_HELPER, abis$8.abi, this._networkConnection.provider);
4388
- _context8.next = 3;
4389
- return helper.getAccountLiquidity(userAddr);
4527
+ return _context8.abrupt("return", this._misc.getUltilizations(userAddr));
4390
4528
 
4391
- case 3:
4392
- accountDetail = _context8.sent;
4393
- sumBorrow = new BigNumber(accountDetail.sumBorrowPlusEffects.toString());
4394
- sumCol = new BigNumber(accountDetail.sumCollateral.toString());
4395
- return _context8.abrupt("return", sumBorrow.dividedBy(sumCol));
4396
-
4397
- case 7:
4529
+ case 1:
4398
4530
  case "end":
4399
4531
  return _context8.stop();
4400
4532
  }
@@ -4409,6 +4541,29 @@ var SdkRead = /*#__PURE__*/function (_BlockchainEntityRead) {
4409
4541
  return getUltilizations;
4410
4542
  }();
4411
4543
 
4544
+ _proto.sneakAccounts = /*#__PURE__*/function () {
4545
+ var _sneakAccounts = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee9(accounts, tokenAddresses) {
4546
+ return runtime_1.wrap(function _callee9$(_context9) {
4547
+ while (1) {
4548
+ switch (_context9.prev = _context9.next) {
4549
+ case 0:
4550
+ return _context9.abrupt("return", this._misc.sneakAccounts(accounts, tokenAddresses));
4551
+
4552
+ case 1:
4553
+ case "end":
4554
+ return _context9.stop();
4555
+ }
4556
+ }
4557
+ }, _callee9, this);
4558
+ }));
4559
+
4560
+ function sneakAccounts(_x7, _x8) {
4561
+ return _sneakAccounts.apply(this, arguments);
4562
+ }
4563
+
4564
+ return sneakAccounts;
4565
+ }();
4566
+
4412
4567
  return SdkRead;
4413
4568
  }(BlockchainEntityRead);
4414
4569
  var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
@@ -4426,25 +4581,25 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
4426
4581
  _proto2.claim =
4427
4582
  /*#__PURE__*/
4428
4583
  function () {
4429
- var _claim = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee9() {
4430
- return runtime_1.wrap(function _callee9$(_context9) {
4584
+ var _claim = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee10() {
4585
+ return runtime_1.wrap(function _callee10$(_context10) {
4431
4586
  while (1) {
4432
- switch (_context9.prev = _context9.next) {
4587
+ switch (_context10.prev = _context10.next) {
4433
4588
  case 0:
4434
- _context9.t0 = this.env.comptroller.connect(this._networkConnection.signer);
4435
- _context9.next = 3;
4589
+ _context10.t0 = this.env.comptroller.connect(this._networkConnection.signer);
4590
+ _context10.next = 3;
4436
4591
  return this._networkConnection.signer.getAddress();
4437
4592
 
4438
4593
  case 3:
4439
- _context9.t1 = _context9.sent;
4440
- return _context9.abrupt("return", _context9.t0['claimReward(uint8,address)'].call(_context9.t0, 0, _context9.t1));
4594
+ _context10.t1 = _context10.sent;
4595
+ return _context10.abrupt("return", _context10.t0['claimReward(uint8,address)'].call(_context10.t0, 0, _context10.t1));
4441
4596
 
4442
4597
  case 5:
4443
4598
  case "end":
4444
- return _context9.stop();
4599
+ return _context10.stop();
4445
4600
  }
4446
4601
  }
4447
- }, _callee9, this);
4602
+ }, _callee10, this);
4448
4603
  }));
4449
4604
 
4450
4605
  function claim() {
@@ -4455,26 +4610,26 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
4455
4610
  }();
4456
4611
 
4457
4612
  _proto2.claimLpRewards = /*#__PURE__*/function () {
4458
- var _claimLpRewards = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee10() {
4459
- return runtime_1.wrap(function _callee10$(_context10) {
4613
+ var _claimLpRewards = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee11() {
4614
+ return runtime_1.wrap(function _callee11$(_context11) {
4460
4615
  while (1) {
4461
- switch (_context10.prev = _context10.next) {
4616
+ switch (_context11.prev = _context11.next) {
4462
4617
  case 0:
4463
- _context10.t0 = this.env.auriFairLaunch.connect(this._networkConnection.signer);
4464
- _context10.next = 3;
4618
+ _context11.t0 = this.env.auriFairLaunch.connect(this._networkConnection.signer);
4619
+ _context11.next = 3;
4465
4620
  return this._networkConnection.signer.getAddress();
4466
4621
 
4467
4622
  case 3:
4468
- _context10.t1 = _context10.sent;
4469
- _context10.t2 = INF;
4470
- return _context10.abrupt("return", _context10.t0.harvest.call(_context10.t0, _context10.t1, 0, _context10.t2));
4623
+ _context11.t1 = _context11.sent;
4624
+ _context11.t2 = INF;
4625
+ return _context11.abrupt("return", _context11.t0.harvest.call(_context11.t0, _context11.t1, 0, _context11.t2));
4471
4626
 
4472
4627
  case 6:
4473
4628
  case "end":
4474
- return _context10.stop();
4629
+ return _context11.stop();
4475
4630
  }
4476
4631
  }
4477
- }, _callee10, this);
4632
+ }, _callee11, this);
4478
4633
  }));
4479
4634
 
4480
4635
  function claimLpRewards() {
@@ -4485,22 +4640,22 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
4485
4640
  }();
4486
4641
 
4487
4642
  _proto2.stake = /*#__PURE__*/function () {
4488
- var _stake = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee11(amount) {
4489
- return runtime_1.wrap(function _callee11$(_context11) {
4643
+ var _stake = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee12(amount) {
4644
+ return runtime_1.wrap(function _callee12$(_context12) {
4490
4645
  while (1) {
4491
- switch (_context11.prev = _context11.next) {
4646
+ switch (_context12.prev = _context12.next) {
4492
4647
  case 0:
4493
- return _context11.abrupt("return", new StakingReadWrite(this._networkConnection).stake(amount));
4648
+ return _context12.abrupt("return", new StakingReadWrite(this._networkConnection).stake(amount));
4494
4649
 
4495
4650
  case 1:
4496
4651
  case "end":
4497
- return _context11.stop();
4652
+ return _context12.stop();
4498
4653
  }
4499
4654
  }
4500
- }, _callee11, this);
4655
+ }, _callee12, this);
4501
4656
  }));
4502
4657
 
4503
- function stake(_x7) {
4658
+ function stake(_x9) {
4504
4659
  return _stake.apply(this, arguments);
4505
4660
  }
4506
4661
 
@@ -4508,22 +4663,22 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
4508
4663
  }();
4509
4664
 
4510
4665
  _proto2.unstake = /*#__PURE__*/function () {
4511
- var _unstake = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee12(amount) {
4512
- return runtime_1.wrap(function _callee12$(_context12) {
4666
+ var _unstake = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee13(amount) {
4667
+ return runtime_1.wrap(function _callee13$(_context13) {
4513
4668
  while (1) {
4514
- switch (_context12.prev = _context12.next) {
4669
+ switch (_context13.prev = _context13.next) {
4515
4670
  case 0:
4516
- return _context12.abrupt("return", new StakingReadWrite(this._networkConnection).unstake(amount));
4671
+ return _context13.abrupt("return", new StakingReadWrite(this._networkConnection).unstake(amount));
4517
4672
 
4518
4673
  case 1:
4519
4674
  case "end":
4520
- return _context12.stop();
4675
+ return _context13.stop();
4521
4676
  }
4522
4677
  }
4523
- }, _callee12, this);
4678
+ }, _callee13, this);
4524
4679
  }));
4525
4680
 
4526
- function unstake(_x8) {
4681
+ function unstake(_x10) {
4527
4682
  return _unstake.apply(this, arguments);
4528
4683
  }
4529
4684
 
@@ -4640,8 +4795,10 @@ exports.getBlockTimestamp = getBlockTimestamp;
4640
4795
  exports.getCurrentTimestamp = getCurrentTimestamp;
4641
4796
  exports.getDecimal = getDecimal;
4642
4797
  exports.getQuery = getQuery;
4798
+ exports.getSymbol = getSymbol;
4643
4799
  exports.isSameAddress = isSameAddress;
4644
4800
  exports.networkAddresses = networkAddresses;
4801
+ exports.symbolRecords = symbolRecords;
4645
4802
  exports.validateAndParseAddress = validateAndParseAddress;
4646
4803
  exports.valuateToken = valuateToken;
4647
4804
  //# sourceMappingURL=sdk.cjs.development.js.map