Skip to content

Commit

Permalink
feat: generic rate provider for seiyanETH on Sei Network to add seiya…
Browse files Browse the repository at this point in the history
…nETH as a teller supported asset
  • Loading branch information
junkim012 committed Sep 19, 2024
1 parent 249aab5 commit 7c15d85
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
17 changes: 16 additions & 1 deletion deployment-config/chains/1329.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
{
"name": "Sei",
"balancerVault": "0x0000000000000000000000000000000000000000",
"lzEndpoint": "0x1a44076050125825900e736c501f859c50fE728c"
"lzEndpoint": "0x1a44076050125825900e736c501f859c50fE728c",
"assetToRateProviderAndPriceFeed": {
"NOTE_0_CHAINLINK_1_REDSTONE_2_GENERIC": 0,
"NOTE_THESE_KEYS_MUST_NOT_BE_CHECKSUMMED": 0,
"maxTimeFromLastUpdate": "86400",
"0x9faaea2cdd810b21594e54309dc847842ae301ce": {
"denomination": "ETH/seiyanETH",
"priceFeedType": 2,
"target": "0x24152894Decc7384b05E8907D6aDAdD82c176499",
"signature": "getRateSafe()",
"arg": 0,
"expectedMin": "1000000000000000000",
"expectedMax": "1100000000000000000",
"rateProvider": "0x4cb84449fab2812556533491a5c171611a9737fa"
}
}
}
4 changes: 3 additions & 1 deletion deployment-config/ssETH-L2.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
"peerEid": 30101,
"tellerContractName": "MultiChainLayerZeroTellerWithMultiAssetSupport",
"opMessenger": "0x0000000000000000000000000000000000000000",
"assets": [],
"assets": [
"0x9fAaEA2CDd810b21594E54309DC847842Ae301Ce"
],
"dvnIfNoDefault": {
"required": [
"0x6788f52439aca6bff597d3eec2dc9a44b8fee842"
Expand Down
18 changes: 18 additions & 0 deletions script/deploy/DeployAtomicQueue.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.21;

import { AtomicQueue } from "./../../src/atomic-queue/AtomicQueue.sol";
import { BaseScript } from "../Base.s.sol";
import { stdJson as StdJson } from "@forge-std/StdJson.sol";

using StdJson for string;

bytes32 constant SALT = 0x5bac910c72debe007de61c000000000000000000000000000000000000000000;

contract DeployAtomicQueue is BaseScript {
function run() public broadcast returns (AtomicQueue atomicQueue) {
bytes memory creationCode = type(AtomicQueue).creationCode;

atomicQueue = AtomicQueue(CREATEX.deployCreate3(SALT, creationCode));
}
}

0 comments on commit 7c15d85

Please sign in to comment.