Skip to content

Commit 6aa16db

Browse files
committed
add OFT track deployment + README updates
Signed-off-by: Ihor Farion <ihor@umaproject.org>
1 parent c507c9e commit 6aa16db

File tree

6 files changed

+319
-302
lines changed

6 files changed

+319
-302
lines changed

broadcast/CreateSponsoredDeposit.s.sol/42161/run-latest.json

Lines changed: 111 additions & 111 deletions
Large diffs are not rendered by default.

broadcast/DeployDstHandler.s.sol/999/run-latest.json

Lines changed: 173 additions & 173 deletions
Large diffs are not rendered by default.

broadcast/deployed-addresses.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -479,24 +479,24 @@
479479
"block_number": 15142204
480480
},
481481
"DonationBox": {
482-
"address": "0x90e2487764e5316a2e4109c2ed40a3b3ad423659",
483-
"block_number": 20815766,
484-
"transaction_hash": "0xf72c3e798991af0e7123197bfd7da40585f936b4353b91159b749008ceac541a"
482+
"address": "0x3d589d40312bf2d20f13cd0af26a11144a9ca844",
483+
"block_number": 21341868,
484+
"transaction_hash": "0xe617eb954e31dc4305f9ddcd9badd2e0e707e4b9c266e16fddaf8e7c23180fde"
485485
},
486486
"SponsoredCCTPDstPeriphery": {
487487
"address": "0x83e245941befbde29682df068bcda006a804eb0c",
488488
"block_number": 20793257,
489489
"transaction_hash": "0xb08e0d23618a1447781b9071792c660bfd76db006b105822ea41d65e0ddc2802"
490490
},
491491
"PermissionedMulticallHandler": {
492-
"address": "0x0980d0f6799ca06c71ffafdc0e423cf2b0f20502",
493-
"block_number": 20815766,
494-
"transaction_hash": "0xee446c5d024fc2d807a387b7be9dc0e17f7f806efac526cc1db7bebd7fa5f7c7"
492+
"address": "0xfd0876712dd9003d014cdcd8e5140b4efac9bfcc",
493+
"block_number": 21341868,
494+
"transaction_hash": "0xc0b5e25643a971a281b9a142a4b146f7833b336a36c68f446bb4e63495e3eeb7"
495495
},
496496
"DstOFTHandler": {
497-
"address": "0x40153ddfad90c49dbe3f5c9f96f2a5b25ec67461",
498-
"block_number": 20815766,
499-
"transaction_hash": "0xb29d240d7893c5e112a3407a86d1ae520674cb3799cc0fb88420b386dbf018c7"
497+
"address": "0xc8786d517b4e224bb43985a38dbef8588d7354cd",
498+
"block_number": 21341868,
499+
"transaction_hash": "0x7ce545552d4a517bc380951ec35bd5eb86f84e0364a7ac9417aba605b8bf6309"
500500
},
501501
"HyperliquidDepositHandler": {
502502
"address": "0x861e127036b28d32f3777b4676f6bbb9e007d195",

broadcast/deployed-addresses.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,12 @@ This file contains the latest deployed smart contract addresses from the broadca
161161
| Contract Name | Address |
162162
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
163163
| DonationBox | [0x002E76DC036A1efF1488ee5435eE66C6aBF32674](https://hyperevmscan.io//address/0x002E76DC036A1efF1488ee5435eE66C6aBF32674) |
164-
| DonationBox | [0x90E2487764E5316a2e4109c2Ed40A3B3ad423659](https://hyperevmscan.io//address/0x90E2487764E5316a2e4109c2Ed40A3B3ad423659) |
165-
| DstOFTHandler | [0x40153DdFAd90C49dbE3F5c9F96f2a5B25ec67461](https://hyperevmscan.io//address/0x40153DdFAd90C49dbE3F5c9F96f2a5B25ec67461) |
164+
| DonationBox | [0x3D589D40312Bf2d20f13cD0AF26A11144a9cA844](https://hyperevmscan.io//address/0x3D589D40312Bf2d20f13cD0AF26A11144a9cA844) |
165+
| DstOFTHandler | [0xc8786D517b4e224bB43985A38dBeF8588D7354CD](https://hyperevmscan.io//address/0xc8786D517b4e224bB43985A38dBeF8588D7354CD) |
166166
| Helios | [0xc19B7EF43a6eBd393446F401d1eCFac01B181ac0](https://hyperevmscan.io//address/0xc19B7EF43a6eBd393446F401d1eCFac01B181ac0) |
167167
| HyperliquidDepositHandler | [0x861E127036B28D32f3777B4676F6bbb9e007d195](https://hyperevmscan.io//address/0x861E127036B28D32f3777B4676F6bbb9e007d195) |
168168
| MulticallHandler | [0x5E7840E06fAcCb6d1c3b5F5E0d1d3d07F2829bba](https://hyperevmscan.io//address/0x5E7840E06fAcCb6d1c3b5F5E0d1d3d07F2829bba) |
169-
| PermissionedMulticallHandler | [0x0980D0F6799CA06C71fFAFdc0E423cF2B0f20502](https://hyperevmscan.io//address/0x0980D0F6799CA06C71fFAFdc0E423cF2B0f20502) |
169+
| PermissionedMulticallHandler | [0xfD0876712DD9003D014CDCd8e5140B4EFAC9BFCC](https://hyperevmscan.io//address/0xfD0876712DD9003D014CDCd8e5140B4EFAC9BFCC) |
170170
| SpokePool | [0x35E63eA3eb0fb7A3bc543C71FB66412e1F6B0E04](https://hyperevmscan.io//address/0x35E63eA3eb0fb7A3bc543C71FB66412e1F6B0E04) |
171171
| SpokePoolPeriphery | [0xF1BF00D947267Da5cC63f8c8A60568c59FA31bCb](https://hyperevmscan.io//address/0xF1BF00D947267Da5cC63f8c8A60568c59FA31bCb) |
172172
| SpokePoolVerifier | [0x3Fb9cED51E968594C87963a371Ed90c39519f65A](https://hyperevmscan.io//address/0x3Fb9cED51E968594C87963a371Ed90c39519f65A) |

script/mintburn/oft/README.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Activate HyperLiquid account for that (see step 3 for an example).
4040
And FinalTokenInfo:
4141

4242
```
43-
cast send $DEPLOYED_DST_OFT "setFinalTokenInfo(address,uint32,bool,uint32,uint32,address)" 0xb88339CB7199b77E23DB6E890353E22632Ba630f 166 false 140 2 0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb --rpc-url hyperevm --account dev
43+
cast send $DEPLOYED_DST_OFT "setFinalTokenInfo(address,uint32,bool,uint32,uint32)" 0xb88339CB7199b77E23DB6E890353E22632Ba630f 166 false 140 2 --rpc-url hyperevm --account dev
4444
```
4545

4646
3. **Activate $DEPLOYED_DST_OFT account on HyperCore**
@@ -99,20 +99,37 @@ Calculations + limit order submission:
9999

100100
Calc size based on coreIn + price
101101

102+
PRICE MINUS 2 BPS (E.g. suggested BPS below market). We're selling, so going cheaper is "good", i.e. fast settle
103+
102104
```
105+
AMOUNT_CORE=1100000000
106+
PRICE=99980000
103107
forge script script/mintburn/LimitOrderCalcCli.s.sol:LimitOrderCalcCli \
104108
--sig "calcLOAmounts(uint64,uint64,bool,uint64,uint8,uint8,uint8,uint8)" \
105-
1033000000 99970000 false 140 8 2 8 8
109+
$AMOUNT_CORE $PRICE false 140 8 2 8 8
106110
```
107111

108112
Submit Limit order:
109113

110114
```
111-
cast send $DEPLOYED_DST_OFT "submitLimitOrderFromBot(address,uint64,uint64,uint128)" 0xb88339CB7199b77E23DB6E890353E22632Ba630f 99990000 100000000 1 --rpc-url hyperevm --account dev
115+
# PRICE= *Take from above*
116+
# SIZE= *Take from above output*
117+
# CLOID make unique, > 0
118+
SIZE=1100000000
119+
CLOID=1
120+
cast send $DEPLOYED_DST_OFT "submitLimitOrderFromBot(address,uint64,uint64,uint128)" 0xb88339CB7199b77E23DB6E890353E22632Ba630f $PRICE $SIZE $CLOID --rpc-url hyperevm --account dev
121+
```
122+
123+
Finalize swap flow:
124+
125+
```
126+
QUOTE_ID=0x0000000000000000000000000000000000000000000000000000000069378738
127+
REAL_OUT=1099626030
128+
cast send $DEPLOYED_DST_OFT "finalizeSwapFlows(address,bytes32[],uint64[])" 0xb88339CB7199b77E23DB6E890353E22632Ba630f "[$QUOTE_ID]" "[$REAL_OUT]" --rpc-url hyperevm --account dev
112129
```
113130

114-
Finalize a swap flow:
131+
Grant a FUNDS_SWEEPER_ROLE:
115132

116133
```
117-
cast send $DEPLOYED_DST_OFT "finalizeSwapFlows(address,bytes32[],uint64[])" 0xb88339CB7199b77E23DB6E890353E22632Ba630f "[0x00000000000000000000000000000000000000000000000000000000690D3DBE]" "[122576511]" --rpc-url hyperevm --account dev
134+
cast send $DEPLOYED_DST_OFT "grantRole(bytes32,address)" 0x880a9ba888678c7fe4e8c4f028c224f26ce12a3bed6e96025c61ef8a5db6312f $ROLE_RECIPIENT --rpc-url hyperevm --account dev
118135
```

script/mintburn/oft/usdt0.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ endpoint_url = "${NODE_URL_999}"
1717
[999.address]
1818
token = "0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb"
1919
oft_messenger = "0x904861a24F30EC96ea7CFC3bE9EA4B476d237e98"
20-
dst_handler = "0x40153DdFAd90C49dbE3F5c9F96f2a5B25ec67461"
20+
dst_handler = "0xc8786D517b4e224bB43985A38dBeF8588D7354CD"

0 commit comments

Comments
 (0)