Skip to content

Commit 27bf014

Browse files
committed
Merge branch 'main' into parse-price-feed-update-optional-storage
2 parents 660717e + c171cff commit 27bf014

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+2169
-731
lines changed

.github/workflows/ci-stylus-check.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515
pull_request:
1616
paths:
1717
- target_chains/ethereum/sdk/stylus/**
18+
- .github/workflows/ci-stylus-check.yml
1819
push:
1920
branches:
2021
- main
@@ -40,7 +41,7 @@ jobs:
4041
# Check out `rustfmt.toml` to see which ones.
4142
uses: actions-rust-lang/setup-rust-toolchain@v1
4243
with:
43-
toolchain: nightly
44+
toolchain: nightly-2024-09-05
4445
components: rustfmt
4546
rustflags: ""
4647

apps/api-reference/src/evm-networks.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const NETWORK_INFO = {
7373
},
7474
[97]: {
7575
name: "bsc_testnet",
76-
rpcUrl: "https://rpc.ankr.com/bsc_testnet_chapel",
76+
rpcUrl: "https://bsc-testnet.drpc.org",
7777
isMainnet: false,
7878
contractAddress: "0x5744Cbf430D99456a0A8771208b674F27f8EF0Fb",
7979
},
@@ -257,11 +257,17 @@ export const NETWORK_INFO = {
257257
isMainnet: true,
258258
contractAddress: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
259259
},
260+
[1315]: {
261+
name: "story_testnet",
262+
rpcUrl: "https://aeneid.storyrpc.io",
263+
isMainnet: false,
264+
contractAddress: "0x36825bf3Fbdf5a29E2d5148bfe7Dcf7B5639e320",
265+
},
260266
[1328]: {
261267
name: "sei_evm_testnet",
262268
rpcUrl: "https://evm-rpc-testnet.sei-apis.com",
263269
isMainnet: false,
264-
contractAddress: "0x2880aB155794e7179c9eE2e38200202908C17B43",
270+
contractAddress: "0x36825bf3Fbdf5a29E2d5148bfe7Dcf7B5639e320",
265271
},
266272
[1329]: {
267273
name: "sei_evm_mainnet",
@@ -275,6 +281,12 @@ export const NETWORK_INFO = {
275281
isMainnet: false,
276282
contractAddress: "0xFf255f800044225f54Af4510332Aa3D67CC77635",
277283
},
284+
[1514]: {
285+
name: "story",
286+
rpcUrl: "https://homer.storyrpc.io",
287+
isMainnet: true,
288+
contractAddress: "0xD458261E832415CFd3BAE5E416FdF3230ce6F134",
289+
},
278290
[1625]: {
279291
name: "gravity",
280292
rpcUrl: "https://rpc.gravity.xyz/",

apps/developer-hub/eslint.config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
export { nextjs as default } from "@cprussin/eslint-config";
1+
import { nextjs } from "@cprussin/eslint-config";
2+
3+
export default [
4+
...nextjs,
5+
{
6+
ignores: [".source/**"],
7+
},
8+
];

apps/developer-hub/turbo.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@
1313
"fix:lint": {
1414
"dependsOn": [
1515
"//#install:modules",
16+
"^build",
17+
"build",
1618
"fix:lint:eslint",
1719
"fix:lint:stylelint"
1820
]
1921
},
2022
"fix:lint:eslint": {
21-
"dependsOn": ["//#install:modules", "^build"],
23+
"dependsOn": ["//#install:modules", "^build", "build"],
2224
"cache": false
2325
},
2426
"fix:lint:stylelint": {
@@ -32,7 +34,7 @@
3234
"dependsOn": ["test:lint:eslint", "test:lint:stylelint"]
3335
},
3436
"test:lint:eslint": {
35-
"dependsOn": ["//#install:modules", "^build"]
37+
"dependsOn": ["//#install:modules", "^build", "build"]
3638
},
3739
"test:lint:stylelint": {
3840
"dependsOn": ["//#install:modules"]

apps/insights/src/components/PriceComponentDrawer/index.tsx

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,14 @@ import dynamic from "next/dynamic";
1717
import { useRouter } from "next/navigation";
1818
import { useQueryState, parseAsString } from "nuqs";
1919
import type { ReactNode } from "react";
20-
import { Suspense, useState, useCallback, useMemo, useTransition } from "react";
20+
import {
21+
Suspense,
22+
useState,
23+
useCallback,
24+
useMemo,
25+
useTransition,
26+
useRef,
27+
} from "react";
2128
import {
2229
RouterProvider,
2330
useDateFormatter,
@@ -68,6 +75,7 @@ export const usePriceComponentDrawer = ({
6875
const drawer = useDrawer();
6976
const router = useRouter();
7077
const [isRouting, startTransition] = useTransition();
78+
const didRestoreUrl = useRef(false);
7179

7280
const navigate = useCallback(
7381
(route: string) => {
@@ -102,10 +110,12 @@ export const usePriceComponentDrawer = ({
102110
}, [updateSelectedComponentId]);
103111

104112
useMountEffect(() => {
105-
if (selectedComponentId) {
113+
if (selectedComponentId && !didRestoreUrl.current) {
114+
didRestoreUrl.current = true;
106115
const component = components.find(
107116
(component) =>
108-
component[identifiesPublisher ? "publisherKey" : "feedKey"],
117+
component[identifiesPublisher ? "publisherKey" : "feedKey"] ===
118+
selectedComponentId,
109119
);
110120
if (component) {
111121
openDrawer(component);

contract_manager/scripts/latency_entropy_with_callback.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ const parser = yargs(hideBin(process.argv))
1313
"Usage: $0 --private-key <private-key> --chain <chain-id> | --all-chains <testnet|mainnet>",
1414
)
1515
.options({
16+
provider: {
17+
type: "string",
18+
desc: "Provider address to use for the request. Will use the default provider if not specified",
19+
demandOption: false,
20+
},
1621
chain: {
1722
type: "string",
1823
desc: "test latency for the contract on this chain",
@@ -30,8 +35,9 @@ const parser = yargs(hideBin(process.argv))
3035
async function testLatency(
3136
contract: EvmEntropyContract,
3237
privateKey: PrivateKey,
38+
provider?: string,
3339
) {
34-
const provider = await contract.getDefaultProvider();
40+
provider = provider || (await contract.getDefaultProvider());
3541
const userRandomNumber = contract.generateUserRandomNumber();
3642
const requestResponse = await contract.requestRandomness(
3743
userRandomNumber,
@@ -106,7 +112,7 @@ async function main() {
106112
} else if (argv.chain) {
107113
const chain = DefaultStore.getChainOrThrow(argv.chain, EvmChain);
108114
const contract = findEntropyContract(chain);
109-
await testLatency(contract, privateKey);
115+
await testLatency(contract, privateKey, argv.provider);
110116
}
111117
}
112118

contract_manager/src/node/utils/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,4 +269,4 @@ export class Store {
269269
/**
270270
* DefaultStore loads all the contracts and chains from the store directory and provides a single point of access to them.
271271
*/
272-
export const DefaultStore = new Store(`${__dirname}/../store`);
272+
export const DefaultStore = new Store(`${__dirname}/../../../store`);

contract_manager/store/chains/EvmChains.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@
315315
{
316316
"id": "optimism",
317317
"mainnet": true,
318-
"rpcUrl": "https://rpc.ankr.com/optimism",
318+
"rpcUrl": "https://mainnet.optimism.io/",
319319
"networkId": 10,
320320
"type": "EvmChain",
321321
"nativeToken": "ETH"
@@ -1080,14 +1080,14 @@
10801080
{
10811081
"id": "unichain",
10821082
"mainnet": true,
1083-
"rpcUrl": "https://redacted.quiknode.pro/$ENV_UNICHAIN_API_KEY",
1083+
"rpcUrl": "https://mainnet.unichain.org",
10841084
"networkId": 130,
10851085
"type": "EvmChain"
10861086
},
10871087
{
10881088
"id": "abstract",
10891089
"mainnet": true,
1090-
"rpcUrl": "https://api-efe16d37.ml.eeffc03e557f4daf.com/",
1090+
"rpcUrl": "https://api.mainnet.abs.xyz",
10911091
"networkId": 2741,
10921092
"type": "EvmChain"
10931093
},
@@ -1157,21 +1157,21 @@
11571157
{
11581158
"id": "monad_testnet",
11591159
"mainnet": false,
1160-
"rpcUrl": "https://rpc.monad-testnet.category.xyz/rpc/nSyzM1wlIgaALWzbh3oIg5rW65AC6yjqrslOE8wb",
1160+
"rpcUrl": "https://monad-testnet.drpc.org",
11611161
"networkId": 10143,
11621162
"type": "EvmChain"
11631163
},
11641164
{
11651165
"id": "berachain_mainnet",
11661166
"mainnet": true,
11671167
"networkId": 80094,
1168-
"rpcUrl": "https://fluent-thrilling-scion.furtim-network.quiknode.pro/$ENV_RABECHAIN_API_KEY",
1168+
"rpcUrl": "https://rpc.berachain.com/",
11691169
"type": "EvmChain"
11701170
},
11711171
{
11721172
"id": "story",
11731173
"mainnet": true,
1174-
"rpcUrl": "https://homer.storyrpc.io",
1174+
"rpcUrl": "https://mainnet.storyrpc.io",
11751175
"networkId": 1514,
11761176
"type": "EvmChain"
11771177
},

contract_manager/store/contracts/EvmEntropyContracts.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,6 @@
5959
"address": "0x8D254a21b3C86D32F7179855531CE99164721933",
6060
"type": "EvmEntropyContract"
6161
},
62-
{
63-
"chain": "coredao_testnet",
64-
"address": "0xf0a1b566B55e0A0CB5BeF52Eb2a57142617Bee67",
65-
"type": "EvmEntropyContract"
66-
},
6762
{
6863
"chain": "blast",
6964
"address": "0x5744Cbf430D99456a0A8771208b674F27f8EF0Fb",
@@ -89,11 +84,6 @@
8984
"address": "0x98046Bd286715D3B0BC227Dd7a956b83D8978603",
9085
"type": "EvmEntropyContract"
9186
},
92-
{
93-
"chain": "orange_testnet",
94-
"address": "0x98046Bd286715D3B0BC227Dd7a956b83D8978603",
95-
"type": "EvmEntropyContract"
96-
},
9787
{
9888
"chain": "sei_evm_mainnet",
9989
"address": "0x98046Bd286715D3B0BC227Dd7a956b83D8978603",

governance/pyth_staking_sdk/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pythnetwork/staking-sdk",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "Pyth staking SDK",
55
"type": "module",
66
"exports": {
@@ -13,7 +13,7 @@
1313
"dist/**/*"
1414
],
1515
"engines": {
16-
"node": "22"
16+
"node": "20 || 22"
1717
},
1818
"publishConfig": {
1919
"access": "public"

0 commit comments

Comments
 (0)