@moonsong-labs/moonwall-cli
Version:
Testing framework for the Moon family of projects
27 lines (24 loc) • 940 B
TypeScript
import { ApiPromise } from '@polkadot/api';
import { KeyringPair } from '@polkadot/keyring/types';
import { ChopsticksContext } from '../types/runner.js';
import 'ethers';
import 'web3';
import '@polkadot/api/types/index.js';
import './contextHelpers.js';
import '@polkadot/api/types';
import '@polkadot/types/extrinsic';
import '@polkadot/types/interfaces';
import '@polkadot/types/types';
import 'debug';
import '../types/config.js';
interface UpgradePreferences {
runtimeName: "moonbase" | "moonriver" | "moonbeam";
runtimeTag: "local" | string;
from?: KeyringPair;
waitMigration?: boolean;
useGovernance?: boolean;
localPath?: string;
}
declare function upgradeRuntimeChopsticks(context: ChopsticksContext, path: string): Promise<void>;
declare function upgradeRuntime(api: ApiPromise, preferences: UpgradePreferences): Promise<number>;
export { UpgradePreferences, upgradeRuntime, upgradeRuntimeChopsticks };