A Vue.js application for locking and unlocking your own tokens on the Gala Chain network.
- Node.js (v16 or higher)
- npm or yarn
- A Gala Chain wallet with tokens
- Metamask extension with Gala wallet seed phrase imported
- Clone the repository:
git clone https://github.com/jehosephat/token-locker.git
cd token-locker- Install dependencies:
npm install- Create a
.envfile in the root directory with your configuration:
VITE_BURN_GATEWAY_API=https://gateway-mainnet.galachain.com/api/asset/token-contract
VITE_BURN_GATEWAY_PUBLIC_KEY_API=https://api-galaswap.gala.com/galachain/api/asset/public-key-contractTo run the development server:
npm run devThe application will be available at http://localhost:3000
To build the application for production:
npm run buildTo preview the production build:
npm run serve- Enter your Gala wallet address (client|...) and fetch your tokens
- Connect your wallet using the connect button in the application
- Select the tokens you want to lock/unlock
- Confirm the transaction in your wallet
- Connect to Gala Chain wallet
- View token balances
- Lock tokens
- Unlock tokens (that have been locked by you)
- View lock history and status
- Vue.js 3
- TypeScript
- Vite
- @gala-chain/connect