Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion contract_manager/scripts/sync_wormhole_guardian_set.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import yargs from "yargs";
import { hideBin } from "yargs/helpers";
import {
AptosWormholeContract,
CosmWasmPriceFeedContract,
DefaultStore,
EvmPriceFeedContract,
Expand Down Expand Up @@ -29,7 +30,10 @@ async function main() {
const chains = argv.chain;

for (const contract of Object.values(DefaultStore.wormhole_contracts)) {
if (contract instanceof SuiWormholeContract) {
if (
contract instanceof SuiWormholeContract ||
contract instanceof AptosWormholeContract
) {
if (chains && !chains.includes(contract.getChain().getId())) {
continue;
}
Expand Down
4 changes: 4 additions & 0 deletions contract_manager/src/contracts/aptos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ export class AptosWormholeContract extends WormholeContract {
return Number(data.chain_id.number);
}

public getChain(): AptosChain {
return this.chain;
}

async getGuardianSet(): Promise<string[]> {
const data = await this.getState();
const client = this.chain.getClient();
Expand Down
5 changes: 5 additions & 0 deletions contract_manager/store/chains/AptosChains.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,8 @@
mainnet: false
rpcUrl: https://aptos.testnet.bardock.movementlabs.xyz/v1
type: AptosChain
- id: movement_mainnet
wormholeChainName: movement_mainnet
mainnet: true
rpcUrl: https://mainnet.movementnetwork.xyz/v1
type: AptosChain
4 changes: 4 additions & 0 deletions contract_manager/store/contracts/AptosPriceFeedContracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@
stateId: "0x9357e76fe965c9956a76181ee49f66d51b7f9c3800182a944ed96be86301e49f"
wormholeStateId: "0x9236893d6444b208b7e0b3e8d4be4ace90b6d17817ab7d1584e46a33ef5c50c9"
type: AptosPriceFeedContract
- chain: movement_mainnet
stateId: "0x9357e76fe965c9956a76181ee49f66d51b7f9c3800182a944ed96be86301e49f"
wormholeStateId: "0x9236893d6444b208b7e0b3e8d4be4ace90b6d17817ab7d1584e46a33ef5c50c9"
type: AptosPriceFeedContract
3 changes: 3 additions & 0 deletions contract_manager/store/contracts/AptosWormholeContracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@
- chain: movement_bardock_testnet
address: "0x9236893d6444b208b7e0b3e8d4be4ace90b6d17817ab7d1584e46a33ef5c50c9"
type: AptosWormholeContract
- chain: movement_mainnet
address: "0x9236893d6444b208b7e0b3e8d4be4ace90b6d17817ab7d1584e46a33ef5c50c9"
type: AptosWormholeContract
1 change: 1 addition & 0 deletions governance/xc_admin/packages/xc_admin_common/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export const RECEIVER_CHAINS = {
threat_level_midnight: 60074,
just_breathe: 60075,
berachain_mainnet: 60076,
movement_mainnet: 60077,

// Testnets as a separate chain ids (to use stable data sources and governance for them)
injective_testnet: 60013,
Expand Down
Loading