-
Notifications
You must be signed in to change notification settings - Fork 29
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: 2.3.0 release cario 1 upgrade #177
Conversation
* feat: change account contract to cairo 1 - update recover account to return correct address - update create account to use isAccountAddressDeployed method - update est gas fee to use new accountClassHash - add upgradeRequired in to acc object - fix test case * fix: update incorrect name --------- Co-authored-by: Amine Harty <[email protected]>
* feat: change account contract to cairo 1 - update recover account to return correct address - update create account to use isAccountAddressDeployed method - update est gas fee to use new accountClassHash - add upgradeRequired in to acc object - fix test case * feat: add blocking on snap method - add blocking on snap methods - add test case * fix: update incorrect name * fix: lint style * fix: bug in merge conflict * fix: update yarn lock
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.5. - [Release notes](https://github.com/jonschlinkert/word-wrap/releases) - [Commits](jonschlinkert/word-wrap@1.2.3...1.2.5) --- updated-dependencies: - dependency-name: word-wrap dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [@adobe/css-tools](https://github.com/adobe/css-tools) from 4.2.0 to 4.3.1. - [Changelog](https://github.com/adobe/css-tools/blob/main/History.md) - [Commits](https://github.com/adobe/css-tools/commits) --- updated-dependencies: - dependency-name: "@adobe/css-tools" dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [semver](https://github.com/npm/node-semver) from 7.3.8 to 7.5.2. - [Release notes](https://github.com/npm/node-semver/releases) - [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md) - [Commits](npm/node-semver@v7.3.8...v7.5.2) --- updated-dependencies: - dependency-name: semver dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
[consensys_starknet-snap-starknet-snap] Kudos, SonarCloud Quality Gate passed! 0 Bugs 90.5% Coverage The version of Java (11.0.20) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. |
[consensys_starknet-snap-wallet-ui] Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information The version of Java (11.0.20) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. |
add util methods:
findAddressIndex
, to find address index from the keyDeriver, and return the address index and it's carioVersionsgetBalance
to call contract interfacebalanceOf
isUpgradeRequired
to check the given address needed upgrade or notgetCorrectContractAddress
to get user address by public key, prioritize return cario 1 address over cario 0getAccContractAddressAndCallDataCairo0
to calculate cario 0 contract address by publicKeygetAccContractAddressAndCallDataCairo0
to calculate cario 0 contract address by publicKeyupdate util methods:
isAccountDeployed
to call contract interfacegetVersion
getKeysFromAddress
to adopt methodfindAddressIndex
1
when init account instanceadopt util method:
isAccountDeployed
getBalance
isUpgradeRequired
toestimateFee, extractPrivateKey, extractPublicKey, sendTransaction, signMessage, verifySignedMessage
, to block request if the account require upgradegetCorrectContractAddress
in recover account to return correct addressupdate unit test to split the test case into cario 1 vs cario 0 , and require upgrade vs not require upgrade
remove accountClassHash from network, and place by constant variable
ACCOUNT_CLASS_HASH_V0
andACCOUNT_CLASS_HASH_V1
.