@@ -635,6 +635,8 @@ yargs(hideBin(process.argv))
635
635
636
636
let errors = 0 ;
637
637
638
+ const extraInfo : any = { } ;
639
+
638
640
// diff remote and local configs
639
641
for ( const [ chain , deployment ] of Object . entries ( deps ) ) {
640
642
assertChain ( chain ) ;
@@ -652,11 +654,19 @@ yargs(hideBin(process.argv))
652
654
if ( verbose ) {
653
655
const immutables = await getImmutables ( chain , deployment . ntt ) ;
654
656
if ( immutables ) {
655
- console . log ( JSON . stringify ( { [ chain ] : immutables } , null , 2 ) )
657
+ extraInfo [ chain ] = immutables ;
658
+ }
659
+ const pdas = await getPdas ( chain , deployment . ntt ) ;
660
+ if ( pdas ) {
661
+ extraInfo [ chain ] = pdas ;
656
662
}
657
663
}
658
664
}
659
665
666
+ if ( extraInfo ) {
667
+ console . log ( chalk . yellow ( JSON . stringify ( extraInfo , null , 2 ) ) ) ;
668
+ }
669
+
660
670
// verify peers
661
671
const missing = await missingConfigs ( deps , verbose ) ;
662
672
@@ -1175,9 +1185,9 @@ async function missingConfigs(
1175
1185
continue ;
1176
1186
}
1177
1187
if ( verbose ) {
1178
- process . stdout . write ( `Verifying registration for ${ fromChain } -> ${ toChain } \r` ) ;
1188
+ process . stdout . write ( `Verifying registration for ${ fromChain } -> ${ toChain } ...... \r` ) ;
1179
1189
}
1180
- const peer = await from . ntt . getPeer ( toChain ) ;
1190
+ const peer = await retryWithExponentialBackoff ( ( ) => from . ntt . getPeer ( toChain ) , 5 , 5000 ) ;
1181
1191
if ( peer === null ) {
1182
1192
const configLimit = from . config . local ?. limits ?. inbound ?. [ toChain ] ?. replace ( "." , "" ) ;
1183
1193
count ++ ;
@@ -1310,7 +1320,7 @@ async function pullDeployments(deployments: Config, network: Network, verbose: b
1310
1320
1311
1321
for ( const [ chain , deployment ] of Object . entries ( deployments . chains ) ) {
1312
1322
if ( verbose ) {
1313
- process . stdout . write ( `Fetching config for ${ chain } \r` ) ;
1323
+ process . stdout . write ( `Fetching config for ${ chain } ...... \r` ) ;
1314
1324
}
1315
1325
assertChain ( chain ) ;
1316
1326
const managerAddress : string | undefined = deployment . manager ;
@@ -1433,6 +1443,29 @@ async function getImmutables<N extends Network, C extends Chain>(chain: C, ntt:
1433
1443
} ;
1434
1444
}
1435
1445
1446
+ async function getPdas < N extends Network , C extends Chain > ( chain : C , ntt : Ntt < N , C > ) {
1447
+ const platform = chainToPlatform ( chain ) ;
1448
+ if ( platform !== "Solana" ) {
1449
+ return null ;
1450
+ }
1451
+ const solanaNtt = ntt as SolanaNtt < N , SolanaChains > ;
1452
+ const config = solanaNtt . pdas . configAccount ( ) ;
1453
+ const emitter = solanaNtt . pdas . emitterAccount ( ) ;
1454
+ const outboxRateLimit = solanaNtt . pdas . outboxRateLimitAccount ( ) ;
1455
+ const tokenAuthority = solanaNtt . pdas . tokenAuthority ( ) ;
1456
+ const lutAccount = solanaNtt . pdas . lutAccount ( ) ;
1457
+ const lutAuthority = solanaNtt . pdas . lutAuthority ( ) ;
1458
+
1459
+ return {
1460
+ config,
1461
+ emitter,
1462
+ outboxRateLimit,
1463
+ tokenAuthority,
1464
+ lutAccount,
1465
+ lutAuthority,
1466
+ } ;
1467
+ }
1468
+
1436
1469
function getVersion < N extends Network , C extends Chain > ( chain : C , ntt : Ntt < N , C > ) : string {
1437
1470
const platform = chainToPlatform ( chain ) ;
1438
1471
switch ( platform ) {
@@ -1528,7 +1561,7 @@ async function pullInboundLimits(ntts: Partial<{ [C in Chain]: Ntt<Network, C> }
1528
1561
continue ;
1529
1562
}
1530
1563
if ( verbose ) {
1531
- process . stdout . write ( `Fetching inbound limit for ${ c1 } -> ${ c2 } \r` ) ;
1564
+ process . stdout . write ( `Fetching inbound limit for ${ c1 } -> ${ c2 } ....... \r` ) ;
1532
1565
}
1533
1566
const peer = await retryWithExponentialBackoff ( ( ) => ntt1 . getPeer ( c2 ) , 5 , 5000 ) ;
1534
1567
if ( chainConf . limits ?. inbound === undefined ) {
0 commit comments