@aurigami/sdk 0.1.5 → 0.1.6
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/MoneyMarket.d.ts +7 -7
- package/dist/SDK.d.ts +5 -6
- package/dist/constants.d.ts +1 -1
- package/dist/dummy.d.ts +5 -6
- package/dist/helpers.d.ts +0 -2
- package/dist/sdk.cjs.development.js +80 -1631
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +81 -1630
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +4 -2
- package/src/MoneyMarket.ts +14 -11
- package/src/SDK.ts +37 -38
- package/src/constants.ts +7 -4
- package/src/dummy.ts +44 -30
- package/src/helpers.ts +0 -15
- package/dist/token.d.ts +0 -6
- package/dist/tokenAmount.d.ts +0 -8
- package/src/abis/IERC20.json +0 -1259
- package/src/abis/auToken.json +0 -1536
- package/src/token.ts +0 -11
- package/src/tokenAmount.ts +0 -29
package/src/helpers.ts
CHANGED
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
import { BigNumber as BN, utils } from "ethers";
|
|
2
1
|
export function formatObject(object: Object) {
|
|
3
2
|
return JSON.stringify(object, null, ' ');
|
|
4
3
|
}
|
|
5
|
-
|
|
6
|
-
export const decimalFactor = (decimal: number): string => {
|
|
7
|
-
return BN.from(10)
|
|
8
|
-
.pow(decimal)
|
|
9
|
-
.toString();
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export function validateAndParseAddress(address: string): string {
|
|
13
|
-
try {
|
|
14
|
-
return utils.getAddress(address);
|
|
15
|
-
} catch (error) {
|
|
16
|
-
throw new Error("Invalid address " + address);
|
|
17
|
-
}
|
|
18
|
-
}
|
package/dist/token.d.ts
DELETED
package/dist/tokenAmount.d.ts
DELETED