tonkeeper / w5

Wallet version 5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🔥W5: wallet v5 standard

This is an extensible wallet specification aimed at replacing V4 and allowing arbitrary extensions.

W5 has 25% lower fees, supports gasless transactions (via third party relayers) and implements a flexible extension mechanism.

Project structure

  • Specification
  • contracts - source code of all the smart contracts of the project and their dependencies.
  • wrappers - wrapper classes (implementing Contract from ton-core) for the contracts, including any [de]serialization primitives and compilation functions.
  • tests - tests for the contracts.
  • scripts - scripts used by the project, mainly the deployment scripts, additionally contains utilities for gas optimisation.
  • fift - contains standard Fift v0.4.4 library including the assembler and disassembler for gas optimisation utilities.

Additional documentation

  • Gas improvements - a log of improvements, detailed by primary code paths, global gas counters per commit.
  • Contest - a note showing some information about interesting improvements during the optimisation contest.

How to use

Build

npm run build:v5

Test

npm run test

Deployment

  1. Deploy library: npm run deploy-library
  2. Deploy wallet: npm run deploy-wallet

Get wallet compiled code

npm run print-wallet-code

About

Wallet version 5

License:MIT License


Languages

Language:TypeScript 97.9%Language:JavaScript 1.2%Language:Shell 0.9%