Skip to content

Commit d06fbb8

Browse files
committed
fix: fix build after rebase
1 parent eb9c1ab commit d06fbb8

3 files changed

Lines changed: 21 additions & 21 deletions

File tree

typescript/deploy-sdk/src/core/core-writer.test.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import {
2828
DeployedMailboxArtifact,
2929
DeployedRawMailboxArtifact,
3030
IRawMailboxArtifactManager,
31-
MailboxConfig,
31+
MailboxArtifactConfig,
3232
MailboxOnChain,
3333
} from '@hyperlane-xyz/provider-sdk/mailbox';
3434
import { AnnotatedTx, TxReceipt } from '@hyperlane-xyz/provider-sdk/module';
@@ -268,7 +268,7 @@ describe('CoreWriter', () => {
268268
describe('create', () => {
269269
it('should deploy mailbox with NEW ISM and NEW hooks', async () => {
270270
// ARRANGE
271-
const artifact: ArtifactNew<MailboxConfig> = {
271+
const artifact: ArtifactNew<MailboxArtifactConfig> = {
272272
artifactState: ArtifactState.NEW,
273273
config: {
274274
owner: mockOwner,
@@ -345,7 +345,7 @@ describe('CoreWriter', () => {
345345

346346
it('should use existing ISM when DEPLOYED', async () => {
347347
// ARRANGE
348-
const artifact: ArtifactNew<MailboxConfig> = {
348+
const artifact: ArtifactNew<MailboxArtifactConfig> = {
349349
artifactState: ArtifactState.NEW,
350350
config: {
351351
owner: mockOwner,
@@ -384,7 +384,7 @@ describe('CoreWriter', () => {
384384
signer,
385385
);
386386

387-
const artifact: ArtifactNew<MailboxConfig> = {
387+
const artifact: ArtifactNew<MailboxArtifactConfig> = {
388388
artifactState: ArtifactState.NEW,
389389
config: {
390390
owner: mockOwner,
@@ -414,7 +414,7 @@ describe('CoreWriter', () => {
414414

415415
it('should create mailbox with signer as initial owner', async () => {
416416
// ARRANGE
417-
const artifact: ArtifactNew<MailboxConfig> = {
417+
const artifact: ArtifactNew<MailboxArtifactConfig> = {
418418
artifactState: ArtifactState.NEW,
419419
config: {
420420
owner: mockOwner,
@@ -449,7 +449,7 @@ describe('CoreWriter', () => {
449449

450450
it('should create mailbox with zero-address hooks initially', async () => {
451451
// ARRANGE
452-
const artifact: ArtifactNew<MailboxConfig> = {
452+
const artifact: ArtifactNew<MailboxArtifactConfig> = {
453453
artifactState: ArtifactState.NEW,
454454
config: {
455455
owner: mockOwner,
@@ -512,7 +512,7 @@ describe('CoreWriter', () => {
512512

513513
it('should update mailbox with hooks and owner after deployment', async () => {
514514
// ARRANGE
515-
const artifact: ArtifactNew<MailboxConfig> = {
515+
const artifact: ArtifactNew<MailboxArtifactConfig> = {
516516
artifactState: ArtifactState.NEW,
517517
config: {
518518
owner: mockOwner,
@@ -597,7 +597,7 @@ describe('CoreWriter', () => {
597597
.stub()
598598
.returns(mockMailboxWriter);
599599

600-
const artifact: ArtifactNew<MailboxConfig> = {
600+
const artifact: ArtifactNew<MailboxArtifactConfig> = {
601601
artifactState: ArtifactState.NEW,
602602
config: {
603603
owner: mockOwner,
@@ -627,7 +627,7 @@ describe('CoreWriter', () => {
627627

628628
it('should collect receipts from all steps', async () => {
629629
// ARRANGE
630-
const artifact: ArtifactNew<MailboxConfig> = {
630+
const artifact: ArtifactNew<MailboxArtifactConfig> = {
631631
artifactState: ArtifactState.NEW,
632632
config: {
633633
owner: mockOwner,
@@ -664,7 +664,7 @@ describe('CoreWriter', () => {
664664
it('should propagate ISM deployment errors', async () => {
665665
// ARRANGE
666666
const error = new Error('ISM deployment failed');
667-
const artifact: ArtifactNew<MailboxConfig> = {
667+
const artifact: ArtifactNew<MailboxArtifactConfig> = {
668668
artifactState: ArtifactState.NEW,
669669
config: {
670670
owner: mockOwner,
@@ -707,7 +707,7 @@ describe('CoreWriter', () => {
707707
.stub()
708708
.returns(mockMailboxWriter);
709709

710-
const artifact: ArtifactNew<MailboxConfig> = {
710+
const artifact: ArtifactNew<MailboxArtifactConfig> = {
711711
artifactState: ArtifactState.NEW,
712712
config: {
713713
owner: mockOwner,
@@ -761,7 +761,7 @@ describe('CoreWriter', () => {
761761
deployed: { address: mockNewIsmAddress },
762762
};
763763

764-
const expectedArtifact: ArtifactNew<MailboxConfig> = {
764+
const expectedArtifact: ArtifactNew<MailboxArtifactConfig> = {
765765
artifactState: ArtifactState.NEW,
766766
config: {
767767
owner: mockOwner,
@@ -824,7 +824,7 @@ describe('CoreWriter', () => {
824824

825825
sinon.stub(coreWriter, 'read').resolves(currentMailbox);
826826

827-
const expectedArtifact: ArtifactNew<MailboxConfig> = {
827+
const expectedArtifact: ArtifactNew<MailboxArtifactConfig> = {
828828
artifactState: ArtifactState.NEW,
829829
config: {
830830
owner: mockOwner,
@@ -884,7 +884,7 @@ describe('CoreWriter', () => {
884884

885885
sinon.stub(coreWriter, 'read').resolves(currentMailbox);
886886

887-
const expectedArtifact: ArtifactNew<MailboxConfig> = {
887+
const expectedArtifact: ArtifactNew<MailboxArtifactConfig> = {
888888
artifactState: ArtifactState.NEW,
889889
config: currentMailbox.config,
890890
};
@@ -938,7 +938,7 @@ describe('CoreWriter', () => {
938938

939939
sinon.stub(coreWriter, 'read').resolves(currentMailbox as any);
940940

941-
const expectedArtifact: ArtifactNew<MailboxConfig> = {
941+
const expectedArtifact: ArtifactNew<MailboxArtifactConfig> = {
942942
artifactState: ArtifactState.NEW,
943943
config: {
944944
owner: mockOwner,
@@ -957,7 +957,7 @@ describe('CoreWriter', () => {
957957
it('should propagate ISM deployment errors', async () => {
958958
// ARRANGE
959959
const error = new Error('ISM deployment failed');
960-
const artifact: ArtifactNew<MailboxConfig> = {
960+
const artifact: ArtifactNew<MailboxArtifactConfig> = {
961961
artifactState: ArtifactState.NEW,
962962
config: {
963963
owner: mockOwner,
@@ -1000,7 +1000,7 @@ describe('CoreWriter', () => {
10001000
.stub()
10011001
.returns(mockMailboxWriter);
10021002

1003-
const artifact: ArtifactNew<MailboxConfig> = {
1003+
const artifact: ArtifactNew<MailboxArtifactConfig> = {
10041004
artifactState: ArtifactState.NEW,
10051005
config: {
10061006
owner: mockOwner,

typescript/deploy-sdk/src/core/core-writer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import {
2828
import {
2929
DeployedMailboxArtifact,
3030
IRawMailboxArtifactManager,
31-
MailboxConfig,
31+
MailboxArtifactConfig,
3232
MailboxOnChain,
3333
} from '@hyperlane-xyz/provider-sdk/mailbox';
3434
import { AnnotatedTx, TxReceipt } from '@hyperlane-xyz/provider-sdk/module';
@@ -129,7 +129,7 @@ export class CoreWriter extends CoreArtifactReader {
129129
* @param artifact Mailbox artifact with nested ISM and hook artifacts
130130
* @returns Object containing deployed mailbox, validator announce artifacts, and receipts
131131
*/
132-
async create(artifact: ArtifactNew<MailboxConfig>): Promise<{
132+
async create(artifact: ArtifactNew<MailboxArtifactConfig>): Promise<{
133133
mailbox: DeployedMailboxArtifact;
134134
validatorAnnounce: DeployedValidatorAnnounceArtifact | null;
135135
receipts: TxReceipt[];
@@ -310,7 +310,7 @@ export class CoreWriter extends CoreArtifactReader {
310310
*/
311311
async update(
312312
mailboxAddress: string,
313-
expectedArtifact: ArtifactNew<MailboxConfig>,
313+
expectedArtifact: ArtifactNew<MailboxArtifactConfig>,
314314
): Promise<AnnotatedTx[]> {
315315
const { config: expectedConfig } = expectedArtifact;
316316
const updateTxs: AnnotatedTx[] = [];

typescript/radix-sdk/src/clients/protocol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export class RadixProtocolProvider implements ProtocolProvider {
9090
chainMetadata: ChainMetadataForAltVM,
9191
_context?: { mailbox?: string },
9292
): IRawWarpArtifactManager {
93-
const { gateway, base } = this.getCommonSetup(chainMetadata);
93+
const { gateway, base } = this.configureNetworkConnection(chainMetadata);
9494
return new RadixWarpArtifactManager(gateway, base);
9595
}
9696

0 commit comments

Comments
 (0)