File tree Expand file tree Collapse file tree 6 files changed +22
-1
lines changed
governance/xc_admin/packages/xc_admin_common/src Expand file tree Collapse file tree 6 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 1
1
import yargs from "yargs" ;
2
2
import { hideBin } from "yargs/helpers" ;
3
3
import {
4
+ AptosWormholeContract ,
4
5
CosmWasmPriceFeedContract ,
5
6
DefaultStore ,
6
7
EvmPriceFeedContract ,
@@ -29,7 +30,10 @@ async function main() {
29
30
const chains = argv . chain ;
30
31
31
32
for ( const contract of Object . values ( DefaultStore . wormhole_contracts ) ) {
32
- if ( contract instanceof SuiWormholeContract ) {
33
+ if (
34
+ contract instanceof SuiWormholeContract ||
35
+ contract instanceof AptosWormholeContract
36
+ ) {
33
37
if ( chains && ! chains . includes ( contract . getChain ( ) . getId ( ) ) ) {
34
38
continue ;
35
39
}
Original file line number Diff line number Diff line change @@ -76,6 +76,10 @@ export class AptosWormholeContract extends WormholeContract {
76
76
return Number ( data . chain_id . number ) ;
77
77
}
78
78
79
+ public getChain ( ) : AptosChain {
80
+ return this . chain ;
81
+ }
82
+
79
83
async getGuardianSet ( ) : Promise < string [ ] > {
80
84
const data = await this . getState ( ) ;
81
85
const client = this . chain . getClient ( ) ;
Original file line number Diff line number Diff line change 29
29
mainnet : false
30
30
rpcUrl : https://aptos.testnet.bardock.movementlabs.xyz/v1
31
31
type : AptosChain
32
+ - id : movement_mainnet
33
+ wormholeChainName : movement_mainnet
34
+ mainnet : true
35
+ rpcUrl : https://mainnet.movementnetwork.xyz/v1
36
+ type : AptosChain
Original file line number Diff line number Diff line change 22
22
stateId : " 0x9357e76fe965c9956a76181ee49f66d51b7f9c3800182a944ed96be86301e49f"
23
23
wormholeStateId : " 0x9236893d6444b208b7e0b3e8d4be4ace90b6d17817ab7d1584e46a33ef5c50c9"
24
24
type : AptosPriceFeedContract
25
+ - chain : movement_mainnet
26
+ stateId : " 0x9357e76fe965c9956a76181ee49f66d51b7f9c3800182a944ed96be86301e49f"
27
+ wormholeStateId : " 0x9236893d6444b208b7e0b3e8d4be4ace90b6d17817ab7d1584e46a33ef5c50c9"
28
+ type : AptosPriceFeedContract
Original file line number Diff line number Diff line change 16
16
- chain : movement_bardock_testnet
17
17
address : " 0x9236893d6444b208b7e0b3e8d4be4ace90b6d17817ab7d1584e46a33ef5c50c9"
18
18
type : AptosWormholeContract
19
+ - chain : movement_mainnet
20
+ address : " 0x9236893d6444b208b7e0b3e8d4be4ace90b6d17817ab7d1584e46a33ef5c50c9"
21
+ type : AptosWormholeContract
Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ export const RECEIVER_CHAINS = {
107
107
threat_level_midnight : 60074 ,
108
108
just_breathe : 60075 ,
109
109
berachain_mainnet : 60076 ,
110
+ movement_mainnet : 60077 ,
110
111
111
112
// Testnets as a separate chain ids (to use stable data sources and governance for them)
112
113
injective_testnet : 60013 ,
You can’t perform that action at this time.
0 commit comments