Skip to content

Commit d89903d

Browse files
authored
Merge pull request #9 from stabilitydao/dev
ALM factories
2 parents 1ca9ccb + 16db3f6 commit d89903d

File tree

5 files changed

+33
-2
lines changed

5 files changed

+33
-2
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ import type {ApiMainReply, ApiAggSwapData} from '@stabilitydao/stability'
6666

6767
The Graph API query URLs for supported networks.
6868

69+
### Addresses
70+
71+
Third-party addresses.
72+
73+
```typescript
74+
import {almFactories} from '@stabilitydao/stability'
75+
```
76+
6977
## Develop
7078

7179
```shell

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stabilitydao/stability",
3-
"version": "0.7.0",
3+
"version": "0.7.1",
44
"description": "Stability Integration Library",
55
"main": "out/index.js",
66
"types": "out/index.d.ts",

src/addresses.ts

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
export const almFactories: {
2+
[chainId:string]: {
3+
[almId:string]: {
4+
[dexId:string]: `0x${string}`,
5+
},
6+
},
7+
} = {
8+
"137": {
9+
ichi: {
10+
retro: "0xb2f44D8545315cDd0bAaB4AC7233218b932a5dA7",
11+
quickswapV3: "0x11700544C577Cb543a498B27B4F0f7018BDb6E8a",
12+
},
13+
defiEdge: {
14+
quickswapV3: "0x730d158D29165C55aBF368e9608Af160DD21Bd80",
15+
},
16+
},
17+
}

src/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
import {subgraphs} from "./subgraphs";
2020
import type {ApiMainReply, ApiAggSwapData} from "./api.types"
2121
import tokenlist from "./stability.tokenlist.json"
22+
import {almFactories} from "./addresses";
2223

2324
export {
2425
deployments,
@@ -39,6 +40,7 @@ export {
3940
ApiMainReply,
4041
ApiAggSwapData,
4142
tokenlist,
43+
almFactories,
4244
getMerklStrategies,
4345
getStrategyShortId,
4446
getIntegrationStatus,

tests/index.test.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
deployments,
66
integrations,
77
StrategyShortId,
8-
tokenlist, subgraphs,
8+
tokenlist, subgraphs, almFactories,
99
} from "../src";
1010

1111
describe('index', () => {
@@ -27,4 +27,8 @@ describe('index', () => {
2727
test('subgraphs', () => {
2828
expect(Object.keys(subgraphs).length).toBeGreaterThan(0)
2929
})
30+
test('almFactories', () => {
31+
expect(Object.keys(almFactories).length).toBeGreaterThan(0)
32+
expect(almFactories["137"].ichi.retro).toBe("0xb2f44D8545315cDd0bAaB4AC7233218b932a5dA7")
33+
})
3034
})

0 commit comments

Comments
 (0)