New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ts): add Starknet data types #1523
Conversation
🦋 Changeset detectedLatest commit: f8be947 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
hey @xJonathanLEI if you can please rebase or merge |
9b68bdc
to
f218581
Compare
Rebased. Thanks! (Edit: CI seems to still be failing on |
Yeah saw the green CI on PR too.. weird that it fails on |
ok @xJonathanLEI if you can merge |
Head branch was pushed to by a user without write access
f218581
to
f8be947
Compare
Rebased. Let's see if it works :) |
This is the first of a series of PRs for adding Starknet support into
graph-tooling
, following the addition of Starknet support ingraph-node
. This first PR adds support on thets
side, which is essentially mapped from the corresponding parts ingraph-node
.This PR also adds a type
Felt
. This type is added because unlike in Ethereum where bytes and integers and distinct types (and hence have different representations in ABI), in Starknet the typefelt252
(orfelt
in Cairo Zero) is often used to represent both addresses and numbers. If we simply useBytes
for it, users might find it difficult to convert them intoBigInt
, asBigInt
only takes little-endian arrays.Once this gets merged, I will submit follow-up PRs that add Starknet subgraph initialization, codegen, and compilation support on the
cli
side. I figured following the "ts
first thencli
" approach should be easier.