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), getPythProgramKeyForCluster(cluster),
provider provider
) )
.methods.initPrice(exponent, 1) .methods.setExponent(exponent, 1)
.accounts({ fundingAccount: vaultAuthority, priceAccount }) .accounts({ fundingAccount: vaultAuthority, priceAccount })
.instruction(); .instruction();
await proposeInstructions(squad, vault, [proposalInstruction], false); await proposeInstructions(squad, vault, [proposalInstruction], false);

View File

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

View File

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

16
package-lock.json generated
View File

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