Skip to content

Commit

Permalink
feat: add InitPriceFeedIndex method IDL
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-bahjati committed Aug 27, 2024
1 parent 8a9c94b commit 70eced3
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pythnetwork/client",
"version": "2.21.1",
"version": "2.22.0",
"description": "Client for consuming Pyth price data",
"homepage": "https://pyth.network",
"main": "lib/index.js",
Expand Down
36 changes: 36 additions & 0 deletions src/anchor/idl.json
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,42 @@
}
}
]
},
{
"name": "initPriceFeedIndex",
"discriminant": { "value": [2, 0, 0, 0, 19, 0, 0, 0] },
"accounts": [
{
"name": "fundingAccount",
"isMut": true,
"isSigner": true
},
{
"name": "priceAccount",
"isMut": true,
"isSigner": false
},
{
"name": "permissionsAccount",
"isMut": true,
"isSigner": false,
"pda": {
"seeds": [
{
"kind": "const",
"type": "string",
"value": "permissions"
}
]
}
},
{
"name": "systemProgram",
"isMut": false,
"isSigner": false
}
],
"args": []
}
],
"types": [
Expand Down
38 changes: 37 additions & 1 deletion src/anchor/program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function pythOracleCoder(): PythOracleCoder {
export { default as pythIdl } from './idl.json'

export type PythOracle = {
version: '2.20.0'
version: '2.33.0'
name: 'pyth_oracle'
instructions: [
{
Expand Down Expand Up @@ -661,6 +661,42 @@ export type PythOracle = {
},
]
},
{
name: 'initPriceFeedIndex'
discriminant: { value: [2, 0, 0, 0, 19, 0, 0, 0] }
accounts: [
{
name: 'fundingAccount'
isMut: true
isSigner: true
},
{
name: 'priceAccount'
isMut: true
isSigner: false
},
{
name: 'permissionsAccount'
isMut: true
isSigner: false
pda: {
seeds: [
{
kind: 'const'
type: 'string'
value: 'permissions'
},
]
}
},
{
name: 'systemProgram'
isMut: false
isSigner: false
},
]
args: []
},
]
types: [
{
Expand Down

0 comments on commit 70eced3

Please sign in to comment.