Skip to content

Commit

Permalink
feat(new_kakarot_interface):
Browse files Browse the repository at this point in the history
  • Loading branch information
akhercha committed Nov 1, 2024
1 parent b52695c commit f01169d
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 13 deletions.
29 changes: 28 additions & 1 deletion kakarot-evm-interface/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ forge script script/PragmaCaller.s.sol \
--broadcast --rpc-url $RPC_URL \
--verifier-url $ETHERSCAN_VERIFY_URL \
--etherscan-api-key "verifyContract"

# or just verify

forge verify-contract $EVM_PRAGMA_CALLER_ADDRESS src/PragmaCaller.sol:PragmaCaller \
--verifier-url 'https://api.routescan.io/v2/network/testnet/evm/920637907288165/etherscan' \
--etherscan-api-key "verifyContract" \
--num-of-optimizations 200 \
--compiler-version 0.8.28 \
--constructor-args $(cast abi-encode "constructor(uint256 pragmaOracleAddress, uint256 pragmaSummaryStatsAddress)" $CAIRO_PRAGMA_ORACLE_ADDRESS $CAIRO_PRAGMA_SUMMARY_STATS_ADDRESS)
```

#### CallerExample
Expand All @@ -51,15 +60,33 @@ forge script script/CallerExample.s.sol \
--broadcast --rpc-url $RPC_URL \
--verifier-url '$ETHERSCAN_VERIFY_URL' \
--etherscan-api-key "verifyContract"

# or just verify

forge verify-contract $EVM_PRAGMA_CALLER_EXAMPLE_ADDRESS src/CallerExample.sol:CallerExample \
--verifier-url 'https://api.routescan.io/v2/network/testnet/evm/920637907288165/etherscan' \
--etherscan-api-key "verifyContract" \
--num-of-optimizations 200 \
--compiler-version 0.8.28 \
--constructor-args $(cast abi-encode "constructor(address pragmaCallerAddress)" $EVM_PRAGMA_CALLER_ADDRESS)
```

#### Feeds

```shell
PAIR_ID="24011449254105924" forge script script/PragmaAggregatorV3.s.sol \
PAIR_ID="1407668255603079598916" forge script script/PragmaAggregatorV3.s.sol \
--broadcast --rpc-url $RPC_URL \
--verifier-url '$ETHERSCAN_VERIFY_URL' \
--etherscan-api-key "verifyContract"

# or just verify

PAIR_ID="1407668255603079598916" forge verify-contract [CONTRACT_DEPLOYED_ABOVE] src/PragmaAggregatorV3.sol:PragmaAggregatorV3 \
--verifier-url 'https://api.routescan.io/v2/network/testnet/evm/920637907288165/etherscan' \
--etherscan-api-key "verifyContract" \
--num-of-optimizations 200 \
--compiler-version 0.8.28 \
--constructor-args $(cast abi-encode "constructor(address _pragmaCaller, uint256 _pairId)" $EVM_PRAGMA_CALLER_ADDRESS $PAIR_ID)
```

## Documentation
Expand Down
24 changes: 12 additions & 12 deletions kakarot-evm-interface/deployments/sepolia.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
{
"PragmaCaller": "0x5a3d161e5c63511F97F51fbF366B8238Cd0bBeAc",
"CallerExample": "0x3899D87a02eFaB864C9306DCd2EDe06B90f28B14",
"PragmaCaller": "0x874C3C6299E2166DE37838a8F15f52952b25f186",
"CallerExample": "0xF3FA7Cf1A77133e7734800cEb84D1aBBA214576D",
"BTC/USD": {
"pair_id": "18669995996566340",
"contract": "0x330ec0B08B74a4F34Fd76B0917A55169885624Be"
"contract": "0x9999bcA6284AD4A0503E93ae418566786d52C0f8"
},
"ETH/USD": {
"pair_id": "19514442401534788",
"contract": "0xcD025F607AdB9542B77C69A29B7b9Aa32Bf06811"
"contract": "0xbDF3294C51ADD204ef06F1d2C2d11d4aa94725f8"
},
"WBTC/USD": {
"pair_id": "6287680677296296772",
"contract": "0x4604A5b10818638F751829A580362eD5a42b9E5E"
"contract": "0x8Ca18fAB3D3e6e12236599a5604ef0D918f468D7"
},
"USDC/USD": {
"pair_id": "6148332971638477636",
"contract": "0xa3C78F0fd24523d1D5A70e47086343A445976911"
"contract": "0x3DE32d3Be34315b1De89C2108bCebf2771B1aC61"
},
"USDT/USD": {
"pair_id": "6148333044652921668",
"contract": "0x52880cAe955C88546134e7394B4305c2fA79faB8"
"contract": "0x98629B2B14E21248e99906A04B923eA5ae8B3Cc5"
},
"WSTETH/USD": {
"pair_id": "412383036120118613857092",
"contract": "0x5Ad588FDF6a8851c4098fC3aec535f0A66316C0F"
"contract": "0x5E412799a9B3ABa0f098768bDbbC70AdA94195e5"
},
"STRK/USD": {
"pair_id": "6004514686061859652",
"contract": "0x7225f3743668B2751075cd53D25B449ca9967718"
"contract": "0x3634ae539bFA68c055C8A714438542766f14D192"
},
"UNI/USD": {
"pair_id": "24011449254105924",
"contract": "0x858FA2FacF63A3e529cAb4F5a02ceaFb590db2c1"
"contract": "0x31C73089f62c6Fc41ea59feA34E927DDB9Ee93fb"
},
"EKUBO/USD": {
"pair_id": "1278253658919688033092",
"contract": "0xa07CC3ff0557fD0F01FFb004469103353D6126F4"
"contract": "0x9fC4779897AEDe45B8Bf74669EDCD4038163565b"
},
"LORDS/USD": {
"pair_id": "1407668255603079598916",
"contract": "0xac0e304dA34912C9eD1d29a212feC74B36Eea4d6"
"contract": "0x27ae6f192E8d97Cd37922FFB83789e000A5A18Ce"
}
}

0 comments on commit f01169d

Please sign in to comment.