Improve contract manager and switch evmos rpc (#1044)
* Small fixes and logging improvement * Switch evmos rpc as the older one was not working anymore
This commit is contained in:
parent
ed505d9e53
commit
51afd5aef2
|
@ -29,7 +29,7 @@ async function main() {
|
||||||
try {
|
try {
|
||||||
console.log(`${contract.getId()} ${await contract.getTotalFee()}`);
|
console.log(`${contract.getId()} ${await contract.getTotalFee()}`);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(`Error fetching fees for ${contract.getId()}`, e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@ import { DefaultStore } from "../src/store";
|
||||||
import { SubmittedWormholeMessage, Vault } from "../src/governance";
|
import { SubmittedWormholeMessage, Vault } from "../src/governance";
|
||||||
import { parseVaa } from "@certusone/wormhole-sdk";
|
import { parseVaa } from "@certusone/wormhole-sdk";
|
||||||
import { decodeGovernancePayload } from "xc_admin_common";
|
import { decodeGovernancePayload } from "xc_admin_common";
|
||||||
|
import { toPrivateKey } from "../src";
|
||||||
|
|
||||||
const parser = yargs(hideBin(process.argv))
|
const parser = yargs(hideBin(process.argv))
|
||||||
.usage(
|
.usage(
|
||||||
|
@ -89,7 +90,10 @@ async function main() {
|
||||||
contract.getChain().wormholeChainName === action.targetChainId
|
contract.getChain().wormholeChainName === action.targetChainId
|
||||||
) {
|
) {
|
||||||
console.log("executing vaa", lastExecuted + 1);
|
console.log("executing vaa", lastExecuted + 1);
|
||||||
await contract.executeGovernanceInstruction(argv["private-key"], vaa);
|
await contract.executeGovernanceInstruction(
|
||||||
|
toPrivateKey(argv["private-key"]),
|
||||||
|
vaa
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
console.log(
|
console.log(
|
||||||
`vaa is not for this chain (${
|
`vaa is not for this chain (${
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
- id: evmos
|
- id: evmos
|
||||||
wormholeChainName: evmos
|
wormholeChainName: evmos
|
||||||
mainnet: true
|
mainnet: true
|
||||||
rpcUrl: https://json-rpc.evmos.blockhunters.org
|
rpcUrl: https://evmos-evm.publicnode.com
|
||||||
networkId: 9001
|
networkId: 9001
|
||||||
type: EvmChain
|
type: EvmChain
|
||||||
- id: goerli
|
- id: goerli
|
||||||
|
|
Loading…
Reference in New Issue