Skip to content

Commit

Permalink
chore(target_chains/starknet): add mainnet deployment info (#1770)
Browse files Browse the repository at this point in the history
* chore(target_chains/starknet): add mainnet deployment info

* chore(target_chains/starknet): bump sdk version
  • Loading branch information
Riateche authored Jul 15, 2024
1 parent 5e94437 commit 0db4090
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
- chain: starknet_sepolia
address: "0x07f2b07b6b5365e7ee055bda4c0ecabd867e6d3ee298d73aea32b027667186d6"
type: StarknetPriceFeedContract
- chain: starknet_mainnet
address: "0x062ab68d8e23a7aa0d5bf4d25380c2d54f2dd8f83012e047851c3706b53d64d1"
type: StarknetPriceFeedContract
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
- chain: starknet_sepolia
address: "0x07fa5a689a768982ecb60ed05f39ca8f6efe623dd32ee6f3608662e3452a104c"
type: StarknetWormholeContract
- chain: starknet_mainnet
address: "0x06fb1af6d323188105e6f10212316139dbe71650e1703af35331ceaad7aaf3bd"
type: StarknetWormholeContract
10 changes: 10 additions & 0 deletions target_chains/starknet/contracts/deploy/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ elif [ "${PYTH_DEPLOY_MODE}" == "sepolia" ]; then
# STRK
fee_token_address1=0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d

# ETH
fee_token_address2=0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7
elif [ "${PYTH_DEPLOY_MODE}" == "mainnet" ]; then
export STARKNET_RPC=https://starknet-mainnet.public.blastapi.io/rpc/v0_6

chain_id=60051 # starknet_mainnet

# STRK
fee_token_address1=0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d

# ETH
fee_token_address2=0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7
else
Expand Down
2 changes: 1 addition & 1 deletion target_chains/starknet/sdk/js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pythnetwork/pyth-starknet-js",
"version": "0.2.0",
"version": "0.2.1",
"description": "Pyth Network Starknet Utilities",
"homepage": "https://pyth.network",
"author": {
Expand Down
4 changes: 4 additions & 0 deletions target_chains/starknet/sdk/js/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ export const ETH_TOKEN_ADDRESS =
export const PYTH_CONTRACT_ADDRESS_SEPOLIA =
"0x07f2b07b6b5365e7ee055bda4c0ecabd867e6d3ee298d73aea32b027667186d6";

/** Address of the Pyth contract on Starknet mainnet. */
export const PYTH_CONTRACT_ADDRESS_MAINNET =
"0x062ab68d8e23a7aa0d5bf4d25380c2d54f2dd8f83012e047851c3706b53d64d1";

/** A byte array encoded in a format compatible with starknet-js and with the Pyth contract. */
export class ByteBuffer {
num_last_bytes = 0;
Expand Down

0 comments on commit 0db4090

Please sign in to comment.