Skip to content

Commit 9855947

Browse files
committed
Added Workflow
1 parent c6759b2 commit 9855947

File tree

3 files changed

+48
-11
lines changed

3 files changed

+48
-11
lines changed

.github/workflows/npm-publish.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish to NPM
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v2
14+
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: '14'
19+
20+
- name: Install dependencies
21+
run: npm ci
22+
23+
- name: Publish to npm
24+
env:
25+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
26+
run: npm publish

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#
22
node_modules/
3-
.env
3+
.env
4+
/.idea/

index.js

+20-10
Original file line numberDiff line numberDiff line change
@@ -6,54 +6,64 @@ const ROUTER = {
66
"0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F":{
77
address:"0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
88
uri:"https://sushi.com",
9-
name:"SushiSwap"
9+
name:"SushiSwap",
10+
type:"UNIV2"
1011
},
1112
"0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D":{
1213
address:"0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
1314
uri:"https://uniswap.org/",
14-
name:"UniSwap"
15+
name:"UniSwap",
16+
type:"UNIV2"
1517
},
1618
"0x03f7724180AA6b939894B5Ca4314783B0b36b329":{
1719
address:"0x03f7724180AA6b939894B5Ca4314783B0b36b329",
1820
uri:"https://shibaswap.com/#/swap",
19-
name:"ShibaSwap"
21+
name:"ShibaSwap",
22+
type:"UNIV2"
2023
}
2124
},
2225
137:{
2326
// POLYGON
2427
"0x94930a328162957FF1dd48900aF67B5439336cBD":{
2528
address:"0x94930a328162957FF1dd48900aF67B5439336cBD",
2629
uri:"https://polycat.finance/swap",
27-
name:"PolyCat"
30+
name:"PolyCat",
31+
type:"UNIV2"
2832
},
2933
"0x1b02da8cb0d097eb8d57a175b88c7d8b47997506":{
3034
address:"0x1b02da8cb0d097eb8d57a175b88c7d8b47997506",
3135
uri:"https://app.sushi.com/swap",
32-
name:"SushiSwap"
36+
name:"SushiSwap",
37+
type:"UNIV2"
3338
},
3439
"0xa5e0829caced8ffdd4de3c43696c57f7d7a678ff":{
3540
address:"0xa5e0829caced8ffdd4de3c43696c57f7d7a678ff",
3641
uri:"https://quickswap.exchange/#/swap",
37-
name:"QuickSwap"
42+
name:"QuickSwap",
43+
type:"UNIV2"
3844
},
3945
"0x93bcdc45f7e62f89a8e901dc4a0e2c6c427d9f25":{
4046
address:"0x93bcdc45f7e62f89a8e901dc4a0e2c6c427d9f25",
41-
name:"CometSwap"
47+
name:"CometSwap",
48+
type:"UNIV2"
4249
},
4350
"0xc0788a3ad43d79aa53b09c2eacc313a787d1d607":{
4451
address:"0xc0788a3ad43d79aa53b09c2eacc313a787d1d607",
4552
uri:"https://app.apeswap.finance/swap",
46-
name:"ApeSwap"
53+
name:"ApeSwap",
54+
type:"UNIV2"
4755
},
4856
"0x3a1d87f206d12415f5b0a33e786967680aab4f6d":{
4957
address:"0x3a1d87f206d12415f5b0a33e786967680aab4f6d",
5058
uri:"https://swap.wault.finance/polygon/#/swap",
51-
name:"VaultSwap"
59+
name:"VaultSwap",
60+
type:"UNIV2"
5261
},
5362
"0x5C6EC38fb0e2609672BDf628B1fD605A523E5923":{
5463
address:"0x5C6EC38fb0e2609672BDf628B1fD605A523E5923",
5564
uri:"https://jetswap.finance/",
56-
name:"JetSwap"
65+
name:"JetSwap",
66+
type:"UNIV2"
5767
},
5868

5969
}

0 commit comments

Comments
 (0)