Skip to content

feat: starknet core integration -> main [STRK-01]#26

Open
ljankovic-txfusion wants to merge 16 commits intofeat/starknet-core-abi-exportsfrom
feat/starknet-sdk-integration
Open

feat: starknet core integration -> main [STRK-01]#26
ljankovic-txfusion wants to merge 16 commits intofeat/starknet-core-abi-exportsfrom
feat/starknet-sdk-integration

Conversation

@ljankovic-txfusion
Copy link
Copy Markdown

Description

PR DIFF
This PR introduces Starknet logic to enable token warping on the UI.

// setup contract factory
const overrides = this.getTransactionOverrides(chainNameOrId);
const signer = this.getSigner(chainNameOrId);
const contractFactory = await factory.connect(signer);
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not related to starknet - but await is not needed here

}

export interface StarknetJsTransactionReceipt
extends TypedTransactionReceiptBase<StarknetTxReceipt | StarknetReceiptTx> {
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GetTransactionReceiptResponse encapsulates ReceiptTx and TransactionReceipt is not used

Comment thread typescript/sdk/src/warp/WarpCore.ts Outdated
return { gasUnits: 0, gasPrice: 0, fee: Number(defaultQuote.amount) };
}

// TODO: DOES NOT WORK FOR STARKNET
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... yet, because starknet does not support gas estimation without starknet account

symbol: atom
name: atom
addressOrDenom: atom
- chainName: starknetdevnet
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had some tests in typescript/sdk/src/warp/WarpCore.test.ts for this token, but because gas estimation works differently in starknet & could not be stubbed, I had to ditch it

});
} else if (
transaction.type === ProviderType.Starknet &&
provider.type === ProviderType.Starknet
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other protocols also check both the transaction and provider type

@ljankovic-txfusion ljankovic-txfusion changed the title Feat/starknet sdk integration Feat: starknet sdk integration [STRK-01] Apr 7, 2025
@ljankovic-txfusion ljankovic-txfusion changed the title Feat: starknet sdk integration [STRK-01] feat: starknet sdk integration [STRK-01] Apr 7, 2025
@ljankovic-txfusion ljankovic-txfusion changed the title feat: starknet sdk integration [STRK-01] feat: starknet sdk integration -> main [STRK-01] Apr 7, 2025
@ljankovic-txfusion ljankovic-txfusion changed the title feat: starknet sdk integration -> main [STRK-01] feat: starknet core integration -> main [STRK-01] Apr 7, 2025
@ljankovic-txfusion ljankovic-txfusion force-pushed the feat/starknet-core-abi-exports branch from ae03261 to 0eb975f Compare May 9, 2025 09:34
@ljankovic-txfusion ljankovic-txfusion force-pushed the feat/starknet-sdk-integration branch from 1cfeb65 to f0d7677 Compare May 9, 2025 09:44
ljankovic-txfusion and others added 14 commits May 15, 2025 15:34
### Description

fix: changelog typos

### Drive-by changes

<!--
Are there any minor or drive-by changes also included?
-->

### Related issues

<!--
- Fixes #[issue number here]
-->

### Backward compatibility

<!--
Are these changes backward compatible? Are there any infrastructure
implications, e.g. changes that would prohibit deploying older commits
using this infra tooling?

Yes/No
-->

### Testing

<!--
What kind of testing have these changes undergone?

None/Manual/Unit Tests
-->
### Description

Updates the solana igp config to add abstract

### Drive-by changes

no

### Related issues



### Backward compatibility



### Testing
…tion [STARKNET-01] (hyperlane-xyz#5830)

### Description

1st Starknet PR

This PR adds the `@hyperlane-xyz/starknet-core` package for fetching
Starknet contract ABI and generating contract artifacts. The package
provides TypeScript tooling for interacting with Cairo contracts ABI on
Starknet, including auto-generated compiled contract ABIs from Astraly
Labs Hyperlane repo.

### Drive-by changes

None

### Related issues

Resolves ENG-1270

### Backward compatibility

This is a new package that doesn't modify existing functionality

### Testing

Manual testing of contract fetching and artifact generation
### Description

This PR adds the Turbo USD (tUSD) warp route from Ethereum to Eclipse.
Client: Nucleus/Eclipse.

### Related issues

- [Nucleus
Deployment](https://www.notion.so/hyperlanexyz/Nucleus-1dd6d35200d680feb39cc050ed2e1059?pvs=4)

### Backward compatibility

Yes

### Testing

Testing only possible via UI as our CLI tools don't support EVM-SVM
roundtrip transfers. The UI testing is not yet possible because the tUSD
token on Ethereum is not fully configured.
…yperlane-xyz#5851)

### Description

2nd Starknet PR

This PR introduces utilities for starknet addresses.

[Diff with previous PR - feat: Add Starknet contract ABI fetching and
contract artifact generation
hyperlane-xyz#5830](https://github.com/txfusion/hyperlane-monorepo/pull/27/files)

### Drive-by changes

- Exports for starknet address from typescript/utils

### Related issues

None

### Backward compatibility

Yes

### Testing

None
### Description

fix: monorepo docker builds

### Drive-by changes

<!--
Are there any minor or drive-by changes also included?
-->

### Related issues

<!--
- Fixes #[issue number here]
-->

### Backward compatibility

<!--
Are these changes backward compatible? Are there any infrastructure
implications, e.g. changes that would prohibit deploying older commits
using this infra tooling?

Yes/No
-->

### Testing

<!--
What kind of testing have these changes undergone?

None/Manual/Unit Tests
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants