A blockchain wallet browser extension for Starcoin blockchain.
yarn setup
cp .starmaskrc.dist .starmaskrc # change the values according to your needs
yarn start
It is convenient to use yarn link @starcoin/xxx
for debugging in localhost,
but dont forget doing the following steps before next release:
yarn unlink @starcoin/xxx`
yarn add @starcoin/xxx
yarn setup:postinstall
app/scripts/migrations/index.js
yarn generate:migration <NEW_VERSION>
to generate app/scripts/migrations/<NEW_VERSION>.js
and app/scripts/migrations/<NEW_VERSION>.test.js
transformState
in app/scripts/migrations/<NEW_VERSION>.js
, add test cases in app/scripts/migrations/<NEW_VERSION>.test.js
app/scripts/migrations/index.js
:require('./<NEW_VERSION>').default,
yarn start
or wait until it reloaded, then the old state will be migrated to the new state.Tips:
check 054.js
and 054.test.js
for demo of handling tokens.
if you want to debug and re-run app/scripts/background.js
-> loadStateFromPersistence
versionedData.meta.version = <last_version_number>;
before this line:
const { TransactionController } = versionedData.data;
dist/chrome
folderapp/manifest/_base.json
yarn dist
contract-map.json
images
starmask-extension
@starcoin/starmask-contract-metadata
version to the latest oneapp/images/contract