Skip to content
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

chore: release main #440

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"packages/starknet-snap": "3.0.0",
"packages/starknet-snap": "4.0.0",
"packages/wallet-ui": "1.25.0",
"packages/get-starknet": "1.3.0"
}
78 changes: 78 additions & 0 deletions packages/starknet-snap/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,83 @@
# Changelog

## [4.0.0](https://github.com/Consensys/starknet-snap/compare/starknet-snap-v3.0.0...starknet-snap-v4.0.0) (2024-11-27)


### ⚠ BREAKING CHANGES

* Enable JSX support, 1) Allow users to select the fee token in the execute transaction dialog (#417, #418, #419, #420). 2) Add JSX support and detection (#415, #416). 3) Replace RPC dialogs with JSX-based components ([#422](https://github.com/Consensys/starknet-snap/issues/422))

### Features

* [UI] support tx v3 in wallet-ui ([#271](https://github.com/Consensys/starknet-snap/issues/271)) ([8f50a33](https://github.com/Consensys/starknet-snap/commit/8f50a33ca7cdce88c6853ce1945cd7f7a7b24fae))
* Add custom error code to meet get-starknet v4 exception format ([#374](https://github.com/Consensys/starknet-snap/issues/374)) ([e61eb8b](https://github.com/Consensys/starknet-snap/commit/e61eb8bb4b7b1e2af50ed02bbdd4dac517867710))
* add declare method ([#159](https://github.com/Consensys/starknet-snap/issues/159)) ([538704e](https://github.com/Consensys/starknet-snap/commit/538704ee77dad7bd4ab0c0dc932aa9a4d23dec55))
* add get starknet package ([#186](https://github.com/Consensys/starknet-snap/issues/186)) ([c44c00d](https://github.com/Consensys/starknet-snap/commit/c44c00d3340191d4b276579556c613308c32cc1d))
* add method support get-starknet ([#173](https://github.com/Consensys/starknet-snap/issues/173)) ([a857eed](https://github.com/Consensys/starknet-snap/commit/a857eed85ff0a8acfcc54965e7419ea77333189e))
* add multi transaction to snap ([#161](https://github.com/Consensys/starknet-snap/issues/161)) ([eaee37b](https://github.com/Consensys/starknet-snap/commit/eaee37b3dc9cf8402ad46a5f879c6c5a8601322e))
* Add new RPC `starkNet_getDeploymentData` to support get-starknet v4 ([#381](https://github.com/Consensys/starknet-snap/issues/381)) ([a034bcf](https://github.com/Consensys/starknet-snap/commit/a034bcfb3b60242559e57f7ffbba9a7359444f1f))
* add open rpc json ([#167](https://github.com/Consensys/starknet-snap/issues/167)) ([3bab995](https://github.com/Consensys/starknet-snap/commit/3bab995dc6e36d8e1af51ca58afd280edf677134))
* add strk token ([#204](https://github.com/Consensys/starknet-snap/issues/204)) ([86f3a82](https://github.com/Consensys/starknet-snap/commit/86f3a82dce3389be3690a34e62e87ea655af7380))
* add switch network and get current network ([#174](https://github.com/Consensys/starknet-snap/issues/174)) ([560751f](https://github.com/Consensys/starknet-snap/commit/560751f8019e5aa1ef049b7df37086965acbe149))
* Add UI divider and hyperlink the address to the explorer on the UI dialog ([#405](https://github.com/Consensys/starknet-snap/issues/405), [#404](https://github.com/Consensys/starknet-snap/issues/404)) ([a77fede](https://github.com/Consensys/starknet-snap/commit/a77fedebcc3674549b117eb865d500c6d5209c7f))
* add usdc usdt ([#176](https://github.com/Consensys/starknet-snap/issues/176)) ([a48dccb](https://github.com/Consensys/starknet-snap/commit/a48dccbcc0e1ca3217e7961d21cfcee2d45ddc0e))
* add waiting mode for create account ([#251](https://github.com/Consensys/starknet-snap/issues/251)) ([0c91142](https://github.com/Consensys/starknet-snap/commit/0c911420595193672885d97d12769570a96316ce))
* bump starknetjs to 6.7.0 ([#219](https://github.com/Consensys/starknet-snap/issues/219)) ([a07c3f1](https://github.com/Consensys/starknet-snap/commit/a07c3f1b852389d2369320fbcf9258ff73860b69))
* cairo 1 support ([#202](https://github.com/Consensys/starknet-snap/issues/202)) ([c5e36e9](https://github.com/Consensys/starknet-snap/commit/c5e36e9a6f3c63155d990bf519cd6af6eb3cd006))
* change default network to mainnet ([#357](https://github.com/Consensys/starknet-snap/issues/357)) ([b2eccb7](https://github.com/Consensys/starknet-snap/commit/b2eccb74e958d2087917484469cb2139e2f537b7))
* changed name from StarkNet to Starknet ([#138](https://github.com/Consensys/starknet-snap/issues/138)) ([a153ee1](https://github.com/Consensys/starknet-snap/commit/a153ee1a04e6c742b7a6fc326d0c7556af082ee5))
* clean up and update dependency ([#259](https://github.com/Consensys/starknet-snap/issues/259)) ([fcb83e1](https://github.com/Consensys/starknet-snap/commit/fcb83e128fd4e483cdf9f4670e4e70e1d3876f7a))
* createStructWithAdditionalProperties superstruct factory ([#334](https://github.com/Consensys/starknet-snap/issues/334)) ([b393fe8](https://github.com/Consensys/starknet-snap/commit/b393fe8e3de17f49198145babf5747b06595a772))
* deprecate goerli network ([#217](https://github.com/Consensys/starknet-snap/issues/217)) ([168484d](https://github.com/Consensys/starknet-snap/commit/168484d5c1f1303f03a0db7f286a8e98ed50eb6a))
* display Stark name in Sidebar ([#184](https://github.com/Consensys/starknet-snap/issues/184)) ([60f37da](https://github.com/Consensys/starknet-snap/commit/60f37da767504382a4a93a5ce944e6119bd6e304))
* Enable JSX support, 1) Allow users to select the fee token in the execute transaction dialog ([#417](https://github.com/Consensys/starknet-snap/issues/417), [#418](https://github.com/Consensys/starknet-snap/issues/418), [#419](https://github.com/Consensys/starknet-snap/issues/419), [#420](https://github.com/Consensys/starknet-snap/issues/420)). 2) Add JSX support and detection ([#415](https://github.com/Consensys/starknet-snap/issues/415), [#416](https://github.com/Consensys/starknet-snap/issues/416)). 3) Replace RPC dialogs with JSX-based components ([#422](https://github.com/Consensys/starknet-snap/issues/422)) ([abfc0e5](https://github.com/Consensys/starknet-snap/commit/abfc0e52cc5c9c4fc7ec7e04a9ff667acbf99813))
* enable v3 in executeTxn legacy ([#346](https://github.com/Consensys/starknet-snap/issues/346)) ([6f2b099](https://github.com/Consensys/starknet-snap/commit/6f2b099ff2ed2c26c70ce37c3578bb439dbe9e36))
* estimate fees ([#162](https://github.com/Consensys/starknet-snap/issues/162)) ([0aee946](https://github.com/Consensys/starknet-snap/commit/0aee946753297adf676b4d67a50fb3082178e998))
* implement network switch in UI ([#175](https://github.com/Consensys/starknet-snap/issues/175)) ([4b4ace7](https://github.com/Consensys/starknet-snap/commit/4b4ace7f41998c36c7924dcfb07dde061a714d45))
* migrate metamask flask handle to metamask ([#121](https://github.com/Consensys/starknet-snap/issues/121)) ([5eff492](https://github.com/Consensys/starknet-snap/commit/5eff492cedb1bfa299e30b584fda8c936248fb9a))
* New Apis for Snap ([#207](https://github.com/Consensys/starknet-snap/issues/207)) ([675647d](https://github.com/Consensys/starknet-snap/commit/675647d9d77ba512f87a6a1d8291941bb5c31038))
* Refactor RPC `starkNet_addErc20Token` to have superstruct validation ([#388](https://github.com/Consensys/starknet-snap/issues/388)) ([157b5ad](https://github.com/Consensys/starknet-snap/commit/157b5ad2930fe4dfa0c154596c942c295d9c4d99))
* Refactor RPC `starkNet_declareContract` to have superstruct validation ([#398](https://github.com/Consensys/starknet-snap/issues/398)) ([5617ccf](https://github.com/Consensys/starknet-snap/commit/5617ccf85af58943313ef81bf3a03deed0c4eb0f))
* Refactor RPC `starkNet_switchNetwork` to have superstruct validation ([#369](https://github.com/Consensys/starknet-snap/issues/369), [#373](https://github.com/Consensys/starknet-snap/issues/373), [#368](https://github.com/Consensys/starknet-snap/issues/368)) ([d0384bf](https://github.com/Consensys/starknet-snap/commit/d0384bf9c9476c2168586cf7dc48fe6adb965bcb))
* replace account class hash with constant value ([#178](https://github.com/Consensys/starknet-snap/issues/178)) ([f588c9c](https://github.com/Consensys/starknet-snap/commit/f588c9c902818f7b690838ef0b4b81e499ca4fc5))
* sepolia network ([#187](https://github.com/Consensys/starknet-snap/issues/187)) ([45b0463](https://github.com/Consensys/starknet-snap/commit/45b04633149bf1b9568feeb8c2f475d52a0e45a8))
* sf 612 add alchemy provider ([#236](https://github.com/Consensys/starknet-snap/issues/236)) ([499f59d](https://github.com/Consensys/starknet-snap/commit/499f59dc05da5850f9b71d446267dcb62e079748))
* sf 613 add cicd support for alchemy ([#237](https://github.com/Consensys/starknet-snap/issues/237)) ([033fdc6](https://github.com/Consensys/starknet-snap/commit/033fdc625c8a2c7eee91a17c4e175a6b78626c7a))
* sf-510 deprecation of status field for snap ([#135](https://github.com/Consensys/starknet-snap/issues/135)) ([59711bb](https://github.com/Consensys/starknet-snap/commit/59711bbdbe6fd744fb35cf7cf18b1394d6f7c9e6))
* sf-640 revamp cicd workflow ([#255](https://github.com/Consensys/starknet-snap/issues/255)) ([6faaf02](https://github.com/Consensys/starknet-snap/commit/6faaf024bd0b8112e5cea930a2bf8aad564a9454))
* show upgrade dialog on get-starknet calls ([#247](https://github.com/Consensys/starknet-snap/issues/247)) ([4d8a2d7](https://github.com/Consensys/starknet-snap/commit/4d8a2d7948459033c91991c357f3fe2f620fe46b))
* sign transaction ongoing ([#158](https://github.com/Consensys/starknet-snap/issues/158)) ([0b7a8b1](https://github.com/Consensys/starknet-snap/commit/0b7a8b106bd8dd3ddb7e4389f825d6dc35319374))
* simplify dialog text render method ([#170](https://github.com/Consensys/starknet-snap/issues/170)) ([9f1c593](https://github.com/Consensys/starknet-snap/commit/9f1c59349f2370db1670a98a611c4f332e998a70))
* support txv3 in estimateFee and estimateFeeBulk [SNAP] ([#262](https://github.com/Consensys/starknet-snap/issues/262)) ([d2dcbad](https://github.com/Consensys/starknet-snap/commit/d2dcbad85d581a00aec61b668b6aa9cd8013a860))
* update snap demo html ([#160](https://github.com/Consensys/starknet-snap/issues/160)) ([b53cc7f](https://github.com/Consensys/starknet-snap/commit/b53cc7f7215ddf88eedaa9d187b2edb2b3e5a904))
* upgrade to sarknet.js v6.11.0 ([#296](https://github.com/Consensys/starknet-snap/issues/296)) ([e298244](https://github.com/Consensys/starknet-snap/commit/e298244a5e68e2809ab6367330e104c53ca5c861))


### Bug Fixes

* add mock to unit test on estimateFee and createAccount ([#166](https://github.com/Consensys/starknet-snap/issues/166)) ([d500465](https://github.com/Consensys/starknet-snap/commit/d500465dc95294b2a5e45707911cbf9dfd994c9b))
* address field error ([#234](https://github.com/Consensys/starknet-snap/issues/234)) ([1aa523c](https://github.com/Consensys/starknet-snap/commit/1aa523c8123ccd016953314c9c63520602959651))
* allow multiple consecutive transactions in estimateFee(Bulk) ([#289](https://github.com/Consensys/starknet-snap/issues/289)) ([5a501f9](https://github.com/Consensys/starknet-snap/commit/5a501f9aae7c3cdf041f479eac38f4a1e82855e9))
* ensure account deployment for executTxn in get-starknet ([#250](https://github.com/Consensys/starknet-snap/issues/250)) ([c98f2c7](https://github.com/Consensys/starknet-snap/commit/c98f2c74f5983736dedb960a5bf2ce57d9a3f99c))
* fix account address ([#137](https://github.com/Consensys/starknet-snap/issues/137)) ([f406d43](https://github.com/Consensys/starknet-snap/commit/f406d43cacdf08894d94988a750af46680e91114))
* Fix incorrect params passed to RPCs `starkNet_signDeclareTransaction`, `starkNet_verifySignedMessage`, `starkNet_declareContract` and `starkNet_getDeploymentData` ([#401](https://github.com/Consensys/starknet-snap/issues/401)) ([a834beb](https://github.com/Consensys/starknet-snap/commit/a834beb4bc0bb42f2f21b50f1cbb5a961e938b1e))
* Fix RPC `starkNet_executeTxn` storing in-correct state data if the params `calls` is not an array ([#376](https://github.com/Consensys/starknet-snap/issues/376)) ([508b958](https://github.com/Consensys/starknet-snap/commit/508b9584b534bd93235296fd36328fbaaa52334b))
* get balance should check on pending block ([#293](https://github.com/Consensys/starknet-snap/issues/293)) ([6df26d8](https://github.com/Consensys/starknet-snap/commit/6df26d8374da6161a9677a172bef93a826e8401f))
* get correct balance on snap homepage ([#214](https://github.com/Consensys/starknet-snap/issues/214)) ([781406e](https://github.com/Consensys/starknet-snap/commit/781406e691a47be8305643841fb6974376a89115))
* lint & style ([#201](https://github.com/Consensys/starknet-snap/issues/201)) ([4436ec1](https://github.com/Consensys/starknet-snap/commit/4436ec1656659d44ca66b7f7e91111095ad5f194))
* logger undefine if not init ([#363](https://github.com/Consensys/starknet-snap/issues/363)) ([6117509](https://github.com/Consensys/starknet-snap/commit/61175090256aa3d614b0e850947e0f90b5e05908))
* non zero balance on non deployed cairo 0 account ([#276](https://github.com/Consensys/starknet-snap/issues/276)) ([d9beafe](https://github.com/Consensys/starknet-snap/commit/d9beafe45b304685581162ef9247a31919eb7556))
* remove get balance from createAccount ([#272](https://github.com/Consensys/starknet-snap/issues/272)) ([02b92f9](https://github.com/Consensys/starknet-snap/commit/02b92f988476dd621e2c48c4b3f1733e55a5878c))
* remove hello method ([#146](https://github.com/Consensys/starknet-snap/issues/146)) ([241c1a7](https://github.com/Consensys/starknet-snap/commit/241c1a7d9f08b5bdad1551b384516e359f4132eb))
* sf 606 fix voyager cors with official provider ([#229](https://github.com/Consensys/starknet-snap/issues/229)) ([44ff4f1](https://github.com/Consensys/starknet-snap/commit/44ff4f131163c59972bf06a6f49d3bf3621da301))
* snap homepage error when state omit ([#218](https://github.com/Consensys/starknet-snap/issues/218)) ([41de2ea](https://github.com/Consensys/starknet-snap/commit/41de2ea8e2c5d703f1e2780b888b865290630591))
* snap homepage ui error due to goerli network deprecated ([#230](https://github.com/Consensys/starknet-snap/issues/230)) ([16ba5e9](https://github.com/Consensys/starknet-snap/commit/16ba5e9a94e7639670a138279db1ee8c22bc70a6))
* typo of Autherize ([#224](https://github.com/Consensys/starknet-snap/issues/224)) ([cc635ea](https://github.com/Consensys/starknet-snap/commit/cc635ea05347f044311ee2ab14332bf3300c8924))
* typos ([#172](https://github.com/Consensys/starknet-snap/issues/172)) ([d745354](https://github.com/Consensys/starknet-snap/commit/d7453547d7828050c4e98873d864d2361ccdf8a5))
* update proposedName ([#133](https://github.com/Consensys/starknet-snap/issues/133)) ([28dfb15](https://github.com/Consensys/starknet-snap/commit/28dfb152c8e252ecc3c6ea0cdb42e202ac858fc3))
* update starknet token name and symbol ([#210](https://github.com/Consensys/starknet-snap/issues/210)) ([4869b87](https://github.com/Consensys/starknet-snap/commit/4869b8706ac77709f2effbf9793922bd25e4b80e))
* validateAccountRequireUpgradeOrDeploy condition check ([#288](https://github.com/Consensys/starknet-snap/issues/288)) ([0f49ab0](https://github.com/Consensys/starknet-snap/commit/0f49ab09b57735158a74eed715cc6665c372ee6d))

## [3.0.0](https://github.com/Consensys/starknet-snap/compare/starknet-snap-v2.11.0...starknet-snap-v3.0.0) (2024-11-26)


Expand Down
19 changes: 15 additions & 4 deletions packages/starknet-snap/openrpc/starknet_snap_api_openrpc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openrpc": "1.0.0-rc1",
"info": {
"version": "3.0.0",
"version": "4.0.0",
"title": "Starknet MetaMask Snap API",
"license": {}
},
Expand Down Expand Up @@ -1366,7 +1366,12 @@
"properties": {
"type": {
"type": "string",
"enum": ["DECLARE", "DEPLOY", "DEPLOY_ACCOUNT", "INVOKE_FUNCTION"]
"enum": [
"DECLARE",
"DEPLOY",
"DEPLOY_ACCOUNT",
"INVOKE_FUNCTION"
]
},
"payload": {
"$ref": "#/components/schemas/INVOCATION_PAYLOAD"
Expand Down Expand Up @@ -1464,12 +1469,18 @@
},
"VOYAGER_TXN_TYPE": {
"type": "string",
"enum": ["invoke", "deploy"],
"enum": [
"invoke",
"deploy"
],
"description": "The txn type of the transaction from Voyager. May not be a full list here and subject to change"
},
"VOYAGER_TXN_STATUS": {
"type": "string",
"enum": ["Accepted on L2", "Accepted on L1"],
"enum": [
"Accepted on L2",
"Accepted on L1"
],
"description": "The status of the transaction. May be unknown in case node is not aware of it"
},
"TYPED_DATA_SIGNATURE": {
Expand Down
2 changes: 1 addition & 1 deletion packages/starknet-snap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@consensys/starknet-snap",
"version": "3.0.0",
"version": "4.0.0",
"keywords": [],
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/starknet-snap/snap.manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "3.0.0",
"version": "4.0.0",
"description": "Manage Starknet accounts and assets with MetaMask.",
"proposedName": "Starknet",
"repository": {
Expand Down