0xSpaceShard / starknet-rivet

Developer wallet for Starknet
MIT License
8 stars 0 forks source link

Init starknet react #20

Closed qperrot closed 4 months ago

qperrot commented 5 months ago

Description

Rivet's first implementation.

The repo contains 2 main things:

Missing things: Those functions are here but not implemented so don't need to review them wallet_addStarknetChain: addStarknetChainHandler, wallet_switchStarknetChain: switchStarknetChainHandler, wallet_watchAsset: watchAssetHandler, wallet_requestAccounts: requestAccountsHandler, wallet_getPermissions: getPermissionsHandler, wallet_requestChainId: requestChainIdHandler, wallet_deploymentData: deploymentDataHandler, // Starknet requests starknet_addDeclareTransaction: deploymentDataHandler, starknet_addInvokeTransaction: deploymentDataHandler, starknet_signTypedData: deploymentDataHandler, starknet_supportedSpecs: deploymentDataHandler,

TESTING

Front end:

To test the extension frontend you need to install the extension by following the README. Then you will be able to use the generate docker command tools to help you to run docker devnet with all options that you want.

You can run multiple devnet locally at the same time and add them directly in the extension by using Register running docker

Once Docker is registered you must be able to see all predeployed accounts and use them.

Back end:

This backend can be tested with a dapp that listens to devnet. I have a Nimbora repo locally that can be used with our rivet extension, let me know if you want it.

Demo

Home PAGE

Capture d’écran 2024-06-04 à 17 26 26

DOCKER COMMAND GENERATOR

Capture d’écran 2024-06-04 à 17 26 34 Capture d’écran 2024-06-04 à 17 26 41

REGISTER RUNNING DOCKER

Capture d’écran 2024-06-04 à 17 26 49

SHOW PREDEPLOYED ACCOUNT

Capture d’écran 2024-06-04 à 17 26 59

SELECTED ACCOUNT

Capture d’écran 2024-06-04 à 17 27 04