-
Notifications
You must be signed in to change notification settings - Fork 15
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
Support bool
, ClassHash
, ContractAddress
basic types in StarknetTypedData
#173
Commits on Mar 18, 2024
-
Update
StarknetExecutionResources
; AddStarknetComputationResources
- Add `dataAvailability` to `StarknetExecutionResources`; Add `StarknetDataAvailability - Add `executionResources` to tx traces - Add `StarknetComputationResources` - Add `computationResources` to `StarknetFunctionInvocation` - Add `StarknetResources` protocol with common fields
Configuration menu - View commit details
-
Copy full SHA for cd299f8 - Browse repository at this point
Copy the full SHA cd299f8View commit details -
Update prefund amounts and max fee for declare in DevnetClient
- Prefund account with `5_000_000_000_000_000`->`5_000_000_000_000_000_000` - Change max fee in declare methods to `1_000_000_000_000_000`->`10_000_000_000_000_000`
Configuration menu - View commit details
-
Copy full SHA for d2d94df - Browse repository at this point
Copy the full SHA d2d94dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for e012d54 - Browse repository at this point
Copy the full SHA e012d54View commit details -
Update
StarknetFeeEstimate
and related logic- Add `dataGasConsumed`, `dataGasPrice` fields to `StarknetFeeEstimate` - Update `.toResourceBounds()` extension - Update overheads - Use new logic
Configuration menu - View commit details
-
Copy full SHA for 96fc841 - Browse repository at this point
Copy the full SHA 96fc841View commit details -
Configuration menu - View commit details
-
Copy full SHA for 24de548 - Browse repository at this point
Copy the full SHA 24de548View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a36b16 - Browse repository at this point
Copy the full SHA 2a36b16View commit details -
Configuration menu - View commit details
-
Copy full SHA for 10c1bc3 - Browse repository at this point
Copy the full SHA 10c1bc3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 84c5dde - Browse repository at this point
Copy the full SHA 84c5ddeView commit details
Commits on Mar 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for db69dba - Browse repository at this point
Copy the full SHA db69dbaView commit details -
Configuration menu - View commit details
-
Copy full SHA for ee0a9a2 - Browse repository at this point
Copy the full SHA ee0a9a2View commit details -
Add missing
segment_arena_builtin
toStarknetComputationResources
…… and `StarknetExecutionResources` - Adjust tests
Configuration menu - View commit details
-
Copy full SHA for 5f87f2c - Browse repository at this point
Copy the full SHA 5f87f2cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ba4133 - Browse repository at this point
Copy the full SHA 1ba4133View commit details
Commits on Mar 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a606158 - Browse repository at this point
Copy the full SHA a606158View commit details
Commits on Mar 26, 2024
-
- Add `StarknetTypedData.Domain`, `StarknetTypedData.Revision` - Change `domain` type: `[String: Element] -> Domain` - Update initializer - Add `getStructHash(typeName: String, data: Data)` - Add `getStructHash(domain: Domain)`
Configuration menu - View commit details
-
Copy full SHA for d2bfbc8 - Browse repository at this point
Copy the full SHA d2bfbc8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f0409c - Browse repository at this point
Copy the full SHA 3f0409cView commit details -
Update
encode(dependency)
logic in line with rev 1- Use correct escape chars for rev 1
Configuration menu - View commit details
-
Copy full SHA for 49031c5 - Browse repository at this point
Copy the full SHA 49031c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for c681354 - Browse repository at this point
Copy the full SHA c681354View commit details -
Configuration menu - View commit details
-
Copy full SHA for 58c0c8d - Browse repository at this point
Copy the full SHA 58c0c8dView commit details -
- Rename test files `typed_data_[..].json`-> `typed_data_rev_0_[..].json` - Add `typed_data_rev_1_example.json` - Update `TypedDataTests` - Move old td cases to `CasesRev0` - Add `CasesRev1`
Configuration menu - View commit details
-
Copy full SHA for 4bb69cc - Browse repository at this point
Copy the full SHA 4bb69ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for a32823d - Browse repository at this point
Copy the full SHA a32823dView commit details -
Configuration menu - View commit details
-
Copy full SHA for e5f2e71 - Browse repository at this point
Copy the full SHA e5f2e71View commit details -
Configuration menu - View commit details
-
Copy full SHA for b894924 - Browse repository at this point
Copy the full SHA b894924View commit details
Commits on Mar 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 19e5338 - Browse repository at this point
Copy the full SHA 19e5338View commit details -
Configuration menu - View commit details
-
Copy full SHA for efee210 - Browse repository at this point
Copy the full SHA efee210View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ac7a1f - Browse repository at this point
Copy the full SHA 1ac7a1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for b0d94a2 - Browse repository at this point
Copy the full SHA b0d94a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0006110 - Browse repository at this point
Copy the full SHA 0006110View commit details -
Add
MerkleTreeType
,StandardType
; ConvertTypeDeclaration
to pr……otocol - Add `TypeDeclarationWrapper` - Change `types` type from `[String: [TypeDeclaration]]` to `[String: [TypeDeclarationWrapper]]`
Configuration menu - View commit details
-
Copy full SHA for 371fac7 - Browse repository at this point
Copy the full SHA 371fac7View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb2dd71 - Browse repository at this point
Copy the full SHA cb2dd71View commit details -
Configuration menu - View commit details
-
Copy full SHA for 89c4d7e - Browse repository at this point
Copy the full SHA 89c4d7eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f38cc0d - Browse repository at this point
Copy the full SHA f38cc0dView commit details -
Support
merkletree
basic type inStarknetTypedData
- Tests - Update `typed_data_rev_0_validate_example.json` to contain `merkletree`; Update related test cases - Add `typed_data_rev_0_struct_merkletree_example.json` and `typed_data_rev_1_felt_merkletree_example.json` and related test cases
Configuration menu - View commit details
-
Copy full SHA for 1d3f8e9 - Browse repository at this point
Copy the full SHA 1d3f8e9View commit details -
Split
testSignTypedData
into rev 0 and 1 tests- Rename `testSignTypedData`->``testSignTypedDataRev0`; Update path to example - Add `testSignTypedDataRev1`
Configuration menu - View commit details
-
Copy full SHA for 6822784 - Browse repository at this point
Copy the full SHA 6822784View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a19f30 - Browse repository at this point
Copy the full SHA 1a19f30View commit details -
Configuration menu - View commit details
-
Copy full SHA for e330ede - Browse repository at this point
Copy the full SHA e330edeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 403bffc - Browse repository at this point
Copy the full SHA 403bffcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 39f671e - Browse repository at this point
Copy the full SHA 39f671eView commit details
Commits on Mar 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 481872c - Browse repository at this point
Copy the full SHA 481872cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a939de5 - Browse repository at this point
Copy the full SHA a939de5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ed2e32 - Browse repository at this point
Copy the full SHA 1ed2e32View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ec8d5d - Browse repository at this point
Copy the full SHA 2ec8d5dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2890b67 - Browse repository at this point
Copy the full SHA 2890b67View commit details -
- Make initializers throwing instead of failable - Add new `StarknetTypedDataError` variants: `basicTypeRedefinition` and `invalidTypeName` - Refactor `verifyTypes()` - Throw errors instead of just returning `false` - Prevent `*` in every type name, not just `felt*` - Override decoding initializer to esnure call to `verifyTypes()`
Configuration menu - View commit details
-
Copy full SHA for 5673e04 - Browse repository at this point
Copy the full SHA 5673e04View commit details -
Restrict empty names; Refactor tests
- Update `verifyTypes()` to disallow empty names - Make `StarknetTypedDataError` equatable to allow tests on specific throws - Remove `testInvalidTypeNames`; Add: - `testInvalidTypeNames` - `testTypesRedifintion`
Configuration menu - View commit details
-
Copy full SHA for 0716893 - Browse repository at this point
Copy the full SHA 0716893View commit details -
Refactor
revision
related logic- Make `Domain.resolveRevision` to be throwing instead of returning null - Use `try!` in `revision` computated expr
Configuration menu - View commit details
-
Copy full SHA for 6c2ceaa - Browse repository at this point
Copy the full SHA 6c2ceaaView commit details -
Require domain type; Refactor tests
- Add check to `verifyTypes()` - Add `separatorName` to `Domain` - Refactor tests - Add `testMissingDomainType` - Take `revision` arg in `makeTypedData()` - Add domain type when creating typed data
Configuration menu - View commit details
-
Copy full SHA for e0cb126 - Browse repository at this point
Copy the full SHA e0cb126View commit details -
Configuration menu - View commit details
-
Copy full SHA for 350cadd - Browse repository at this point
Copy the full SHA 350caddView commit details -
Disallow dangling types in
verifyTypes()
- Add `danglingType` error
Configuration menu - View commit details
-
Copy full SHA for 5b061d9 - Browse repository at this point
Copy the full SHA 5b061d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for ddbfecb - Browse repository at this point
Copy the full SHA ddbfecbView commit details -
Add extra info to
StarknetTypedDataError
errors- Update - invalidRevision(Felt) - basicTypeRedefinition(String) - invalidTypeName(String) - Update `resolveRevision()` to throw `decodingError` on non-felt `Element` - Minor duplication removal in `verifyTypes`
Configuration menu - View commit details
-
Copy full SHA for 1ea8094 - Browse repository at this point
Copy the full SHA 1ea8094View commit details -
Configuration menu - View commit details
-
Copy full SHA for 495a06e - Browse repository at this point
Copy the full SHA 495a06eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7206647 - Browse repository at this point
Copy the full SHA 7206647View commit details -
Configuration menu - View commit details
-
Copy full SHA for c6c4e79 - Browse repository at this point
Copy the full SHA c6c4e79View commit details -
Configuration menu - View commit details
-
Copy full SHA for a8eced5 - Browse repository at this point
Copy the full SHA a8eced5View commit details -
Configuration menu - View commit details
-
Copy full SHA for b093f02 - Browse repository at this point
Copy the full SHA b093f02View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5600de2 - Browse repository at this point
Copy the full SHA 5600de2View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8390f9 - Browse repository at this point
Copy the full SHA b8390f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 81fa2f3 - Browse repository at this point
Copy the full SHA 81fa2f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for d8caa2f - Browse repository at this point
Copy the full SHA d8caa2fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c27593 - Browse repository at this point
Copy the full SHA 4c27593View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5db449a - Browse repository at this point
Copy the full SHA 5db449aView commit details -
Configuration menu - View commit details
-
Copy full SHA for e5486a5 - Browse repository at this point
Copy the full SHA e5486a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2891c5a - Browse repository at this point
Copy the full SHA 2891c5aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a197d7 - Browse repository at this point
Copy the full SHA 5a197d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 43fbb0d - Browse repository at this point
Copy the full SHA 43fbb0dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 04c743c - Browse repository at this point
Copy the full SHA 04c743cView commit details
Commits on Mar 29, 2024
-
Allow handle both basic and struct arrays in one block
Configuration menu - View commit details
-
Copy full SHA for 3096f02 - Browse repository at this point
Copy the full SHA 3096f02View commit details -
Configuration menu - View commit details
-
Copy full SHA for ee05381 - Browse repository at this point
Copy the full SHA ee05381View commit details -
Configuration menu - View commit details
-
Copy full SHA for d09d6d9 - Browse repository at this point
Copy the full SHA d09d6d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for a407d21 - Browse repository at this point
Copy the full SHA a407d21View commit details -
Configuration menu - View commit details
-
Copy full SHA for 503509c - Browse repository at this point
Copy the full SHA 503509cView commit details -
- Change visibility for `encode()` and `StarknetTypedData` extensions from `private` to `internal` to allow unit tests
Configuration menu - View commit details
-
Copy full SHA for 8302000 - Browse repository at this point
Copy the full SHA 8302000View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e7358b - Browse repository at this point
Copy the full SHA 6e7358bView commit details -
Update
verifyTypes()
to includebool
and all rev 1 basic types- Refactor related logic - Add `basicTypesV0` and `basicTypesV1` as static sets in extension - Avoid nested list loops in `verifyTypes()`
Configuration menu - View commit details
-
Copy full SHA for 25260c3 - Browse repository at this point
Copy the full SHA 25260c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for b1f1ee9 - Browse repository at this point
Copy the full SHA b1f1ee9View commit details -
Configuration menu - View commit details
-
Copy full SHA for c015793 - Browse repository at this point
Copy the full SHA c015793View commit details
Commits on Apr 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9feaf94 - Browse repository at this point
Copy the full SHA 9feaf94View commit details -
Configuration menu - View commit details
-
Copy full SHA for 090763c - Browse repository at this point
Copy the full SHA 090763cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 932790c - Browse repository at this point
Copy the full SHA 932790cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 47563a9 - Browse repository at this point
Copy the full SHA 47563a9View commit details
Commits on Apr 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 606a2bf - Browse repository at this point
Copy the full SHA 606a2bfView commit details -
Merge branch 'feat/159-snip-12' of https://github.com/software-mansio…
…n/starknet.swift into feat/159-snip-12
Configuration menu - View commit details
-
Copy full SHA for ddce0c3 - Browse repository at this point
Copy the full SHA ddce0c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e0a5da - Browse repository at this point
Copy the full SHA 3e0a5daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8966f27 - Browse repository at this point
Copy the full SHA 8966f27View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b9a346 - Browse repository at this point
Copy the full SHA 0b9a346View commit details -
Configuration menu - View commit details
-
Copy full SHA for e8f8e20 - Browse repository at this point
Copy the full SHA e8f8e20View commit details -
Configuration menu - View commit details
-
Copy full SHA for e2e3002 - Browse repository at this point
Copy the full SHA e2e3002View commit details
Commits on Apr 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 093113d - Browse repository at this point
Copy the full SHA 093113dView commit details -
Configuration menu - View commit details
-
Copy full SHA for d426775 - Browse repository at this point
Copy the full SHA d426775View commit details -
Configuration menu - View commit details
-
Copy full SHA for ed61f7a - Browse repository at this point
Copy the full SHA ed61f7aView commit details -
Configuration menu - View commit details
-
Copy full SHA for daf429b - Browse repository at this point
Copy the full SHA daf429bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 947ebd6 - Browse repository at this point
Copy the full SHA 947ebd6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d61523 - Browse repository at this point
Copy the full SHA 1d61523View commit details -
Configuration menu - View commit details
-
Copy full SHA for 759afd0 - Browse repository at this point
Copy the full SHA 759afd0View commit details
Commits on Apr 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e201759 - Browse repository at this point
Copy the full SHA e201759View commit details -
Configuration menu - View commit details
-
Copy full SHA for 28b288e - Browse repository at this point
Copy the full SHA 28b288eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ef4417 - Browse repository at this point
Copy the full SHA 0ef4417View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ebfeac - Browse repository at this point
Copy the full SHA 5ebfeacView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c0b593 - Browse repository at this point
Copy the full SHA 4c0b593View commit details
Commits on Apr 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b1642be - Browse repository at this point
Copy the full SHA b1642beView commit details -
Configuration menu - View commit details
-
Copy full SHA for f903902 - Browse repository at this point
Copy the full SHA f903902View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b5eefc - Browse repository at this point
Copy the full SHA 2b5eefcView commit details -
Configuration menu - View commit details
-
Copy full SHA for a0118c1 - Browse repository at this point
Copy the full SHA a0118c1View commit details