-
Notifications
You must be signed in to change notification settings - Fork 748
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
WIP: Loss StarknetChainID #1223
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1,4 +1,3 @@ | ||||||||||||||
import { StarknetChainId } from '../../constants'; | ||||||||||||||
import { weierstrass } from '../../utils/ec'; | ||||||||||||||
import { EDataAvailabilityMode, ResourceBounds } from '../api'; | ||||||||||||||
import { CairoEnum } from '../cairoEnum'; | ||||||||||||||
|
@@ -159,7 +158,7 @@ export type Details = { | |||||||||||||
nonce: BigNumberish; | ||||||||||||||
maxFee: BigNumberish; | ||||||||||||||
version: BigNumberish; | ||||||||||||||
chainId: StarknetChainId; | ||||||||||||||
chainId: ChainId; | ||||||||||||||
}; | ||||||||||||||
|
||||||||||||||
export type InvocationsDetailsWithNonce = | ||||||||||||||
|
@@ -313,4 +312,6 @@ export type ContractVersion = { | |||||||||||||
compiler: CompilerVersion; | ||||||||||||||
}; | ||||||||||||||
|
||||||||||||||
export type ChainId = '0x534e5f4d41494e' | '0x534e5f5345504f4c4941' | (`0x${string}` & {}); | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would do this in a more verbose way:
Suggested change
And also mark the existing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yea agree on extraction of values from type, but regarding deprecation, dev can still use enum to initialise known Starknet Chain Id's, so I would leave the enum (const) part of it. |
||||||||||||||
|
||||||||||||||
export * from './contract'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like the cast can be removed. Also for
rpc_0_7
.