Rename init price (#755)

* Rename init price

* Set exponent
This commit is contained in:
guibescos 2023-04-10 20:30:58 -05:00 committed by GitHub
parent 1371f18e84
commit f5d11c248d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 11 deletions

View File

@ -253,7 +253,7 @@ multisigCommand(
getPythProgramKeyForCluster(cluster),
provider
)
.methods.initPrice(exponent, 1)
.methods.setExponent(exponent, 1)
.accounts({ fundingAccount: vaultAuthority, priceAccount })
.instruction();
await proposeInstructions(squad, vault, [proposalInstruction], false);

View File

@ -21,7 +21,7 @@
},
"dependencies": {
"@certusone/wormhole-sdk": "^0.9.8",
"@pythnetwork/client": "^2.16.0",
"@pythnetwork/client": "^2.17.0",
"@solana/buffer-layout": "^4.0.1",
"@solana/web3.js": "^1.73.0",
"@sqds/mesh": "^1.0.6",

View File

@ -399,7 +399,7 @@ const General = () => {
// create update exponent instruction
instructions.push(
await pythProgramClient.methods
.initPrice(newChanges.priceAccounts[0].expo, 1)
.setExponent(newChanges.priceAccounts[0].expo, 1)
.accounts({
fundingAccount,
priceAccount: new PublicKey(prev.priceAccounts[0].address),

16
package-lock.json generated
View File

@ -1384,7 +1384,7 @@
"license": "ISC",
"dependencies": {
"@certusone/wormhole-sdk": "^0.9.8",
"@pythnetwork/client": "^2.16.0",
"@pythnetwork/client": "^2.17.0",
"@solana/buffer-layout": "^4.0.1",
"@solana/web3.js": "^1.73.0",
"@sqds/mesh": "^1.0.6",
@ -11193,9 +11193,9 @@
"integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw=="
},
"node_modules/@pythnetwork/client": {
"version": "2.16.0",
"resolved": "https://registry.npmjs.org/@pythnetwork/client/-/client-2.16.0.tgz",
"integrity": "sha512-56mNi40k8NPWO5w9v8AcMH7R5tOq/pusGDwUbde9WVEV9Jr3Yuob06mywpjOPzVps8kyL18o45pipzoJbZhsZw==",
"version": "2.17.0",
"resolved": "https://registry.npmjs.org/@pythnetwork/client/-/client-2.17.0.tgz",
"integrity": "sha512-hv285vehmLH6N762Z4jqvPTM+hCYnXQaUp6DMgLUpDHvE0mTbwW9PvlxYoUJZGtyeCDkgn9HrTWXPtnaXTRr+Q==",
"dependencies": {
"@coral-xyz/anchor": "^0.26.0",
"@coral-xyz/borsh": "^0.26.0",
@ -57908,9 +57908,9 @@
"integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw=="
},
"@pythnetwork/client": {
"version": "2.16.0",
"resolved": "https://registry.npmjs.org/@pythnetwork/client/-/client-2.16.0.tgz",
"integrity": "sha512-56mNi40k8NPWO5w9v8AcMH7R5tOq/pusGDwUbde9WVEV9Jr3Yuob06mywpjOPzVps8kyL18o45pipzoJbZhsZw==",
"version": "2.17.0",
"resolved": "https://registry.npmjs.org/@pythnetwork/client/-/client-2.17.0.tgz",
"integrity": "sha512-hv285vehmLH6N762Z4jqvPTM+hCYnXQaUp6DMgLUpDHvE0mTbwW9PvlxYoUJZGtyeCDkgn9HrTWXPtnaXTRr+Q==",
"requires": {
"@coral-xyz/anchor": "^0.26.0",
"@coral-xyz/borsh": "^0.26.0",
@ -91394,7 +91394,7 @@
"version": "file:governance/xc_admin/packages/xc_admin_common",
"requires": {
"@certusone/wormhole-sdk": "^0.9.8",
"@pythnetwork/client": "^2.16.0",
"@pythnetwork/client": "^2.17.0",
"@solana/buffer-layout": "^4.0.1",
"@solana/web3.js": "^1.73.0",
"@sqds/mesh": "^1.0.6",