@aurigami/sdk 0.4.4 → 0.5.2

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.4.4",
2
+ "version": "0.5.2",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -7,7 +7,7 @@ import ComptrollerABI from '@aurigami/contracts/artifacts/contracts/Comptroller.
7
7
  import AuriLensABI from '@aurigami/contracts/artifacts/contracts/AuriLens.sol/AuriLens.json';
8
8
  import { AuErc20, AuETH, AuriLens, Comptroller } from "@aurigami/contracts/typechain";
9
9
  import { TransactionResponse } from '@ethersproject/abstract-provider';
10
- import { networkAddresses, ETHAddress, ONE_YEAR } from "./constants";
10
+ import { networkAddresses, ETHAddress, ONE_YEAR, INF } from "./constants";
11
11
  import BigNumber from "bignumber.js";
12
12
  import { decimalFactor, isSameAddress, calcLMRewardApr } from './helpers';
13
13
  import { Token, PLYToken } from './token';
@@ -187,7 +187,6 @@ export class MoneyMarketRead extends BlockchainEntityRead {
187
187
  totalDeposit.toString()
188
188
  )
189
189
  }
190
-
191
190
 
192
191
  }
193
192
 
@@ -203,13 +202,22 @@ export class MoneyMarketReadWrite extends MoneyMarketRead {
203
202
  return this.auToken.connect(this._networkConnection.signer!).borrow(amount.rawAmount());
204
203
  }
205
204
  public async withdraw(amount: TokenAmount): Promise<TransactionResponse> {
205
+ if (new BigNumber(amount.rawAmount()).lt(0)) {
206
+ return this.auToken.connect(this._networkConnection.signer!).redeemUnderlying(INF);
207
+ }
206
208
  return this.auToken.connect(this._networkConnection.signer!).redeemUnderlying(amount.rawAmount());
207
209
  }
208
210
  public async repay(amount: TokenAmount): Promise<TransactionResponse> {
211
+ var repayAmount: BN;
212
+ if (new BigNumber(amount.rawAmount()).lt(0)) {
213
+ repayAmount = INF;
214
+ } else {
215
+ repayAmount = BN.from(amount.rawAmount());
216
+ }
209
217
  if (isSameAddress(amount.token.address, ETHAddress)) {
210
- return (this.auToken as AuETH).connect(this._networkConnection.signer!).repayBorrow({value: amount.rawAmount()});
218
+ return (this.auToken as AuETH).connect(this._networkConnection.signer!).repayBorrow({value: repayAmount});
211
219
  } else {
212
- return (this.auToken as AuErc20).connect(this._networkConnection.signer!).repayBorrow(amount.rawAmount());
220
+ return (this.auToken as AuErc20).connect(this._networkConnection.signer!).repayBorrow(repayAmount);
213
221
  }
214
222
  }
215
223
  public async enableCollateral(): Promise<TransactionResponse> {
package/src/SDK.ts CHANGED
@@ -24,6 +24,7 @@ import AuriLensABI from '@aurigami/contracts/artifacts/contracts/AuriLens.sol/Au
24
24
  import ComptrollerABI from '@aurigami/contracts/artifacts/contracts/Comptroller.sol/Comptroller.json';
25
25
  import TokenLockABI from "@aurigami/contracts/artifacts/contracts/TokenLock.sol/TokenLock.json";
26
26
  import AuriFairLaunchABI from "@aurigami/contracts/artifacts/contracts/AuriFairLaunch.sol/AuriFairLaunch.json";
27
+ import FaucetABI from "./abis/Faucet.json";
27
28
 
28
29
  export class SdkRead extends BlockchainEntityRead {
29
30
 
@@ -252,6 +253,10 @@ export class SdkReadWrite extends SdkRead {
252
253
  public async unstake(amount: TokenAmount): Promise<TransactionResponse> {
253
254
  return this._auriFairLaunch.connect(this._networkConnection.signer!).withdraw(AurPlyPid, amount.rawAmount());
254
255
  }
256
+ public async faucetDrip(): Promise<TransactionResponse> {
257
+ const faucet = new Contract(networkAddresses.misc.FAUCET, FaucetABI.abi, this._networkConnection.provider);
258
+ return faucet.connect(this._networkConnection.signer!).drip();
259
+ }
255
260
  }
256
261
 
257
262
  export class SDK extends BlockchainEntity {
@@ -0,0 +1,157 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "Faucet",
4
+ "sourceName": "contracts/mock/Faucet.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "components": [
10
+ {
11
+ "internalType": "address",
12
+ "name": "token",
13
+ "type": "address"
14
+ },
15
+ {
16
+ "internalType": "uint256",
17
+ "name": "dripAmount",
18
+ "type": "uint256"
19
+ }
20
+ ],
21
+ "internalType": "struct Faucet.TokenConfig[]",
22
+ "name": "_testTokensConfigs",
23
+ "type": "tuple[]"
24
+ }
25
+ ],
26
+ "stateMutability": "nonpayable",
27
+ "type": "constructor"
28
+ },
29
+ {
30
+ "anonymous": false,
31
+ "inputs": [
32
+ {
33
+ "indexed": true,
34
+ "internalType": "address",
35
+ "name": "previousOwner",
36
+ "type": "address"
37
+ },
38
+ {
39
+ "indexed": true,
40
+ "internalType": "address",
41
+ "name": "newOwner",
42
+ "type": "address"
43
+ }
44
+ ],
45
+ "name": "OwnershipTransferred",
46
+ "type": "event"
47
+ },
48
+ {
49
+ "inputs": [],
50
+ "name": "drip",
51
+ "outputs": [],
52
+ "stateMutability": "nonpayable",
53
+ "type": "function"
54
+ },
55
+ {
56
+ "inputs": [
57
+ {
58
+ "internalType": "address",
59
+ "name": "",
60
+ "type": "address"
61
+ }
62
+ ],
63
+ "name": "dripAmounts",
64
+ "outputs": [
65
+ {
66
+ "internalType": "uint256",
67
+ "name": "",
68
+ "type": "uint256"
69
+ }
70
+ ],
71
+ "stateMutability": "view",
72
+ "type": "function"
73
+ },
74
+ {
75
+ "inputs": [],
76
+ "name": "owner",
77
+ "outputs": [
78
+ {
79
+ "internalType": "address",
80
+ "name": "",
81
+ "type": "address"
82
+ }
83
+ ],
84
+ "stateMutability": "view",
85
+ "type": "function"
86
+ },
87
+ {
88
+ "inputs": [],
89
+ "name": "renounceOwnership",
90
+ "outputs": [],
91
+ "stateMutability": "nonpayable",
92
+ "type": "function"
93
+ },
94
+ {
95
+ "inputs": [
96
+ {
97
+ "internalType": "uint256",
98
+ "name": "",
99
+ "type": "uint256"
100
+ }
101
+ ],
102
+ "name": "testTokens",
103
+ "outputs": [
104
+ {
105
+ "internalType": "address",
106
+ "name": "",
107
+ "type": "address"
108
+ }
109
+ ],
110
+ "stateMutability": "view",
111
+ "type": "function"
112
+ },
113
+ {
114
+ "inputs": [
115
+ {
116
+ "internalType": "address",
117
+ "name": "newOwner",
118
+ "type": "address"
119
+ }
120
+ ],
121
+ "name": "transferOwnership",
122
+ "outputs": [],
123
+ "stateMutability": "nonpayable",
124
+ "type": "function"
125
+ },
126
+ {
127
+ "inputs": [
128
+ {
129
+ "components": [
130
+ {
131
+ "internalType": "address",
132
+ "name": "token",
133
+ "type": "address"
134
+ },
135
+ {
136
+ "internalType": "uint256",
137
+ "name": "dripAmount",
138
+ "type": "uint256"
139
+ }
140
+ ],
141
+ "internalType": "struct Faucet.TokenConfig[]",
142
+ "name": "_testTokensConfigs",
143
+ "type": "tuple[]"
144
+ }
145
+ ],
146
+ "name": "updateTokenConfigs",
147
+ "outputs": [],
148
+ "stateMutability": "nonpayable",
149
+ "type": "function"
150
+ }
151
+ ],
152
+ "bytecode": "0x60806040523480156200001157600080fd5b5060405162000c4038038062000c40833981016040819052620000349162000272565b6200003f33620000f9565b60005b8151811015620000f1576200007d82828151811062000065576200006562000363565b6020026020010151600001516200014960201b60201c565b81818151811062000092576200009262000363565b60200260200101516020015160026000848481518110620000b757620000b762000363565b602090810291909101810151516001600160a01b031682528101919091526040016000205580620000e88162000379565b91505062000042565b5050620003a3565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60005b600154811015620001ac57816001600160a01b03166001828154811062000177576200017762000363565b6000918252602090912001546001600160a01b0316141562000197575050565b80620001a38162000379565b9150506200014c565b506001805480820182556000919091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b0319166001600160a01b0392909216919091179055565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b0381118282101715620002395762000239620001fe565b60405290565b604051601f8201601f191681016001600160401b03811182821017156200026a576200026a620001fe565b604052919050565b600060208083850312156200028657600080fd5b82516001600160401b03808211156200029e57600080fd5b818501915085601f830112620002b357600080fd5b815181811115620002c857620002c8620001fe565b620002d8848260051b016200023f565b818152848101925060069190911b830184019087821115620002f957600080fd5b928401925b81841015620003585760408489031215620003195760008081fd5b6200032362000214565b84516001600160a01b03811681146200033c5760008081fd5b81528486015186820152835260409093019291840191620002fe565b979650505050505050565b634e487b7160e01b600052603260045260246000fd5b60006000198214156200039c57634e487b7160e01b600052601160045260246000fd5b5060010190565b61088d80620003b36000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80639f678cca1161005b5780639f678cca146100c9578063b9293286146100d1578063e980416a146100e4578063f2fde38b1461011257600080fd5b8063715018a614610082578063741f83ef1461008c5780638da5cb5b1461009f575b600080fd5b61008a610125565b005b61008a61009a366004610697565b610190565b6000546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b61008a61028b565b6100ac6100df36600461076b565b6103a2565b6101046100f2366004610784565b60026020526000908152604090205481565b6040519081526020016100c0565b61008a610120366004610784565b6103cc565b6000546001600160a01b031633146101845760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b61018e60006104a7565b565b6000546001600160a01b031633146101ea5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161017b565b60005b81518110156102875761021c82828151811061020b5761020b6107a6565b60200260200101516000015161050f565b81818151811061022e5761022e6107a6565b60200260200101516020015160026000848481518110610250576102506107a6565b602090810291909101810151516001600160a01b03168252810191909152604001600020558061027f816107d5565b9150506101ed565b5050565b60005b60015481101561039f57600181815481106102ab576102ab6107a6565b6000918252602082200154600180546001600160a01b039092169263a9059cbb92339260029291879081106102e2576102e26107a6565b6000918252602080832091909101546001600160a01b039081168452908301939093526040918201902054905160e085901b7fffffffff0000000000000000000000000000000000000000000000000000000016815292909116600483015260248201526044016020604051808303816000875af1158015610368573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061038c9190610835565b5080610397816107d5565b91505061028e565b50565b600181815481106103b257600080fd5b6000918252602090912001546001600160a01b0316905081565b6000546001600160a01b031633146104265760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161017b565b6001600160a01b0381166104a25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161017b565b61039f815b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60005b60015481101561056a57816001600160a01b031660018281548110610539576105396107a6565b6000918252602090912001546001600160a01b03161415610558575050565b80610562816107d5565b915050610512565b506001805480820182556000919091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040805190810167ffffffffffffffff81118282101715610626576106266105d4565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715610673576106736105d4565b604052919050565b80356001600160a01b038116811461069257600080fd5b919050565b600060208083850312156106aa57600080fd5b823567ffffffffffffffff808211156106c257600080fd5b818501915085601f8301126106d657600080fd5b8135818111156106e8576106e86105d4565b6106f6848260051b0161062c565b818152848101925060069190911b83018401908782111561071657600080fd5b928401925b8184101561076057604084890312156107345760008081fd5b61073c610603565b6107458561067b565b8152848601358682015283526040909301929184019161071b565b979650505050505050565b60006020828403121561077d57600080fd5b5035919050565b60006020828403121561079657600080fd5b61079f8261067b565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561082e577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b5060010190565b60006020828403121561084757600080fd5b8151801515811461079f57600080fdfea26469706673582212200b56248e3867f8c6afaf02091fa7b57d47168960cfdfc133122e492377adaa3264736f6c634300080b0033",
153
+ "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061007d5760003560e01c80639f678cca1161005b5780639f678cca146100c9578063b9293286146100d1578063e980416a146100e4578063f2fde38b1461011257600080fd5b8063715018a614610082578063741f83ef1461008c5780638da5cb5b1461009f575b600080fd5b61008a610125565b005b61008a61009a366004610697565b610190565b6000546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b61008a61028b565b6100ac6100df36600461076b565b6103a2565b6101046100f2366004610784565b60026020526000908152604090205481565b6040519081526020016100c0565b61008a610120366004610784565b6103cc565b6000546001600160a01b031633146101845760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b61018e60006104a7565b565b6000546001600160a01b031633146101ea5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161017b565b60005b81518110156102875761021c82828151811061020b5761020b6107a6565b60200260200101516000015161050f565b81818151811061022e5761022e6107a6565b60200260200101516020015160026000848481518110610250576102506107a6565b602090810291909101810151516001600160a01b03168252810191909152604001600020558061027f816107d5565b9150506101ed565b5050565b60005b60015481101561039f57600181815481106102ab576102ab6107a6565b6000918252602082200154600180546001600160a01b039092169263a9059cbb92339260029291879081106102e2576102e26107a6565b6000918252602080832091909101546001600160a01b039081168452908301939093526040918201902054905160e085901b7fffffffff0000000000000000000000000000000000000000000000000000000016815292909116600483015260248201526044016020604051808303816000875af1158015610368573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061038c9190610835565b5080610397816107d5565b91505061028e565b50565b600181815481106103b257600080fd5b6000918252602090912001546001600160a01b0316905081565b6000546001600160a01b031633146104265760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161017b565b6001600160a01b0381166104a25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161017b565b61039f815b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60005b60015481101561056a57816001600160a01b031660018281548110610539576105396107a6565b6000918252602090912001546001600160a01b03161415610558575050565b80610562816107d5565b915050610512565b506001805480820182556000919091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040805190810167ffffffffffffffff81118282101715610626576106266105d4565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715610673576106736105d4565b604052919050565b80356001600160a01b038116811461069257600080fd5b919050565b600060208083850312156106aa57600080fd5b823567ffffffffffffffff808211156106c257600080fd5b818501915085601f8301126106d657600080fd5b8135818111156106e8576106e86105d4565b6106f6848260051b0161062c565b818152848101925060069190911b83018401908782111561071657600080fd5b928401925b8184101561076057604084890312156107345760008081fd5b61073c610603565b6107458561067b565b8152848601358682015283526040909301929184019161071b565b979650505050505050565b60006020828403121561077d57600080fd5b5035919050565b60006020828403121561079657600080fd5b61079f8261067b565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561082e577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b5060010190565b60006020828403121561084757600080fd5b8151801515811461079f57600080fdfea26469706673582212200b56248e3867f8c6afaf02091fa7b57d47168960cfdfc133122e492377adaa3264736f6c634300080b0033",
154
+ "linkReferences": {},
155
+ "deployedLinkReferences": {}
156
+ }
157
+
package/src/constants.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import BigNumber from 'bignumber.js';
2
- import { ethers, Signer} from 'ethers';
2
+ import { ethers, Signer, BigNumber as BN} from 'ethers';
3
3
  export const dummyAddress: string = "0xDEADbeEfEEeEEEeEEEeEEeeeeeEeEEeeeeEEEEeE";
4
4
  export const ETHAddress: string = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
5
5
 
@@ -18,49 +18,50 @@ export type NetworkAddresses = {
18
18
  export const networkAddresses: NetworkAddresses = {
19
19
  auTokens: [
20
20
  {
21
- address: '0x2dEf6eb801757655AD227110d65C80DB595bBc60'.toLowerCase(),
22
- underlying: '0xb12bfca5a55806aaf64e99521918a4bf0fc40802'.toLowerCase()
21
+ address: '0x4d203dF433a0bB355eC1343a90DDCCd658d443Ac'.toLowerCase(),
22
+ underlying: '0xEc43074a522783971ace385007F5d675fC6Cf3ED'.toLowerCase()
23
23
  },
24
24
  {
25
- address: '0x7b47690b04494A628151Dbb86B4cC95CF2629B14'.toLowerCase(),
25
+ address: '0x79B5cE586F0B1519af10C13188535dA2a6231c45'.toLowerCase(),
26
26
  underlying: ETHAddress.toLowerCase()
27
27
  },
28
28
  {
29
- address: '0xFB0e4680B8b1c7B69fb6a3988029c74fea871DD9'.toLowerCase(),
30
- underlying: '0xf4eb217ba2454613b15dbdea6e5f22276410e89e'.toLowerCase()
29
+ address: '0x84f759C1F3A6FD2618f5c049480760A4d4512e9A'.toLowerCase(),
30
+ underlying: '0xfc122c37852Ed59c1e2cdce80e7b4E0f78d298C6'.toLowerCase()
31
31
  },
32
32
  {
33
- address: '0x6bB82009b316A9098C23E3962b4371E879c8D23D'.toLowerCase(),
34
- underlying: '0x4988a896b1227218e4a686fde5eabdcabd91571f'.toLowerCase()
33
+ address: '0xb43214a2Ab31757834F41AA0EEe3fbc74CaEa913'.toLowerCase(),
34
+ underlying: '0x2F2E92Ff6e47aB263c2D60571173640884029396'.toLowerCase()
35
35
  },
36
36
  {
37
- address: '0xBf43057c634868251e65e39b4f27662f644454b4'.toLowerCase(),
38
- underlying: '0xe3520349f477a5f6eb06107066048508498a291b'.toLowerCase()
37
+ address: '0xe82Df480F3d7597dcFEAb5925EfD7C491B35E512'.toLowerCase(),
38
+ underlying: '0xBA76bDb6F393F9097025f5Fad6BF18a6B65768FB'.toLowerCase()
39
39
  },
40
40
  {
41
- address: '0x83Ae17f197C1F1260543d4D5A710772761535066'.toLowerCase(),
42
- underlying: '0x8bec47865ade3b172a928df8f990bc7f2a3b9f79'.toLowerCase()
41
+ address: '0xD448dC302AE36ca2ED5b540aC8C26b7d7478F59A'.toLowerCase(),
42
+ underlying: '0x611d631baAa3F6F904d6F62815283cf9389a11eD'.toLowerCase()
43
43
  },
44
44
  {
45
- address: '0xcC5CA0156317C1FF2A96E0f45659625081352071'.toLowerCase(),
46
- underlying: '0xC42C30aC6Cc15faC9bD938618BcaA1a1FaE8501d'.toLowerCase(),
45
+ address: '0x7DD3ec297D0580D4894C73AE78748AF7Dee962e2'.toLowerCase(),
46
+ underlying: '0x54c79F4B3D0B98c72574Ba3475C30f9900C52C2d'.toLowerCase()
47
47
  },
48
48
  {
49
- address: '0x173Bf18675D52B4887C5d40E935C3ab1192aFb4C'.toLowerCase(),
50
- underlying: '0xb9b8d9e5557381BF025f1A59B602ad3F19A4e4Be'.toLowerCase()
49
+ address: '0xb00f53F708235Ba28664D56AF6be1a8254060cB9'.toLowerCase(),
50
+ underlying: '0xd3F181B767cbb4e399ABbf4c2d42AEF19E177D30'.toLowerCase()
51
51
  }
52
52
  ],
53
53
  misc: {
54
- COMPTROLLER: "0x3b416D37A85F7aD941e36258d4Da660A1898E181".toLowerCase(),
55
- oracle: "0x08A74ca75BAE803e92752f8d7A5cD718b1cA6509".toLowerCase(),
56
- AURIFAIRLAUNCH: "0xeed0433Cbc81F25061bb739Ff8f1D5736b16d038".toLowerCase(),
57
- AURILENS: '0xb11820C3d8ae1f6C31047644C59190280651C9da'.toLowerCase(),
58
- TOKENLOCK: '0x537754515509A83Ce2D076c0982292AC5289b408'.toLowerCase()
54
+ COMPTROLLER: "0x444e4662BdEcF02590AF47389dc4B76DbD5B020e".toLowerCase(),
55
+ oracle: "0x4FEF75Fdb00Dcc9c25D53ba76B2778A34a8f483B".toLowerCase(),
56
+ AURIFAIRLAUNCH: "0x9752aFD6ddb1edb3886537fa1DcD4392607Cbce0".toLowerCase(),
57
+ AURILENS: '0x4C3f48202DecAbCb10Fac5DB049a80722acbfc65'.toLowerCase(),
58
+ TOKENLOCK: '0x8726961E1d6Ddee44B70e34979159400e759A08D'.toLowerCase(),
59
+ FAUCET: '0x34528465D80EbA8c21E827Ba3f6D73Fa247c1AcF'.toLowerCase()
59
60
  },
60
61
  tokens: {
61
- AURORA: "0x8bec47865ade3b172a928df8f990bc7f2a3b9f79".toLowerCase(),
62
- PLY: "0xb9b8d9e5557381BF025f1A59B602ad3F19A4e4Be".toLowerCase(),
63
- AURPLY: "0x822E871518C22E8570cFbEa43FddbBFF963d4bdE".toLowerCase()
62
+ AURORA: "0xd3F181B767cbb4e399ABbf4c2d42AEF19E177D30".toLowerCase(),
63
+ PLY: "0x611d631baAa3F6F904d6F62815283cf9389a11eD".toLowerCase(),
64
+ AURPLY: dummyAddress.toLowerCase() // This is dummy
64
65
  }
65
66
  }
66
67
 
@@ -73,4 +74,6 @@ export const ONE_DAY = 86400;
73
74
  export const ONE_YEAR = ONE_DAY * 365;
74
75
 
75
76
  export const AurPlyPid = 0;
77
+ export const INF = BN.from(2).pow(256).sub(1)
78
+
76
79
 
package/src/decimals.ts CHANGED
@@ -1,19 +1,18 @@
1
1
  export const decimalRecords: Record<string, number> = {
2
- '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee': 18,
3
- '0xb9b8d9e5557381bf025f1a59b602ad3f19a4e4be': 18,
4
- '0x83ae17f197c1f1260543d4d5a710772761535066': 8,
5
- '0xf4eb217ba2454613b15dbdea6e5f22276410e89e': 8,
6
- '0x4988a896b1227218e4a686fde5eabdcabd91571f': 6,
7
- '0xfb0e4680b8b1c7b69fb6a3988029c74fea871dd9': 8,
8
- '0xb12bfca5a55806aaf64e99521918a4bf0fc40802': 6,
9
- '0xbf43057c634868251e65e39b4f27662f644454b4': 8,
10
- '0xc42c30ac6cc15fac9bd938618bcaa1a1fae8501d': 24,
11
- '0x7b47690b04494a628151dbb86b4cc95cf2629b14': 8,
12
- '0x822e871518c22e8570cfbea43fddbbff963d4bde': 18,
13
- '0x2def6eb801757655ad227110d65c80db595bbc60': 8,
14
- '0x6bb82009b316a9098c23e3962b4371e879c8d23d': 8,
15
- '0x8bec47865ade3b172a928df8f990bc7f2a3b9f79': 18,
16
- '0xcc5ca0156317c1ff2a96e0f45659625081352071': 8,
17
- '0xe3520349f477a5f6eb06107066048508498a291b': 18,
18
- '0x173bf18675d52b4887c5d40e935c3ab1192afb4c': 8
2
+ '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee': 18,
3
+ '0xb00f53f708235ba28664d56af6be1a8254060cb9': 8,
4
+ '0x611d631baaa3f6f904d6f62815283cf9389a11ed': 18,
5
+ '0xd3f181b767cbb4e399abbf4c2d42aef19e177d30': 18,
6
+ '0x79b5ce586f0b1519af10c13188535da2a6231c45': 8,
7
+ '0xd448dc302ae36ca2ed5b540ac8c26b7d7478f59a': 8,
8
+ '0xb43214a2ab31757834f41aa0eee3fbc74caea913': 8,
9
+ '0xec43074a522783971ace385007f5d675fc6cf3ed': 18,
10
+ '0x2f2e92ff6e47ab263c2d60571173640884029396': 18,
11
+ '0xfc122c37852ed59c1e2cdce80e7b4e0f78d298c6': 18,
12
+ '0x54c79f4b3d0b98c72574ba3475c30f9900c52c2d': 18,
13
+ '0x4d203df433a0bb355ec1343a90ddccd658d443ac': 8,
14
+ '0x84f759c1f3a6fd2618f5c049480760a4d4512e9a': 8,
15
+ '0xba76bdb6f393f9097025f5fad6bf18a6b65768fb': 18,
16
+ '0x7dd3ec297d0580d4894c73ae78748af7dee962e2': 8,
17
+ '0xe82df480f3d7597dcfeab5925efd7c491b35e512': 8
19
18
  }