File tree Expand file tree Collapse file tree 10 files changed +386
-112
lines changed
programs/message_buffer/src Expand file tree Collapse file tree 10 files changed +386
-112
lines changed Original file line number Diff line number Diff line change 2
2
seeds = true
3
3
skip-lint = false
4
4
[programs .localnet ]
5
- message_buffer = " Vbmv1jt4vyuqBZcpYPpnVhrqVe5e6ZPb6JxDcffRHUM "
5
+ message_buffer = " 7Vbmv1jt4vyuqBZcpYPpnVhrqVe5e6ZPb6JxDcffRHUM "
6
6
mock_cpi_caller = " Dg5PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"
7
7
8
8
[registry ]
Original file line number Diff line number Diff line change 6
6
},
7
7
"dependencies" : {
8
8
"@coral-xyz/anchor" : " ^0.27.0" ,
9
- "@lumina-dev/test" : " ^0.0.12"
9
+ "@lumina-dev/test" : " ^0.0.12" ,
10
+ "@pythnetwork/client" : " ^2.17.0" ,
11
+ "dotenv" : " ^16.0.3"
10
12
},
11
13
"devDependencies" : {
12
14
"@types/bn.js" : " ^5.1.0" ,
Original file line number Diff line number Diff line change 12
12
state:: * ,
13
13
} ;
14
14
15
- declare_id ! ( "Vbmv1jt4vyuqBZcpYPpnVhrqVe5e6ZPb6JxDcffRHUM " ) ;
15
+ declare_id ! ( "7Vbmv1jt4vyuqBZcpYPpnVhrqVe5e6ZPb6JxDcffRHUM " ) ;
16
16
17
17
#[ program]
18
18
pub mod message_buffer {
Original file line number Diff line number Diff line change
1
+ MESSAGE_BUFFER_PROGRAM_ID=BZZFM8qzdWvv4ysy8dxpAzjs9WJ6iy9y1ph2YNqWYzrm
2
+ ORACLE_PROGRAM_ID=7th6GdMuo4u1zNLzFAyMY6psunHNsGjPjo8hXvcTgKei
3
+ PAYER_KEYPAIR_PATH=/keys/funding.json
4
+ CLUSTER=integration
5
+ # 522 + 85(PriceFeedMessage) + 101(TwapMessage)
6
+ INITIAL_SIZE=708
Original file line number Diff line number Diff line change
1
+ MESSAGE_BUFFER_PROGRAM_ID = BZZFM8qzdWvv4ysy8dxpAzjs9WJ6iy9y1ph2YNqWYzrm
2
+ PAYER_KEYPAIR_PATH = /Users/rchen/.config/solana/id.json
3
+ ENDPOINT = http://pythnet:8899
4
+ CLUSTER = localnet
5
+ # 522 + 85(PriceFeedMessage) + 101(TwapMessage)
6
+ INITIAL_SIZE = 708
Original file line number Diff line number Diff line change
1
+ MESSAGE_BUFFER_PROGRAM_ID=7Vbmv1jt4vyuqBZcpYPpnVhrqVe5e6ZPb6JxDcffRHUM
2
+ PAYER_KEYPAIR_PATH=<ABSOLUTE_PATH_TO_KEYPAIR>
3
+ CLUSTER=pythtest-crosschain
4
+ # Whitelist admin will be initialized to same as payer
5
+ # then a separate txn will be used to set it to the following address
6
+ # after the message buffers have been initialized
7
+ # WHITELIST_ADMIN=D8y6qTbQeYQdyrgKUvZbsveQkfnUThRKZvewddr4SKNt # Pythtest Multisig authority address (PDA of executor)
8
+ # 522 + 85(PriceFeedMessage) + 101(TwapMessage) + extra buffer
9
+ INITIAL_SIZE=2048
Original file line number Diff line number Diff line change
1
+ MESSAGE_BUFFER_PROGRAM_ID=
2
+ # absolute path to keypair
3
+ PAYER_KEYPAIR_PATH=
4
+ # 'devnet' | 'testnet' | 'mainnet-beta' |'integration' | 'pythtest-conformance' | 'pythnet' | 'localnet' | 'pythtest-crosschain';
5
+ CLUSTER=
6
+ # optional pubkey whitelist admin to set after initializing accounts
7
+ # whitelist admin will initially be set to the payer
8
+ WHITELIST_ADMIN=
9
+ INITIAL_SIZE=
You can’t perform that action at this time.
0 commit comments