|
|
@ -14,7 +14,7 @@ import { |
|
|
|
getSafe, |
|
|
|
getSafe, |
|
|
|
getSafeService, |
|
|
|
getSafeService, |
|
|
|
} from '@hyperlane-xyz/sdk'; |
|
|
|
} from '@hyperlane-xyz/sdk'; |
|
|
|
import { Address, CallData, eqAddress } from '@hyperlane-xyz/utils'; |
|
|
|
import { Address, CallData, eqAddress, retryAsync } from '@hyperlane-xyz/utils'; |
|
|
|
|
|
|
|
|
|
|
|
import safeSigners from '../../config/environments/mainnet3/safe/safeSigners.json' assert { type: 'json' }; |
|
|
|
import safeSigners from '../../config/environments/mainnet3/safe/safeSigners.json' assert { type: 'json' }; |
|
|
|
import { AnnotatedCallData } from '../govern/HyperlaneAppGovernor.js'; |
|
|
|
import { AnnotatedCallData } from '../govern/HyperlaneAppGovernor.js'; |
|
|
@ -24,10 +24,10 @@ export async function getSafeAndService( |
|
|
|
multiProvider: MultiProvider, |
|
|
|
multiProvider: MultiProvider, |
|
|
|
safeAddress: Address, |
|
|
|
safeAddress: Address, |
|
|
|
) { |
|
|
|
) { |
|
|
|
const safeSdk: Safe.default = await getSafe( |
|
|
|
const safeSdk: Safe.default = await retryAsync( |
|
|
|
chain, |
|
|
|
() => getSafe(chain, multiProvider, safeAddress), |
|
|
|
multiProvider, |
|
|
|
5, |
|
|
|
safeAddress, |
|
|
|
1000, |
|
|
|
); |
|
|
|
); |
|
|
|
const safeService: SafeApiKit.default = getSafeService(chain, multiProvider); |
|
|
|
const safeService: SafeApiKit.default = getSafeService(chain, multiProvider); |
|
|
|
return { safeSdk, safeService }; |
|
|
|
return { safeSdk, safeService }; |
|
|
|