Skip to content

Commit

Permalink
Migrate to new RPC endpoints (#16521)
Browse files Browse the repository at this point in the history
## Description 

Describe the changes or additions included in this PR.

## Test Plan 

How did you test the new or updated feature?

---
If your changes are not user-facing and do not break anything, you can
skip the following section. Otherwise, please briefly describe what has
changed under the Release Notes section.

### Type of Change (Check all that apply)

- [ ] protocol change
- [ ] user-visible impact
- [ ] breaking change for a client SDKs
- [ ] breaking change for FNs (FN binary must upgrade)
- [ ] breaking change for validators or node operators (must upgrade
binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration

### Release notes
  • Loading branch information
Jordan-Mysten authored Mar 12, 2024
1 parent 2671d58 commit 0977646
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/explorer/src/utils/api/DefaultRpcClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export enum Network {

export const NetworkConfigs: Record<Network, { url: string }> = {
[Network.LOCAL]: { url: getFullnodeUrl('localnet') },
[Network.DEVNET]: { url: 'https://explorer-rpc.devnet.sui.io:443' },
[Network.DEVNET]: { url: 'https://sui-devnet.mystenlabs.com/json-rpc' },
[Network.TESTNET]: { url: 'https://sui-testnet.mystenlabs.com/json-rpc' },
[Network.MAINNET]: { url: 'https://sui-mainnet.mystenlabs.com/json-rpc' },
};
Expand Down
6 changes: 3 additions & 3 deletions apps/wallet/configs/environment/.env.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ API_ENV=mainnet
API_ENDPOINT_LOCAL=http://127.0.0.1:5001/
API_ENDPOINT_LOCAL_FULLNODE=http://127.0.0.1:9000/
API_ENDPOINT_LOCAL_FAUCET=http://127.0.0.1:9123/gas
API_ENDPOINT_DEV_NET_FULLNODE=https://wallet-rpc.devnet.sui.io/
API_ENDPOINT_DEV_NET_FULLNODE=https://sui-devnet.mystenlabs.com/json-rpc
API_ENDPOINT_DEV_NET_FAUCET=https://faucet.devnet.sui.io/gas
API_ENDPOINT_TEST_NET_FULLNODE=https://wallet-rpc.testnet.sui.io/
API_ENDPOINT_TEST_NET_FULLNODE=https://sui-testnet.mystenlabs.com/json-rpc
API_ENDPOINT_TEST_NET_FAUCET=https://faucet.testnet.sui.io/gas
API_ENDPOINT_MAINNET_FULLNODE=https://wallet-rpc.mainnet.sui.io/
API_ENDPOINT_MAINNET_FULLNODE=https://sui-mainnet.mystenlabs.com/json-rpc
2 changes: 1 addition & 1 deletion examples/mev_bot/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ bcs.registerStructType("PoolCreated", {
});

// Create a client connected to the Sui network
const client = new SuiClient({url: "https://explorer-rpc.mainnet.sui.io:443"});
const client = new SuiClient({url: "https://sui-mainnet.mystenlabs.com/json-rpc"});

// Retrieve all DeepBook pools using the PoolCreated events
let allPools = await retrieveAllPools();
Expand Down

0 comments on commit 0977646

Please sign in to comment.