-
Notifications
You must be signed in to change notification settings - Fork 757
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into test/default-nodes-rpc-version
- Loading branch information
Showing
13 changed files
with
48 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,9 @@ | ||
export enum TypedDataRevision { | ||
Active = '1', | ||
Legacy = '0', | ||
} | ||
|
||
export type StarknetEnumType = { | ||
name: string; | ||
type: 'enum'; | ||
contains: string; | ||
}; | ||
|
||
export type StarknetMerkleType = { | ||
name: string; | ||
type: 'merkletree'; | ||
contains: string; | ||
}; | ||
|
||
/** | ||
* A single type, as part of a struct. The `type` field can be any of the EIP-712 supported types. | ||
* | ||
* Note that the `uint` and `int` aliases like in Solidity, and fixed point numbers are not supported by the EIP-712 | ||
* standard. | ||
*/ | ||
export type StarknetType = | ||
| { | ||
name: string; | ||
type: string; | ||
} | ||
| StarknetEnumType | ||
| StarknetMerkleType; | ||
|
||
/** | ||
* The EIP712 domain struct. Any of these fields are optional, but it must contain at least one field. | ||
*/ | ||
export interface StarknetDomain extends Record<string, unknown> { | ||
name?: string; | ||
version?: string; | ||
chainId?: string | number; | ||
revision?: string; | ||
} | ||
|
||
/** | ||
* The complete typed data, with all the structs, domain data, primary type of the message, and the message itself. | ||
*/ | ||
export interface TypedData { | ||
types: Record<string, StarknetType[]>; | ||
primaryType: string; | ||
domain: StarknetDomain; | ||
message: Record<string, unknown>; | ||
} | ||
// Reexport types from package | ||
export { | ||
TypedDataRevision, | ||
type StarknetEnumType, | ||
type StarknetMerkleType, | ||
type StarknetType, | ||
type StarknetDomain, | ||
type TypedData, | ||
} from 'starknet-types'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
export * from './account'; | ||
export * from './connect'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters