chore(contract_manager): Rename package to @pythnetwork/contract-manager (#1507)

This change renames the contract manager package name to @pythnetwork/contract-manager to be consistent with our package names.
This commit is contained in:
Ali Behjati 2024-04-29 15:25:05 +02:00 committed by GitHub
parent 6da2e1ba53
commit ef922220ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
12 changed files with 19 additions and 19 deletions

View File

@ -1,5 +1,5 @@
{ {
"name": "contract_manager", "name": "@pythnetwork/contract-manager",
"version": "1.0.0", "version": "1.0.0",
"description": "Set of tools to manage pyth contracts", "description": "Set of tools to manage pyth contracts",
"private": true, "private": true,

16
package-lock.json generated
View File

@ -31488,7 +31488,7 @@
"node": ">= 0.6" "node": ">= 0.6"
} }
}, },
"node_modules/contract_manager": { "node_modules/@pythnetwork/contract-manager": {
"resolved": "contract_manager", "resolved": "contract_manager",
"link": true "link": true
}, },
@ -65844,7 +65844,7 @@
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@pythnetwork/cosmwasm-deploy-tools": "*", "@pythnetwork/cosmwasm-deploy-tools": "*",
"contract_manager": "*", "@pythnetwork/contract-manager": "*",
"rimraf": "^5.0.0", "rimraf": "^5.0.0",
"typescript": "^5.3.3", "typescript": "^5.3.3",
"yargs": "^17.0.1" "yargs": "^17.0.1"
@ -66492,7 +66492,7 @@
"@pythnetwork/entropy-sdk-solidity": "*", "@pythnetwork/entropy-sdk-solidity": "*",
"@pythnetwork/pyth-multisig-wh-message-builder": "*", "@pythnetwork/pyth-multisig-wh-message-builder": "*",
"@pythnetwork/pyth-sdk-solidity": "^3.0.0", "@pythnetwork/pyth-sdk-solidity": "^3.0.0",
"contract_manager": "*", "@pythnetwork/contract-manager": "*",
"dotenv": "^10.0.0", "dotenv": "^10.0.0",
"elliptic": "^6.5.2", "elliptic": "^6.5.2",
"ethers": "^5.7.2", "ethers": "^5.7.2",
@ -67954,7 +67954,7 @@
"@pythnetwork/client": "^2.17.0", "@pythnetwork/client": "^2.17.0",
"@pythnetwork/price-service-client": "^1.4.0", "@pythnetwork/price-service-client": "^1.4.0",
"@pythnetwork/price-service-sdk": "^1.2.0", "@pythnetwork/price-service-sdk": "^1.2.0",
"contract_manager": "*", "@pythnetwork/contract-manager": "*",
"prettier": "^2.8.7", "prettier": "^2.8.7",
"typescript": "^5.0.4", "typescript": "^5.0.4",
"xc_admin_common": "*" "xc_admin_common": "*"
@ -77292,7 +77292,7 @@
"requires": { "requires": {
"@pythnetwork/cosmwasm-deploy-tools": "*", "@pythnetwork/cosmwasm-deploy-tools": "*",
"@types/yargs": "^17.0.18", "@types/yargs": "^17.0.18",
"contract_manager": "*", "@pythnetwork/contract-manager": "*",
"rimraf": "^5.0.0", "rimraf": "^5.0.0",
"typescript": "^5.3.3", "typescript": "^5.3.3",
"yargs": "^17.0.1" "yargs": "^17.0.1"
@ -79896,7 +79896,7 @@
"@truffle/hdwallet-provider": "^2.1.5", "@truffle/hdwallet-provider": "^2.1.5",
"@types/chai": "^4.3.4", "@types/chai": "^4.3.4",
"chai": "^4.2.0", "chai": "^4.2.0",
"contract_manager": "*", "@pythnetwork/contract-manager": "*",
"dotenv": "^10.0.0", "dotenv": "^10.0.0",
"elliptic": "^6.5.2", "elliptic": "^6.5.2",
"ethers": "^5.7.2", "ethers": "^5.7.2",
@ -92541,7 +92541,7 @@
"resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
"integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==" "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA=="
}, },
"contract_manager": { "@pythnetwork/contract-manager": {
"version": "file:contract_manager", "version": "file:contract_manager",
"requires": { "requires": {
"@certusone/wormhole-sdk": "^0.9.8", "@certusone/wormhole-sdk": "^0.9.8",
@ -109759,7 +109759,7 @@
"@pythnetwork/client": "^2.17.0", "@pythnetwork/client": "^2.17.0",
"@pythnetwork/price-service-client": "^1.4.0", "@pythnetwork/price-service-client": "^1.4.0",
"@pythnetwork/price-service-sdk": "^1.2.0", "@pythnetwork/price-service-sdk": "^1.2.0",
"contract_manager": "*", "@pythnetwork/contract-manager": "*",
"prettier": "^2.8.7", "prettier": "^2.8.7",
"typescript": "^5.0.4", "typescript": "^5.0.4",
"xc_admin_common": "*" "xc_admin_common": "*"

View File

@ -8,7 +8,7 @@ import {
AptosChain, AptosChain,
DefaultStore, DefaultStore,
getDefaultDeploymentConfig, getDefaultDeploymentConfig,
} from "contract_manager"; } from "@pythnetwork/contract-manager";
const NETWORK_CHOICES = Object.entries(DefaultStore.chains) const NETWORK_CHOICES = Object.entries(DefaultStore.chains)
.filter(([chain, config]) => { .filter(([chain, config]) => {

View File

@ -13,7 +13,7 @@
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@pythnetwork/cosmwasm-deploy-tools": "*", "@pythnetwork/cosmwasm-deploy-tools": "*",
"contract_manager": "*", "@pythnetwork/contract-manager": "*",
"rimraf": "^5.0.0", "rimraf": "^5.0.0",
"typescript": "^5.3.3", "typescript": "^5.3.3",
"yargs": "^17.0.1" "yargs": "^17.0.1"

View File

@ -1,4 +1,4 @@
import { getDefaultDeploymentConfig } from "contract_manager"; import { getDefaultDeploymentConfig } from "@pythnetwork/contract-manager";
import { DeploymentType } from "./helper"; import { DeploymentType } from "./helper";
function getPythSources(deploymentType: DeploymentType) { function getPythSources(deploymentType: DeploymentType) {

View File

@ -8,7 +8,7 @@ import {
DefaultStore, DefaultStore,
Store, Store,
toPrivateKey, toPrivateKey,
} from "contract_manager"; } from "@pythnetwork/contract-manager";
import { CHAINS } from "xc_admin_common"; import { CHAINS } from "xc_admin_common";
import { DeploymentType, getContractBytesDict } from "./helper"; import { DeploymentType, getContractBytesDict } from "./helper";

View File

@ -7,7 +7,7 @@ import {
DefaultStore, DefaultStore,
toPrivateKey, toPrivateKey,
CosmWasmWormholeContract, CosmWasmWormholeContract,
} from "contract_manager"; } from "@pythnetwork/contract-manager";
import { CHAINS } from "xc_admin_common"; import { CHAINS } from "xc_admin_common";
import { DeploymentType } from "./helper"; import { DeploymentType } from "./helper";

View File

@ -37,7 +37,7 @@
"@pythnetwork/pyth-multisig-wh-message-builder": "*", "@pythnetwork/pyth-multisig-wh-message-builder": "*",
"@pythnetwork/pyth-sdk-solidity": "^3.0.0", "@pythnetwork/pyth-sdk-solidity": "^3.0.0",
"@pythnetwork/entropy-sdk-solidity": "*", "@pythnetwork/entropy-sdk-solidity": "*",
"contract_manager": "*", "@pythnetwork/contract-manager": "*",
"dotenv": "^10.0.0", "dotenv": "^10.0.0",
"elliptic": "^6.5.2", "elliptic": "^6.5.2",
"ethers": "^5.7.2", "ethers": "^5.7.2",

View File

@ -10,7 +10,7 @@ import {
EvmChain, EvmChain,
loadHotWallet, loadHotWallet,
EvmWormholeContract, EvmWormholeContract,
} from "contract_manager"; } from "@pythnetwork/contract-manager";
import Web3 from "web3"; import Web3 from "web3";
import { CHAINS } from "xc_admin_common"; import { CHAINS } from "xc_admin_common";
import * as fs from "fs"; import * as fs from "fs";

View File

@ -15,7 +15,7 @@
"@pythnetwork/client": "^2.17.0", "@pythnetwork/client": "^2.17.0",
"@pythnetwork/price-service-client": "^1.4.0", "@pythnetwork/price-service-client": "^1.4.0",
"@pythnetwork/price-service-sdk": "^1.2.0", "@pythnetwork/price-service-sdk": "^1.2.0",
"contract_manager": "*", "@pythnetwork/contract-manager": "*",
"prettier": "^2.8.7", "prettier": "^2.8.7",
"typescript": "^5.0.4", "typescript": "^5.0.4",
"xc_admin_common": "*" "xc_admin_common": "*"

View File

@ -5,7 +5,7 @@ import {
getDefaultDeploymentConfig, getDefaultDeploymentConfig,
SuiChain, SuiChain,
SuiPriceFeedContract, SuiPriceFeedContract,
} from "contract_manager"; } from "@pythnetwork/contract-manager";
import { PriceServiceConnection } from "@pythnetwork/price-service-client"; import { PriceServiceConnection } from "@pythnetwork/price-service-client";
import { execSync } from "child_process"; import { execSync } from "child_process";
import { initPyth, publishPackage } from "./pyth_deploy"; import { initPyth, publishPackage } from "./pyth_deploy";

View File

@ -8,7 +8,7 @@ import { SuiClient } from "@mysten/sui.js/client";
import { Ed25519Keypair } from "@mysten/sui.js/keypairs/ed25519"; import { Ed25519Keypair } from "@mysten/sui.js/keypairs/ed25519";
import { execSync } from "child_process"; import { execSync } from "child_process";
import { SuiPriceFeedContract } from "contract_manager"; import { SuiPriceFeedContract } from "@pythnetwork/contract-manager";
export function buildForBytecodeAndDigest(packagePath: string) { export function buildForBytecodeAndDigest(packagePath: string) {
const buildOutput: { const buildOutput: {