Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pythnet/message_buffer/Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
seeds = true
skip-lint = false
[programs.localnet]
message_buffer = "Vbmv1jt4vyuqBZcpYPpnVhrqVe5e6ZPb6JxDcffRHUM"
message_buffer = "7Vbmv1jt4vyuqBZcpYPpnVhrqVe5e6ZPb6JxDcffRHUM"
mock_cpi_caller = "Dg5PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"

[registry]
Expand Down
4 changes: 3 additions & 1 deletion pythnet/message_buffer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
},
"dependencies": {
"@coral-xyz/anchor": "^0.27.0",
"@lumina-dev/test": "^0.0.12"
"@lumina-dev/test": "^0.0.12",
"@pythnetwork/client": "^2.17.0",
"dotenv": "^16.0.3"
},
"devDependencies": {
"@types/bn.js": "^5.1.0",
Expand Down
2 changes: 1 addition & 1 deletion pythnet/message_buffer/programs/message_buffer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use {
state::*,
};

declare_id!("Vbmv1jt4vyuqBZcpYPpnVhrqVe5e6ZPb6JxDcffRHUM");
declare_id!("7Vbmv1jt4vyuqBZcpYPpnVhrqVe5e6ZPb6JxDcffRHUM");

#[program]
pub mod message_buffer {
Expand Down
6 changes: 6 additions & 0 deletions pythnet/message_buffer/scripts/.env.integration
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
MESSAGE_BUFFER_PROGRAM_ID=BZZFM8qzdWvv4ysy8dxpAzjs9WJ6iy9y1ph2YNqWYzrm
ORACLE_PROGRAM_ID=7th6GdMuo4u1zNLzFAyMY6psunHNsGjPjo8hXvcTgKei
PAYER_KEYPAIR_PATH=/keys/funding.json
CLUSTER=integration
# 522 + 85(PriceFeedMessage) + 101(TwapMessage)
INITIAL_SIZE=708
6 changes: 6 additions & 0 deletions pythnet/message_buffer/scripts/.env.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
MESSAGE_BUFFER_PROGRAM_ID=BZZFM8qzdWvv4ysy8dxpAzjs9WJ6iy9y1ph2YNqWYzrm
PAYER_KEYPAIR_PATH=/Users/rchen/.config/solana/id.json
ENDPOINT=http://pythnet:8899
CLUSTER=localnet
# 522 + 85(PriceFeedMessage) + 101(TwapMessage)
INITIAL_SIZE=708
9 changes: 9 additions & 0 deletions pythnet/message_buffer/scripts/.env.pythtest
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MESSAGE_BUFFER_PROGRAM_ID=7Vbmv1jt4vyuqBZcpYPpnVhrqVe5e6ZPb6JxDcffRHUM
PAYER_KEYPAIR_PATH=<ABSOLUTE_PATH_TO_KEYPAIR>
CLUSTER=pythtest-crosschain
# Whitelist admin will be initialized to same as payer
# then a separate txn will be used to set it to the following address
# after the message buffers have been initialized
# WHITELIST_ADMIN=D8y6qTbQeYQdyrgKUvZbsveQkfnUThRKZvewddr4SKNt # Pythtest Multisig authority address (PDA of executor)
# 522 + 85(PriceFeedMessage) + 101(TwapMessage) + extra buffer
INITIAL_SIZE=2048
9 changes: 9 additions & 0 deletions pythnet/message_buffer/scripts/.env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MESSAGE_BUFFER_PROGRAM_ID=
# absolute path to keypair
PAYER_KEYPAIR_PATH=
# 'devnet' | 'testnet' | 'mainnet-beta' |'integration' | 'pythtest-conformance' | 'pythnet' | 'localnet' | 'pythtest-crosschain';
CLUSTER=
# optional pubkey whitelist admin to set after initializing accounts
# whitelist admin will initially be set to the payer
WHITELIST_ADMIN=
INITIAL_SIZE=
Loading