Skip to content

Commit c1bf13f

Browse files
committed
projects(silverswap): Nibiru has a SilverSwap deployment on mainnet
1 parent 9db60cf commit c1bf13f

File tree

2 files changed

+32
-6
lines changed

2 files changed

+32
-6
lines changed

package-lock.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

projects/silverswap/index.js

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
const { uniV3Export } = require('../helper/uniswapV3')
22

3-
module.exports = uniV3Export({
4-
sonic: { factory: '0xb860200BD68dc39cEAfd6ebb82883f189f4CdA76', fromBlock: 186117, isAlgebra: true, }
5-
})
3+
/**
4+
* @typedef {Object} SilverSwapInfo
5+
* @property {string} factory - Hex address of the factory contract
6+
* @property {number} fromBlock - Block to start indexing. Should precede the
7+
* deployment block by at least 1.
8+
* @property {boolean} isAlgebra - Defaults to true. SilverSwap is based on
9+
* Algebra's DEX model.
10+
*/
11+
12+
/**
13+
* Config object mapping chain names to SilverSwap deployment information.
14+
*
15+
* @type {Object.<string, SilverSwapInfo>}
16+
*/
17+
const silverswap = {
18+
sonic: {
19+
factory: '0xb860200BD68dc39cEAfd6ebb82883f189f4CdA76',
20+
fromBlock: 186117,
21+
isAlgebra: true,
22+
},
23+
nibiru: {
24+
factory: '0xb860200BD68dc39cEAfd6ebb82883f189f4CdA76',
25+
fromBlock: 19674297 - 1,
26+
isAlgebra: true,
27+
},
28+
}
29+
30+
module.exports = uniV3Export(silverswap)

0 commit comments

Comments
 (0)