Skip to content

Commit 995c886

Browse files
authored
Update solidity sdk version (#255)
* Update solidity sdk package. * Add migration files
1 parent f09c46b commit 995c886

File tree

5 files changed

+53
-8
lines changed

5 files changed

+53
-8
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
require('dotenv').config({ path: "../.env" });
2+
3+
const PythUpgradable = artifacts.require("PythUpgradable");
4+
5+
const { upgradeProxy } = require("@openzeppelin/truffle-upgrades");
6+
7+
/**
8+
* This change:
9+
* - Updates the interface, adds `updatePriceFeedsIfNecessary` that wraps
10+
* `updatePriceFeeds` and rejects if the price update is not necessary.
11+
*/
12+
module.exports = async function (deployer) {
13+
const proxy = await PythUpgradable.deployed();
14+
await upgradeProxy(proxy.address, PythUpgradable, { deployer });
15+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
require('dotenv').config({ path: "../.env" });
2+
3+
const PythUpgradable = artifacts.require("PythUpgradable");
4+
5+
const { upgradeProxy } = require("@openzeppelin/truffle-upgrades");
6+
7+
/**
8+
* This change:
9+
* - Updates the interface, adds `updatePriceFeedsIfNecessary` that wraps
10+
* `updatePriceFeeds` and rejects if the price update is not necessary.
11+
*/
12+
module.exports = async function (deployer) {
13+
const proxy = await PythUpgradable.deployed();
14+
await upgradeProxy(proxy.address, PythUpgradable, { deployer });
15+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
require('dotenv').config({ path: "../.env" });
2+
3+
const PythUpgradable = artifacts.require("PythUpgradable");
4+
5+
const { upgradeProxy } = require("@openzeppelin/truffle-upgrades");
6+
7+
/**
8+
* This change:
9+
* - Updates the interface, adds `updatePriceFeedsIfNecessary` that wraps
10+
* `updatePriceFeeds` and rejects if the price update is not necessary.
11+
*/
12+
module.exports = async function (deployer) {
13+
const proxy = await PythUpgradable.deployed();
14+
await upgradeProxy(proxy.address, PythUpgradable, { deployer });
15+
}

ethereum/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ethereum/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"dependencies": {
3131
"@openzeppelin/contracts": "^4.5.0",
3232
"@openzeppelin/contracts-upgradeable": "^4.5.2",
33-
"@pythnetwork/pyth-sdk-solidity": "^0.5.0",
33+
"@pythnetwork/pyth-sdk-solidity": "^0.5.1",
3434
"dotenv": "^10.0.0",
3535
"elliptic": "^6.5.2",
3636
"ganache-cli": "^6.12.1",

0 commit comments

Comments
 (0)