Skip to content

Commit

Permalink
change default pair on morph holesky
Browse files Browse the repository at this point in the history
  • Loading branch information
hskang9 committed Aug 9, 2024
1 parent 816f1fe commit 8cc7789
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@standardweb3/default-token-list",
"version": "0.0.13",
"version": "0.0.14",
"description": "Standard default token list",
"main": "build/standard-default.tokenlist.json",
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions src/buildList.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ module.exports = function buildList() {
},
quote: {
chainId: 2810,
address: "0x64c76ccc33969cA1414EEE0Da3713C4203E9ba2D",
symbol: "DAI",
name: "Dai",
address: "0x9E12AD42c4E4d2acFBADE01a96446e48e6764B98",
symbol: "USDT",
name: "Tether",
decimals: 18,
logoURI:
"https://raw.githubusercontent.com/morph-l2/morph-list/main/tokenIcons/DAI.svg",
"https://raw.githubusercontent.com/morph-l2/morph-list/main/tokenIcons/USDT.svg",
},
},
},
Expand Down
19 changes: 19 additions & 0 deletions src/pairs/morph_holesky.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
[
{
"base": {
"chainId": 2810,
"address": "0x5300000000000000000000000000000000000011",
"symbol": "ETH",
"name": "Ethereum Token",
"decimals": 18,
"logoURI": "https://raw.githubusercontent.com/morph-l2/morph-list/main/tokenIcons/ETH.svg"
},
"quote": {
"chainId": 2810,
"address": "0x9E12AD42c4E4d2acFBADE01a96446e48e6764B98",
"symbol": "USDT",
"name": "Tether",
"decimals": 18,
"logoURI": "https://raw.githubusercontent.com/morph-l2/morph-list/main/tokenIcons/USDT.svg"
},
"listing_price": 2586.53
},
{
"base": {
"chainId": 2810,
Expand Down
8 changes: 4 additions & 4 deletions src/scripts/addPairs.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ async function main() {
const account = privateKeyToAccount(process.env.ADMIN_PRIVATE_KEY);
const walletClient = createWalletClient({
account,
chain: kroma,
transport: http(process.env.KROMA_RPC),
chain: morphHolesky,
transport: http(process.env.MORPH_HOLESKY_RPC),
});

const abi = MatchingEngineABI;

const pairs = await getPairs("Kroma");
const pairs = await getPairs("Morph Holesky");
// make contract call on each pair in the list
const matchingEngine = defaultTokenList.matchingEngine["Kroma"];
const matchingEngine = defaultTokenList.matchingEngine["Morph Holesky"].address;
for (const pair of pairs) {
await addPair(pair, matchingEngine, walletClient, abi);
await setSpread(pair, matchingEngine, walletClient, abi);
Expand Down

0 comments on commit 8cc7789

Please sign in to comment.